summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/rk3229-evb.dts
diff options
context:
space:
mode:
authorFrank Wang <frank.wang@rock-chips.com>2017-07-05 10:33:10 +0200
committerHeiko Stuebner <heiko@sntech.de>2017-07-16 17:08:58 +0200
commitdea19ca26bcc083031c1ae83767c2f6e46e86ec6 (patch)
tree511d172746b8c9298b4ef476221461e40d1abf27 /arch/arm/boot/dts/rk3229-evb.dts
parentARM: dts: rockchip: enable tsadc for rk3229-evb (diff)
downloadlinux-dea19ca26bcc083031c1ae83767c2f6e46e86ec6.tar.xz
linux-dea19ca26bcc083031c1ae83767c2f6e46e86ec6.zip
ARM: dts: rockchip: add gpio power-key for rk3229-evb
This patch adds gpio power-key support for rk3229-evb board. Signed-off-by: Frank Wang <frank.wang@rock-chips.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm/boot/dts/rk3229-evb.dts')
-rw-r--r--arch/arm/boot/dts/rk3229-evb.dts22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts
index b20776ad2707..73e384585755 100644
--- a/arch/arm/boot/dts/rk3229-evb.dts
+++ b/arch/arm/boot/dts/rk3229-evb.dts
@@ -40,6 +40,7 @@
/dts-v1/;
+#include <dt-bindings/input/input.h>
#include "rk3229.dtsi"
/ {
@@ -139,6 +140,21 @@
regulator-always-on;
regulator-boot-on;
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ autorepeat;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwr_key>;
+
+ power_key: power-key {
+ label = "GPIO Key Power";
+ gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_POWER>;
+ debounce-interval = <100>;
+ wakeup-source;
+ };
+ };
};
&cpu0 {
@@ -189,6 +205,12 @@
};
&pinctrl {
+ keys {
+ pwr_key: pwr-key {
+ rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
+
usb {
host_vbus_drv: host-vbus-drv {
rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;