ARM64: dts: rockchip: add rk-key node for RK3368 board
authorXu Jianqun <jay.xu@rock-chips.com>
Wed, 6 Jan 2016 05:17:16 +0000 (13:17 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 6 Jan 2016 07:34:40 +0000 (15:34 +0800)
Change-Id: I8ccf8a2a3e6a6c587f4a5120f955a6f5bb902e42
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368-tb-sheep.dts
arch/arm64/boot/dts/rockchip/rk3368-tb.dtsi

index 25bea47c7c787b28a5a1bc45af91896aadefc9de..27e1bdf3f481f8a18f0f3a6956dfee19edbfe751 100644 (file)
@@ -64,3 +64,7 @@
        status = "okay";
        #include <dt-bindings/display/screen-timing/lcd-tv080wum-mipi.dtsi>
 };
+
+&rk_key {
+       status = "okay";
+};
index e7454305ebb4bc63f2a55b7baf1b81e083e65ac2..b78518014256d6b718a7ac1be3b2b762fc078f9f 100644 (file)
                default-brightness-level = <200>;
                enable-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
        };
+
+       rk_key: rockchip-key {
+               compatible = "rockchip,key";
+               status = "disabled";
+
+               io-channels = <&saradc 1>;
+
+               vol-up-key {
+                       linux,code = <115>;
+                       label = "volume up";
+                       rockchip,adc_value = <1>;
+               };
+
+               vol-down-key {
+                       linux,code = <114>;
+                       label = "volume down";
+                       rockchip,adc_value = <170>;
+               };
+
+               power-key {
+                       gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
+                       linux,code = <116>;
+                       label = "power";
+                       gpio-key,wakeup;
+               };
+
+               menu-key {
+                       linux,code = <59>;
+                       label = "menu";
+                       rockchip,adc_value = <355>;
+               };
+
+               home-key {
+                       linux,code = <102>;
+                       label = "home";
+                       rockchip,adc_value = <746>;
+               };
+
+               back-key {
+                       linux,code = <158>;
+                       label = "back";
+                       rockchip,adc_value = <560>;
+               };
+
+               camera-key {
+                       linux,code = <212>;
+                       label = "camera";
+                       rockchip,adc_value = <450>;
+               };
+       };
 };
 
 &emmc {