]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: pca9450: Handle hardware with fixed SD_VSEL for LDO5
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 3 Mar 2025 13:22:54 +0000 (14:22 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 3 Mar 2025 13:38:23 +0000 (13:38 +0000)
commitc8c1ab2c5cb797fe455aa18b4ab7bf39897627f6
tree0c4a5d10fafa236f9a137a2020c33aaa6a15df77
parent1455f0badd6345b2606bafb32e719d252293ebcd
regulator: pca9450: Handle hardware with fixed SD_VSEL for LDO5

There are two ways to set the output voltage of the LD05
regulator. First by writing to the voltage selection registers
and second by toggling the SD_VSEL signal.

Usually board designers connect SD_VSEL to the VSELECT signal
controlled by the USDHC controller, but in some cases the
signal is hardwired to a fixed low level (therefore selecting
3.3V as initial value for allowing to boot from the SD card).

In these cases, the voltage is only determined by the value
of the LDO5CTRL_L register. Introduce a property
nxp,sd-vsel-fixed-low to let the driver know that SD_VSEL
is low and there is no GPIO to actually get that
information from dynamically.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://patch.msgid.link/20250303132258.50204-1-frieder@fris.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pca9450-regulator.c