arm64: dts: freescale: imx8mm-verdin: replace sleep-moci hog with regulator
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Fri, 5 Apr 2024 16:07:19 +0000 (18:07 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 22 Apr 2024 04:36:59 +0000 (12:36 +0800)
commit9f06926ef1b22a52e3c8ceea394cf7408c4e66b2
treeda93996db2fb5338b7af349b9124fcfa99036b86
parent25b3af5395b5b07d8e656c932b7f694daa14b384
arm64: dts: freescale: imx8mm-verdin: replace sleep-moci hog with regulator

The Verdin family has a signal called sleep-moci which can be used to
turn off peripherals on the carrier board when the SoM goes into
suspend. So far we have hogged this signal, which means the peripherals
are always on and it is not possible to add peripherals that depend on
the sleep-moci to be on. With this change, we replace the hog with a
regulator so that peripherals can add their own regulators that use the
same gpio. Carrier boards that allow peripherals to be powered off in
suspend can disable this regulator and implement their own regulator to
control the sleep-moci.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi
arch/arm64/boot/dts/freescale/imx8mm-verdin-dev.dtsi
arch/arm64/boot/dts/freescale/imx8mm-verdin-yavia.dtsi
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi