ARM: dts: Add power button support for igepv5
authorTony Lindgren <tony@atomide.com>
Fri, 9 Sep 2016 21:07:29 +0000 (14:07 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 13 Sep 2016 23:14:19 +0000 (16:14 -0700)
Add power button support for igepv5.

Cc: Agustí Fontquerni i Gorchs <afontquerni@iseebcn.com>
Cc: Enric Balletbo Serra <eballetbo@gmail.com>
Cc: Javier Martinez Canillas <javier@osg.samsung.com>
Cc: Pau Pajuel <ppajuel@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap5-igep0050.dts

index 7aa2b0c..f24b449 100644 (file)
@@ -7,6 +7,7 @@
  */
 /dts-v1/;
 
+#include <dt-bindings/input/input.h>
 #include "omap5-board-common.dtsi"
 
 / {
                device_type = "memory";
                reg = <0x80000000 0x7f000000>; /* 2032 MB */
        };
+
+       gpio_keys {
+                compatible = "gpio-keys";
+               pinctrl-0 = <&power_button_pin>;
+               pinctrl-names = "default";
+
+               power-button {
+                       label = "Power Button";
+                       linux,code = <KEY_POWER>;
+                       gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>;
+               };
+       };
 };
 
 &hdmi {
                        OMAP5_IOPAD(0x0fa, PIN_INPUT | MUX_MODE0)       /* i2c4_sda */
                >;
        };
+
+       power_button_pin: pinctrl_power_button_pin {
+               pinctrl-single,pins = <
+                       OMAP5_IOPAD(0x086, PIN_INPUT | MUX_MODE6)       /* gpio4_118 */
+               >;
+       };
 };
 
 &tpd12s015 {