Skip to content

Commit bc30b1d

Browse files
committed
[nrf fromlist] drivers: mspi: Add driver for DesignWare SSI based controllers
Add a generic driver for MSPI controllers based on the DesignWare SSI core. With small vendor-specific adaptations covering integration details, it should be possible to use the driver for various devices. Upstream PR #: 80042 Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent e100868 commit bc30b1d

File tree

7 files changed

+1737
-0
lines changed

7 files changed

+1737
-0
lines changed

drivers/mspi/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/mspi.h)
44

55
zephyr_library()
66
zephyr_library_sources_ifdef(CONFIG_MSPI_AMBIQ_AP3 mspi_ambiq_ap3.c)
7+
zephyr_library_sources_ifdef(CONFIG_MSPI_DW mspi_dw.c)
78
zephyr_library_sources_ifdef(CONFIG_MSPI_EMUL mspi_emul.c)

drivers/mspi/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ module-str = mspi
6060
source "subsys/logging/Kconfig.template.log_config"
6161

6262
source "drivers/mspi/Kconfig.ambiq"
63+
source "drivers/mspi/Kconfig.dw"
6364
source "drivers/mspi/Kconfig.mspi_emul"
6465

6566
endif # MSPI

drivers/mspi/Kconfig.dw

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config MSPI_DW
5+
bool "DesignWare SSI controller driver"
6+
default y
7+
depends on DT_HAS_SNPS_DESIGNWARE_SSI_ENABLED
8+
select PINCTRL if $(dt_compat_any_has_prop,$(DT_COMPAT_SNPS_DESIGNWARE_SSI),pinctrl-0)
9+
imply MSPI_XIP

0 commit comments

Comments
 (0)