arm64: dts: rockchip: add saradc and key for 3399 VR board
authorjerry.zhang <jerry.zhang@rock-chips.com>
Tue, 19 Jul 2016 02:40:47 +0000 (10:40 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Tue, 19 Jul 2016 09:27:07 +0000 (17:27 +0800)
Change-Id: I8f331ffc30fe900afbe669c504b96350dd4de79e
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-vr-android.dts

index ef1d92e5409ef6c501954956f897dca9672c7107..fc778289a2b38d15d7211bf9b055563a09e39994 100644 (file)
        status = "okay";
 };
 
+&saradc {
+       status = "okay";
+};
+
+&rk_key {
+       compatible = "rockchip,key";
+       status = "okay";
+       io-channels = <&saradc 1>;
+
+       vol-up-key {
+               linux,code = <115>;
+               label = "volume up";
+               rockchip,adc_value = <340>;
+       };
+
+       vol-down-key {
+               linux,code = <114>;
+               label = "volume down";
+               rockchip,adc_value = <170>;
+       };
+
+       power-key {
+               gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
+               linux,code = <116>;
+               label = "power";
+               gpio-key,wakeup;
+       };
+
+       back-key {
+               linux,code = <158>;
+               label = "back";
+               rockchip,adc_value = <620>;
+       };
+
+       brightness-key {
+               linux,code = <244>;
+               label = "brightness";
+               rockchip,adc_value = <700>;
+       };
+};
+
 &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_xfer &uart0_cts>;