xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/qcom,smd-rpm-regulator.yaml (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/qcom,smd-rpm-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: QCOM SMD RPM REGULATOR
8
9description:
10  The Qualcomm RPM over SMD regulator is modelled as a subdevice of the RPM.
11  Because SMD is used as the communication transport mechanism, the RPM
12  resides as a subnode of the SMD.  As such, the SMD-RPM regulator requires
13  that the SMD and RPM nodes be present.
14
15  Please refer to Documentation/devicetree/bindings/soc/qcom/qcom,smd.txt for
16  information pertaining to the SMD node.
17
18  Please refer to Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml
19  for information regarding the RPM node.
20
21  The regulator node houses sub-nodes for each regulator within the device.
22  Each sub-node is identified using the node's name, with valid values listed
23  for each of the pmics below.
24
25  For mp5496, s2
26
27  For pm8841, s1, s2, s3, s4, s5, s6, s7, s8
28
29  For pm8916, s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
30  l12, l13, l14, l15, l16, l17, l18
31
32  For pm8941, s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
33  l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, lvs1, lvs2,
34  lvs3, 5vs1, 5vs2
35
36  For pm8994, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, l1, l2, l3,
37  l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19,
38  l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, lvs1, lvs2
39
40  For pm8998, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, l1, l2,
41  l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19,
42  l20, l21, l22, l23, l24, l25, l26, l27, l28, lvs1, lvs2
43
44  For pma8084, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, l1, l2, l3,
45  l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19,
46  l20, l21, l22, l23, l24, l25, l26, l27, lvs1, lvs2, lvs3, lvs4, 5vs1
47
48  For pmi8994, s1, s2, s3, boost-bypass
49
50  For pmi8998, bob
51
52  For pms405, s1, s2, s3, s4, s5, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
53  l12, l13
54
55maintainers:
56  - Kathiravan T <kathirav@codeaurora.org>
57
58properties:
59  compatible:
60    enum:
61      - qcom,rpm-mp5496-regulators
62      - qcom,rpm-pm8841-regulators
63      - qcom,rpm-pm8916-regulators
64      - qcom,rpm-pm8941-regulators
65      - qcom,rpm-pm8950-regulators
66      - qcom,rpm-pm8994-regulators
67      - qcom,rpm-pm8998-regulators
68      - qcom,rpm-pma8084-regulators
69      - qcom,rpm-pmi8994-regulators
70      - qcom,rpm-pmi8998-regulators
71      - qcom,rpm-pms405-regulators
72
73patternProperties:
74  ".*-supply$":
75    description: Input supply phandle(s) for this node
76
77  "^((s|l|lvs|5vs)[0-9]*)|(boost-bypass)|(bob)$":
78    description: List of regulators and its properties
79    $ref: regulator.yaml#
80
81additionalProperties: false
82
83required:
84  - compatible
85
86examples:
87  - |
88    pm8941-regulators {
89        compatible = "qcom,rpm-pm8941-regulators";
90        vdd_l13_l20_l23_l24-supply = <&pm8941_boost>;
91
92        pm8941_s3: s3 {
93            regulator-min-microvolt = <1800000>;
94            regulator-max-microvolt = <1800000>;
95        };
96
97        pm8941_boost: s4 {
98            regulator-min-microvolt = <5000000>;
99            regulator-max-microvolt = <5000000>;
100        };
101
102        pm8941_l20: l20 {
103            regulator-min-microvolt = <2950000>;
104            regulator-max-microvolt = <2950000>;
105        };
106    };
107...
108