arm: dts: add gpio power-key support for rk322x SoC
authorFrank Wang <frank.wang@rock-chips.com>
Fri, 12 May 2017 03:17:48 +0000 (11:17 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 15 May 2017 02:06:27 +0000 (10:06 +0800)
Change-Id: I45d6e0ffe5444b26165324048c0e88d6fca19bab
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
arch/arm/boot/dts/rk322x-android.dtsi

index 54cc74a10801faa6ae16f37214279e7bb260afab..4ed05d138cf9cde2639ec479aeedfe6c1c104445 100644 (file)
                compatible = "arm,psci-1.0";
                method = "smc";
        };
+
+       gpio_keys {
+               compatible = "gpio-keys";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               autorepeat;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&pwr_key>;
+
+               power {
+                       label = "GPIO Key Power";
+                       gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
+                       linux,code = <116>;
+                       debounce-interval = <100>;
+                       wakeup-source;
+               };
+       };
 };
 
 &cpu0 {
        status = "okay";
 };
 
+&pinctrl {
+       keys {
+               pwr_key: pwr-key {
+                       rockchip,pins = <3 23 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
+};
+
 &u2phy0 {
        status = "okay";