Re: [PATCH] regulator: axp20x: AXP717: set ramp_delay

From: Philippe Simons
Date: Fri Dec 06 2024 - 07:57:05 EST


On Fri, Dec 6, 2024 at 1:48 PM Mark Brown <broonie@xxxxxxxxxx> wrote:
>
> On Fri, Dec 06, 2024 at 01:37:51PM +0100, Philippe Simons wrote:
> > AXP717 datasheet says that regulator ramp delay is 15.625 us/step,
> > which is 10mV in our case.
>
> > static const struct regulator_desc axp717_regulators[] = {
> > + AXP_DESC_RANGES_DELAY(AXP717, DCDC1, "dcdc1", "vin1",
> > + AXP717_DCDC_OUTPUT_CONTROL, BIT(0), 640),
>
> This doesn't seem to match with the above - ramp_delay is in units of
> uV/us?

15.625 us / 10mV = 1.5625 us/mV = 0.0015625 us/uV
0.0015625^-1 = 640 uV/us

Or did I miss too many math lessons...