diff options
author | Shohei Maruyama <cheat.sc.linux@outlook.com> | 2018-07-18 14:58:21 +0000 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2018-07-25 12:14:53 +0200 |
commit | 24e5b85a1c86686c9f6345399f16f666b44a9ace (patch) | |
tree | 3d772d7d891fd8b9d411d25d37f2b020011355bf /arch/arm64/boot | |
parent | d3a537e9a77425c6a33954f6add69646808bf453 (diff) | |
download | lwn-24e5b85a1c86686c9f6345399f16f666b44a9ace.tar.gz lwn-24e5b85a1c86686c9f6345399f16f666b44a9ace.zip |
arm64: dts: rockchip: add power button support for Firefly-RK3399
This commit adds power button support for the Firefly-RK3399.
Signed-off-by: Shohei Maruyama <cheat.sc.linux@outlook.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm64/boot')
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-firefly.dts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts index e378ddb39eef..7ba7d0e04084 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts @@ -4,6 +4,7 @@ */ /dts-v1/; +#include <dt-bindings/input/linux-event-codes.h> #include <dt-bindings/pwm/pwm.h> #include "rk3399.dtsi" #include "rk3399-opp.dtsi" @@ -72,6 +73,21 @@ regulator-max-microvolt = <12000000>; }; + gpio-keys { + compatible = "gpio-keys"; + autorepeat; + pinctrl-names = "default"; + pinctrl-0 = <&pwrbtn>; + + power { + debounce-interval = <100>; + gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; + label = "GPIO Key Power"; + linux,code = <KEY_POWER>; + wakeup-source; + }; + }; + rt5640-sound { compatible = "simple-audio-card"; simple-audio-card,name = "rockchip,rt5640-codec"; |