Commit d0ed3f54 authored by Maciej S. Szmigiero's avatar Maciej S. Szmigiero Committed by Shawn Guo

ARM: dts: imx6qdl-udoo: add support for powering off

UDOO board has a possibility to disable most of imx6 SoC power supplies via
"EN_5V" signal, which is connected to "NANDF_D4" pad.

This reduces current consumption after shutdown from ~350 mA to ~40 mA and
prevents a SoC watchdog from starting it again on its own after the
watchdog timeout expires (previously it was not possible to shut down the
SoC permanently if its watchdog was ever enabled since it was still ticking
after the shutdown).

Unfortunately, this does not extinguish the "Power" LED (as it is powered
from an always-on voltage regulator).

To power the SoC up again press the power button (SW2, the one with a long
shaft).
Signed-off-by: default avatarMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent c709ddfa
...@@ -28,6 +28,13 @@ backlight: backlight { ...@@ -28,6 +28,13 @@ backlight: backlight {
status = "disabled"; status = "disabled";
}; };
gpio-poweroff {
compatible = "gpio-poweroff";
gpios = <&gpio2 4 0>;
pinctrl-0 = <&pinctrl_power_off>;
pinctrl-names = "default";
};
memory { memory {
reg = <0x10000000 0x40000000>; reg = <0x10000000 0x40000000>;
}; };
...@@ -172,6 +179,12 @@ MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x70 ...@@ -172,6 +179,12 @@ MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x70
>; >;
}; };
pinctrl_power_off: poweroffgrp {
fsl,pins = <
MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x30
>;
};
pinctrl_touchscreenp7: touchscreenp7grp { pinctrl_touchscreenp7: touchscreenp7grp {
fsl,pins = < fsl,pins = <
MX6QDL_PAD_SD2_DAT0__GPIO1_IO15 0x70 MX6QDL_PAD_SD2_DAT0__GPIO1_IO15 0x70
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment