pmic: pca9450: Handle hardware with fixed SD_VSEL for LDO5
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 11 Aug 2025 13:12:00 +0000 (15:12 +0200)
committerPeng Fan <peng.fan@nxp.com>
Mon, 1 Sep 2025 02:33:05 +0000 (10:33 +0800)
commit281829f5ca1645c3bffa130d04753a1a76b64dfb
tree203adb89ab9682b7617c0a77065bfc28f938638d
parentaddfe4544630a96a1cd03daf822a196af42b7a73
pmic: 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.

This is equivalent to the following change in Linux:

c8c1ab2c5cb7 ("regulator: pca9450: Handle hardware with fixed SD_VSEL for LDO5")

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/regulator/pca9450.c