xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/qcom,usb-vbus-regulator.yaml (revision 656f7f43f204ad1e6956f8257f66b50e032a6c61)
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
7title: The Qualcomm PMIC VBUS output regulator driver
8
9maintainers:
10  - Wesley Cheng <quic_wcheng@quicinc.com>
11
12description: |
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
17allOf:
18  - $ref: regulator.yaml#
19
20properties:
21  compatible:
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,pm7250b-vbus-reg
30              - qcom,pmi632-vbus-reg
31          - const: qcom,pm8150b-vbus-reg
32
33  reg:
34    maxItems: 1
35    description: VBUS output base address
36
37required:
38  - compatible
39  - reg
40  - regulator-min-microamp
41  - regulator-max-microamp
42
43unevaluatedProperties: false
44
45examples:
46  - |
47     pmic {
48        #address-cells = <1>;
49        #size-cells = <0>;
50
51        usb-vbus-regulator@1100 {
52            compatible = "qcom,pm8150b-vbus-reg";
53            reg = <0x1100>;
54            regulator-min-microamp = <500000>;
55            regulator-max-microamp = <3000000>;
56        };
57     };
58...
59