diff mbox

[V2,10/11] ARM: dts: tegra114: dalmore: add GPIO power key support

Message ID 1372845047-25147-11-git-send-email-josephl@nvidia.com (mailing list archive)
State New, archived
Headers show

Commit Message

Joseph Lo July 3, 2013, 9:50 a.m. UTC
Adding the GPIO power key and enabling the wake up function.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
---
V2:
* no change
---
 arch/arm/boot/dts/tegra114-dalmore.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Stephen Warren July 9, 2013, 5:03 p.m. UTC | #1
On 07/03/2013 03:50 AM, Joseph Lo wrote:
> Adding the GPIO power key and enabling the wake up function.

I think I'll skip this one patch, because Laxman posted a more complete
patch "[PATCH V2] ARM: tegra: enable gpio-keys on dalmore". which
includes this change, plus defines another 3 keys.
Joseph Lo July 10, 2013, 1:06 a.m. UTC | #2
On Wed, 2013-07-10 at 01:03 +0800, Stephen Warren wrote:
> On 07/03/2013 03:50 AM, Joseph Lo wrote:
> > Adding the GPIO power key and enabling the wake up function.
> 
> I think I'll skip this one patch, because Laxman posted a more complete
> patch "[PATCH V2] ARM: tegra: enable gpio-keys on dalmore". which
> includes this change, plus defines another 3 keys.

OK, I agree your decision.

Thanks,
Joseph
diff mbox

Patch

diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
index cb640eb..b97a8cc 100644
--- a/arch/arm/boot/dts/tegra114-dalmore.dts
+++ b/arch/arm/boot/dts/tegra114-dalmore.dts
@@ -883,6 +883,17 @@ 
 		};
 	};
 
+	gpio-keys {
+		compatible = "gpio-keys";
+
+		power {
+			label = "Power";
+			gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
+			linux,code = <116>; /* KEY_POWER */
+			gpio-key,wakeup;
+		};
+	};
+
 	regulators {
 		compatible = "simple-bus";
 		#address-cells = <1>;