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>
This commit is contained in:
Anson Huang 2015-09-06 15:29:34 +08:00 коммит произвёл Shawn Guo
Родитель 51a374438c
Коммит ab0a05d818
2 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -87,6 +87,10 @@
}; };
}; };
&snvs_poweroff {
status = "okay";
};
&uart1 { &uart1 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>; pinctrl-0 = <&pinctrl_uart1>;

Просмотреть файл

@ -429,6 +429,14 @@
<GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; <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 { snvs_pwrkey: snvs-powerkey {
compatible = "fsl,sec-v4.0-pwrkey"; compatible = "fsl,sec-v4.0-pwrkey";
regmap = <&snvs>; regmap = <&snvs>;