Skip to content

Commit e35ac8f

Browse files
FRASTMkartben
authored andcommitted
boards: st: stm32 boards qspi-nor-flash DTS configuration
This change defines the "st,stm32-qspi-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 6e5d139 commit e35ac8f

File tree

21 files changed

+82
-58
lines changed

21 files changed

+82
-58
lines changed

boards/alientek/pandora_stm32l475/pandora_stm32l475.dts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,17 @@
7575
&quadspi_bk1_io0_pe12 &quadspi_bk1_io1_pe13
7676
&quadspi_bk1_io2_pe14 &quadspi_bk1_io3_pe15>;
7777
pinctrl-names = "default";
78-
7978
status = "okay";
80-
w25q128jv: qspi-nor-flash@90000000 {
81-
compatible = "st,stm32-qspi-nor";
82-
reg = <0x90000000 DT_SIZE_M(16)>; /* 128 Mbits */
83-
qspi-max-frequency = <80000000>;
84-
jedec-id = [ef 40 18];
85-
spi-bus-width = <4>;
86-
writeoc = "PP_1_1_4";
87-
status = "okay";
79+
80+
w25q128jv: qspi-nor-flash@0 {
81+
compatible = "st,stm32-qspi-nor";
82+
reg = <0>;
83+
size = <DT_SIZE_M(128)>; /* 128 Mbits */
84+
qspi-max-frequency = <80000000>;
85+
jedec-id = [ef 40 18];
86+
spi-bus-width = <4>;
87+
writeoc = "PP_1_1_4";
88+
status = "okay";
8889
};
8990
};
9091

boards/arduino/giga_r1/arduino_giga_r1_stm32h747xx_m7.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,10 @@
173173
pinctrl-names = "default";
174174
status = "okay";
175175

176-
n25q128a1: qspi-nor-flash@90000000 {
176+
n25q128a1: qspi-nor-flash@0 {
177177
compatible = "st,stm32-qspi-nor";
178-
reg = <0x90000000 DT_SIZE_M(16)>; /* 128 Mbits */
178+
reg = <0>;
179+
size = <DT_SIZE_M(128)>; /* 128 Mbits */
179180
qspi-max-frequency = <72000000>;
180181
status = "okay";
181182

boards/arduino/nicla_vision/arduino_nicla_vision_stm32h747xx_m7.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ zephyr_i2c: &i2c1 {
165165
pinctrl-names = "default";
166166
status = "okay";
167167

168-
n25q128a1: qspi-nor-flash@90000000 {
168+
n25q128a1: qspi-nor-flash@0 {
169169
compatible = "st,stm32-qspi-nor";
170-
reg = <0x90000000 DT_SIZE_M(16)>; /* 128 Mbits */
170+
reg = <0>;
171+
size = <DT_SIZE_M(128)>; /* 128 Mbits */
171172
qspi-max-frequency = <72000000>;
172173
status = "okay";
173174

boards/arduino/opta/arduino_opta_stm32h747xx_m7.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ zephyr_udc0: &usbotg_fs {
133133
pinctrl-names = "default";
134134
status = "okay";
135135

136-
at25sf128a: qspi-nor-flash@90000000 {
136+
at25sf128a: qspi-nor-flash@0 {
137137
compatible = "st,stm32-qspi-nor";
138-
reg = < 0x90000000 DT_SIZE_M(16) >; /* 128 MBits */
138+
reg = <0>;
139+
size = <DT_SIZE_M(128)>; /* 128 MBits */
139140
qspi-max-frequency = <DT_FREQ_M(70)>;
140141
status = "okay";
141142
spi-bus-width = <2>;

boards/arduino/portenta_h7/arduino_portenta_h7-common.dtsi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ zephyr_i2c: &i2c1 {
179179
pinctrl-names = "default";
180180
status = "okay";
181181

182-
mx25l12833f: qspi-nor-flash@90000000 {
182+
mx25l12833f: qspi-nor-flash@0 {
183183
compatible = "st,stm32-qspi-nor";
184-
reg = < 0x90000000 DT_SIZE_M(16) >; /* 128 MBits */
184+
reg = <0>;
185+
size = <DT_SIZE_M(128)>; /* 128 Mbits */
185186
qspi-max-frequency = < 40000000 >;
186187
sfdp-bfp = [ e5 20 f1 ff ff ff ff 07 44 eb 08 6b 08 3b 04 bb
187188
fe ff ff ff ff ff 00 ff ff ff 44 eb 0c 20 0f 52

boards/fanke/fk743m5_xih6/fk743m5_xih6.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@
9696
status = "okay";
9797

9898
/* Winbond external flash */
99-
w25q64_qspi: qspi-nor-flash@90000000 {
99+
w25q64_qspi: qspi-nor-flash@0 {
100100
compatible = "st,stm32-qspi-nor";
101-
reg = <0x90000000 DT_SIZE_M(8)>; /* 64 Mbits */
101+
reg = <0>;
102+
size = <DT_SIZE_M(64)>; /* 64 Mbits */
102103
qspi-max-frequency = <40000000>;
103104
status = "okay";
104105
spi-bus-width = <4>;

boards/fanke/fk750m1_vbt6/fk750m1_vbt6.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@
118118
status = "okay";
119119

120120
/* Winbond external flash */
121-
w25q64_qspi: qspi-nor-flash@90000000 {
121+
w25q64_qspi: qspi-nor-flash@0 {
122122
compatible = "st,stm32-qspi-nor";
123-
reg = <0x90000000 DT_SIZE_M(64)>; /* 64 Mbits */
123+
reg = <0>;
124+
size = <DT_SIZE_M(64)>; /* 64 Mbits */
124125
qspi-max-frequency = <40000000>;
125126
status = "okay";
126127
spi-bus-width = <4>;

boards/st/disco_l475_iot1/disco_l475_iot1.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,12 @@ zephyr_udc0: &usbotg_fs {
323323
pinctrl-names = "default";
324324
dmas = <&dma1 5 5 0x0000>;
325325
dma-names = "tx_rx";
326-
327326
status = "okay";
328327

329-
mx25r6435f: qspi-nor-flash@90000000 {
328+
mx25r6435f: qspi-nor-flash@0 {
330329
compatible = "st,stm32-qspi-nor";
331-
reg = <0x90000000 DT_SIZE_M(8)>; /* 64 Mbits */
330+
reg = <0>;
331+
size = <DT_SIZE_M(64)>; /* 64 Mbits */
332332
qspi-max-frequency = <50000000>;
333333
status = "okay";
334334

boards/st/stm32f412g_disco/stm32f412g_disco.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,10 @@
156156
pinctrl-names = "default";
157157
status = "okay";
158158

159-
n25q128a1: qspi-nor-flash@90000000 {
159+
n25q128a1: qspi-nor-flash@0 {
160160
compatible = "st,stm32-qspi-nor";
161-
reg = <0x90000000 DT_SIZE_M(16)>; /* 128 Mbits */
161+
reg = <0>;
162+
size = <DT_SIZE_M(128)>; /* 128 Mbits */
162163
qspi-max-frequency = <72000000>;
163164
status = "okay";
164165
};

boards/st/stm32f723e_disco/stm32f723e_disco.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@
127127
flash-id = <1>;
128128
status = "okay";
129129

130-
mx25r512: qspi-nor-flash@90000000 {
130+
mx25r512: qspi-nor-flash@0 {
131131
compatible = "st,stm32-qspi-nor";
132-
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
132+
reg = <0>;
133+
size = <DT_SIZE_M(512)>; /* 512 Mbits */
133134
qspi-max-frequency = <8000000>;
134135
status = "okay";
135136
spi-bus-width = <4>;

0 commit comments

Comments
 (0)