ARM: dts: rockchip: add power key support on gva sdk board.
authorWenping Zhang <wenping.zhang@rock-chips.com>
Mon, 26 Jun 2017 08:59:11 +0000 (16:59 +0800)
committerJianqun Xu <jay.xu@rock-chips.com>
Tue, 27 Jun 2017 05:56:45 +0000 (13:56 +0800)
Change-Id: I10046d4369fad752b76e3dc518aab2c714e37eb6
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
arch/arm/boot/dts/rk3229-gva-sdk.dts
arch/arm/boot/dts/rk322x-android.dtsi

index ce65cb98585f903447ae29505928fbb8fbc0dec2..e6ff5764eb374884920c897a2cb1457ae5d47ca4 100644 (file)
        status = "disabled";
 };
 
+&power_key {
+       gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
+};
+
 &i2c0 {
        status = "okay";
 
 };
 
 &pinctrl {
+       keys {
+               pwr_key: pwr-key {
+                       rockchip,pins = <1 18 RK_FUNC_GPIO &pcfg_pull_down>;
+               };
+       };
+
        pmic {
                pmic_int_l: pmic-int-l {
                        rockchip,pins = <1 12 RK_FUNC_GPIO &pcfg_pull_up>; /* gpio1_b4 */
                        rockchip,pins = <3 20 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
-
 };
 
 &sdio {
        assigned-clock-parents = <&xin24m>;
 };
 
+&sdmmc {
+       status = "disabled";
+};
+
 &u2phy0_host {
        phy-supply = <&vcc_host>;
 };
index eceda348da7ebe8bbd6dd867e36c6a4a21e96813..211fcdd8cf30b364a9ea453b0ec33ae62929b200 100644 (file)
@@ -72,7 +72,7 @@
                pinctrl-names = "default";
                pinctrl-0 = <&pwr_key>;
 
-               power {
+               power_key: power-key {
                        label = "GPIO Key Power";
                        gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
                        linux,code = <116>;