ARM: dts: omap5 uevm: add USR1 button
authorH. Nikolaus Schaller <hns@goldelico.com>
Thu, 29 Sep 2016 05:25:38 +0000 (07:25 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 9 Nov 2016 22:02:39 +0000 (15:02 -0700)
Add USR1 button.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap5-uevm.dts

index c8ab6275f1d845c703e8a46febf08642eb8718a9..2fcdc516da45e1fc12ec8eebedb585a32882f053 100644 (file)
                };
        };
 
+       evm_keys {
+               compatible = "gpio-keys";
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&evm_keys_pins>;
+
+               #address-cells = <7>;
+               #size-cells = <0>;
+
+               btn1 {
+                       label = "BTN1";
+                       linux,code = <169>;
+                       gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;    /* gpio3_83 */
+                       gpio-key,wakeup;
+                       autorepeat;
+                       debounce_interval = <50>;
+               };
+       };
+
        evm_leds {
                compatible = "gpio-leds";
 
 };
 
 &omap5_pmx_core {
+       evm_keys_pins: pinmux_evm_keys_gpio_pins {
+               pinctrl-single,pins = <
+                       OMAP5_IOPAD(0x0b6, PIN_INPUT | MUX_MODE6)       /* gpio3_83 */
+               >;
+       };
+
        i2c5_pins: pinmux_i2c5_pins {
                pinctrl-single,pins = <
                        OMAP5_IOPAD(0x1c6, PIN_INPUT | MUX_MODE0)               /* i2c5_scl */