diff options
author | Tony Lindgren <tony@atomide.com> | 2016-09-09 14:07:29 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-09-13 16:14:19 -0700 |
commit | b118c6a6ffa146c1598a53748efca8d299e495dc (patch) | |
tree | 06108f5f0f4cff9293ab0d1d13471e03b4a296a3 /arch/arm/boot/dts/omap5-igep0050.dts | |
parent | 952a5db0c0f8ddf9776c84e818769f5c6e97ec38 (diff) |
ARM: dts: Add power button support for igepv5
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>
Diffstat (limited to 'arch/arm/boot/dts/omap5-igep0050.dts')
-rw-r--r-- | arch/arm/boot/dts/omap5-igep0050.dts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap5-igep0050.dts b/arch/arm/boot/dts/omap5-igep0050.dts index 7aa2b0c813ab..f24b4498537a 100644 --- a/arch/arm/boot/dts/omap5-igep0050.dts +++ b/arch/arm/boot/dts/omap5-igep0050.dts @@ -7,6 +7,7 @@ */ /dts-v1/; +#include <dt-bindings/input/input.h> #include "omap5-board-common.dtsi" / { @@ -17,6 +18,18 @@ 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 { @@ -58,6 +71,12 @@ 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 { |