ARM: tegra: add power gpio keys to DT
authorJoseph Lo <josephl@nvidia.com>
Wed, 3 Apr 2013 11:31:48 +0000 (19:31 +0800)
committerStephen Warren <swarren@nvidia.com>
Thu, 4 Apr 2013 23:17:43 +0000 (17:17 -0600)
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>
arch/arm/boot/dts/tegra20-harmony.dts
arch/arm/boot/dts/tegra20-trimslice.dts
arch/arm/boot/dts/tegra20-ventana.dts

index 2c4da874eb164809d8662899f967754442ad1cbd..d86dd85c4c4e5afaa00066b66e29853894cfcc45 100644 (file)
                };
        };
 
+       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>;
index 51b3a44fc0633fb554f440b17c24d042be82d3dd..f96870c4bdac3504fdaa78ad2c26a54448d486fe 100644 (file)
                };
        };
 
+       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 */
index 7095e96d01427d89f1129ec8dd3c8c5f669fd732..5688d9f367fda57dc0ac1f3b5d8e0012da3d2527 100644 (file)
                };
        };
 
+       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>;
This page took 0.02624 seconds and 5 git commands to generate.