[PATCH v2 1/8] power: regulator: Add a driver for the AXP PMIC drivevbus

Andre Przywara andre.przywara at arm.com
Thu Apr 10 11:23:15 CEST 2025


On Thu, 10 Apr 2025 09:04:35 +0200
Jernej Škrabec <jernej.skrabec at gmail.com> wrote:

> Dne sreda, 9. april 2025 ob 02:20:29 Srednjeevropski poletni čas je Andre Przywara napisal(a):
> > From: Samuel Holland <samuel at sholland.org>
> > 
> > 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 at sholland.org>
> > Signed-off-by: Andre Przywara <andre.przywara at arm.com>  
> 
> Would it be less error prone to auto enable Kconfig option when compatible
> AXP device is enabled? That way defconfigs could be smaller. Driver is pretty
> small anyway.

Yes, but the whole PMIC config is quite a mess at the moment. Those
AXPxxx_POWER symbols are really for the SPL part only, and do nothing
in U-Boot proper, where everything is guarded by CONFIG_REGULATOR_AXP and
properly detected at runtime through the DT.
I tried to enable this driver for all 64-bit boards, to be able to drop
the TF-A code, but ran into problems with the H616 RSB boards, because of
this overlap and this "PMIC bus" feature.

So I have patches to enable this more universally, and will look at this
in the next days and weeks, but first wanted to get the non-controversial
parts in, like the driver itself.

> In any case:
> Reviewed-by: Jernej Skrabec <jernej.skrabec at gmail.com>

Many thanks for that!

Cheers,
Andre

> 
> Best regards,
> Jernej
> 
> 



More information about the U-Boot mailing list