ARM: dts: imx6ul: add pm_power_off support
authorAnson Huang <b20788@freescale.com>
Sun, 6 Sep 2015 07:29:34 +0000 (15:29 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 19 Oct 2015 14:45:11 +0000 (22:45 +0800)
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>
arch/arm/boot/dts/imx6ul-14x14-evk.dts
arch/arm/boot/dts/imx6ul.dtsi

index 25746b122ea650568a83a73cc18df060379546aa..2fe5b1f71705c7d84e975b49395b00f60312553a 100644 (file)
        };
 };
 
+&snvs_poweroff {
+       status = "okay";
+};
+
 &uart1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart1>;
index c2eb3d4b976e908b410f110043fce45c6beaa261..96b00c6b1a8029e0da66d7a59e54f2a946f1dd30 100644 (file)
                                                     <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>;