ARM: dts: kzm9g: Configure NMI key as wake-up source
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 14 Apr 2016 09:58:42 +0000 (11:58 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 25 Apr 2016 04:10:09 +0000 (14:10 +1000)
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>
arch/arm/boot/dts/sh73a0-kzm9g.dts

index e40a2f2..c2d8a08 100644 (file)
                        label = "SW1";
                        wakeup-source;
                };
+
+               wakeup-key {
+                       gpios = <&pfc 159 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WAKEUP>;
+                       label = "NMI";
+                       wakeup-source;
+               };
        };
 
        sound {