Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Grygorii Strashko and committed by
Tony Lindgren
863987af a96e8808

+20
+20
arch/arm/boot/dts/dra7-evm.dts
··· 10 10 #include "dra74x.dtsi" 11 11 #include <dt-bindings/gpio/gpio.h> 12 12 #include <dt-bindings/clk/ti-dra7-atl.h> 13 + #include <dt-bindings/input/input.h> 13 14 14 15 / { 15 16 model = "TI DRA742"; ··· 125 124 label = "dra7:usr4"; 126 125 gpios = <&pcf_lcd 7 GPIO_ACTIVE_LOW>; 127 126 default-state = "off"; 127 + }; 128 + }; 129 + 130 + gpio_keys { 131 + compatible = "gpio-keys"; 132 + #address-cells = <1>; 133 + #size-cells = <0>; 134 + autorepeat; 135 + 136 + USER1 { 137 + label = "btnUser1"; 138 + linux,code = <BTN_0>; 139 + gpios = <&pcf_lcd 2 GPIO_ACTIVE_LOW>; 140 + }; 141 + 142 + USER2 { 143 + label = "btnUser2"; 144 + linux,code = <BTN_1>; 145 + gpios = <&pcf_lcd 3 GPIO_ACTIVE_LOW>; 128 146 }; 129 147 }; 130 148 };