diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2015-08-27 17:20:47 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-10-13 00:00:37 +0200 |
commit | 863987affb36c029bcd868eb86145c7fa405f5bd (patch) | |
tree | 40f9d5e864f363136f9c0d08345fa3b0ed00f06c /arch/arm/boot/dts/dra7-evm.dts | |
parent | ARM: dts: dra7-evm: add gpio leds support (diff) | |
download | linux-863987affb36c029bcd868eb86145c7fa405f5bd.tar.xz linux-863987affb36c029bcd868eb86145c7fa405f5bd.zip |
ARM: dts: dra7-evm: add gpio key support
dra7-evm has 2 gpio keys wired through TS_LCD_GPIO3, TS_LCD_GPIO4
which in turn connected to PCF8575 GPIO pcf_lcd: gpio@20 expander
pins 2 and 3.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/dra7-evm.dts')
-rw-r--r-- | arch/arm/boot/dts/dra7-evm.dts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index 9b4ce227f3fd..9e2dc8d88070 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -10,6 +10,7 @@ #include "dra74x.dtsi" #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/clk/ti-dra7-atl.h> +#include <dt-bindings/input/input.h> / { model = "TI DRA742"; @@ -126,6 +127,25 @@ default-state = "off"; }; }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + + USER1 { + label = "btnUser1"; + linux,code = <BTN_0>; + gpios = <&pcf_lcd 2 GPIO_ACTIVE_LOW>; + }; + + USER2 { + label = "btnUser2"; + linux,code = <BTN_1>; + gpios = <&pcf_lcd 3 GPIO_ACTIVE_LOW>; + }; + }; }; &dra7_pmx_core { |