Skip to content

Commit 5f41e2c

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 aaabc49 commit 5f41e2c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

boards/sifli/sf32lb52_devkit_lcd/sf32lb52_devkit_lcd.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,21 @@
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+
};
5765
aliases {
5866
led0 = &led0;
5967
sw0 = &key1;
6068
sw1 = &key2;
6169
rtc = &rtc;
6270
watchdog0 = &wdt;
71+
pa-power = &pa_power_gpio;
6372
};
6473
};
6574

@@ -139,6 +148,15 @@
139148
pinctrl-names = "default";
140149
};
141150

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

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)