]> Pileus Git - ~andy/linux/commitdiff
arm/tegra: Seaboard: Add GPIO key device tree nodes
authorStephen Warren <swarren@nvidia.com>
Sun, 18 Dec 2011 05:18:23 +0000 (22:18 -0700)
committerOlof Johansson <olof@lixom.net>
Tue, 20 Dec 2011 01:59:21 +0000 (17:59 -0800)
This brings all the GPIO key definitions from board-seaboard.c into
tegra-seaboard.dtsi.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/tegra-seaboard.dts

index 8ea7792380148e3e7f4d73ee565ce54e42905463..b55a02e34ba7fe13bacfbaf1e25f5aa515b984ac 100644 (file)
        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;
+               };
+       };
 };