Skip to contentSkip to conversation

arm/tegra: Seaboard: Add GPIO key device tree nodes

PATCH New Stephen Warren 2 participants 2 messages Dec 18, 2011 – Dec 20, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/tegra: Seaboard: Add GPIO key device tree nodes

This brings all the GPIO key definitions from board-seaboard.c into tegra-seaboard.dtsi.

---
 arch/arm/boot/dts/tegra-seaboard.dts |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
arch/arm/boot/dts/tegra-seaboard.dts +20 -0
index f552bcc..3cfbd04 100644
@@ -68,4 +68,24 @@
 	usb at c5000000 {
 		nvidia,vbus-gpio = <&gpio 24 0>; /* PD0 */
 	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+
+		power {
+			label = "Power";
+			gpios = <&gpio 170 1>; /* gpio PV2, active low */
+			linux,code = <116>; /* KEY_POWER */
+			gpio-key,wakeup;
+		};
+
+		lid {
+			label = "Lid";
+			gpios = <&gpio 23 0>; /* gpio PC7 */
+			linux,input-type = <5>; /* EV_SW */
+			linux,code = <0>; /* SW_LID */
+			debounce-interval = <1>;
+			gpio-key,wakeup;
+		};
+	};
 };
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 arm/tegra: Seaboard: Add GPIO key device tree nodes

Quoted 4 lines · Stephen Warren

This brings all the GPIO key definitions from board-seaboard.c into tegra-seaboard.dtsi.

Thanks, applied to for-3.3/dt.

-Olof