Skip to content

Commit 041f942

Browse files
mariopaja-zalkartben
authored andcommitted
drivers: i2s: add sai support for stm32u5xx
This PR adds initial sai support for STM32u5xx Signed-off-by: Mario Paja <[email protected]>
1 parent 9f78a69 commit 041f942

File tree

4 files changed

+885
-0
lines changed

4 files changed

+885
-0
lines changed

drivers/i2s/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ zephyr_library_sources_ifdef(CONFIG_I2S_MCUX_SAI i2s_mcux_sai.c)
1616
zephyr_library_sources_ifdef(CONFIG_I2S_ESP32 i2s_esp32.c)
1717
zephyr_library_sources_ifdef(CONFIG_I2S_SILABS_SIWX91X i2s_silabs_siwx91x.c)
1818
zephyr_library_sources_ifdef(CONFIG_I2S_TEST i2s_test.c)
19+
zephyr_library_sources_ifdef(CONFIG_I2S_STM32_SAI i2s_stm32_sai.c)

drivers/i2s/Kconfig.stm32

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,23 @@ 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+
select CACHE_MANAGEMENT if CPU_HAS_DCACHE
34+
select DMA
35+
select USE_STM32_HAL_DMA
36+
select USE_STM32_HAL_DMA_EX
37+
select USE_STM32_HAL_SAI
38+
help
39+
Enable SAI support on the STM32U5 family of processors.
40+
41+
if I2S_STM32_SAI
42+
43+
config I2S_STM32_SAI_BLOCK_COUNT
44+
int "SAI queue length"
45+
default 4
46+
47+
endif # I2S_STM32_SAI

0 commit comments

Comments
 (0)