power: regulator: Add a driver for the AXP PMIC drivevbus
authorSamuel Holland <samuel@sholland.org>
Tue, 31 Oct 2023 06:39:51 +0000 (01:39 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 28 Apr 2025 18:45:43 +0000 (12:45 -0600)
commitdb1481b9b86850e4dc60bfbfbf42d50da39df78e
tree9d10f6dbbe05d8be66e93cf454e2e2959aabf150
parent16cfccda4dbf0b53473b8212897f5c63bfbeb6e1
power: regulator: Add a driver for the AXP PMIC drivevbus

AXP PMICs have a pin which can either report the USB VBUS state, or
driving a regulator that supplies USB VBUS. Add a regulator driver for
controlling this pin. The selection between input and output is done via
the x-powers,drive-vbus-en pin on the PMIC (parent) node.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
drivers/power/pmic/axp.c
drivers/power/regulator/Kconfig
drivers/power/regulator/Makefile
drivers/power/regulator/axp_drivevbus.c [new file with mode: 0644]