summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/tegra-seaboard.dts
diff options
context:
space:
mode:
authorStephen Warren2011-12-18 06:18:23 +0100
committerOlof Johansson2011-12-20 02:59:21 +0100
commitf0d143065c00224c0a662c5c4a3419d16dbbd01f (patch)
tree92a377aa2c95a5bc9d20bef60a8bae8a7f137045 /arch/arm/boot/dts/tegra-seaboard.dts
parentarm/dt: Add ADT7461 to Seaboard (diff)
downloadkernel-qcow2-linux-f0d143065c00224c0a662c5c4a3419d16dbbd01f.tar.gz
kernel-qcow2-linux-f0d143065c00224c0a662c5c4a3419d16dbbd01f.tar.xz
kernel-qcow2-linux-f0d143065c00224c0a662c5c4a3419d16dbbd01f.zip
arm/tegra: Seaboard: Add GPIO key device tree nodes
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>
Diffstat (limited to 'arch/arm/boot/dts/tegra-seaboard.dts')
-rw-r--r--arch/arm/boot/dts/tegra-seaboard.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra-seaboard.dts b/arch/arm/boot/dts/tegra-seaboard.dts
index 8ea779238014..b55a02e34ba7 100644
--- a/arch/arm/boot/dts/tegra-seaboard.dts
+++ b/arch/arm/boot/dts/tegra-seaboard.dts
@@ -73,4 +73,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;
+ };
+ };
};