summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/rk3288-rock2-square.dts
diff options
context:
space:
mode:
authorJohn Keeping <john@metanate.com>2018-02-18 20:03:34 +0300
committerHeiko Stuebner <heiko@sntech.de>2018-02-19 08:50:49 +0300
commit1689dbe7b52f0b7c270ce813711e0e27e6f7329c (patch)
treec3181bae9567e2a22791e50822304c5930b49b27 /arch/arm/boot/dts/rk3288-rock2-square.dts
parentf9bc50c7206efecbb91d9b0f199e9ad6c3ec5d65 (diff)
downloadlinux-1689dbe7b52f0b7c270ce813711e0e27e6f7329c.tar.xz
ARM: dts: rockchip: add power key for Rock2 Square
Support the power button on Radxa Rock2 Square. Signed-off-by: John Keeping <john@metanate.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm/boot/dts/rk3288-rock2-square.dts')
-rw-r--r--arch/arm/boot/dts/rk3288-rock2-square.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288-rock2-square.dts b/arch/arm/boot/dts/rk3288-rock2-square.dts
index 0e084b8a86ac..6adeb331452f 100644
--- a/arch/arm/boot/dts/rk3288-rock2-square.dts
+++ b/arch/arm/boot/dts/rk3288-rock2-square.dts
@@ -39,6 +39,7 @@
*/
/dts-v1/;
+#include <dt-bindings/input/input.h>
#include "rk3288-rock2-som.dtsi"
/ {
@@ -49,6 +50,19 @@
stdout-path = "serial2:115200n8";
};
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ power {
+ gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
+ label = "GPIO Power";
+ linux,code = <KEY_POWER>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwr_key>;
+ wakeup-source;
+ };
+ };
+
gpio-leds {
compatible = "gpio-leds";
@@ -220,6 +234,12 @@
};
};
+ keys {
+ pwr_key: pwr-key {
+ rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
+
pmic {
pmic_int: pmic-int {
rockchip,pins = <0 4 RK_FUNC_GPIO &pcfg_pull_up>;