Skip to content

Commit

Permalink
drivers: mspi: Add SDP MSPI driver
Browse files Browse the repository at this point in the history
Add SDP MSPI driver, dts and include files.

Signed-off-by: Jakub Zymelka <[email protected]>
  • Loading branch information
jaz1-nordic committed Nov 18, 2024
1 parent 29e35fd commit bc19a69
Show file tree
Hide file tree
Showing 9 changed files with 749 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
/drivers/gpio/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-ll-ursus
/drivers/hw_cc3xx/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-aegir
/drivers/mpsl/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-dragoon
/drivers/mspi/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-ll-ursus
/drivers/net/ @nrfconnect/ncs-co-drivers @doki-nordic
/drivers/serial/ @nrfconnect/ncs-co-drivers @nordic-krch
/drivers/sensor/bh1749/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-cia
Expand Down Expand Up @@ -317,6 +318,7 @@
/include/drivers/flash/ @nrfconnect/ncs-co-drivers
/include/drivers/gpio/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-ll-ursus
/include/drivers/bme68x_iaq.h @nrfconnect/ncs-co-drivers @nrfconnect/ncs-cia
/include/drivers/mspi/nrfe_mspi.h @nrfconnect/ncs-co-drivers @nrfconnect/ncs-ll-ursus
/include/drivers/sensor_sim.h @nrfconnect/ncs-co-drivers @nrfconnect/ncs-cia
/include/drivers/sensor_stub.h @nrfconnect/ncs-co-drivers @nrfconnect/ncs-cia
/include/emds/ @balaklaka @nrfconnect/ncs-paladin
Expand Down
1 change: 1 addition & 0 deletions drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ add_subdirectory(hw_cc3xx)
if (CONFIG_MPSL AND NOT CONFIG_MPSL_FEM_ONLY)
add_subdirectory(mpsl)
endif()
add_subdirectory_ifdef(CONFIG_MSPI mspi)
add_subdirectory_ifdef(CONFIG_NETWORKING net)
add_subdirectory_ifdef(CONFIG_SENSOR sensor)
add_subdirectory(serial)
2 changes: 2 additions & 0 deletions drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ if MPSL && !MPSL_FEM_ONLY
rsource "mpsl/Kconfig"
endif

rsource "mspi/Kconfig"
rsource "net/Kconfig"
rsource "sensor/Kconfig"
rsource "serial/Kconfig"

config NRFE
bool
default y if GPIO_NRFE
default y if MSPI_NRFE
# Temporary kconfig to include DPPI channel allocation for NRFE

endmenu
8 changes: 8 additions & 0 deletions drivers/mspi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

zephyr_library_amend()
zephyr_library_sources_ifdef(CONFIG_MSPI_NRFE mspi_nrfe.c)
8 changes: 8 additions & 0 deletions drivers/mspi/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

if MSPI

rsource "Kconfig.nrfe"

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

#
# MSPI_NRFE Driver
#
menuconfig MSPI_NRFE
bool "SDP MSPI driver"
default y
depends on DT_HAS_NORDIC_NRFE_MSPI_CONTROLLER_ENABLED
select MBOX
select IPC_SERVICE
select IPC_SERVICE_BACKEND_ICMSG
help
Enable SDP MSPI driver.

if MSPI_NRFE

config MSPI_NRFE_INIT_PRIORITY
int "SDP MSPI init priority"
depends on MSPI_NRFE
default MSPI_INIT_PRIORITY
help
SDP MSPI driver device initialization priority.
SDP MSPI initialization depends on IPC initialization
which is done at the same init level and has init priority equal to 46.

endif # MSPI_NRFE
Loading

0 comments on commit bc19a69

Please sign in to comment.