Skip to content

Commit 69b02b8

Browse files
committed
boards: st: stm32h573 disco has a mspi node
Declare the mspi node of the stm32h573i_dk in place of the xspi. New properties are declared according to the mspi-controller.yaml. Only SPi/STR supported yet. XIP not supported yet. Signed-off-by: Francois Ramu <[email protected]>
1 parent ac759a1 commit 69b02b8

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

boards/st/stm32h573i_dk/stm32h573i_dk.dts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
status = "okay";
262262
};
263263

264-
&xspi1 {
264+
&mspi1 {
265265
pinctrl-0 = <&octospi1_io0_pb1 &octospi1_io1_pd12
266266
&octospi1_io2_pc2 &octospi1_io3_pd13
267267
&octospi1_io4_ph2 &octospi1_io5_ph3
@@ -273,14 +273,23 @@
273273
status = "okay";
274274

275275
mx25lm51245: ospi-nor-flash@90000000 {
276-
compatible = "st,stm32-xspi-nor";
277-
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
278-
ospi-max-frequency = <DT_FREQ_M(50)>;
279-
spi-bus-width = <XSPI_OCTO_MODE>;
280-
data-rate = <XSPI_DTR_TRANSFER>;
281-
four-byte-opcodes;
276+
compatible = "jedec,mspi-nor-mx25";
277+
reg = <0>; /* To be aligned with data dev_id = 0 of the controller */
278+
size = <DT_SIZE_M(64)>; /* in Bytes */
279+
282280
status = "okay";
283281

282+
mspi-max-frequency = <DT_FREQ_M(50)>;
283+
mspi-io-mode = "MSPI_IO_MODE_SINGLE"; /* as first step */
284+
mspi-data-rate = "MSPI_DATA_RATE_SINGLE"; /* as first step */
285+
mspi-hardware-ce-num = <0>;
286+
read-command = <0x13>; /* ReaD 4Bytes */
287+
write-command = <0x12>; /* WRite 4Bytes */
288+
command-length = "INSTR_1_BYTE";
289+
address-length = "ADDR_4_BYTE";
290+
rx-dummy = <8>;
291+
tx-dummy = <0>;
292+
284293
partitions {
285294
compatible = "fixed-partitions";
286295
#address-cells = <1>;

0 commit comments

Comments
 (0)