boards: renesas: dts: Add overlay files to support the MEMC

In order to avoid defining almost the same overlays in the available
sample codes, tests and user applications, a common overlay file
per memory type is demonstrated under the boards dts folder.
Currently only the PSRAM interface is supported and the APS6404L
PSRAM QSPI memory device is demonstrated. In doing so, an
application code will only have to define another overlay file explicitly,
under application's board folder, to overwrite the default QSPI
controller's settings. In either case, users should explicitly
invoke the requested overlay files  at 'west build' invokation
via the DTC_OVERLAY_FILE system variable.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
This commit is contained in:
Ioannis Karachalios 2024-04-30 00:42:29 +03:00 committed by Anas Nashif
commit b820cc2932

View file

@ -0,0 +1,39 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
aliases {
sram-ext = &memc;
};
};
/* QSPIC settings for the APS6404L-3SQR QSPI PSRAM memory in QPI mode. */
&memc {
status = "okay";
is-ram;
dev-size = <DT_SIZE_M(64)>;
dev-type = <0x5D>;
dev-id = <0x0D>;
dev-density = <0xE040>;
reset-delay-us = <50>;
read-cs-idle-min-ns = <18>;
tcem-max-us = <2>;
enter-qpi-mode;
enter-qpi-cmd = <0x35>;
extra-byte-enable;
extra-byte = <0x0>;
dummy-bytes-count = "dummy-bytes-count2";
read-cmd = <0xEB>;
write-cmd = <0x38>;
rx-inst-mode = "quad-spi";
rx-addr-mode = "quad-spi";
rx-data-mode = "quad-spi";
rx-dummy-mode = "quad-spi";
rx-extra-mode = "quad-spi";
tx-inst-mode = "quad-spi";
tx-addr-mode = "quad-spi";
tx-data-mode = "quad-spi";
};