xref: /freebsd-src/sys/contrib/device-tree/Bindings/regulator/qcom,spmi-regulator.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2b97ee269SEmmanuel Vadot%YAML 1.2
3b97ee269SEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/qcom,spmi-regulator.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6b97ee269SEmmanuel Vadot
7b97ee269SEmmanuel Vadottitle: Qualcomm SPMI Regulators
8b97ee269SEmmanuel Vadot
9b97ee269SEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Robert Marko <robimarko@gmail.com>
11b97ee269SEmmanuel Vadot
12b97ee269SEmmanuel Vadotproperties:
13b97ee269SEmmanuel Vadot  compatible:
14b97ee269SEmmanuel Vadot    enum:
157ef62cebSEmmanuel Vadot      - qcom,pm6125-regulators
16b97ee269SEmmanuel Vadot      - qcom,pm660-regulators
17b97ee269SEmmanuel Vadot      - qcom,pm660l-regulators
18b97ee269SEmmanuel Vadot      - qcom,pm8004-regulators
19b97ee269SEmmanuel Vadot      - qcom,pm8005-regulators
2084943d6fSEmmanuel Vadot      - qcom,pm8019-regulators
21b97ee269SEmmanuel Vadot      - qcom,pm8226-regulators
22b97ee269SEmmanuel Vadot      - qcom,pm8841-regulators
2384943d6fSEmmanuel Vadot      - qcom,pm8909-regulators
24b97ee269SEmmanuel Vadot      - qcom,pm8916-regulators
25*8d13bc63SEmmanuel Vadot      - qcom,pm8937-regulators
26b97ee269SEmmanuel Vadot      - qcom,pm8941-regulators
27b97ee269SEmmanuel Vadot      - qcom,pm8950-regulators
28b97ee269SEmmanuel Vadot      - qcom,pm8994-regulators
2984943d6fSEmmanuel Vadot      - qcom,pma8084-regulators
30b97ee269SEmmanuel Vadot      - qcom,pmi8994-regulators
31b97ee269SEmmanuel Vadot      - qcom,pmp8074-regulators
32b97ee269SEmmanuel Vadot      - qcom,pms405-regulators
33b97ee269SEmmanuel Vadot
34b97ee269SEmmanuel Vadot  qcom,saw-reg:
35b97ee269SEmmanuel Vadot    description: Reference to syscon node defining the SAW registers
36b97ee269SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
37b97ee269SEmmanuel Vadot
38b97ee269SEmmanuel VadotpatternProperties:
3984943d6fSEmmanuel Vadot  "^(5vs[1-2]|(l|s)[1-9][0-9]?|lvs[1-4])$":
40b97ee269SEmmanuel Vadot    description: List of regulators and its properties
41b97ee269SEmmanuel Vadot    type: object
42b97ee269SEmmanuel Vadot    $ref: regulator.yaml#
43b97ee269SEmmanuel Vadot    unevaluatedProperties: false
44b97ee269SEmmanuel Vadot
45b97ee269SEmmanuel Vadot    properties:
46b97ee269SEmmanuel Vadot      qcom,ocp-max-retries:
47b97ee269SEmmanuel Vadot        description:
48b97ee269SEmmanuel Vadot          Maximum number of times to try toggling a voltage switch off and
49b97ee269SEmmanuel Vadot          back on as a result of consecutive over current events
50b97ee269SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
51b97ee269SEmmanuel Vadot
52b97ee269SEmmanuel Vadot      qcom,ocp-retry-delay:
53b97ee269SEmmanuel Vadot        description:
54b97ee269SEmmanuel Vadot          Time to delay in milliseconds between each voltage switch toggle
55b97ee269SEmmanuel Vadot          after an over current event takes place
56b97ee269SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
57b97ee269SEmmanuel Vadot
58b97ee269SEmmanuel Vadot      qcom,pin-ctrl-enable:
59b97ee269SEmmanuel Vadot        description:
60b97ee269SEmmanuel Vadot          Bit mask specifying which hardware pins should be used to enable the
61b97ee269SEmmanuel Vadot          regulator, if any.
62b97ee269SEmmanuel Vadot          Supported bits are
63b97ee269SEmmanuel Vadot          0 = ignore all hardware enable signals
64b97ee269SEmmanuel Vadot          BIT(0) = follow HW0_EN signal
65b97ee269SEmmanuel Vadot          BIT(1) = follow HW1_EN signal
66b97ee269SEmmanuel Vadot          BIT(2) = follow HW2_EN signal
67b97ee269SEmmanuel Vadot          BIT(3) = follow HW3_EN signal
68b97ee269SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
69b97ee269SEmmanuel Vadot        minimum: 0
70b97ee269SEmmanuel Vadot        maximum: 15
71b97ee269SEmmanuel Vadot
72b97ee269SEmmanuel Vadot      qcom,pin-ctrl-hpm:
73b97ee269SEmmanuel Vadot        description:
74b97ee269SEmmanuel Vadot          Bit mask specifying which hardware pins should be used to force the
75b97ee269SEmmanuel Vadot          regulator into high power mode, if any.
76b97ee269SEmmanuel Vadot          Supported bits are
77b97ee269SEmmanuel Vadot          0 = ignore all hardware enable signals
78b97ee269SEmmanuel Vadot          BIT(0) = follow HW0_EN signal
79b97ee269SEmmanuel Vadot          BIT(1) = follow HW1_EN signal
80b97ee269SEmmanuel Vadot          BIT(2) = follow HW2_EN signal
81b97ee269SEmmanuel Vadot          BIT(3) = follow HW3_EN signal
82b97ee269SEmmanuel Vadot          BIT(4) = follow PMIC awake state
83b97ee269SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
84b97ee269SEmmanuel Vadot        minimum: 0
85b97ee269SEmmanuel Vadot        maximum: 31
86b97ee269SEmmanuel Vadot
87b97ee269SEmmanuel Vadot      qcom,vs-soft-start-strength:
88b97ee269SEmmanuel Vadot        description:
89b97ee269SEmmanuel Vadot          This property sets the soft start strength for voltage switch type
90b97ee269SEmmanuel Vadot          regulators.
91b97ee269SEmmanuel Vadot          Supported values are
92b97ee269SEmmanuel Vadot          0 = 0.05 uA
93b97ee269SEmmanuel Vadot          1 = 0.25 uA
94b97ee269SEmmanuel Vadot          2 = 0.55 uA
95b97ee269SEmmanuel Vadot          3 = 0.75 uA
96b97ee269SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
97b97ee269SEmmanuel Vadot        minimum: 0
98b97ee269SEmmanuel Vadot        maximum: 3
99b97ee269SEmmanuel Vadot
100b97ee269SEmmanuel Vadot      qcom,saw-slave:
101b97ee269SEmmanuel Vadot        description: SAW controlled gang slave. Will not be configured.
102b97ee269SEmmanuel Vadot        type: boolean
103b97ee269SEmmanuel Vadot
104b97ee269SEmmanuel Vadot      qcom,saw-leader:
105b97ee269SEmmanuel Vadot        description:
106b97ee269SEmmanuel Vadot          SAW controlled gang leader. Will be configured as SAW regulator.
107b97ee269SEmmanuel Vadot        type: boolean
108b97ee269SEmmanuel Vadot
109b97ee269SEmmanuel Vadotrequired:
110b97ee269SEmmanuel Vadot  - compatible
111b97ee269SEmmanuel Vadot
112b97ee269SEmmanuel VadotallOf:
113b97ee269SEmmanuel Vadot  - if:
114b97ee269SEmmanuel Vadot      properties:
115b97ee269SEmmanuel Vadot        compatible:
116b97ee269SEmmanuel Vadot          contains:
117b97ee269SEmmanuel Vadot            enum:
1187ef62cebSEmmanuel Vadot              - qcom,pm6125-regulators
1197ef62cebSEmmanuel Vadot    then:
1207ef62cebSEmmanuel Vadot      properties:
1217ef62cebSEmmanuel Vadot        vdd_l1_l7_l17_l18-supply: true
1227ef62cebSEmmanuel Vadot        vdd_l2_l3_l4-supply: true
1237ef62cebSEmmanuel Vadot        vdd_l5_l15_l19_l20_l21_l22-supply: true
1247ef62cebSEmmanuel Vadot        vdd_l6_l8-supply: true
1257ef62cebSEmmanuel Vadot        vdd_l9_l11-supply: true
1267ef62cebSEmmanuel Vadot        vdd_l10_l13_l14-supply: true
1277ef62cebSEmmanuel Vadot        vdd_l12_l16-supply: true
1287ef62cebSEmmanuel Vadot        vdd_l23_l24-supply: true
1297ef62cebSEmmanuel Vadot      patternProperties:
1307ef62cebSEmmanuel Vadot        "^vdd_s[1-8]-supply$": true
1317ef62cebSEmmanuel Vadot
1327ef62cebSEmmanuel Vadot  - if:
1337ef62cebSEmmanuel Vadot      properties:
1347ef62cebSEmmanuel Vadot        compatible:
1357ef62cebSEmmanuel Vadot          contains:
1367ef62cebSEmmanuel Vadot            enum:
137b97ee269SEmmanuel Vadot              - qcom,pm660-regulators
138b97ee269SEmmanuel Vadot    then:
139b97ee269SEmmanuel Vadot      properties:
140b97ee269SEmmanuel Vadot        vdd_l15_l16_l17_l18_l19-supply: true
141b97ee269SEmmanuel Vadot        vdd_l1_l6_l7-supply: true
142b97ee269SEmmanuel Vadot        vdd_l2_l3-supply: true
143b97ee269SEmmanuel Vadot        vdd_l5-supply: true
144b97ee269SEmmanuel Vadot        vdd_l8_l9_l10_l11_l12_l13_l14-supply: true
145b97ee269SEmmanuel Vadot      patternProperties:
146b97ee269SEmmanuel Vadot        "^vdd_s[1-6]-supply$": true
1477ef62cebSEmmanuel Vadot
148b97ee269SEmmanuel Vadot  - if:
149b97ee269SEmmanuel Vadot      properties:
150b97ee269SEmmanuel Vadot        compatible:
151b97ee269SEmmanuel Vadot          contains:
152b97ee269SEmmanuel Vadot            enum:
153b97ee269SEmmanuel Vadot              - qcom,pm660l-regulators
154b97ee269SEmmanuel Vadot    then:
155b97ee269SEmmanuel Vadot      properties:
156b97ee269SEmmanuel Vadot        vdd_l1_l9_l10-supply: true
157b97ee269SEmmanuel Vadot        vdd_l2-supply: true
158b97ee269SEmmanuel Vadot        vdd_l3_l5_l7_l8-supply: true
159b97ee269SEmmanuel Vadot        vdd_l4_l6-supply: true
160b97ee269SEmmanuel Vadot      patternProperties:
161b97ee269SEmmanuel Vadot        "^vdd_s[1-5]-supply$": true
1627ef62cebSEmmanuel Vadot
163b97ee269SEmmanuel Vadot  - if:
164b97ee269SEmmanuel Vadot      properties:
165b97ee269SEmmanuel Vadot        compatible:
166b97ee269SEmmanuel Vadot          contains:
167b97ee269SEmmanuel Vadot            enum:
168b97ee269SEmmanuel Vadot              - qcom,pm8004-regulators
169b97ee269SEmmanuel Vadot    then:
170b97ee269SEmmanuel Vadot      patternProperties:
171b97ee269SEmmanuel Vadot        "^vdd_s[25]-supply$": true
1727ef62cebSEmmanuel Vadot
173b97ee269SEmmanuel Vadot  - if:
174b97ee269SEmmanuel Vadot      properties:
175b97ee269SEmmanuel Vadot        compatible:
176b97ee269SEmmanuel Vadot          contains:
177b97ee269SEmmanuel Vadot            enum:
178b97ee269SEmmanuel Vadot              - qcom,pm8005-regulators
179b97ee269SEmmanuel Vadot    then:
180b97ee269SEmmanuel Vadot      patternProperties:
181b97ee269SEmmanuel Vadot        "^vdd_s[1-4]-supply$": true
1827ef62cebSEmmanuel Vadot
183b97ee269SEmmanuel Vadot  - if:
184b97ee269SEmmanuel Vadot      properties:
185b97ee269SEmmanuel Vadot        compatible:
186b97ee269SEmmanuel Vadot          contains:
187b97ee269SEmmanuel Vadot            enum:
18884943d6fSEmmanuel Vadot              - qcom,pm8019-regulators
18984943d6fSEmmanuel Vadot    then:
19084943d6fSEmmanuel Vadot      properties:
19184943d6fSEmmanuel Vadot        vdd_l1-supply: true
19284943d6fSEmmanuel Vadot        vdd_l2_l3-supply: true
19384943d6fSEmmanuel Vadot        vdd_l4_l5_l6-supply: true
19484943d6fSEmmanuel Vadot        vdd_l7_l8_l11-supply: true
19584943d6fSEmmanuel Vadot        vdd_l9-supply: true
19684943d6fSEmmanuel Vadot        vdd_l10-supply: true
19784943d6fSEmmanuel Vadot        vdd_l12-supply: true
19884943d6fSEmmanuel Vadot        vdd_l13_l14-supply: true
19984943d6fSEmmanuel Vadot      patternProperties:
20084943d6fSEmmanuel Vadot        "^vdd_s[1-4]-supply$": true
20184943d6fSEmmanuel Vadot
20284943d6fSEmmanuel Vadot  - if:
20384943d6fSEmmanuel Vadot      properties:
20484943d6fSEmmanuel Vadot        compatible:
20584943d6fSEmmanuel Vadot          contains:
20684943d6fSEmmanuel Vadot            enum:
207b97ee269SEmmanuel Vadot              - qcom,pm8226-regulators
208b97ee269SEmmanuel Vadot    then:
209b97ee269SEmmanuel Vadot      properties:
210b97ee269SEmmanuel Vadot        vdd_l10_l11_l13-supply: true
211b97ee269SEmmanuel Vadot        vdd_l12_l14-supply: true
212b97ee269SEmmanuel Vadot        vdd_l15_l16_l17_l18-supply: true
213b97ee269SEmmanuel Vadot        vdd_l19_l20_l21_l22_l23_l28-supply: true
214b97ee269SEmmanuel Vadot        vdd_l1_l2_l4_l5-supply: true
215b97ee269SEmmanuel Vadot        vdd_l25-supply: true
216b97ee269SEmmanuel Vadot        vdd_l3_l24_l26-supply: true
217b97ee269SEmmanuel Vadot        vdd_l6_l7_l8_l9_l27-supply: true
218b97ee269SEmmanuel Vadot        vdd_lvs1-supply: true
219b97ee269SEmmanuel Vadot      patternProperties:
220b97ee269SEmmanuel Vadot        "^vdd_s[1-5]-supply$": true
2217ef62cebSEmmanuel Vadot
222b97ee269SEmmanuel Vadot  - if:
223b97ee269SEmmanuel Vadot      properties:
224b97ee269SEmmanuel Vadot        compatible:
225b97ee269SEmmanuel Vadot          contains:
226b97ee269SEmmanuel Vadot            enum:
227b97ee269SEmmanuel Vadot              - qcom,pm8841-regulators
228b97ee269SEmmanuel Vadot    then:
229b97ee269SEmmanuel Vadot      patternProperties:
230b97ee269SEmmanuel Vadot        "^vdd_s[1-8]-supply$": true
2317ef62cebSEmmanuel Vadot
232b97ee269SEmmanuel Vadot  - if:
233b97ee269SEmmanuel Vadot      properties:
234b97ee269SEmmanuel Vadot        compatible:
235b97ee269SEmmanuel Vadot          contains:
236b97ee269SEmmanuel Vadot            enum:
23784943d6fSEmmanuel Vadot              - qcom,pm8909-regulators
23884943d6fSEmmanuel Vadot    then:
23984943d6fSEmmanuel Vadot      properties:
24084943d6fSEmmanuel Vadot        vdd_s1-supply: true
24184943d6fSEmmanuel Vadot        vdd_s2-supply: true
24284943d6fSEmmanuel Vadot        vdd_l1-supply: true
24384943d6fSEmmanuel Vadot        vdd_l2_l5-supply: true
24484943d6fSEmmanuel Vadot        vdd_l3_l6_l10-supply: true
24584943d6fSEmmanuel Vadot        vdd_l4_l7-supply: true
24684943d6fSEmmanuel Vadot        vdd_l8_l11_l15_l18-supply: true
24784943d6fSEmmanuel Vadot        vdd_l9_l12_l14_l17-supply: true
24884943d6fSEmmanuel Vadot        vdd_l13-supply: true
24984943d6fSEmmanuel Vadot
25084943d6fSEmmanuel Vadot  - if:
25184943d6fSEmmanuel Vadot      properties:
25284943d6fSEmmanuel Vadot        compatible:
25384943d6fSEmmanuel Vadot          contains:
25484943d6fSEmmanuel Vadot            enum:
255b97ee269SEmmanuel Vadot              - qcom,pm8916-regulators
256b97ee269SEmmanuel Vadot    then:
257b97ee269SEmmanuel Vadot      properties:
258b97ee269SEmmanuel Vadot        vdd_l1_l3-supply: true
259b97ee269SEmmanuel Vadot        vdd_l4_l5_l6-supply: true
260b97ee269SEmmanuel Vadot        vdd_l8_l11_l14_l15_l16-supply: true
261b97ee269SEmmanuel Vadot        vdd_l9_l10_l12_l13_l17_l18-supply: true
262b97ee269SEmmanuel Vadot      patternProperties:
263b97ee269SEmmanuel Vadot        "^vdd_l[27]-supply$": true
264b97ee269SEmmanuel Vadot        "^vdd_s[1-4]-supply$": true
2657ef62cebSEmmanuel Vadot
266b97ee269SEmmanuel Vadot  - if:
267b97ee269SEmmanuel Vadot      properties:
268b97ee269SEmmanuel Vadot        compatible:
269b97ee269SEmmanuel Vadot          contains:
270b97ee269SEmmanuel Vadot            enum:
271b97ee269SEmmanuel Vadot              - qcom,pm8941-regulators
272b97ee269SEmmanuel Vadot    then:
273b97ee269SEmmanuel Vadot      properties:
274b97ee269SEmmanuel Vadot        interrupts:
275b97ee269SEmmanuel Vadot          items:
276b97ee269SEmmanuel Vadot            - description: Over-current protection interrupt for 5V S1
277b97ee269SEmmanuel Vadot            - description: Over-current protection interrupt for 5V S2
278b97ee269SEmmanuel Vadot        interrupt-names:
279b97ee269SEmmanuel Vadot          items:
280b97ee269SEmmanuel Vadot            - const: ocp-5vs1
281b97ee269SEmmanuel Vadot            - const: ocp-5vs2
282b97ee269SEmmanuel Vadot        vdd_l13_l20_l23_l24-supply: true
283b97ee269SEmmanuel Vadot        vdd_l1_l3-supply: true
284b97ee269SEmmanuel Vadot        vdd_l21-supply: true
285b97ee269SEmmanuel Vadot        vdd_l2_lvs_1_2_3-supply: true
286b97ee269SEmmanuel Vadot        vdd_l4_l11-supply: true
287b97ee269SEmmanuel Vadot        vdd_l5_l7-supply: true
288b97ee269SEmmanuel Vadot        vdd_l6_l12_l14_l15-supply: true
289b97ee269SEmmanuel Vadot        vdd_l8_l16_l18_19-supply: true
290b97ee269SEmmanuel Vadot        vdd_l9_l10_l17_l22-supply: true
291b97ee269SEmmanuel Vadot        vin_5vs-supply: true
292b97ee269SEmmanuel Vadot      patternProperties:
293b97ee269SEmmanuel Vadot        "^vdd_s[1-3]-supply$": true
2947ef62cebSEmmanuel Vadot
295b97ee269SEmmanuel Vadot  - if:
296b97ee269SEmmanuel Vadot      properties:
297b97ee269SEmmanuel Vadot        compatible:
298b97ee269SEmmanuel Vadot          contains:
299b97ee269SEmmanuel Vadot            enum:
300*8d13bc63SEmmanuel Vadot              - qcom,pm8937-regulators
301*8d13bc63SEmmanuel Vadot    then:
302*8d13bc63SEmmanuel Vadot      properties:
303*8d13bc63SEmmanuel Vadot        vdd_l1_l19-supply: true
304*8d13bc63SEmmanuel Vadot        vdd_l20_l21-supply: true
305*8d13bc63SEmmanuel Vadot        vdd_l2_l23-supply: true
306*8d13bc63SEmmanuel Vadot        vdd_l3-supply: true
307*8d13bc63SEmmanuel Vadot        vdd_l4_l5_l6_l7_l16-supply: true
308*8d13bc63SEmmanuel Vadot        vdd_l8_l11_l12_l17_l22-supply: true
309*8d13bc63SEmmanuel Vadot        vdd_l9_l10_l13_l14_l15_l18-supply: true
310*8d13bc63SEmmanuel Vadot      patternProperties:
311*8d13bc63SEmmanuel Vadot        "^vdd_s[1-6]-supply$": true
312*8d13bc63SEmmanuel Vadot
313*8d13bc63SEmmanuel Vadot  - if:
314*8d13bc63SEmmanuel Vadot      properties:
315*8d13bc63SEmmanuel Vadot        compatible:
316*8d13bc63SEmmanuel Vadot          contains:
317*8d13bc63SEmmanuel Vadot            enum:
318b97ee269SEmmanuel Vadot              - qcom,pm8950-regulators
319b97ee269SEmmanuel Vadot    then:
320b97ee269SEmmanuel Vadot      properties:
321b97ee269SEmmanuel Vadot        vdd_l1_l19-supply: true
322b97ee269SEmmanuel Vadot        vdd_l20-supply: true
323b97ee269SEmmanuel Vadot        vdd_l21-supply: true
324b97ee269SEmmanuel Vadot        vdd_l2_l23-supply: true
325b97ee269SEmmanuel Vadot        vdd_l3-supply: true
326b97ee269SEmmanuel Vadot        vdd_l4_l5_l6_l7_l16-supply: true
327b97ee269SEmmanuel Vadot        vdd_l8_l11_l12_l17_l22-supply: true
328b97ee269SEmmanuel Vadot        vdd_l9_l10_l13_l14_l15_l18-supply: true
329b97ee269SEmmanuel Vadot      patternProperties:
330b97ee269SEmmanuel Vadot        "^vdd_s[1-6]-supply$": true
3317ef62cebSEmmanuel Vadot
332b97ee269SEmmanuel Vadot  - if:
333b97ee269SEmmanuel Vadot      properties:
334b97ee269SEmmanuel Vadot        compatible:
335b97ee269SEmmanuel Vadot          contains:
336b97ee269SEmmanuel Vadot            enum:
337b97ee269SEmmanuel Vadot              - qcom,pm8994-regulators
338b97ee269SEmmanuel Vadot    then:
339b97ee269SEmmanuel Vadot      properties:
340b97ee269SEmmanuel Vadot        vdd_l1-supply: true
341b97ee269SEmmanuel Vadot        vdd_l13_l19_l23_l24-supply: true
342b97ee269SEmmanuel Vadot        vdd_l14_l15-supply: true
343b97ee269SEmmanuel Vadot        vdd_l17_l29-supply: true
344b97ee269SEmmanuel Vadot        vdd_l20_l21-supply: true
345b97ee269SEmmanuel Vadot        vdd_l25-supply: true
346b97ee269SEmmanuel Vadot        vdd_l2_l26_l28-supply: true
347b97ee269SEmmanuel Vadot        vdd_l3_l11-supply: true
348b97ee269SEmmanuel Vadot        vdd_l4_l27_l31-supply: true
349b97ee269SEmmanuel Vadot        vdd_l5_l7-supply: true
350b97ee269SEmmanuel Vadot        vdd_l6_l12_l32-supply: true
351b97ee269SEmmanuel Vadot        vdd_l8_l16_l30-supply: true
352b97ee269SEmmanuel Vadot        vdd_l9_l10_l18_l22-supply: true
353b97ee269SEmmanuel Vadot        vdd_lvs_1_2-supply: true
354b97ee269SEmmanuel Vadot      patternProperties:
355b97ee269SEmmanuel Vadot        "^vdd_s[1-9][0-2]?-supply$": true
3567ef62cebSEmmanuel Vadot
357b97ee269SEmmanuel Vadot  - if:
358b97ee269SEmmanuel Vadot      properties:
359b97ee269SEmmanuel Vadot        compatible:
360b97ee269SEmmanuel Vadot          contains:
361b97ee269SEmmanuel Vadot            enum:
36284943d6fSEmmanuel Vadot              - qcom,pma8084-regulators
36384943d6fSEmmanuel Vadot    then:
36484943d6fSEmmanuel Vadot      properties:
36584943d6fSEmmanuel Vadot        vdd_l1_l11-supply: true
36684943d6fSEmmanuel Vadot        vdd_l2_l3_l4_l27-supply: true
36784943d6fSEmmanuel Vadot        vdd_l5_l7-supply: true
36884943d6fSEmmanuel Vadot        vdd_l6_l12_l14_l15_l26-supply: true
36984943d6fSEmmanuel Vadot        vdd_l8-supply: true
37084943d6fSEmmanuel Vadot        vdd_l9_l10_l13_l20_l23_l24-supply: true
37184943d6fSEmmanuel Vadot        vdd_l16_l25-supply: true
37284943d6fSEmmanuel Vadot        vdd_l17-supply: true
37384943d6fSEmmanuel Vadot        vdd_l18-supply: true
37484943d6fSEmmanuel Vadot        vdd_l19-supply: true
37584943d6fSEmmanuel Vadot        vdd_l21-supply: true
37684943d6fSEmmanuel Vadot        vdd_l22-supply: true
37784943d6fSEmmanuel Vadot        vdd_lvs1_2-supply: true
37884943d6fSEmmanuel Vadot        vdd_lvs3_4-supply: true
37984943d6fSEmmanuel Vadot        vdd_5vs1-supply: true
38084943d6fSEmmanuel Vadot      patternProperties:
38184943d6fSEmmanuel Vadot        "^vdd_s([1-9]|1[0-2])-supply$": true
38284943d6fSEmmanuel Vadot
38384943d6fSEmmanuel Vadot  - if:
38484943d6fSEmmanuel Vadot      properties:
38584943d6fSEmmanuel Vadot        compatible:
38684943d6fSEmmanuel Vadot          contains:
38784943d6fSEmmanuel Vadot            enum:
388b97ee269SEmmanuel Vadot              - qcom,pmi8994-regulators
389b97ee269SEmmanuel Vadot    then:
390b97ee269SEmmanuel Vadot      properties:
391b97ee269SEmmanuel Vadot        vdd_l1-supply: true
392b97ee269SEmmanuel Vadot      patternProperties:
393b97ee269SEmmanuel Vadot        "^vdd_s[1-3]-supply$": true
3947ef62cebSEmmanuel Vadot
395b97ee269SEmmanuel Vadot  - if:
396b97ee269SEmmanuel Vadot      properties:
397b97ee269SEmmanuel Vadot        compatible:
398b97ee269SEmmanuel Vadot          contains:
399b97ee269SEmmanuel Vadot            enum:
400b97ee269SEmmanuel Vadot              - qcom,pmp8074-regulators
401b97ee269SEmmanuel Vadot    then:
402b97ee269SEmmanuel Vadot      properties:
403b97ee269SEmmanuel Vadot        vdd_l10_l11_l12_l13-supply: true
404b97ee269SEmmanuel Vadot        vdd_l1_l2-supply: true
405b97ee269SEmmanuel Vadot        vdd_l3_l8-supply: true
406b97ee269SEmmanuel Vadot        vdd_l5_l6_l15-supply: true
407b97ee269SEmmanuel Vadot      patternProperties:
408b97ee269SEmmanuel Vadot        "^vdd_l[479]-supply$": true
409b97ee269SEmmanuel Vadot        "^vdd_s[1-5]-supply$": true
4107ef62cebSEmmanuel Vadot
411b97ee269SEmmanuel Vadot  - if:
412b97ee269SEmmanuel Vadot      properties:
413b97ee269SEmmanuel Vadot        compatible:
414b97ee269SEmmanuel Vadot          contains:
415b97ee269SEmmanuel Vadot            enum:
416b97ee269SEmmanuel Vadot              - qcom,pms405-regulators
417b97ee269SEmmanuel Vadot    then:
418b97ee269SEmmanuel Vadot      properties:
419b97ee269SEmmanuel Vadot        vdd_s3-supply: true
420b97ee269SEmmanuel Vadot
421b97ee269SEmmanuel VadotunevaluatedProperties: false
422b97ee269SEmmanuel Vadot
423b97ee269SEmmanuel Vadotexamples:
424b97ee269SEmmanuel Vadot  - |
425b97ee269SEmmanuel Vadot    regulators {
426b97ee269SEmmanuel Vadot      compatible = "qcom,pm8941-regulators";
427b97ee269SEmmanuel Vadot      vdd_l1_l3-supply = <&s1>;
428b97ee269SEmmanuel Vadot
429b97ee269SEmmanuel Vadot      s1: s1 {
430b97ee269SEmmanuel Vadot        regulator-min-microvolt = <1300000>;
431b97ee269SEmmanuel Vadot        regulator-max-microvolt = <1400000>;
432b97ee269SEmmanuel Vadot      };
433b97ee269SEmmanuel Vadot
434b97ee269SEmmanuel Vadot      l1: l1 {
435b97ee269SEmmanuel Vadot        regulator-min-microvolt = <1225000>;
436b97ee269SEmmanuel Vadot        regulator-max-microvolt = <1300000>;
437b97ee269SEmmanuel Vadot      };
438b97ee269SEmmanuel Vadot    };
439b97ee269SEmmanuel Vadot...
440