Skip to content

Commit ce25aa4

Browse files
committed
drivers: mspi: stm32 mspi driver entity for stm32 XSPI controller
Introduce a stm32 MSPI controller driver based on the xspi peripheral of stm32 mcus. A new CONFIG_MSPI_STM32 is defined for this. Supports SPI/OPI and STR (DTR mode is not supported yet). Signed-off-by: Francois Ramu <[email protected]>
1 parent b6df967 commit ce25aa4

File tree

5 files changed

+1990
-0
lines changed

5 files changed

+1990
-0
lines changed

drivers/mspi/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ zephyr_library_sources_ifdef(CONFIG_MSPI_AMBIQ_AP5 mspi_ambiq_ap5.c)
88
zephyr_library_sources_ifdef(CONFIG_MSPI_AMBIQ_TIMING_SCAN mspi_ambiq_timing_scan.c)
99
zephyr_library_sources_ifdef(CONFIG_MSPI_DW mspi_dw.c)
1010
zephyr_library_sources_ifdef(CONFIG_MSPI_EMUL mspi_emul.c)
11+
zephyr_library_sources_ifdef(CONFIG_MSPI_STM32 mspi_stm32.c)

drivers/mspi/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ source "subsys/logging/Kconfig.template.log_config"
6262
source "drivers/mspi/Kconfig.ambiq"
6363
source "drivers/mspi/Kconfig.dw"
6464
source "drivers/mspi/Kconfig.mspi_emul"
65+
source "drivers/mspi/Kconfig.stm32"
6566

6667
endif # MSPI

drivers/mspi/Kconfig.stm32

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# STM32 MSPI flash driver configuration options
2+
3+
# Copyright (c) 2025 STMicroelectronics
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config MSPI_STM32
7+
bool "STM32 XSPI Controller driver"
8+
default y
9+
depends on DT_HAS_ST_STM32_MSPI_CONTROLLER_ENABLED
10+
select USE_STM32_HAL_XSPI
11+
select USE_STM32_LL_DLYB
12+
imply MSPI_XIP
13+
help
14+
Enable driver for STM32 family of processors.

0 commit comments

Comments
 (0)