ARM: dts: imx6sx: enable snvs power key
authorFrank Li <Frank.Li@freescale.com>
Tue, 26 May 2015 16:26:02 +0000 (00:26 +0800)
committerShawn Guo <shawnguo@kernel.org>
Wed, 15 Jul 2015 02:20:31 +0000 (10:20 +0800)
enable snvs ONOFF power key support

Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6sx.dtsi

index 708175d59b9c31085877da68ad378765fe701369..f0602c5c3ac657d68d699575a1d3f7091ce59903 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <dt-bindings/clock/imx6sx-clock.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include "imx6sx-pinfunc.h"
 #include "skeleton.dtsi"
                                        reg = <0x38 0x4>;
                                        status = "disabled";
                                };
+
+                               snvs_pwrkey: snvs-powerkey {
+                                       compatible = "fsl,sec-v4.0-pwrkey";
+                                       regmap = <&snvs>;
+                                       interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
+                                       linux,keycode = <KEY_POWER>;
+                                       wakeup;
+                               };
                        };
 
                        epit1: epit@020d0000 {