diff mbox

[1/7] ARM: dts: omap3-devkit8000: Add user button support

Message ID 1438721612-7529-2-git-send-email-anthoine.bourgeois@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Anthoine Bourgeois Aug. 4, 2015, 8:53 p.m. UTC
This patch links the user button to the BTN_EXTRA action.
---
 arch/arm/boot/dts/omap3-devkit8000.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff mbox

Patch

diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts
index 2af54cb..07b0f5a 100644
--- a/arch/arm/boot/dts/omap3-devkit8000.dts
+++ b/arch/arm/boot/dts/omap3-devkit8000.dts
@@ -7,6 +7,8 @@ 
  */
 /dts-v1/;
 
+#include <dt-bindings/input/input.h>
+
 #include "omap34xx.dtsi"
 / {
 	model = "TimLL OMAP3 Devkit8000";
@@ -55,6 +57,17 @@ 
 			"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 {