From: Thierry Reding Date: Thu, 19 Dec 2013 16:06:20 +0000 (+0100) Subject: ARM: tegra: Enable power key on Venice2 X-Git-Tag: v3.14-rc1~112^2~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f748d44503bd7ead26acf938f5a0bf845cea515;p=thirdparty%2Fkernel%2Flinux.git ARM: tegra: Enable power key on Venice2 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 Signed-off-by: Stephen Warren --- diff --git a/arch/arm/boot/dts/tegra124-venice2.dts b/arch/arm/boot/dts/tegra124-venice2.dts index ab7ca65301e53..c6dcef513e5d0 100644 --- a/arch/arm/boot/dts/tegra124-venice2.dts +++ b/arch/arm/boot/dts/tegra124-venice2.dts @@ -954,6 +954,18 @@ }; }; + gpio-keys { + compatible = "gpio-keys"; + + power { + label = "Power"; + gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <10>; + gpio-key,wakeup; + }; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>;