arm64: dts: imx8mm-kontron: Use the VSELECT signal to switch SD card IO voltage
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 22 Aug 2022 08:03:50 +0000 (10:03 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 17 Sep 2022 08:34:22 +0000 (16:34 +0800)
commiteef2c0217e02b6c7ed5b10b82ea944127145e113
tree0136feac061da6864c301fa1d437ba94e23063ed
parent587c1fed72b314003c9f0346a6466158fa20563f
arm64: dts: imx8mm-kontron: Use the VSELECT signal to switch SD card IO voltage

It turns out that it is not necessary to declare the VSELECT signal as
GPIO and let the PMIC driver set it to a fixed high level. This switches
the voltage between 3.3V and 1.8V by setting the PMIC register for LDO5
accordingly.

Instead we can do it like other boards already do and simply mux the
VSELECT signal of the USDHC interface to the pin. This makes sure that
the correct voltage is selected by setting the PMIC's SD_VSEL input
to high or low accordingly.

Reported-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts
arch/arm64/boot/dts/freescale/imx8mm-kontron-sl.dtsi