mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 05:08:24 +00:00
arm: dts: verdin-imx8mm/imx8mp: use gpio-hog for sleep moci
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 23fe2def1e
("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>
This commit is contained in:
parent
8c352a61ee
commit
45d14c0120
2 changed files with 9 additions and 0 deletions
|
@ -60,6 +60,11 @@
|
||||||
|
|
||||||
ctrl-sleep-moci-hog {
|
ctrl-sleep-moci-hog {
|
||||||
bootph-pre-ram;
|
bootph-pre-ram;
|
||||||
|
gpio-hog;
|
||||||
|
output-high;
|
||||||
|
gpios = <1 GPIO_ACTIVE_HIGH>;
|
||||||
|
line-name = "CTRL_SLEEP_MOCI#";
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,10 @@
|
||||||
|
|
||||||
ctrl-sleep-moci-hog {
|
ctrl-sleep-moci-hog {
|
||||||
bootph-pre-ram;
|
bootph-pre-ram;
|
||||||
|
gpio-hog;
|
||||||
|
output-high;
|
||||||
|
gpios = <29 GPIO_ACTIVE_HIGH>;
|
||||||
|
line-name = "CTRL_SLEEP_MOCI#";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue