Skip to content

Commit 2c7e8c5

Browse files
author
Gang He
committed
board: sifli: sf32lb62_devkit_lcd: Add audio codec
Add audio codec in board device tree, including PA control pin. Signed-off-by: Gang He <[email protected]>
1 parent 3b1aaf4 commit 2c7e8c5

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

boards/sifli/sf32lb52_devkit_lcd/sf32lb52_devkit_lcd.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,22 @@
5454
};
5555
};
5656

57+
gpio_misc {
58+
compatible = "gpio-leds";
59+
60+
pa_power_gpio: pa_power_gpio {
61+
label = "pa_power_gpio";
62+
gpios = <&gpioa_00_31 10 GPIO_ACTIVE_HIGH>;
63+
};
64+
};
65+
5766
aliases {
5867
led0 = &led0;
5968
sw0 = &key1;
6069
sw1 = &key2;
6170
rtc = &rtc;
6271
watchdog0 = &wdt;
72+
pa-power = &pa_power_gpio;
6373
};
6474
};
6575

@@ -139,6 +149,15 @@
139149
pinctrl-names = "default";
140150
};
141151

152+
&audcodec {
153+
pinctrl-0 = <&pa_power_gpio>;
154+
pinctrl-names = "pa_power";
155+
dmas = <&dmac 1 SF32LB52X_DMA_REQ_AUDAC_CH0 SF32LB_DMA_PL_HIGH>,
156+
<&dmac 4 SF32LB52X_DMA_REQ_AUDADC_CH0 SF32LB_DMA_PL_HIGH>;
157+
dma-names = "tx", "rx";
158+
status = "okay";
159+
};
160+
142161
&wdt {
143162
status = "okay";
144163
};

boards/sifli/sf32lb52_devkit_lcd/sf32lb52_devkit_lcd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ supported:
1414
- gpio
1515
- watchdog
1616
- bluetooth
17+
- audio
1718
vendor: sifli

0 commit comments

Comments
 (0)