Re: [PATCH v8 3/3] regulator: axp20x: Add support for AXP313a variant

From: Martin Botka
Date: Tue Feb 28 2023 - 16:19:38 EST



Hi Shengyu,
On Sat, Feb 18 2023 at 06:08:06 PM +08:00:00, Shengyu Qu <wiagn233@xxxxxxxxxxx> wrote:
Hi Martin,

On Sat, Jan 21, 2023 at 2:45 AM Martin Botka
<martin.botka@xxxxxxxxxxxxxx> wrote:
The AXP313a is your typical I2C controlled PMIC, although in a lighter
fashion compared to the other X-Powers PMICs: it has only three DCDC
rails, three LDOs, and no battery charging support.

The AXP313a datasheet does not describe a register to change the DCDC
switching frequency, and talks of it being fixed at 3 MHz. The BSP
driver hints at a register being able to change that, but we haven't
verified that, so leave that one out. It can be added later, if needed
and/or required.
The datasheet released by MangoPi says this isn't configurable. The
thing that is configurable is spread-spectrum operation, and mode
switching between fixed PWM and hybrid PFM/PWM. So just drop the
DCDC frequency stuff and use the default code path.

You could get full datasheet of AXP313A here:

https://github.com/YuzukiHD/YuzukiChameleon/blob/master/Datasheet/AXP313A_Datasheet_V1.0_cn.pdf

I do have the datasheet but maybe this one is more up to date somehow. Will have to check.

Btw I'm working on AXP15060 support mostly based on your series.
Lovely to hear. So sorry for the very very late reply. New semester began 3 weeks ago and been quite the ride.
Would love to get the series more up to date in the upcoming weeks :) I will see what time allows :)


Best regards,

Shengyu
Best regards,

Martin