Skip to content

Commit

Permalink
boards: renesas: dts: Add overlay files to support the MEMC
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ioannis-karachalios authored and nashif committed May 23, 2024
1 parent 4e2ef1f commit b820cc2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions boards/renesas/da1469x_dk_pro/dts/da1469x_dk_pro_psram.overlay
Original file line number Diff line number Diff line change
@@ -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";
};

0 comments on commit b820cc2

Please sign in to comment.