Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/regulator/qcom,usb-vbus-regulator.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: The Qualcomm PMIC VBUS output regulator driver |
| 8 | |
| 9 | maintainers: |
| 10 | - Wesley Cheng <quic_wcheng@quicinc.com> |
| 11 | |
| 12 | description: | |
| 13 | This regulator driver controls the VBUS output by the Qualcomm PMIC. This |
| 14 | regulator will be enabled in situations where the device is required to |
| 15 | provide power to the connected peripheral. |
| 16 | |
| 17 | allOf: |
| 18 | - $ref: regulator.yaml# |
| 19 | |
| 20 | properties: |
| 21 | compatible: |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 22 | oneOf: |
| 23 | - enum: |
| 24 | - qcom,pm8150b-vbus-reg |
| 25 | - items: |
| 26 | - enum: |
| 27 | - qcom,pm4125-vbus-reg |
| 28 | - qcom,pm6150-vbus-reg |
| 29 | - qcom,pmi632-vbus-reg |
| 30 | - const: qcom,pm8150b-vbus-reg |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 31 | |
| 32 | reg: |
| 33 | maxItems: 1 |
| 34 | description: VBUS output base address |
| 35 | |
| 36 | required: |
| 37 | - compatible |
| 38 | - reg |
| 39 | - regulator-min-microamp |
| 40 | - regulator-max-microamp |
| 41 | |
| 42 | unevaluatedProperties: false |
| 43 | |
| 44 | examples: |
| 45 | - | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 46 | pmic { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 47 | #address-cells = <1>; |
| 48 | #size-cells = <0>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 49 | |
| 50 | usb-vbus-regulator@1100 { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 51 | compatible = "qcom,pm8150b-vbus-reg"; |
| 52 | reg = <0x1100>; |
| 53 | regulator-min-microamp = <500000>; |
| 54 | regulator-max-microamp = <3000000>; |
| 55 | }; |
| 56 | }; |
| 57 | ... |