arm64: dts: rockchip: add power button for rk3399 excavator linux
authorJacob Chen <jacob2.chen@rock-chips.com>
Thu, 10 Nov 2016 03:58:34 +0000 (11:58 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 10 Nov 2016 06:43:25 +0000 (14:43 +0800)
Change-Id: I5c69940b93dec8a04f72e7240fc732071d0187ed
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts

index 5542c0a0ec8a7945bda3bd6273fca0a4224b7b37..a82c7d24f55c2208c9c7ae52b00ae754243a07ca 100644 (file)
                        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 {
 };
 
 &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>;