]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: pca9450: Fix control register for LDO5
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Wed, 18 Dec 2024 15:27:27 +0000 (16:27 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 3 Feb 2025 00:39:03 +0000 (00:39 +0000)
commit3ce6f4f943ddd9edc03e450a2a0d89cb025b165b
tree0546278eb185e66a400a761058ff2f9c818e323b
parentc73be62caabbec6629689c705aea65e5ce364d5d
regulator: pca9450: Fix control register for LDO5

For LDO5 we need to be able to check the status of the SD_VSEL input in
order to know which control register is used. Read the status of the
SD_VSEL signal via GPIO and use the correct register accordingly.

To use this, the LDO5 node in the devicetree needs the sd-vsel-gpios
property to reference the GPIO that is used to read back the SD_VSEL
status internally. Please note that the SION bit in the IOMUX must be
set if the signal is muxed as VSELECT and controlled by the USDHC
controller.

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