power: pmic: Add a driver for X-Powers AXP PMICs
authorSamuel Holland <samuel@sholland.org>
Fri, 8 Oct 2021 05:17:16 +0000 (00:17 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 12 Oct 2021 08:41:57 +0000 (09:41 +0100)
commit526c4f2e43bb61b849817ed069607dd2c475a17c
tree3b73982beb1d4a51366ca5ef4db5746c61648639
parent3fd90e43d9238d5b24f1d71a5eadb5ac2b51e4a8
power: pmic: Add a driver for X-Powers AXP PMICs

These PMICs provide some combination of battery charger, fuel gauge,
GPIOs, regulators, and VBUS routing. These functions are represented
as child nodes in the device tree. Add the minimal driver needed to
probe these child devices and provide the DM_PMIC ops.

Enable the driver by default for SoCs that normally pair with a PMIC.

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