summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts
diff options
context:
space:
mode:
authorJacob Chen <jacob2.chen@rock-chips.com>2016-11-10 11:58:34 +0800
committerHuang, Tao <huangtao@rock-chips.com>2016-11-10 14:43:25 +0800
commit5de1e85d0394624c00c57c90fda7444cf3ce642c (patch)
tree169210f18b32f599f29f2e4f3dbdfa959b34416a /arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts
parent414d7ed0947326b633bb1725fc5c09d77fc7640f (diff)
arm64: dts: rockchip: add power button for rk3399 excavator linux
Change-Id: I5c69940b93dec8a04f72e7240fc732071d0187ed Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Diffstat (limited to 'arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts')
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts b/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts
index 5542c0a0ec8a..a82c7d24f55c 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts
@@ -78,6 +78,25 @@
sound-dai = <&hdmi>;
};
};
+
+ gpio-keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwrbtn>;
+
+ button@0 {
+ gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_POWER>;
+ label = "GPIO Key Power";
+ linux,input-type = <1>;
+ gpio-key,wakeup = <1>;
+ debounce-interval = <100>;
+ };
+ };
};
&backlight {
@@ -140,6 +159,12 @@
};
&pinctrl {
+ buttons {
+ pwrbtn: pwrbtn {
+ rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
+
lcd-panel {
lcd_panel_reset: lcd-panel-reset {
rockchip,pins = <4 30 RK_FUNC_GPIO &pcfg_pull_up>;