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    unevaluatedProperties: false
31
32  "^ldo[123567]$":
33    $ref: regulator.yaml#
34    unevaluatedProperties: false
35
36required:
37  - compatible
38
39additionalProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/interrupt-controller/irq.h>
44    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
45    regulator {
46      compatible = "mediatek,mt6360-regulator";
47      LDO_VIN3-supply = <&BUCK2>;
48      buck1 {
49        regulator-name = "mt6360,buck1";
50        regulator-min-microvolt = <300000>;
51        regulator-max-microvolt = <1300000>;
52        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
53             MT6360_OPMODE_LP
54             MT6360_OPMODE_ULP>;
55      };
56      BUCK2: 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-name = "mt6360,ldo6";
66        regulator-min-microvolt = <500000>;
67        regulator-max-microvolt = <2100000>;
68        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
69             MT6360_OPMODE_LP>;
70      };
71      ldo7 {
72        regulator-name = "mt6360,ldo7";
73        regulator-min-microvolt = <500000>;
74        regulator-max-microvolt = <2100000>;
75        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
76             MT6360_OPMODE_LP>;
77      };
78      ldo1 {
79        regulator-name = "mt6360,ldo1";
80        regulator-min-microvolt = <1200000>;
81        regulator-max-microvolt = <3600000>;
82        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
83             MT6360_OPMODE_LP>;
84      };
85      ldo2 {
86        regulator-name = "mt6360,ldo2";
87        regulator-min-microvolt = <1200000>;
88        regulator-max-microvolt = <3600000>;
89        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
90             MT6360_OPMODE_LP>;
91      };
92      ldo3 {
93        regulator-name = "mt6360,ldo3";
94        regulator-min-microvolt = <1200000>;
95        regulator-max-microvolt = <3600000>;
96        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
97             MT6360_OPMODE_LP>;
98      };
99      ldo5 {
100        regulator-name = "mt6360,ldo5";
101        regulator-min-microvolt = <2700000>;
102        regulator-max-microvolt = <3600000>;
103        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
104             MT6360_OPMODE_LP>;
105      };
106    };
107...
108