Skip to content

Commit

Permalink
[nrf fromlist] drivers: mspi: Add driver for DesignWare SSI based con…
Browse files Browse the repository at this point in the history
…trollers

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]>
  • Loading branch information
anangl authored and jukkar committed Dec 16, 2024
1 parent 7fa061c commit e957c23
Show file tree
Hide file tree
Showing 7 changed files with 1,737 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mspi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/mspi.h)

zephyr_library()
zephyr_library_sources_ifdef(CONFIG_MSPI_AMBIQ_AP3 mspi_ambiq_ap3.c)
zephyr_library_sources_ifdef(CONFIG_MSPI_DW mspi_dw.c)
zephyr_library_sources_ifdef(CONFIG_MSPI_EMUL mspi_emul.c)
1 change: 1 addition & 0 deletions drivers/mspi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module-str = mspi
source "subsys/logging/Kconfig.template.log_config"

source "drivers/mspi/Kconfig.ambiq"
source "drivers/mspi/Kconfig.dw"
source "drivers/mspi/Kconfig.mspi_emul"

endif # MSPI
9 changes: 9 additions & 0 deletions drivers/mspi/Kconfig.dw
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

config MSPI_DW
bool "DesignWare SSI controller driver"
default y
depends on DT_HAS_SNPS_DESIGNWARE_SSI_ENABLED
select PINCTRL if $(dt_compat_any_has_prop,$(DT_COMPAT_SNPS_DESIGNWARE_SSI),pinctrl-0)
imply MSPI_XIP
Loading

0 comments on commit e957c23

Please sign in to comment.