Skip to content

Commit

Permalink
[nrf fromlist] drivers: i2s: Add support for nRF TDM peripherals
Browse files Browse the repository at this point in the history
Add a shim that allows using the nRF TDM
(Time division multiplexed audio interface) HAL by I2S Zephyr API.

Upstream PR #: 82144

Signed-off-by: Adam Kondraciuk <[email protected]>
  • Loading branch information
adamkondraciuk committed Dec 10, 2024
1 parent 41aa976 commit 4f01662
Show file tree
Hide file tree
Showing 3 changed files with 1,062 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2s/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ zephyr_library_sources_ifdef(CONFIG_I2S_STM32 i2s_ll_stm32.c)
zephyr_library_sources_ifdef(CONFIG_I2S_LITEX i2s_litex.c)
zephyr_library_sources_ifdef(CONFIG_I2S_MCUX_FLEXCOMM i2s_mcux_flexcomm.c)
zephyr_library_sources_ifdef(CONFIG_I2S_NRFX i2s_nrfx.c)
zephyr_library_sources_ifdef(CONFIG_TDM_NRFX i2s_nrfx_tdm.c)
zephyr_library_sources_ifdef(CONFIG_I2S_MCUX_SAI i2s_mcux_sai.c)
zephyr_library_sources_ifdef(CONFIG_I2S_ESP32 i2s_esp32.c)
21 changes: 21 additions & 0 deletions drivers/i2s/Kconfig.nrfx
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,24 @@ config I2S_NRFX_TX_BLOCK_COUNT
default 4

endif # I2S_NRFX

menuconfig TDM_NRFX
bool "nRF TDM nrfx driver"
default y
depends on DT_HAS_NORDIC_NRF_TDM_ENABLED
select NRFX_TDM130 if HAS_HW_NRF_TDM130
select PINCTRL
help
Enable support for nrfx TDM driver for nRF MCU series.

if TDM_NRFX

config TDM_NRFX_RX_BLOCK_COUNT
int "RX queue length"
default 4

config TDM_NRFX_TX_BLOCK_COUNT
int "TX queue length"
default 4

endif # TDM_NRFX
Loading

0 comments on commit 4f01662

Please sign in to comment.