From: Frank Wang Date: Fri, 12 May 2017 03:17:48 +0000 (+0800) Subject: arm: dts: add gpio power-key support for rk322x SoC X-Git-Tag: release-20171130_firefly~4^2~575 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0e021c2e798e3cfe105456214995e9454e30e85d;p=firefly-linux-kernel-4.4.55.git arm: dts: add gpio power-key support for rk322x SoC Change-Id: I45d6e0ffe5444b26165324048c0e88d6fca19bab Signed-off-by: Frank Wang --- diff --git a/arch/arm/boot/dts/rk322x-android.dtsi b/arch/arm/boot/dts/rk322x-android.dtsi index 54cc74a10801..4ed05d138cf9 100644 --- a/arch/arm/boot/dts/rk322x-android.dtsi +++ b/arch/arm/boot/dts/rk322x-android.dtsi @@ -62,6 +62,24 @@ 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 { @@ -94,6 +112,14 @@ status = "okay"; }; +&pinctrl { + keys { + pwr_key: pwr-key { + rockchip,pins = <3 23 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; +}; + &u2phy0 { status = "okay";