Skip to content
This repository was archived by the owner on Apr 27, 2025. It is now read-only.

Commit 54c6d56

Browse files
committed
use simple-audio-card for es8388
1 parent 814ead4 commit 54c6d56

File tree

1 file changed

+20
-31
lines changed

1 file changed

+20
-31
lines changed

rk3588-hinlink-h88k.dts

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -36,37 +36,18 @@
3636
};
3737

3838
es8388-sound {
39-
compatible = "rockchip,multicodecs-card";
40-
rockchip,card-name = "rockchip-es8388";
41-
hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
42-
io-channels = <&saradc 3>;
43-
io-channel-names = "adc-detect";
44-
keyup-threshold-microvolt = <1800000>;
45-
poll-interval = <100>;
46-
rockchip,format = "i2s";
47-
rockchip,mclk-fs = <256>;
48-
rockchip,cpu = <&i2s0_8ch>;
49-
rockchip,codec = <&es8388>;
50-
rockchip,audio-routing =
51-
"Headphone", "LOUT1",
52-
"Headphone", "ROUT1",
53-
"Speaker", "LOUT2",
54-
"Speaker", "ROUT2",
55-
"Headphone", "Headphone Power",
56-
"Headphone", "Headphone Power",
57-
"Speaker", "Speaker Power",
58-
"Speaker", "Speaker Power",
59-
"LINPUT1", "Main Mic",
60-
"LINPUT2", "Main Mic",
61-
"RINPUT1", "Headset Mic",
62-
"RINPUT2", "Headset Mic";
63-
pinctrl-names = "default";
64-
pinctrl-0 = <&hp_det>;
65-
66-
play-pause-key {
67-
label = "playpause";
68-
linux,code = <KEY_PLAYPAUSE>;
69-
press-threshold-microvolt = <2000>;
39+
compatible = "simple-audio-card";
40+
simple-audio-card,format = "i2s";
41+
simple-audio-card,mclk-fs = <256>;
42+
simple-audio-card,name = "rockchip-es8316";
43+
simple-audio-card,dai-link@0 {
44+
format = "i2s";
45+
cpu {
46+
sound-dai = <&i2s0_8ch>;
47+
};
48+
codec {
49+
sound-dai = <&es8388>;
50+
};
7051
};
7152
};
7253

@@ -218,6 +199,14 @@
218199
};
219200
};
220201

202+
rk_headset: rk-headset {
203+
compatible = "rockchip_headset";
204+
headset_gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
205+
pinctrl-names = "default";
206+
pinctrl-0 = <&hp_det>;
207+
io-channels = <&saradc 3>;
208+
};
209+
221210
vcc12v_dcin: vcc12v-dcin {
222211
compatible = "regulator-fixed";
223212
regulator-always-on;

0 commit comments

Comments
 (0)