xref: /linux/Documentation/devicetree/bindings/regulator/mps,mp5416.yaml (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/mps,mp5416.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Monolithic Power System MP5416 PMIC
8
9maintainers:
10  - Saravanan Sekar <sravanhome@gmail.com>
11
12properties:
13  $nodename:
14    pattern: "^pmic@[0-9a-f]{1,2}$"
15  compatible:
16    enum:
17      - mps,mp5416
18
19  reg:
20    maxItems: 1
21
22  regulators:
23    type: object
24    description: |
25      list of regulators provided by this controller, must be named
26      after their hardware counterparts BUCK[1-4] and LDO[1-4]
27
28    patternProperties:
29      "^buck[1-4]$":
30        $ref: "regulator.yaml#"
31        type: object
32
33      "^ldo[1-4]$":
34        $ref: "regulator.yaml#"
35        type: object
36
37    additionalProperties: false
38
39required:
40  - compatible
41  - reg
42  - regulators
43
44additionalProperties: false
45
46examples:
47  - |
48    i2c {
49        #address-cells = <1>;
50        #size-cells = <0>;
51
52        pmic@69 {
53          compatible = "mps,mp5416";
54          reg = <0x69>;
55
56          regulators {
57
58            buck1 {
59             regulator-name = "buck1";
60             regulator-min-microvolt = <600000>;
61             regulator-max-microvolt = <2187500>;
62             regulator-min-microamp  = <3800000>;
63             regulator-max-microamp  = <6800000>;
64             regulator-boot-on;
65            };
66
67            ldo2 {
68             regulator-name = "ldo2";
69             regulator-min-microvolt = <800000>;
70             regulator-max-microvolt = <3975000>;
71            };
72         };
73       };
74     };
75...
76