|
284 | 284 | }; |
285 | 285 |
|
286 | 286 | rk817-sound { |
287 | | - compatible = "simple-audio-card"; |
288 | | - simple-audio-card,format = "i2s"; |
289 | | - simple-audio-card,name = "rockchip,rk817-codec"; |
290 | | - simple-audio-card,mclk-fs = <256>; |
291 | | - simple-audio-card,widgets = |
292 | | - "Microphone", "Mic Jack", |
293 | | - "Headphone", "Headphone Jack"; |
294 | | - simple-audio-card,routing = |
295 | | - "MIC_IN", "Mic Jack", |
296 | | - /*"IN1P", "Mic Jack",*/ |
297 | | - "Headphone Jack", "HPOL", |
298 | | - "Headphone Jack", "HPOR"; |
299 | | - simple-audio-card,hp-det-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; |
300 | | - simple-audio-card,codec-hp-det = <1>; |
301 | | - simple-audio-card,cpu { |
302 | | - sound-dai = <&i2s1_2ch>; |
303 | | - }; |
304 | | - simple-audio-card,codec { |
305 | | - sound-dai = <&rk817_codec>; |
306 | | - }; |
| 287 | + compatible = "rockchip,multicodecs-card"; |
| 288 | + rockchip,card-name = "rockchip-rk817"; |
| 289 | + hp-det-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; |
| 290 | + rockchip,format = "i2s"; |
| 291 | + rockchip,mclk-fs = <256>; |
| 292 | + rockchip,cpu = <&i2s1_2ch>; |
| 293 | + rockchip,codec = <&rk817_codec>; |
| 294 | + pinctrl-names = "default"; |
| 295 | + pinctrl-0 = <&hp_det>; |
307 | 296 | }; |
308 | 297 |
|
309 | 298 | vccsys: vccsys { |
|
1037 | 1026 | }; |
1038 | 1027 |
|
1039 | 1028 | &pinctrl { |
| 1029 | + headphone { |
| 1030 | + //High : HeadPhone remove, Low : HeadPhone insert |
| 1031 | + hp_det: hp-det { |
| 1032 | + rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_down>; |
| 1033 | + }; |
| 1034 | + }; |
| 1035 | + |
1040 | 1036 | pmic { |
1041 | 1037 | /* ODROID-GO2 : PMIC_INT(GPIO0.PB2) */ |
1042 | 1038 | pmic_int: pmic_int { |
|
0 commit comments