On Mon, Nov 11, 2024 at 04:26:45PM -0800, Melody Olvera wrote: > 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@xxxxxxxxxxx> > --- > Changes in V2: > - merged FTSMPS525 lv and mv into one > - updated all regulator structs > --- > drivers/regulator/qcom-rpmh-regulator.c | 83 +++++++++++-------------- > 1 file changed, 36 insertions(+), 47 deletions(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> -- With best wishes Dmitry