xref: /linux/Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml (revision 3a2c4d55e32ad65efebdb6de44eef3bfa08bb49d)
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  BUCK1_VIN-supply:
21    description: Input supply phandle(s) for BUCK1
22  BUCK2_VIN-supply:
23    description: Input supply phandle(s) for BUCK2
24  LDO_VIN1-supply:
25    description: Input supply phandle(s) for LDO1/2/3
26  LDO_VIN2-supply:
27    description: Input supply phandle(s) for LDO5
28  LDO_VIN3-supply:
29    description: Input supply phandle(s) for LDO6/7
30
31patternProperties:
32  "^buck[12]$":
33    $ref: regulator.yaml#
34    unevaluatedProperties: false
35
36  "^ldo[123567]$":
37    $ref: regulator.yaml#
38    unevaluatedProperties: false
39
40required:
41  - compatible
42
43additionalProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/interrupt-controller/irq.h>
48    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
49    regulator {
50      compatible = "mediatek,mt6360-regulator";
51      LDO_VIN3-supply = <&BUCK2>;
52      buck1 {
53        regulator-name = "mt6360,buck1";
54        regulator-min-microvolt = <300000>;
55        regulator-max-microvolt = <1300000>;
56        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
57             MT6360_OPMODE_LP
58             MT6360_OPMODE_ULP>;
59      };
60      BUCK2: buck2 {
61        regulator-name = "mt6360,buck2";
62        regulator-min-microvolt = <300000>;
63        regulator-max-microvolt = <1300000>;
64        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
65             MT6360_OPMODE_LP
66             MT6360_OPMODE_ULP>;
67      };
68      ldo6 {
69        regulator-name = "mt6360,ldo6";
70        regulator-min-microvolt = <500000>;
71        regulator-max-microvolt = <2100000>;
72        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
73             MT6360_OPMODE_LP>;
74      };
75      ldo7 {
76        regulator-name = "mt6360,ldo7";
77        regulator-min-microvolt = <500000>;
78        regulator-max-microvolt = <2100000>;
79        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
80             MT6360_OPMODE_LP>;
81      };
82      ldo1 {
83        regulator-name = "mt6360,ldo1";
84        regulator-min-microvolt = <1200000>;
85        regulator-max-microvolt = <3600000>;
86        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
87             MT6360_OPMODE_LP>;
88      };
89      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-name = "mt6360,ldo3";
98        regulator-min-microvolt = <1200000>;
99        regulator-max-microvolt = <3600000>;
100        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
101             MT6360_OPMODE_LP>;
102      };
103      ldo5 {
104        regulator-name = "mt6360,ldo5";
105        regulator-min-microvolt = <2700000>;
106        regulator-max-microvolt = <3600000>;
107        regulator-allowed-modes = <MT6360_OPMODE_NORMAL
108             MT6360_OPMODE_LP>;
109      };
110    };
111...
112