Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions boards/st/stm32h573i_dk/stm32h573i_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
status = "okay";
};

&xspi1 {
&mspi1 {
pinctrl-0 = <&octospi1_io0_pb1 &octospi1_io1_pd12
&octospi1_io2_pc2 &octospi1_io3_pd13
&octospi1_io4_ph2 &octospi1_io5_ph3
Expand All @@ -273,14 +273,23 @@
status = "okay";

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

status = "okay";

mspi-max-frequency = <DT_FREQ_M(50)>;
mspi-io-mode = "MSPI_IO_MODE_SINGLE"; /* as first step */
mspi-data-rate = "MSPI_DATA_RATE_SINGLE"; /* as first step */
mspi-hardware-ce-num = <0>;
read-command = <0x13>; /* ReaD 4Bytes */
write-command = <0x12>; /* WRite 4Bytes */
command-length = "INSTR_1_BYTE";
address-length = "ADDR_4_BYTE";
rx-dummy = <8>;
tx-dummy = <0>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
Expand Down
1 change: 1 addition & 0 deletions drivers/flash/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ zephyr_library_sources_ifdef(CONFIG_FLASH_MCUX_FLEXSPI_MX25UM51345G flash_mcux_f
zephyr_library_sources_ifdef(CONFIG_FLASH_MCUX_FLEXSPI_NOR flash_mcux_flexspi_nor.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_MSPI_ATXP032 flash_mspi_atxp032.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_MSPI_EMUL_DEVICE flash_mspi_emul_device.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_MSPI_NOR_MX flash_mspi_nor_mx.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_NPCX_FIU_NOR flash_npcx_fiu_nor.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_NPCX_FIU_QSPI flash_npcx_fiu_qspi.c)
zephyr_library_sources_ifdef(CONFIG_FLASH_RPI_PICO flash_rpi_pico.c)
Expand Down
9 changes: 9 additions & 0 deletions drivers/flash/Kconfig.mspi
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@ config FLASH_MSPI_ATXP032
select FLASH_JESD216
select MSPI_AMBIQ_AP3 if SOC_SERIES_APOLLO3X

config FLASH_MSPI_NOR_MX
bool "MSPI NOR MX driver"
default y
depends on DT_HAS_JEDEC_MSPI_NOR_MX25_ENABLED
select FLASH_MSPI
select FLASH_JESD216
select FLASH_PAGE_LAYOUT
select FLASH_HAS_PAGE_LAYOUT

endmenu
Loading
Loading