Re: [PATCH v5 2/7] regulator: pm8008: Add PM8010 support
From: Jishnu Prakash
Date: Thu Dec 03 2026 - 10:53:39 EST
Hi Mark,
On 11/27/2026 1:28 AM, Mark Brown wrote:
>> PM8010 is effectively the next generation of PM8008.
>>
>> Like PM8008, PM8010 also has 7 LDOs under it which are used to power
>> camera sensors. The PM8010 LDO are of different types from the PM8008
>> ones and have different voltage dropout values. PM8010 LDOs do not have
>> a voltage step rate configuration register.
>>
>> Add the necessary changes to support PM8010 LDOs.
>
>> @@ -145,18 +190,21 @@ static int pm8008_regulator_probe(struct platform_device *pdev)
>> desc->owner = THIS_MODULE;
>>
>> desc->linear_ranges = data->voltage_range;
>> - desc->n_linear_ranges = 1;
>> - desc->uV_step = desc->linear_ranges[0].step;
>
> I'm not seeing this uV_step configuration replaced anywere, don't we
> need it for PM8008 which still uses regulator_get_linear_step()?
I don't think PM8008 uses regulator_get_linear_step() anywhere. This change
was needed because pm8010_pldo_lv_ranges has 3 different voltage ranges with
different step sizes, so having a fixed uV_step would be wrong for it.
And considering other places using uV_step, we have changed the .list_voltage
callback from regulator_list_voltage_linear() to regulator_list_voltage_linear_range()
now, so uV_step should not be needed there too.
Thanks,
Jishnu
>