Skip to content

Commit 7ba4438

Browse files
drivers: mspi: import MSPI driver from upstream Zephyr
Import MSPI driver introduced in zephyrproject-rtos/zephyr#80042. The driver has been lightly modified to add the ability to set the RX_DELAY register. Once we resynchronize with upstream Zephyr, this change can be turned into a patch to the driver. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 0fb4633 commit 7ba4438

File tree

10 files changed

+1865
-0
lines changed

10 files changed

+1865
-0
lines changed

drivers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
add_subdirectory_ifdef(CONFIG_FLASH flash)
55
add_subdirectory_ifdef(CONFIG_I2C i2c)
66
add_subdirectory_ifdef(CONFIG_JTAG jtag)
7+
add_subdirectory_ifdef(CONFIG_MSPI mspi)
78
add_subdirectory_ifdef(CONFIG_RESET reset)
89
add_subdirectory_ifdef(CONFIG_SENSOR sensor)
910
add_subdirectory_ifdef(CONFIG_SERIAL serial)

drivers/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ menu "Device Drivers"
77
rsource "flash/Kconfig"
88
rsource "i2c/Kconfig"
99
rsource "jtag/Kconfig"
10+
rsource "mspi/Kconfig"
1011
rsource "reset/Kconfig"
1112
rsource "sensor/Kconfig"
1213
rsource "serial/Kconfig"

drivers/mspi/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
zephyr_library_amend()
4+
5+
# zephyr-keep-sorted-start
6+
zephyr_library_sources_ifdef(CONFIG_MSPI_DW mspi_dw.c)
7+
# zephyr-keep-sorted-stop

drivers/mspi/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2025 Tenstorrent AI ULC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if MSPI
5+
6+
menu "MSPI drivers"
7+
8+
# zephyr-keep-sorted-start
9+
rsource "Kconfig.dw"
10+
# zephyr-keep-sorted-stop
11+
12+
endmenu
13+
14+
endif

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)