]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: dts: imx6qdl-apalis: Fix poweroff on Apalis iMX6
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Fri, 10 Jan 2025 15:18:29 +0000 (16:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Mar 2025 20:59:55 +0000 (21:59 +0100)
commit 83964a29379cb08929a39172780a4c2992bc7c93 upstream.

The current solution for powering off the Apalis iMX6 is not functioning
as intended. To resolve this, it is necessary to power off the
vgen2_reg, which will also set the POWER_ENABLE_MOCI signal to a low
state. This ensures the carrier board is properly informed to initiate
its power-off sequence.

The new solution uses the regulator-poweroff driver, which will power
off the regulator during a system shutdown.

Cc: <stable@vger.kernel.org>
Fixes: 4eb56e26f92e ("ARM: dts: imx6q-apalis: Command pmic to standby for poweroff")
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi

index dcb4f6a32f80926f5f5f58492196b78c8c98bedb..f492075870ed5ff1bc7e64cdbb3eac532b0e18c6 100644 (file)
                };
        };
 
+       poweroff {
+               compatible = "regulator-poweroff";
+               cpu-supply = <&vgen2_reg>;
+       };
+
        reg_module_3v3: regulator-module-3v3 {
                compatible = "regulator-fixed";
                regulator-always-on;
        status = "disabled";
 };
 
-&clks {
-       fsl,pmic-stby-poweroff;
-};
-
 /* Apalis SPI1 */
 &ecspi1 {
        cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>;
 
        pmic: pmic@8 {
                compatible = "fsl,pfuze100";
-               fsl,pmic-stby-poweroff;
                reg = <0x08>;
 
                regulators {