Skip to content

Commit d0dea07

Browse files
authored
Merge pull request torvalds#168 from vamrs-feng/pr_headphone
Changes: * Add Radxa CM3 IO Headphone Signed-off-by: Stephen Chen <stephen@radxa.com>
2 parents c2d9b60 + 33842c2 commit d0dea07

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,28 @@
6161
regulator-always-on;
6262
regulator-boot-on;
6363
};
64+
65+
rk817_sound: rk817-sound {
66+
status = "okay";
67+
compatible = "rockchip,multicodecs-card";
68+
rockchip,card-name = "rockchip-rk817";
69+
rockchip,format = "i2s";
70+
rockchip,mclk-fs = <256>;
71+
rockchip,cpu = <&i2s1_8ch>;
72+
rockchip,codec = <&rk817_codec>;
73+
poll-interval = <100>;
74+
io-channels = <&saradc 2>;
75+
io-channel-names = "adc-detect";
76+
keyup-threshold-microvolt = <1800000>;
77+
pinctrl-0 = <&hp_det>;
78+
pinctrl-names = "default";
79+
hp-det-gpio = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
80+
play-pause-key {
81+
label = "playpause";
82+
linux,code = <164>;
83+
press-threshold-microvolt = <2000>;
84+
};
85+
};
6486
};
6587

6688
&gpio_leds {
@@ -83,6 +105,14 @@
83105
status = "okay";
84106
};
85107

108+
&i2s1_8ch {
109+
pinctrl-0 = <&i2s1m0_sclktx
110+
&i2s1m0_lrcktx
111+
&i2s1m0_sdi0
112+
&i2s1m0_sdo0>;
113+
status = "okay";
114+
};
115+
86116
&display_subsystem {
87117
status = "okay";
88118
};
@@ -152,6 +182,12 @@
152182
};
153183

154184
&pinctrl {
185+
headphone {
186+
hp_det: hp-det {
187+
rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
188+
};
189+
};
190+
155191
usb {
156192
vcc5v0_usb30_en: vcc5v0-host-en {
157193
rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;

0 commit comments

Comments
 (0)