]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: verdin-imx8mm/imx8mp: use gpio-hog for sleep moci
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Wed, 17 Apr 2024 08:49:02 +0000 (10:49 +0200)
committerFabio Estevam <festevam@gmail.com>
Sat, 20 Apr 2024 03:36:30 +0000 (00:36 -0300)
In Linux, we allow sleep moci to be turned off when the carrier board
supports it and the system is in suspend. In U-Boot, however, we want
the sleep moci to be always on. So we use a gpio hog and disable the
regulator. This change is necessary because we switched to upstream
device tree files with commit 23fe2def1edf
("verdin-imx8mm/verdin-imx8mp: move imx verdins to OF_UPSTREAM"). A
recent upstream patch removes the gpio hog from the Linux device tree,
so we need to add it to the u-boot dtsi. The following patch will remove
the gpio hog from the Linux device tree:
https://lore.kernel.org/linux-devicetree/20240405160720.5977-1-eichest@gmail.com/
The U-Boot patch can be applied without it and will not break the build.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
arch/arm/dts/imx8mm-verdin-wifi-dev-u-boot.dtsi
arch/arm/dts/imx8mp-verdin-wifi-dev-u-boot.dtsi

index 38db56059d69187cbc299999df3375ef2dd94326..8b397f535c148810ce672cb56c27486796322559 100644 (file)
 
        ctrl-sleep-moci-hog {
                bootph-pre-ram;
+               gpio-hog;
+               output-high;
+               gpios = <1 GPIO_ACTIVE_HIGH>;
+               line-name = "CTRL_SLEEP_MOCI#";
+
        };
 };
 
index 03f211d5f7d3b2bedf7bb829ce8fb14151b83eb1..7b45a87450b2a71423228cac6f94cf507343d0e7 100644 (file)
 
        ctrl-sleep-moci-hog {
                bootph-pre-ram;
+               gpio-hog;
+               output-high;
+               gpios = <29 GPIO_ACTIVE_HIGH>;
+               line-name = "CTRL_SLEEP_MOCI#";
        };
 };