Re: [PATCH v2 4/6] power: pmic: sunxi: add AXP717 SPL support

2024-07-15 Thread Ryan Walklin
On Mon, 15 Jul 2024, at 11:38 AM, Andre Przywara wrote: > On Sun, 14 Jul 2024 20:20:44 +1200 > "Ryan Walklin" wrote: > > Hi Ryan, > > I consider the fact that the AXP209 and the AXP717 use the same I2C > address a sheer coincidence, so would like to keep the code re

Re: [PATCH v2 4/6] power: pmic: sunxi: add AXP717 SPL support

2024-07-14 Thread Ryan Walklin
obj-$(CONFIG_AXP313_POWER) += axp313.o > +obj-$(CONFIG_AXP717_POWER) += axp_spl.o > obj-$(CONFIG_AXP809_POWER) += axp809.o > obj-$(CONFIG_AXP818_POWER) += axp818.o > endif > -- > 2.25.1 Tested with RG35XX-H and RG35XX-Plus boards (Allwinner H700 with AXP717). Confirmed both DCDC2 and DCDC3 are set correctly in SPL, allowing successful DRAM init and boot. Tested-by: Ryan Walklin Regards, Ryan

Re: [PATCH] sunxi: spl: h616: fix booting from high MMC offset

2024-05-28 Thread Ryan Walklin
d with an H700-based board and u-boot at the 512-sector/256KB offset. Tested-by: Ryan Walklin Regards, Ryan

Re: [PATCH 2/2] power: regulator: add AXP717 support

2024-05-11 Thread Ryan Walklin
[AXP806_ID] = axp806_regulators, > [AXP809_ID] = axp809_regulators, > diff --git a/include/axp_pmic.h b/include/axp_pmic.h > index aabafc8501b..ae62ef0d76d 100644 > --- a/include/axp_pmic.h > +++ b/include/axp_pmic.h > @@ -33,6 +33,7 @@ enum { > AXP221_ID, > AXP223_ID, > AXP313_ID, > + AXP717_ID, > AXP803_ID, > AXP806_ID, > AXP809_ID, > -- > 2.35.8 Confirmed working on H700 board with AXP717 PMIC and LPDDR4 DRAM controller (Anbernic RG35XX-H). Registers and voltage ranges confirmed from datasheet. Reviewed-by: Ryan Walklin Regards, Ryan

Re: [PATCH 1/2] power: pmic: sunxi: add AXP717 SPL driver

2024-05-11 Thread Ryan Walklin
; > + > + return pmic_bus_setbits(AXP717_OUTPUT_CTRL1, 1U << (dcdc_num - 1)); > +} > + > +int axp_set_dcdc1(unsigned int mvolt) > +{ > + return axp_set_dcdc(1, mvolt); > +} > + > +int axp_set_dcdc2(unsigned int mvolt) > +{ > + return axp_set_dcdc(2, mvolt); > +} &