Skip to content

Commit b619342

Browse files
FRASTMfabiobaltieri
authored andcommitted
boards: arm: stm32 disco kit with octoflash description
No sfdp-table property given by the DTS but received from the octoflash Node rely on the issued by the read sfdp command. Note that the size of the mx25lm51245 flash controller is expressed in bits (ie 512Mbits or 64 Mbytes). Signed-off-by: Francois Ramu <[email protected]>
1 parent 0da1323 commit b619342

File tree

4 files changed

+4
-25
lines changed

4 files changed

+4
-25
lines changed

boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,11 @@
150150
compatible = "st,stm32-ospi-nor";
151151
reg = <0>;
152152
ospi-max-frequency = <DT_FREQ_M(50)>;
153-
size = <DT_SIZE_M(64)>;
153+
size = <DT_SIZE_M(512)>; /* 64 MBytes */
154154
spi-bus-width = <OSPI_OPI_MODE>;
155155
data-rate = <OSPI_DTR_TRANSFER>;
156156
four-byte-opcodes;
157157
status = "okay";
158-
sfdp-bfp = [
159-
53 46 44 50 06 01 02 ff
160-
00 06 01 10 30 00 00 ff
161-
C2 00 01 04 10 01 00 ff
162-
84 00 01 02 C0 00 00 ff
163-
00 00 00 00
164-
];
165158

166159
partitions {
167160
compatible = "fixed-partitions";

boards/arm/stm32h735g_disco/stm32h735g_disco.dts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,10 @@
133133
compatible = "st,stm32-ospi-nor";
134134
reg = <0>;
135135
ospi-max-frequency = <DT_FREQ_M(50)>;
136-
size = <DT_SIZE_M(64)>;
136+
size = <DT_SIZE_M(512)>; /* 64 MBytes */
137137
spi-bus-width = <OSPI_OPI_MODE>;
138138
data-rate = <OSPI_DTR_TRANSFER>;
139139
status = "okay";
140-
sfdp-bfp = [
141-
53 46 44 50 06 01 02 ff
142-
00 06 01 10 30 00 00 ff
143-
C2 00 01 04 10 01 00 ff
144-
84 00 01 02 C0 00 00 ff
145-
00 00 00 00
146-
];
147140

148141
partitions {
149142
compatible = "fixed-partitions";

boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,11 @@
154154
compatible = "st,stm32-ospi-nor";
155155
reg = <0>;
156156
ospi-max-frequency = <DT_FREQ_M(50)>;
157-
size = <DT_SIZE_M(64)>;
157+
size = <DT_SIZE_M(512)>; /* 64 MBytes */
158158
spi-bus-width = <OSPI_OPI_MODE>;
159159
data-rate = <OSPI_DTR_TRANSFER>;
160160
four-byte-opcodes;
161161
status = "okay";
162-
sfdp-bfp = [
163-
53 46 44 50 06 01 02 ff
164-
00 06 01 10 30 00 00 ff
165-
C2 00 01 04 10 01 00 ff
166-
84 00 01 02 C0 00 00 ff
167-
00 00 00 00
168-
];
169162

170163
partitions {
171164
compatible = "fixed-partitions";

dts/bindings/flash_controller/st,stm32-ospi-nor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: |
1212
data-mode = <OSPI_OPI_MODE>; /* access on 8 data lines */
1313
data-rate = <OSPI_DTR_TRANSFER>; /* access in DTR */
1414
ospi-max-frequency = <DT_FREQ_M(50)>;
15-
size = <DT_SIZE_M(4)>;
15+
size = <DT_SIZE_M(64*8)>; /* 512 Mbit */
1616
status = "okay";
1717
};
1818

0 commit comments

Comments
 (0)