summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2015-09-06 09:29:34 +0200
committerShawn Guo <shawnguo@kernel.org>2015-10-19 16:45:11 +0200
commitab0a05d818d5a6e322e6ccd11a33845b477f9ab7 (patch)
tree330c60aebed9acfec10d7e9bfb3cb80e332482cd /arch/arm/boot
parentARM: dts: imx6ul: add mmdc support for i.mx6ul (diff)
downloadlinux-ab0a05d818d5a6e322e6ccd11a33845b477f9ab7.tar.xz
linux-ab0a05d818d5a6e322e6ccd11a33845b477f9ab7.zip
ARM: dts: imx6ul: add pm_power_off support
i.MX6UL can be powered off by programming SNVS. When long press ON/OFF button(5 seconds), PMIC_ON_REQ pin will be set to low and external PMIC will be powered off. And system can be powered on by long press ON/OFF button again. Signed-off-by: Anson Huang <b20788@freescale.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/imx6ul-14x14-evk.dts4
-rw-r--r--arch/arm/boot/dts/imx6ul.dtsi8
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot/dts/imx6ul-14x14-evk.dts
index 25746b122ea6..2fe5b1f71705 100644
--- a/arch/arm/boot/dts/imx6ul-14x14-evk.dts
+++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dts
@@ -87,6 +87,10 @@
};
};
+&snvs_poweroff {
+ status = "okay";
+};
+
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi
index c2eb3d4b976e..96b00c6b1a80 100644
--- a/arch/arm/boot/dts/imx6ul.dtsi
+++ b/arch/arm/boot/dts/imx6ul.dtsi
@@ -429,6 +429,14 @@
<GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
};
+ snvs_poweroff: snvs-poweroff {
+ compatible = "syscon-poweroff";
+ regmap = <&snvs>;
+ offset = <0x38>;
+ mask = <0x60>;
+ status = "disabled";
+ };
+
snvs_pwrkey: snvs-powerkey {
compatible = "fsl,sec-v4.0-pwrkey";
regmap = <&snvs>;