ARM: tegra: Enable power key on Venice2
authorThierry Reding <thierry.reding@gmail.com>
Thu, 19 Dec 2013 16:06:20 +0000 (17:06 +0100)
committerStephen Warren <swarren@nvidia.com>
Fri, 20 Dec 2013 17:55:34 +0000 (10:55 -0700)
Contrary to the rest of the keyboard, which is connected to the ChromeOS
embedded controller, the power key is hooked up to a GPIO. Add a device
tree node to handle it.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/boot/dts/tegra124-venice2.dts

index ab7ca65..c6dcef5 100644 (file)
                };
        };
 
+       gpio-keys {
+               compatible = "gpio-keys";
+
+               power {
+                       label = "Power";
+                       gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_POWER>;
+                       debounce-interval = <10>;
+                       gpio-key,wakeup;
+               };
+       };
+
        regulators {
                compatible = "simple-bus";
                #address-cells = <1>;