Skip to content

Commit cbcc02b

Browse files
[nrf fromlist] drivers: i2s: Add support for nRF TDM peripherals
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]>
1 parent bb4940b commit cbcc02b

File tree

3 files changed

+1139
-0
lines changed

3 files changed

+1139
-0
lines changed

drivers/i2s/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ zephyr_library_sources_ifdef(CONFIG_I2S_STM32 i2s_ll_stm32.c)
1111
zephyr_library_sources_ifdef(CONFIG_I2S_LITEX i2s_litex.c)
1212
zephyr_library_sources_ifdef(CONFIG_I2S_MCUX_FLEXCOMM i2s_mcux_flexcomm.c)
1313
zephyr_library_sources_ifdef(CONFIG_I2S_NRFX i2s_nrfx.c)
14+
zephyr_library_sources_ifdef(CONFIG_TDM_NRFX i2s_nrfx_tdm.c)
1415
zephyr_library_sources_ifdef(CONFIG_I2S_MCUX_SAI i2s_mcux_sai.c)
1516
zephyr_library_sources_ifdef(CONFIG_I2S_ESP32 i2s_esp32.c)
1617
zephyr_library_sources_ifdef(CONFIG_I2S_TEST i2s_test.c)

drivers/i2s/Kconfig.nrfx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,25 @@ config I2S_NRFX_TX_BLOCK_COUNT
2222
default 4
2323

2424
endif # I2S_NRFX
25+
26+
menuconfig TDM_NRFX
27+
bool "nRF TDM nrfx driver"
28+
default y
29+
depends on DT_HAS_NORDIC_NRF_TDM_ENABLED
30+
select NRFX_TDM130 if HAS_HW_NRF_TDM130
31+
select CLOCK_CONTROL
32+
select PINCTRL
33+
help
34+
Enable support for nrfx TDM driver for nRF MCU series.
35+
36+
if TDM_NRFX
37+
38+
config TDM_NRFX_RX_BLOCK_COUNT
39+
int "RX queue length"
40+
default 4
41+
42+
config TDM_NRFX_TX_BLOCK_COUNT
43+
int "TX queue length"
44+
default 4
45+
46+
endif # TDM_NRFX

0 commit comments

Comments
 (0)