regulator: qcom-rpmh: Update ranges for FTSMPS525
authorMelody Olvera <quic_molvera@quicinc.com>
Tue, 12 Nov 2024 00:26:45 +0000 (16:26 -0800)
committerMark Brown <broonie@kernel.org>
Mon, 18 Nov 2024 15:44:30 +0000 (15:44 +0000)
commiteeecf953d697cb7f0d916f9908a2b9f451bb2667
treec4534a643052863a19b0025cd4b5324f4dab4ebe
parent21ccadc64dae18bd092f1255bdbaf595f53381d5
regulator: qcom-rpmh: Update ranges for FTSMPS525

All FTSMPS525 regulators support LV and MV ranges; however,
the boot loader firmware will determine which range to use as
the device boots.

Nonetheless, the driver cannot determine which range was selected,
so hardcoding the ranges as either LV or MV will not cover all cases
as it's possible for the firmware to select a range not supported by
the driver's current hardcoded values.

To this end, combine the ranges for the FTSMPS525s into one struct
and point all regulators to the updated combined struct. This should
work on all boards regardless of which range is selected by the firmware
and more accurately caputres the capability of this regulator on a
hardware level.

Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patch.msgid.link/20241112002645.2803506-1-quic_molvera@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom-rpmh-regulator.c