Re: [PATCH v5 3/7] regulator: pm8008: Add mode voting support for PM8010
From: Mark Brown
Date: Thu Nov 26 2026 - 14:58:53 EST
> 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).
--
Mark Brown <broonie@xxxxxxxxxx>