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

login
register
mail settings
Submitter Stephen Warren
Date Dec. 18, 2011, 5:18 a.m.
Message ID <1324185503-23413-1-git-send-email-swarren@nvidia.com>
Download mbox | patch
Permalink /patch/132034/
State New, archived
Headers show

Comments

Stephen Warren - Dec. 18, 2011, 5:18 a.m.
This brings all the GPIO key definitions from board-seaboard.c into
tegra-seaboard.dtsi.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 arch/arm/boot/dts/tegra-seaboard.dts |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
Olof Johansson - Dec. 20, 2011, 1:59 a.m.
On Sat, Dec 17, 2011 at 10:18:23PM -0700, Stephen Warren wrote:
> This brings all the GPIO key definitions from board-seaboard.c into
> tegra-seaboard.dtsi.
> 
> Signed-off-by: Stephen Warren <swarren@nvidia.com>

Thanks, applied to for-3.3/dt.

-Olof
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/arm/boot/dts/tegra-seaboard.dts b/arch/arm/boot/dts/tegra-seaboard.dts
index f552bcc..3cfbd04 100644
--- a/arch/arm/boot/dts/tegra-seaboard.dts
+++ b/arch/arm/boot/dts/tegra-seaboard.dts
@@ -68,4 +68,24 @@ 
 	usb@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;
+		};
+	};
 };