xref: /linux/Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/mt6360-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MT6360 Regulator from MediaTek Integrated
8
9maintainers:
10  - Gene Chen <gene_chen@richtek.com>
11
12description: |
13  list of regulators provided by this controller, must be named
14  after their hardware counterparts buck1/2 or ldo1/2/3/5/6/7
15
16properties:
17  compatible:
18    const: mediatek,mt6360-regulator
19
20  LDO_VIN1-supply:
21    description: Input supply phandle(s) for LDO1/2/3
22  LDO_VIN2-supply:
23    description: Input supply phandle(s) for LDO5
24  LDO_VIN3-supply:
25    description: Input supply phandle(s) for LDO6/7
26
27patternProperties:
28  "^buck[12]$":
29    $ref: "regulator.yaml#"
30
31  "^ldo[123567]$":
32    $ref: "regulator.yaml#"
33
34required:
35  - compatible
36
37additionalProperties: false
38
39examples:
40  - |
41    #include <dt-bindings/interrupt-controller/irq.h>
42    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
43    regulator {
44      compatible = "mediatek,mt6360-regulator";
45      LDO_VIN3-supply = <&BUCK2>;
46      buck1 {
47        regulator-compatible = "BUCK1";
48        regulator-name = "mt6360,buck1";
49        regulator-min-microvolt = <300000>;
50        regulator-max-microvolt = <1300000>;
51        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
52             MT6360_OPMODE_LP
53             MT6360_OPMODE_ULP>;
54      };
55      BUCK2: buck2 {
56        regulator-compatible = "BUCK2";
57        regulator-name = "mt6360,buck2";
58        regulator-min-microvolt = <300000>;
59        regulator-max-microvolt = <1300000>;
60        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
61             MT6360_OPMODE_LP
62             MT6360_OPMODE_ULP>;
63      };
64      ldo6 {
65        regulator-compatible = "LDO6";
66        regulator-name = "mt6360,ldo6";
67        regulator-min-microvolt = <500000>;
68        regulator-max-microvolt = <2100000>;
69        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
70             MT6360_OPMODE_LP>;
71      };
72      ldo7 {
73        regulator-compatible = "LDO7";
74        regulator-name = "mt6360,ldo7";
75        regulator-min-microvolt = <500000>;
76        regulator-max-microvolt = <2100000>;
77        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
78             MT6360_OPMODE_LP>;
79      };
80      ldo1 {
81        regulator-compatible = "LDO1";
82        regulator-name = "mt6360,ldo1";
83        regulator-min-microvolt = <1200000>;
84        regulator-max-microvolt = <3600000>;
85        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
86             MT6360_OPMODE_LP>;
87      };
88        ldo2 {
89        regulator-compatible = "LDO2";
90        regulator-name = "mt6360,ldo2";
91        regulator-min-microvolt = <1200000>;
92        regulator-max-microvolt = <3600000>;
93        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
94             MT6360_OPMODE_LP>;
95      };
96      ldo3 {
97        regulator-compatible = "LDO3";
98        regulator-name = "mt6360,ldo3";
99        regulator-min-microvolt = <1200000>;
100        regulator-max-microvolt = <3600000>;
101        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
102             MT6360_OPMODE_LP>;
103      };
104      ldo5 {
105        regulator-compatible = "LDO5";
106        regulator-name = "mt6360,ldo5";
107        regulator-min-microvolt = <2700000>;
108        regulator-max-microvolt = <3600000>;
109        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
110             MT6360_OPMODE_LP>;
111      };
112    };
113...
114