Skip to content

Commit c8f6cb9

Browse files
author
Mario Paja
committed
drivers: i2s: add sai support for stm32u5xx
This PR adds initial sai support for STM32u5xx Signed-off-by: Mario Paja <[email protected]>
1 parent c256f0e commit c8f6cb9

File tree

4 files changed

+887
-0
lines changed

4 files changed

+887
-0
lines changed

drivers/i2s/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ zephyr_library_sources_ifdef(CONFIG_I2S_NRFX i2s_nrfx.c)
1414
zephyr_library_sources_ifdef(CONFIG_I2S_MCUX_SAI i2s_mcux_sai.c)
1515
zephyr_library_sources_ifdef(CONFIG_I2S_ESP32 i2s_esp32.c)
1616
zephyr_library_sources_ifdef(CONFIG_I2S_TEST i2s_test.c)
17+
zephyr_library_sources_ifdef(CONFIG_I2S_STM32_SAI i2s_stm32_sai.c)

drivers/i2s/Kconfig.stm32

+22
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,25 @@ config I2S_STM32_TX_BLOCK_COUNT
2525
default 4
2626

2727
endif # I2S_STM32
28+
29+
menuconfig I2S_STM32_SAI
30+
bool "STM32 MCU I2S controller driver"
31+
default y
32+
depends on DT_HAS_ST_STM32_SAI_ENABLED
33+
depends on SOC_SERIES_STM32U5X
34+
select CACHE_MANAGEMENT if CPU_HAS_DCACHE
35+
select DMA
36+
select USE_STM32_HAL_DMA
37+
select USE_STM32_HAL_DMA_EX
38+
select USE_STM32_HAL_SAI
39+
select USE_STM32_LL_DLYB if SOC_SERIES_STM32U5X
40+
help
41+
Enable SAI support on the STM32U5 family of processors.
42+
43+
if I2S_STM32_SAI
44+
45+
config I2S_STM32_SAI_BLOCK_COUNT
46+
int "SAI queue length"
47+
default 4
48+
49+
endif # I2S_STM32_SAI

0 commit comments

Comments
 (0)