Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
};
};

pa_power_default: pa_power_default {
pinmux = <PA10_GPIO>;
};

i2c1_default: i2c1_default {
group1 {
pinmux = <PA33_I2C1_SDA>, <PA30_I2C1_SCL>;
Expand Down
15 changes: 15 additions & 0 deletions boards/sifli/sf32lb52_devkit_lcd/sf32lb52_devkit_lcd.dts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
label = "LED0";
gpios = <&gpioa_00_31 26 GPIO_ACTIVE_LOW>;
};

led1: led1 {
label = "LED1";
gpios = <&gpioa_00_31 10 GPIO_ACTIVE_HIGH>;
};
};

aliases {
Expand All @@ -58,6 +63,7 @@
sw1 = &key2;
rtc = &rtc;
watchdog0 = &wdt;
pa-power = &led1;
};
};

Expand Down Expand Up @@ -136,6 +142,15 @@
pinctrl-names = "default";
};

&audcodec {
pinctrl-0 = <&led1>;
pinctrl-names = "pa_power";
dmas = <&dmac 1 SF32LB52X_DMA_REQ_AUDAC_CH0 SF32LB_DMA_PL_HIGH>,
<&dmac 4 SF32LB52X_DMA_REQ_AUDADC_CH0 SF32LB_DMA_PL_HIGH>;
dma-names = "tx", "rx";
status = "okay";
};

&wdt {
status = "okay";
};
Expand Down
1 change: 1 addition & 0 deletions boards/sifli/sf32lb52_devkit_lcd/sf32lb52_devkit_lcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ supported:
- uart
- gpio
- watchdog
- audio
vendor: sifli
1 change: 1 addition & 0 deletions drivers/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_CS43L22 cs43l22.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_DA7212 da7212.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_MAX98091 max98091.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_PCM1681 pcm1681.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_SF32LB sf32lb_codec.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_SHELL codec_shell.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_WM8904 wm8904.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_WM8962 wm8962.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ source "drivers/audio/Kconfig.cs43l22"
source "drivers/audio/Kconfig.da7212"
source "drivers/audio/Kconfig.max98091"
source "drivers/audio/Kconfig.pcm1681"
source "drivers/audio/Kconfig.sf32lb"
source "drivers/audio/Kconfig.tas6422dac"
source "drivers/audio/Kconfig.tlv320aic3110"
source "drivers/audio/Kconfig.tlv320dac"
Expand Down
9 changes: 9 additions & 0 deletions drivers/audio/Kconfig.sf32lb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2025 SiFli Technologies(Nanjing) Co., Ltd
# SPDX-License-Identifier: Apache-2.0

config AUDIO_CODEC_SF32LB
bool "sf32lb audio codec"
select USE_SIFLI_HAL
select DMA
default y
depends on DT_HAS_SIFLI_SF32LB_AUDCODEC_ENABLED
Loading