regulator: drivers: Add TI TPS65219 PMIC regulators support
authorJerome Neanne <jneanne@baylibre.com>
Fri, 5 Aug 2022 12:18:50 +0000 (14:18 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 23 Aug 2022 17:13:09 +0000 (18:13 +0100)
commitc12ac5fc3e0af29851785e557e243663b4fc7f4b
treee447029f102172d401cfabdd07234c723a896a8c
parent4d2aed6ee306ccdcae51f550309bfb82ebf31b01
regulator: drivers: Add TI TPS65219 PMIC regulators support

The regulators set consists of 3 bucks DCDCs and 4 LDOs. The output
voltages are configurable and are meant to supply power to the
main processor and other components.

Validation:
Visual check: cat /sys/kernel/debug/regulator/regulator_summary
Validation: userspace-consumer and virtual-regulator required
to test further

Enable/Disable:
cat /sys/devices/platform/userspace-consumer-VDDSHV_SD_IO_PMIC/state
echo disabled > /sys/devices/platform/
userspace-consumer-VDDSHV_SD_IO_PMIC/state
echo enabled > /sys/devices/platform/
userspace-consumer-VDDSHV_SD_IO_PMIC/state

Change voltage:
cat /sys/devices/platform/regulator-virtual-ldo1/min_microvolts
echo 1000000 > /sys/devices/platform/regulator-virtual-ldo1/
min_microvolts
echo 3000000 > /sys/devices/platform/regulator-virtual-ldo1/
max_microvolts

Signed-off-by: Jerome Neanne <jneanne@baylibre.com>
Link: https://lore.kernel.org/r/20220805121852.21254-9-jneanne@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
MAINTAINERS
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/tps65219-regulator.c [new file with mode: 0644]