Commit 1689dbe7 authored by John Keeping's avatar John Keeping Committed by Heiko Stuebner

ARM: dts: rockchip: add power key for Rock2 Square

Support the power button on Radxa Rock2 Square.
Signed-off-by: default avatarJohn Keeping <john@metanate.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent f9bc50c7
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
*/ */
/dts-v1/; /dts-v1/;
#include <dt-bindings/input/input.h>
#include "rk3288-rock2-som.dtsi" #include "rk3288-rock2-som.dtsi"
/ { / {
...@@ -49,6 +50,19 @@ chosen { ...@@ -49,6 +50,19 @@ chosen {
stdout-path = "serial2:115200n8"; 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 { gpio-leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
...@@ -220,6 +234,12 @@ ir_int: ir-int { ...@@ -220,6 +234,12 @@ ir_int: ir-int {
}; };
}; };
keys {
pwr_key: pwr-key {
rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
pmic { pmic {
pmic_int: pmic-int { pmic_int: pmic-int {
rockchip,pins = <0 4 RK_FUNC_GPIO &pcfg_pull_up>; rockchip,pins = <0 4 RK_FUNC_GPIO &pcfg_pull_up>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment