Re: [PATCH 1/2] dt-bindings: regulator: qcom,usb-vbus-regulator: add qcom,pm4125-vbus-reg

From: Rakesh Kota

Date: Wed May 20 2026 - 07:45:18 EST


On Wed, May 20, 2026 at 12:58:35PM +0300, Dmitry Baryshkov wrote:
> On Wed, May 20, 2026 at 02:37:11PM +0530, Rakesh Kota wrote:
> > The pm4125 PMIC uses a different USB VBUS register layout than pm8150b.
> > It uses a 2-bit VBOOST voltage selector supporting output voltages of
> > 4.25 V, 4.5 V, 4.75 V and 5.0 V, instead of a current-limit selector.
>
> Is it only PM4125? What about other PMICs which have the VBUS regulator
> (e.g. PMI632)?
>
Yes, this change is specific to PM4125. I have verified that PM6150,
PM7250B, and PMI632 all use the same register offsets (0x40, 0x52
and 0x53) as PM8150B, so no changes are required for those PMICs.

regards
Rakesh
> >
> > Move qcom,pm4125-vbus-reg from the pm8150b fallback items list into the
> > standalone enum since the driver handles it with its own match-data and
> > register layout.
> >
> > Make regulator-min/max-microamp conditional so they are only required
> > for current-limit variants (pm8150b, pm6150, pm7250b, pmi632). Add an
> > if/then condition for qcom,pm4125-vbus-reg requiring regulator-min/
> > max-microvolt instead, and update the pm4125 example accordingly.
> >
> > Signed-off-by: Rakesh Kota <rakesh.kota@xxxxxxxxxxxxxxxx>
> > ---
> > .../regulator/qcom,usb-vbus-regulator.yaml | 50 +++++++++++++++++++---
> > 1 file changed, 45 insertions(+), 5 deletions(-)
> >
>
> --
> With best wishes
> Dmitry