Skip to content

Commit c1eedc4

Browse files
Zhibao Huangrkhuangtao
authored andcommitted
arm64: dts: rockchip: rk3368-r88-pmic: Add spdif and adc key
Change-Id: I8ca49a8e16a353f66ea00d707ddddb0e5b3321ab Signed-off-by: Zhibao Huang <[email protected]>
1 parent 0c496f6 commit c1eedc4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3368-r88-pmic.dtsi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,37 @@
2525
rockchip,codec = <&rk1000_codec>, <&hdmi>;
2626
};
2727

28+
spdif-sound {
29+
status = "okay";
30+
compatible = "simple-audio-card";
31+
simple-audio-card,name = "ROCKCHIP,SPDIF";
32+
simple-audio-card,cpu {
33+
sound-dai = <&spdif>;
34+
};
35+
simple-audio-card,codec {
36+
sound-dai = <&spdif_out>;
37+
};
38+
};
39+
40+
spdif_out: spdif-out {
41+
status = "okay";
42+
compatible = "linux,spdif-dit";
43+
#sound-dai-cells = <0>;
44+
};
45+
46+
adc_key: adc-keys {
47+
compatible = "adc-keys";
48+
io-channels = <&saradc 1>;
49+
io-channel-names = "buttons";
50+
poll-interval = <100>;
51+
keyup-threshold-microvolt = <1800000>;
52+
esc-key {
53+
linux,code = <KEY_VOLUMEUP>;
54+
label = "v+";
55+
press-threshold-microvolt = <18000>;
56+
};
57+
};
58+
2859
keys: gpio-keys {
2960
compatible = "gpio-keys";
3061
#address-cells = <1>;
@@ -643,6 +674,11 @@
643674
#sound-dai-cells = <0>;
644675
};
645676

677+
&spdif {
678+
status = "okay";
679+
#sound-dai-cells = <0>;
680+
};
681+
646682
&mailbox {
647683
status = "okay";
648684
};

0 commit comments

Comments
 (0)