[PATCH v3 01/12] regulator: dt-bindings: qcom,usb-vbus-regulator: Add pmi8998 and pm660

From: David Heidelberg via B4 Relay

Date: Sat Nov 21 2026 - 17:38:57 EST


From: David Heidelberg <david@xxxxxxx>

The VBUS register block on the PMI8998 and PM660 PMIC shares the design.
Define corresponding compatible string, having the
qcom,pmi8998-vbus-reg as a fallback.

As a part of the definition properly define existing chips using
min/max/multipleOf properties.

Signed-off-by: David Heidelberg <david@xxxxxxx>
---
.../regulator/qcom,usb-vbus-regulator.yaml | 56 ++++++++++++++++++++--
1 file changed, 52 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml
index 024b34d0eb1a6..7e984ab9a1474 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml
@@ -9,35 +9,38 @@ title: The Qualcomm PMIC VBUS output regulator driver
maintainers:
- Wesley Cheng <quic_wcheng@xxxxxxxxxxx>

description: |
This regulator driver controls the VBUS output by the Qualcomm PMIC. This
regulator will be enabled in situations where the device is required to
provide power to the connected peripheral.

- The pm8150b variant uses an OTG current-limit selector, supporting limits
- of 500 mA, 1000 mA, 1500 mA, 2000 mA, 2500 mA and 3000 mA.
+ The pm8150b and pmi8998 variant uses an OTG current-limit selector.

The pm4125 variant uses a different register layout with a 2-bit VBOOST
- voltage selector supporting output voltages of 4.25 V, 4.5 V, 4.75 V
- and 5.0 V.
+ voltage selector.

properties:
compatible:
oneOf:
- enum:
- qcom,pm8150b-vbus-reg
- qcom,pm4125-vbus-reg
+ - qcom,pmi8998-vbus-reg
- items:
- enum:
- qcom,pm6150-vbus-reg
- qcom,pm7250b-vbus-reg
- qcom,pmi632-vbus-reg
- const: qcom,pm8150b-vbus-reg
+ - items:
+ - enum:
+ - qcom,pm660-vbus-reg
+ - const: qcom,pmi8998-vbus-reg

reg:
maxItems: 1
description: VBUS output base address

allOf:
- $ref: regulator.yaml#
- if:
@@ -45,26 +48,71 @@ allOf:
compatible:
contains:
enum:
- qcom,pm8150b-vbus-reg
- qcom,pm6150-vbus-reg
- qcom,pm7250b-vbus-reg
- qcom,pmi632-vbus-reg
then:
+ properties:
+ regulator-min-microamp:
+ multipleOf: 500000
+ minimum: 500000
+ maximum: 3000000
+
+ regulator-max-microamp:
+ multipleOf: 500000
+ minimum: 500000
+ maximum: 3000000
+
+ required:
+ - regulator-min-microamp
+ - regulator-max-microamp
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,pm660-vbus-reg
+ - qcom,pmi8998-vbus-reg
+ then:
+ properties:
+ regulator-min-microamp:
+ multipleOf: 250000
+ minimum: 250000
+ maximum: 2000000
+
+ regulator-max-microamp:
+ multipleOf: 250000
+ minimum: 250000
+ maximum: 2000000
+
required:
- regulator-min-microamp
- regulator-max-microamp

- if:
properties:
compatible:
contains:
const: qcom,pm4125-vbus-reg
then:
+ properties:
+ regulator-min-microvolt:
+ multipleOf: 250000
+ minimum: 4250000
+ maximum: 5000000
+
+ regulator-max-microvolt:
+ multipleOf: 250000
+ minimum: 4250000
+ maximum: 5000000
+
required:
- regulator-min-microvolt
- regulator-max-microvolt

required:
- compatible
- reg


--
2.55.0