|
36 | 36 | }; |
37 | 37 |
|
38 | 38 | 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 | + }; |
70 | 51 | }; |
71 | 52 | }; |
72 | 53 |
|
|
218 | 199 | }; |
219 | 200 | }; |
220 | 201 |
|
| 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 | + |
221 | 210 | vcc12v_dcin: vcc12v-dcin { |
222 | 211 | compatible = "regulator-fixed"; |
223 | 212 | regulator-always-on; |
|
0 commit comments