ARM: tegra: add power gpio keys to DT

This adds the power gpio key to DT and enable the wakeup of the gpio key
for the device. The Seaboard and paz00 already had the power gpio key
binding and the power key of Whistler was on KBC. So these boards' device
tree didn't include in this patch.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
Joseph Lo 2013-04-03 19:31:48 +08:00 committed by Stephen Warren
parent 15d5ef4d9a
commit 5741a2560a
3 changed files with 33 additions and 0 deletions

View file

@ -464,6 +464,17 @@
};
};
gpio-keys {
compatible = "gpio-keys";
power {
label = "Power";
gpios = <&gpio 170 1>; /* gpio PV2, active low */
linux,code = <116>; /* KEY_POWER */
gpio-key,wakeup;
};
};
kbc {
status = "okay";
nvidia,debounce-delay-ms = <2>;

View file

@ -343,6 +343,17 @@
};
};
gpio-keys {
compatible = "gpio-keys";
power {
label = "Power";
gpios = <&gpio 190 1>; /* gpio PX6, active low */
linux,code = <116>; /* KEY_POWER */
gpio-key,wakeup;
};
};
poweroff {
compatible = "gpio-poweroff";
gpios = <&gpio 191 1>; /* gpio PX7, active low */

View file

@ -544,6 +544,17 @@
};
};
gpio-keys {
compatible = "gpio-keys";
power {
label = "Power";
gpios = <&gpio 170 1>; /* gpio PV2, active low */
linux,code = <116>; /* KEY_POWER */
gpio-key,wakeup;
};
};
regulators {
compatible = "simple-bus";
#address-cells = <1>;