]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: dts: imx8mm-kontron: Add support for reading SD_VSEL signal
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Wed, 18 Dec 2024 15:27:30 +0000 (16:27 +0100)
committerShawn Guo <shawnguo@kernel.org>
Tue, 25 Feb 2025 00:32:56 +0000 (08:32 +0800)
commit8472751c4d96b558d60d0f6aede6b24b64bcb3c9
tree60c658a41d6e6a57afd5f78756b5df9e691be4ad
parent18e5ff7aabfd7616504648473fb983a468e21f84
arm64: dts: imx8mm-kontron: Add support for reading SD_VSEL signal

This fixes the LDO5 regulator handling of the pca9450 driver by
taking the status of the SD_VSEL into account to determine which
configuration register is used for the voltage setting.

Even without this change there is no functional issue, as the code
for switching the voltage in sdhci.c currently switches both, the
VSELECT/SD_VSEL signal and the regulator voltage at the same time
and doesn't run into an invalid corner case.

We should still make sure, that we always use the correct register
when controlling the regulator. At least in U-Boot this fixes an
actual bug where the wrong IO voltage is used and it makes sure
that the correct voltage can be read from sysfs.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts
arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi