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 pm8226, s1, s2, s3, s4, s5, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10,
28  l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25,
29  l26, l27, l28, lvs1
30
31  For pm8841, s1, s2, s3, s4, s5, s6, s7, s8
32
33  For pm8916, s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
34  l12, l13, l14, l15, l16, l17, l18
35
36  For pm8941, s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
37  l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, lvs1, lvs2,
38  lvs3, 5vs1, 5vs2
39
40  For pm8950 and pm8953, s1, s2, s3, s4, s5, s6, s7, l1, l2, l3, l4, l5, l6,
41  l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22,
42  l23
43
44  For pm8994, 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, l28, l29, l30, l31, l32, lvs1, lvs2
47
48  For pm8998, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, l1, l2,
49  l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19,
50  l20, l21, l22, l23, l24, l25, l26, l27, l28, lvs1, lvs2
51
52  For pm660, s1, s2, s3, s4, s5, s6, l1, l2, l3, l5, l6, l7, l8, l9, l10, l22,
53  l12, l13, l14, l15, l16, l17, l18, l19
54
55  For pm660l s1, s2, s3, s5, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, bob
56
57  For pma8084, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, l1, l2, l3,
58  l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19,
59  l20, l21, l22, l23, l24, l25, l26, l27, lvs1, lvs2, lvs3, lvs4, 5vs1
60
61  For pmi8994, s1, s2, s3, boost-bypass
62
63  For pmi8998, bob
64
65  For pms405, s1, s2, s3, s4, s5, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
66  l12, l13
67
68  For pm2250, s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
69  l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22
70
71maintainers:
72  - Kathiravan T <kathirav@codeaurora.org>
73
74properties:
75  compatible:
76    enum:
77      - qcom,rpm-mp5496-regulators
78      - qcom,rpm-pm8226-regulators
79      - qcom,rpm-pm8841-regulators
80      - qcom,rpm-pm8916-regulators
81      - qcom,rpm-pm8941-regulators
82      - qcom,rpm-pm8950-regulators
83      - qcom,rpm-pm8953-regulators
84      - qcom,rpm-pm8994-regulators
85      - qcom,rpm-pm8998-regulators
86      - qcom,rpm-pm660-regulators
87      - qcom,rpm-pm660l-regulators
88      - qcom,rpm-pma8084-regulators
89      - qcom,rpm-pmi8994-regulators
90      - qcom,rpm-pmi8998-regulators
91      - qcom,rpm-pms405-regulators
92      - qcom,rpm-pm2250-regulators
93
94patternProperties:
95  ".*-supply$":
96    description: Input supply phandle(s) for this node
97
98  "^((s|l|lvs|5vs)[0-9]*)|(boost-bypass)|(bob)$":
99    description: List of regulators and its properties
100    $ref: regulator.yaml#
101
102additionalProperties: false
103
104required:
105  - compatible
106
107examples:
108  - |
109    pm8941-regulators {
110        compatible = "qcom,rpm-pm8941-regulators";
111        vdd_l13_l20_l23_l24-supply = <&pm8941_boost>;
112
113        pm8941_s3: s3 {
114            regulator-min-microvolt = <1800000>;
115            regulator-max-microvolt = <1800000>;
116        };
117
118        pm8941_boost: s4 {
119            regulator-min-microvolt = <5000000>;
120            regulator-max-microvolt = <5000000>;
121        };
122
123        pm8941_l20: l20 {
124            regulator-min-microvolt = <2950000>;
125            regulator-max-microvolt = <2950000>;
126        };
127    };
128...
129