Skip to content

Commit

Permalink
ARM: tegra: Enable power key on Venice2
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding authored and Stephen Warren committed Dec 20, 2013
1 parent 146db0e commit 3f748d4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions arch/arm/boot/dts/tegra124-venice2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down

0 comments on commit 3f748d4

Please sign in to comment.