ARM: dts: omap3-devkit8000: Add user button support
authorAnthoine Bourgeois <anthoine.bourgeois@gmail.com>
Tue, 4 Aug 2015 20:53:26 +0000 (22:53 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 6 Aug 2015 07:27:27 +0000 (00:27 -0700)
This patch links the user button to the BTN_EXTRA action.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
[tony@atomide.com: added missing sign as noted by Anthoine]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-devkit8000.dts

index be2297116a1439bcdc8da56cde8b2c3e5c168092..540ae56b86711d2643fe08cc4e5e36a8aa1154b1 100644 (file)
@@ -7,6 +7,8 @@
  */
 /dts-v1/;
 
+#include <dt-bindings/input/input.h>
+
 #include "omap34xx.dtsi"
 / {
        model = "TimLL OMAP3 Devkit8000";
                        "MAINMIC", "Main Mic",
                        "Main Mic", "Mic Bias 1";
        };
+
+       gpio_keys {
+               compatible = "gpio-keys";
+
+               user {
+                       label = "user";
+                       gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
+                       linux,code = <BTN_EXTRA>;
+                       gpio-key,wakeup;
+               };
+       };
 };
 
 &i2c1 {
This page took 0.028494 seconds and 5 git commands to generate.