Skip to content

Commit ba85dac

Browse files
FRASTMMaureenHelm
authored andcommitted
boards: arm: stm32 disco kit has ospi nor flash node
Define the reg and size property for the stm32 disco kits which have an octospi instance Refer to the dts/bindings/flash_controller/st,stm32-ospi-nor.yaml. Also remove the <size> property for the stm362h750 disco kit. Signed-off-by: Francois Ramu <[email protected]>
1 parent 6aac89b commit ba85dac

File tree

7 files changed

+12
-19
lines changed

7 files changed

+12
-19
lines changed

boards/arm/adi_eval_adin1110ebz/adi_eval_adin1110ebz.dts

+2-3
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,10 @@ zephyr_udc0: &usbotg_fs {
261261

262262
status = "okay";
263263

264-
mx25r6435f: ospi-nor-flash@0 {
264+
mx25r6435f: ospi-nor-flash@90000000 {
265265
compatible = "st,stm32-ospi-nor";
266-
reg = <0>;
266+
reg = <0x90000000 DT_SIZE_M(8)>; /* 64 Megabits */
267267
ospi-max-frequency = <DT_FREQ_M(26)>; /* for Voltage Range 2 */
268-
size = <DT_SIZE_M(64)>; /* 64 Megabits */
269268
spi-bus-width = <OSPI_QUAD_MODE>;
270269
data-rate = <OSPI_STR_TRANSFER>;
271270
writeoc="PP_1_4_4";

boards/arm/b_l4s5i_iot01a/b_l4s5i_iot01a.dts

+2-3
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,10 @@ zephyr_udc0: &usbotg_fs {
251251

252252
status = "okay";
253253

254-
mx25r6435f: ospi-nor-flash@0 {
254+
mx25r6435f: ospi-nor-flash@90000000 {
255255
compatible = "st,stm32-ospi-nor";
256-
reg = <0>;
256+
reg = <0x90000000 DT_SIZE_M(8)>; /* 64 Megabits */
257257
ospi-max-frequency = <DT_FREQ_M(26)>; /* for Voltage Range 2 */
258-
size = <DT_SIZE_M(64)>; /* 64 Megabits */
259258
spi-bus-width = <OSPI_QUAD_MODE>;
260259
data-rate = <OSPI_STR_TRANSFER>;
261260
writeoc="PP_1_4_4";

boards/arm/stm32h573i_dk/stm32h573i_dk.dts

+2-3
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,10 @@
239239

240240
status = "okay";
241241

242-
mx25lm51245: ospi-nor-flash@0 {
242+
mx25lm51245: ospi-nor-flash@90000000 {
243243
compatible = "st,stm32-ospi-nor";
244-
reg = <0>;
244+
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
245245
ospi-max-frequency = <DT_FREQ_M(50)>;
246-
size = <DT_SIZE_M(512)>; /* 64 MBytes */
247246
spi-bus-width = <OSPI_OPI_MODE>;
248247
data-rate = <OSPI_DTR_TRANSFER>;
249248
four-byte-opcodes;

boards/arm/stm32h735g_disco/stm32h735g_disco.dts

+2-3
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,10 @@
165165

166166
status = "okay";
167167

168-
mx25lm51245: ospi-nor-flash@0 {
168+
mx25lm51245: ospi-nor-flash@90000000 {
169169
compatible = "st,stm32-ospi-nor";
170-
reg = <0>;
170+
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
171171
ospi-max-frequency = <DT_FREQ_M(50)>;
172-
size = <DT_SIZE_M(512)>; /* 64 MBytes */
173172
spi-bus-width = <OSPI_OPI_MODE>;
174173
data-rate = <OSPI_DTR_TRANSFER>;
175174
status = "okay";

boards/arm/stm32h750b_dk/stm32h750b_dk.dts

-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@
124124
compatible = "st,stm32-qspi-nor";
125125
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
126126
qspi-max-frequency = <72000000>;
127-
size = <DT_SIZE_M(512)>; /* 64 MBytes */
128127
status = "okay";
129128
};
130129
};

boards/arm/stm32h7b3i_dk/stm32h7b3i_dk.dts

+2-3
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,10 @@
253253

254254
status = "okay";
255255

256-
mx25lm51245: ospi-nor-flash@0 {
256+
mx25lm51245: ospi-nor-flash@90000000 {
257257
compatible = "st,stm32-ospi-nor";
258-
reg = <0>;
258+
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
259259
ospi-max-frequency = <DT_FREQ_M(50)>;
260-
size = <DT_SIZE_M(512)>; /* 512 Megabits */
261260
spi-bus-width = <OSPI_OPI_MODE>;
262261
data-rate = <OSPI_DTR_TRANSFER>;
263262
status = "okay";

boards/arm/stm32l4r9i_disco/stm32l4r9i_disco.dts

+2-3
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,11 @@ zephyr_udc0: &usbotg_fs {
224224
&octospim_p2_dqs_pg15>;
225225
pinctrl-names = "default";
226226

227-
mx25lm51245: ospi-nor-flash@0 {
227+
mx25lm51245: ospi-nor-flash@90000000 {
228228
status = "okay";
229229
compatible = "st,stm32-ospi-nor";
230-
reg = <0>;
230+
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
231231
ospi-max-frequency = <DT_FREQ_M(25)>;
232-
size = <DT_SIZE_M(512)>; /* 512 Mbits = 64 MBytes */
233232
spi-bus-width = <OSPI_OPI_MODE>;
234233
data-rate = <OSPI_STR_TRANSFER>;
235234
four-byte-opcodes;

0 commit comments

Comments
 (0)