| .. | .. |
|---|
| 99 | 99 | status = "okay"; |
|---|
| 100 | 100 | }; |
|---|
| 101 | 101 | |
|---|
| 102 | | - rk809-sound { |
|---|
| 103 | | - compatible = "simple-audio-card"; |
|---|
| 104 | | - simple-audio-card,format = "i2s"; |
|---|
| 105 | | - simple-audio-card,name = "rockchip,rk809-codec"; |
|---|
| 106 | | - simple-audio-card,mclk-fs = <256>; |
|---|
| 107 | | - simple-audio-card,widgets = |
|---|
| 108 | | - "Microphone", "Mic Jack", |
|---|
| 109 | | - "Headphone", "Headphone Jack"; |
|---|
| 110 | | - simple-audio-card,routing = |
|---|
| 111 | | - "Mic Jack", "MICBIAS1", |
|---|
| 112 | | - "IN1P", "Mic Jack", |
|---|
| 113 | | - "Headphone Jack", "HPOL", |
|---|
| 114 | | - "Headphone Jack", "HPOR"; |
|---|
| 115 | | - simple-audio-card,cpu { |
|---|
| 116 | | - sound-dai = <&i2s1_2ch>; |
|---|
| 117 | | - }; |
|---|
| 118 | | - simple-audio-card,codec { |
|---|
| 119 | | - sound-dai = <&rk809_codec>; |
|---|
| 120 | | - }; |
|---|
| 121 | | - }; |
|---|
| 122 | | - |
|---|
| 123 | | - rk_headset: rk-headset { |
|---|
| 124 | | - compatible = "rockchip_headset"; |
|---|
| 125 | | - headset_gpio = <&gpio3 RK_PA4 GPIO_ACTIVE_LOW>; |
|---|
| 102 | + rk809_sound: rk809-sound { |
|---|
| 103 | + status = "okay"; |
|---|
| 104 | + compatible = "rockchip,multicodecs-card"; |
|---|
| 105 | + rockchip,card-name = "rockchip-rk809"; |
|---|
| 106 | + hp-det-gpio = <&gpio2 RK_PB0 GPIO_ACTIVE_LOW>; |
|---|
| 107 | + io-channels = <&saradc 1>; |
|---|
| 108 | + io-channel-names = "adc-detect"; |
|---|
| 109 | + keyup-threshold-microvolt = <1800000>; |
|---|
| 110 | + poll-interval = <100>; |
|---|
| 111 | + rockchip,format = "i2s"; |
|---|
| 112 | + rockchip,mclk-fs = <256>; |
|---|
| 113 | + rockchip,cpu = <&i2s1_2ch>; |
|---|
| 114 | + rockchip,codec = <&rk809_codec>; |
|---|
| 126 | 115 | pinctrl-names = "default"; |
|---|
| 127 | 116 | pinctrl-0 = <&hp_det>; |
|---|
| 128 | | - io-channels = <&saradc 1>; |
|---|
| 117 | + play-pause-key { |
|---|
| 118 | + label = "playpause"; |
|---|
| 119 | + linux,code = <KEY_PLAYPAUSE>; |
|---|
| 120 | + press-threshold-microvolt = <2000>; |
|---|
| 121 | + }; |
|---|
| 129 | 122 | }; |
|---|
| 130 | 123 | |
|---|
| 131 | 124 | sdio_pwrseq: sdio-pwrseq { |
|---|