CHROMIUM: ARM: exynos: snow: add lid switch to dts
authorOlof Johansson <olofj@chromium.org>
Tue, 26 Jun 2012 04:05:56 +0000 (21:05 -0700)
committerOlof Johansson <olofj@chromium.org>
Thu, 28 Jun 2012 22:09:54 +0000 (15:09 -0700)
BUG=chrome-os-partner:10861
TEST=boot, make sure system stays awake, close lid, make sure system suspends

Change-Id: I357ed42b82d428fb078cf6175ace89e343d95ff2
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/20818
Reviewed-by: Doug Anderson <dianders@google.com>
Reviewed-by: <thomas.ab@samsung.com>
Tested-by: Olof Johansson <olofj@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>

arch/arm/boot/dts/cros5250-common.dtsi

index bc364ef..d51df22 100644 (file)
                        linux,code = <116>; /* KEY_POWER */
                        gpio-key,wakeup;
                };
+
+               lid-switch {
+                       label = "Lid";
+                       gpios = <&gpx3 5 0 0x10000 0>;
+                       linux,input-type = <5>; /* EV_SW */
+                       linux,code = <0>; /* SW_LID */
+                       debounce-interval = <1>;
+                       gpio-key,wakeup;
+               };
        };
 };