aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2013-12-19 11:06:20 -0500
committerStephen Warren <swarren@nvidia.com>2013-12-20 12:55:34 -0500
commit3f748d44503bd7ead26acf938f5a0bf845cea515 (patch)
tree064d1d9e612677f91b10a1e90e5b933b96ab1d52
parent146db0eae8a9c7eabb374dbaac1c52a3f0ac61e4 (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>
-rw-r--r--arch/arm/boot/dts/tegra124-venice2.dts12
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 ab7ca65301e5..c6dcef513e5d 100644
--- a/arch/arm/boot/dts/tegra124-venice2.dts
+++ b/arch/arm/boot/dts/tegra124-venice2.dts
@@ -954,6 +954,18 @@
954 }; 954 };
955 }; 955 };
956 956
957 gpio-keys {
958 compatible = "gpio-keys";
959
960 power {
961 label = "Power";
962 gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
963 linux,code = <KEY_POWER>;
964 debounce-interval = <10>;
965 gpio-key,wakeup;
966 };
967 };
968
957 regulators { 969 regulators {
958 compatible = "simple-bus"; 970 compatible = "simple-bus";
959 #address-cells = <1>; 971 #address-cells = <1>;