diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2013-12-19 17:06:20 +0100 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-12-20 10:55:34 -0700 |
commit | 3f748d44503bd7ead26acf938f5a0bf845cea515 (patch) | |
tree | 064d1d9e612677f91b10a1e90e5b933b96ab1d52 /arch/arm/boot/dts/tegra124-venice2.dts | |
parent | 146db0eae8a9c7eabb374dbaac1c52a3f0ac61e4 (diff) |
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 <treding@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/boot/dts/tegra124-venice2.dts')
-rw-r--r-- | arch/arm/boot/dts/tegra124-venice2.dts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra124-venice2.dts b/arch/arm/boot/dts/tegra124-venice2.dts index ab7ca65301e..c6dcef513e5 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 = <KEY_POWER>; + debounce-interval = <10>; + gpio-key,wakeup; + }; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>; |