Re: [PATCH v5 3/7] regulator: pm8008: Add mode voting support for PM8010
From: Jishnu Prakash
Date: Thu Dec 03 2026 - 10:53:53 EST
Hi Mark,
On 11/27/2026 1:28 AM, Mark Brown wrote:
>> Implement set_mode/get_mode/get_optimum_mode support for PM8010 LDOs
>> using the mode control and status registers to allow clients to vote
>> for LDO modes. Mode voting is supported for L1 and L2 alone of PM8010
>> LDOs and not supported for any of the PM8008 LDOs.
>
>> +static unsigned int pm8010_regulator_of_map_mode(unsigned int mode)
>> +{
>> + switch (mode) {
>> + case REGULATOR_MODE_NORMAL:
>> + case REGULATOR_MODE_IDLE:
>> + return mode;
>
> These values would need documenting in the binding (or use the existing
> HPM and LPM values and map them, LPM at least looks appropriate).
Yes, I'll add a patch to add new dt-binding macros for PM8010 modes
and document them.
Thanks,
Jishnu
>