Skip to content

Commit 14c1b4a

Browse files
FRASTMdanieldegrasse
authored andcommitted
boards: st: stm32 boards ospi-nor-flash DTS configuration
This change defines the "st,stm32-ospi-nor" 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 958087f commit 14c1b4a

File tree

9 files changed

+26
-17
lines changed

9 files changed

+26
-17
lines changed

boards/adi/eval_adin1110ebz/adi_eval_adin1110ebz.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,10 @@ zephyr_udc0: &usbotg_fs {
269269

270270
status = "okay";
271271

272-
mx25r6435f: ospi-nor-flash@90000000 {
272+
mx25r6435f: ospi-nor-flash@0 {
273273
compatible = "st,stm32-ospi-nor";
274-
reg = <0x90000000 DT_SIZE_M(8)>; /* 64 Megabits */
274+
reg = <0>;
275+
size = <DT_SIZE_M(64)>; /* 64 Megabits */
275276
ospi-max-frequency = <DT_FREQ_M(26)>; /* for Voltage Range 2 */
276277
spi-bus-width = <OSPI_QUAD_MODE>;
277278
data-rate = <OSPI_STR_TRANSFER>;

boards/fanke/fk7b0m1_vbt6/fk7b0m1_vbt6.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@
8585
/* Winbond external flash */
8686
w25q64jvssiq_qspi: qspi-nor-flash@0 {
8787
compatible = "st,stm32-ospi-nor";
88-
reg = <0 DT_SIZE_M(8)>; /* 64 Mbits */
88+
reg = <0>;
89+
size = <DT_SIZE_M(64)>; /* 64 Mbits */
8990
ospi-max-frequency = <DT_FREQ_M(133)>;
9091
spi-bus-width = <OSPI_QUAD_MODE>;
9192
data-rate = <OSPI_STR_TRANSFER>;

boards/st/b_l4s5i_iot01a/b_l4s5i_iot01a.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,10 @@ zephyr_udc0: &usbotg_fs {
246246

247247
status = "okay";
248248

249-
mx25r6435f: ospi-nor-flash@90000000 {
249+
mx25r6435f: ospi-nor-flash@0 {
250250
compatible = "st,stm32-ospi-nor";
251-
reg = <0x90000000 DT_SIZE_M(8)>; /* 64 Megabits */
251+
reg = <0>;
252+
size = <DT_SIZE_M(64)>; /* 64 Megabits */
252253
ospi-max-frequency = <DT_FREQ_M(26)>; /* for Voltage Range 2 */
253254
spi-bus-width = <OSPI_QUAD_MODE>;
254255
data-rate = <OSPI_STR_TRANSFER>;

boards/st/b_u585i_iot02a/b_u585i_iot02a-common.dtsi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ stm32_lp_tick_source: &lptim1 {
137137

138138
status = "okay";
139139

140-
mx25lm51245: ospi-nor-flash@70000000 {
140+
mx25lm51245: ospi-nor-flash@0 {
141141
compatible = "st,stm32-ospi-nor";
142-
reg = <0x70000000 DT_SIZE_M(64)>; /* 512 Mbits */
142+
reg = <0>;
143+
size = <DT_SIZE_M(512)>; /* 512 Megabits */
143144
ospi-max-frequency = <DT_FREQ_M(50)>;
144145
spi-bus-width = <OSPI_OPI_MODE>;
145146
data-rate = <OSPI_DTR_TRANSFER>;

boards/st/stm32h735g_disco/stm32h735g_disco.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,10 @@
180180

181181
status = "okay";
182182

183-
mx25lm51245: ospi-nor-flash@90000000 {
183+
mx25lm51245: ospi-nor-flash@0 {
184184
compatible = "st,stm32-ospi-nor";
185-
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
185+
reg = <0>;
186+
size = <DT_SIZE_M(512)>; /* 512 Megabits */
186187
ospi-max-frequency = <DT_FREQ_M(50)>;
187188
spi-bus-width = <OSPI_OPI_MODE>;
188189
data-rate = <OSPI_DTR_TRANSFER>;

boards/st/stm32h7b3i_dk/stm32h7b3i_dk.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,10 @@
287287

288288
status = "okay";
289289

290-
mx25lm51245: ospi-nor-flash@90000000 {
290+
mx25lm51245: ospi-nor-flash@0 {
291291
compatible = "st,stm32-ospi-nor";
292-
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
292+
reg = <0>;
293+
size = <DT_SIZE_M(512)>; /* 512 Megabits */
293294
ospi-max-frequency = <DT_FREQ_M(50)>;
294295
spi-bus-width = <OSPI_OPI_MODE>;
295296
data-rate = <OSPI_DTR_TRANSFER>;

boards/st/stm32l4r9i_disco/stm32l4r9i_disco.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,11 @@ zephyr_udc0: &usbotg_fs {
290290
&octospim_p2_dqs_pg15>;
291291
pinctrl-names = "default";
292292

293-
mx25lm51245: ospi-nor-flash@90000000 {
293+
mx25lm51245: ospi-nor-flash@0 {
294294
status = "okay";
295295
compatible = "st,stm32-ospi-nor";
296-
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
296+
reg = <0>;
297+
size = <DT_SIZE_M(512)>; /* 512 Megabits */
297298
ospi-max-frequency = <DT_FREQ_M(25)>;
298299
spi-bus-width = <OSPI_OPI_MODE>;
299300
data-rate = <OSPI_STR_TRANSFER>;

boards/st/stm32l562e_dk/stm32l562e_dk_common.dtsi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,10 @@ stm32_lp_tick_source: &lptim1 {
227227

228228
status = "okay";
229229

230-
mx25lm51245: ospi-nor-flash@90000000 {
230+
mx25lm51245: ospi-nor-flash@0 {
231231
compatible = "st,stm32-ospi-nor";
232-
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
232+
reg = <0>;
233+
size = <DT_SIZE_M(512)>; /* 512 Megabits */
233234
ospi-max-frequency = <DT_FREQ_M(50)>;
234235
spi-bus-width = <OSPI_OPI_MODE>;
235236
data-rate = <OSPI_DTR_TRANSFER>;

boards/weact/mini_stm32h7b0/mini_stm32h7b0.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ zephyr_udc0: &usbotg_hs {
142142
&octospim_p1_io2_pe2 &octospim_p1_io3_pd13>;
143143
status = "okay";
144144

145-
w25q64_qspi: ospi-nor-flash@90000000 {
145+
w25q64_qspi: ospi-nor-flash@0{
146146
compatible = "st,stm32-ospi-nor";
147-
reg = <0x90000000 DT_SIZE_M(64)>; /* 64 Mbits */
147+
reg = <0>;
148+
size = <DT_SIZE_M(64)>; /* 64 Mbits */
148149
ospi-max-frequency = <40000000>;
149150
status = "okay";
150151
spi-bus-width = <4>;

0 commit comments

Comments
 (0)