[PATCH 2/8] sunxi: pmic_bus: support alternative I2C address

Jernej Škrabec jernej.skrabec at gmail.com
Sat Jan 18 08:21:31 CET 2025


Dne petek, 17. januar 2025 ob 02:45:31 Srednjeevropski standardni čas je Andre Przywara napisal(a):
> Some of the X-Power AXP PMICs can be ordered with an alternative I2C
> address, for instance an AXP717 could be shipped with address 0x34 or
> with address 0x35.
> The datasheets for the AXP717 and AXP803 list two possible addresses,
> and they are always consecutive. For DM (DT) based drivers this is no
> problem, but the Allwinner SPL code relies on a hardcoded address.
> 
> Add a Kconfig variable that will add "1" to the existing address if it
> is set.
> This enables to use the AXP717 as used on boards with the new Allwinner
> A523 chip.
> 
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>

This works until some board vendor start mixing one or another address
PMIC. Note that BSP boot0 does address autodetection, so it's not entirely
out of the question. Anyway, let's hope we don't see anything like that.

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

Best regards,
Jernej




More information about the U-Boot mailing list