Skip to content

Commit 6b574e6

Browse files
FRASTMkartben
authored andcommitted
boards: st: stm32N6 boards xspi-nor-flash DTS configuration
This PR defines the "st,stm32-xspi-nor" compatible Node and the "st,stm32-xspi-psram" compatible Node in conformance to the DTS specifications Includes the size property (in Bits) of the external memory device Signed-off-by: Francois Ramu <francois.ramu@st.com>
1 parent 421c3f6 commit 6b574e6

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

boards/st/nucleo_n657x0_q/nucleo_n657x0_q_common.dtsi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,10 @@ zephyr_udc0: &usbotg_hs1 {
235235
<&rcc STM32_CLOCK(AHB5, 13)>;
236236
status = "okay";
237237

238-
mx25um51245g: ospi-nor-flash@70000000 {
238+
mx25um51245g: ospi-nor-flash@0 {
239239
compatible = "st,stm32-xspi-nor";
240-
reg = <0x70000000 DT_SIZE_M(64)>; /* 512 Mbits */
240+
reg = <0>;
241+
size = <DT_SIZE_M(512)>; /* 512 Mbits */
241242
ospi-max-frequency = <DT_FREQ_M(200)>;
242243
spi-bus-width = <XSPI_OCTO_MODE>;
243244
data-rate = <XSPI_DTR_TRANSFER>;

boards/st/stm32n6570_dk/stm32n6570_dk_common.dtsi

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,10 @@ zephyr_udc0: &usbotg_hs1 {
250250
<&rcc STM32_CLOCK(AHB5, 13)>;
251251
status = "okay";
252252

253-
memc: aps256xxn_obr: memory@90000000 {
253+
memc: aps256xxn_obr: memory@0 {
254254
compatible = "st,stm32-xspi-psram";
255-
reg = <0x90000000 DT_SIZE_M(32)>; /* 256 Mbits */
255+
reg = <0>;
256+
size = <DT_SIZE_M(256)>; /* 256 Mbits */
256257
fixed-latency;
257258
io-x16-mode;
258259
read-latency = <4>;
@@ -273,9 +274,10 @@ zephyr_udc0: &usbotg_hs1 {
273274
<&rcc STM32_CLOCK(AHB5, 13)>;
274275
status = "okay";
275276

276-
mx66uw1g45g: ospi-nor-flash@70000000 {
277+
mx66uw1g45g: ospi-nor-flash@0 {
277278
compatible = "st,stm32-xspi-nor";
278-
reg = <0x70000000 DT_SIZE_M(128)>; /* 1 Gbits */
279+
reg = <0>;
280+
size = <DT_SIZE_M(1024)>; /* 1Gbits */
279281
ospi-max-frequency = <DT_FREQ_M(200)>;
280282
spi-bus-width = <XSPI_OCTO_MODE>;
281283
data-rate = <XSPI_DTR_TRANSFER>;

0 commit comments

Comments
 (0)