Message ID | 1372845047-25147-11-git-send-email-josephl@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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.
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 --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>;
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(+)