aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorJoseph Lo <josephl@nvidia.com>2013-04-03 07:31:48 -0400
committerStephen Warren <swarren@nvidia.com>2013-04-04 19:17:43 -0400
commit5741a2560afa66dce9e53752888241310d8e7c93 (patch)
treea6c5a269408f388948cc177be1b02e2dc29682ca /arch/arm
parent15d5ef4d9a1f6fd7bcf706e41f13d5029a91760f (diff)
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/tegra20-harmony.dts11
-rw-r--r--arch/arm/boot/dts/tegra20-trimslice.dts11
-rw-r--r--arch/arm/boot/dts/tegra20-ventana.dts11
3 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra20-harmony.dts b/arch/arm/boot/dts/tegra20-harmony.dts
index 2c4da874eb16..d86dd85c4c4e 100644
--- a/arch/arm/boot/dts/tegra20-harmony.dts
+++ b/arch/arm/boot/dts/tegra20-harmony.dts
@@ -464,6 +464,17 @@
464 }; 464 };
465 }; 465 };
466 466
467 gpio-keys {
468 compatible = "gpio-keys";
469
470 power {
471 label = "Power";
472 gpios = <&gpio 170 1>; /* gpio PV2, active low */
473 linux,code = <116>; /* KEY_POWER */
474 gpio-key,wakeup;
475 };
476 };
477
467 kbc { 478 kbc {
468 status = "okay"; 479 status = "okay";
469 nvidia,debounce-delay-ms = <2>; 480 nvidia,debounce-delay-ms = <2>;
diff --git a/arch/arm/boot/dts/tegra20-trimslice.dts b/arch/arm/boot/dts/tegra20-trimslice.dts
index 51b3a44fc063..f96870c4bdac 100644
--- a/arch/arm/boot/dts/tegra20-trimslice.dts
+++ b/arch/arm/boot/dts/tegra20-trimslice.dts
@@ -343,6 +343,17 @@
343 }; 343 };
344 }; 344 };
345 345
346 gpio-keys {
347 compatible = "gpio-keys";
348
349 power {
350 label = "Power";
351 gpios = <&gpio 190 1>; /* gpio PX6, active low */
352 linux,code = <116>; /* KEY_POWER */
353 gpio-key,wakeup;
354 };
355 };
356
346 poweroff { 357 poweroff {
347 compatible = "gpio-poweroff"; 358 compatible = "gpio-poweroff";
348 gpios = <&gpio 191 1>; /* gpio PX7, active low */ 359 gpios = <&gpio 191 1>; /* gpio PX7, active low */
diff --git a/arch/arm/boot/dts/tegra20-ventana.dts b/arch/arm/boot/dts/tegra20-ventana.dts
index 7095e96d0142..5688d9f367fd 100644
--- a/arch/arm/boot/dts/tegra20-ventana.dts
+++ b/arch/arm/boot/dts/tegra20-ventana.dts
@@ -544,6 +544,17 @@
544 }; 544 };
545 }; 545 };
546 546
547 gpio-keys {
548 compatible = "gpio-keys";
549
550 power {
551 label = "Power";
552 gpios = <&gpio 170 1>; /* gpio PV2, active low */
553 linux,code = <116>; /* KEY_POWER */
554 gpio-key,wakeup;
555 };
556 };
557
547 regulators { 558 regulators {
548 compatible = "simple-bus"; 559 compatible = "simple-bus";
549 #address-cells = <1>; 560 #address-cells = <1>;