Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1492818

[PATCH v2 3/3] ARM: dts: omap5 uevm: add USR1 button

From "H. Nikolaus Schaller" <hns@goldelico.com>
Newsgroups linux.kernel
Subject [PATCH v2 3/3] ARM: dts: omap5 uevm: add USR1 button
Date 2016-09-28 20:10 +0200
Message-ID <smrsR-1Ie-27@gated-at.bofh.it> (permalink)
References <smrsR-1Ie-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap5-uevm.dts | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts
index 149f75d..d4f22d8 100644
--- a/arch/arm/boot/dts/omap5-uevm.dts
+++ b/arch/arm/boot/dts/omap5-uevm.dts
@@ -18,6 +18,25 @@
 		reg = <0x80000000 0x7F000000>; /* 2032 MB */
 	};
 
+	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";
 
@@ -105,6 +124,12 @@
 };
 
 &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 */
-- 
2.7.3

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/3] ARM: dts: omap5 uevm: add LEDs, USR1 button and EEPROM "H. Nikolaus Schaller" <hns@goldelico.com> - 2016-09-28 20:10 +0200
  [PATCH v2 1/3] ARM: dts: omap5 uevm: add EEPROM "H. Nikolaus Schaller" <hns@goldelico.com> - 2016-09-28 20:10 +0200
  [PATCH v2 3/3] ARM: dts: omap5 uevm: add USR1 button "H. Nikolaus Schaller" <hns@goldelico.com> - 2016-09-28 20:10 +0200

csiph-web