Skip to content

Commit

Permalink
ARM: dts: kzm9g: Configure NMI key as wake-up source
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Geert Uytterhoeven authored and Simon Horman committed Apr 25, 2016
1 parent 1ca7969 commit 7e2a1bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm/boot/dts/sh73a0-kzm9g.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7e2a1bc

Please sign in to comment.