diff mbox

ARM: dts: kzm9g: Configure NMI key as wake-up source

Message ID 1460627922-16991-1-git-send-email-geert+renesas@glider.be (mailing list archive)
State Accepted
Commit 7e2a1bcd2185c9d7d4c9b2910249a1a8fa841341
Headers show

Commit Message

Geert Uytterhoeven April 14, 2016, 9:58 a.m. UTC
Add a GPIO key with wake-up capability for the NMI button.
This allows to wake up the system from s2ram without relying on the
buttons on the optional switch board.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/sh73a0-kzm9g.dts | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Simon Horman April 18, 2016, 3:51 a.m. UTC | #1
On Thu, Apr 14, 2016 at 11:58:42AM +0200, Geert Uytterhoeven wrote:
> Add a GPIO key with wake-up capability for the NMI button.
> This allows to wake up the system from s2ram without relying on the
> buttons on the optional switch board.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Thanks, I have queued this up for v4.7.

> ---
>  arch/arm/boot/dts/sh73a0-kzm9g.dts | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/sh73a0-kzm9g.dts b/arch/arm/boot/dts/sh73a0-kzm9g.dts
> index 4f873557ae0ba86a..e6b2ef3785c7542a 100644
> --- a/arch/arm/boot/dts/sh73a0-kzm9g.dts
> +++ b/arch/arm/boot/dts/sh73a0-kzm9g.dts
> @@ -149,6 +149,13 @@
>  			label = "SW1";
>  			wakeup-source;
>  		};
> +
> +		wakeup-key {
> +			gpios = <&pfc 159 GPIO_ACTIVE_LOW>;
> +			linux,code = <KEY_WAKEUP>;
> +			label = "NMI";
> +			wakeup-source;
> +		};
>  	};
>  
>  	sound {
> -- 
> 1.9.1
diff mbox

Patch

diff --git a/arch/arm/boot/dts/sh73a0-kzm9g.dts b/arch/arm/boot/dts/sh73a0-kzm9g.dts
index 4f873557ae0ba86a..e6b2ef3785c7542a 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g.dts
@@ -149,6 +149,13 @@ 
 			label = "SW1";
 			wakeup-source;
 		};
+
+		wakeup-key {
+			gpios = <&pfc 159 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_WAKEUP>;
+			label = "NMI";
+			wakeup-source;
+		};
 	};
 
 	sound {