1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/mediatek,mt6332-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MT6332 Regulator from MediaTek Integrated
8
9maintainers:
10  - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
11
12description: |
13  The MT6332 Companion PMIC provides 6 BUCK and 4 LDO (Low Dropout)
14  regulators and nodes are named according to the regulator type:
15  buck-<name> and ldo-<name>.
16  MT6332 regulators node should be sub node of the MT6397 MFD node.
17
18patternProperties:
19  "^buck-v(dram|dvfs2|pa|rf18a|rf18b|sbst)$":
20    type: object
21    $ref: regulator.yaml#
22
23    properties:
24      regulator-name:
25        pattern: "^v(dram|dvfs2|pa|rf18a|rf18b|sbst)$"
26
27    unevaluatedProperties: false
28
29  "^ldo-v(bif28|dig18|sram|usb33)$":
30    type: object
31    $ref: regulator.yaml#
32
33    properties:
34      regulator-name:
35        pattern: "^v(bif28|dig18|sram|usb33)$"
36
37    unevaluatedProperties: false
38
39additionalProperties: false
40
41examples:
42  - |
43    pmic {
44      regulators {
45        mt6332_vdram_reg: buck-vdram {
46          regulator-name = "vdram";
47          regulator-min-microvolt = <700000>;
48          regulator-max-microvolt = <1493750>;
49          regulator-ramp-delay = <12500>;
50          regulator-allowed-modes = <0 1>;
51          regulator-always-on;
52        };
53        mt6332_vdvfs2_reg: buck-vdvfs2 {
54          regulator-name = "vdvfs2";
55          regulator-min-microvolt = <700000>;
56          regulator-max-microvolt = <1312500>;
57          regulator-ramp-delay = <12500>;
58          regulator-enable-ramp-delay = <1>;
59          regulator-allowed-modes = <0 1>;
60        };
61        mt6332_vpa_reg: buck-vpa {
62          regulator-name = "vpa";
63          regulator-min-microvolt = <500000>;
64          regulator-max-microvolt = <3400000>;
65        };
66        mt6332_vrf18a_reg: buck-vrf18a {
67          regulator-name = "vrf18a";
68          regulator-min-microvolt = <1050000>;
69          regulator-max-microvolt = <2240625>;
70          regulator-allowed-modes = <0 1>;
71        };
72        mt6332_vrf18b_reg: buck-vrf18b {
73          regulator-name = "vrf18b";
74          regulator-min-microvolt = <1050000>;
75          regulator-max-microvolt = <2240625>;
76          regulator-allowed-modes = <0 1>;
77        };
78        mt6332_vsbst_reg: buck-vsbst {
79          regulator-name = "vsbst";
80          regulator-min-microvolt = <3500000>;
81          regulator-max-microvolt = <7468750>;
82        };
83        mt6332_vauxb32_reg: ldo-vauxb32 {
84          regulator-name = "vauxb32";
85          regulator-min-microvolt = <2800000>;
86          regulator-max-microvolt = <3200000>;
87        };
88        mt6332_vbif28_reg: ldo-vbif28 {
89          regulator-name = "vbif28";
90          regulator-min-microvolt = <2800000>;
91          regulator-max-microvolt = <2800000>;
92        };
93        mt6332_vdig18_reg: ldo-vdig18 {
94          regulator-name = "vdig18";
95          regulator-min-microvolt = <1200000>;
96          regulator-max-microvolt = <1800000>;
97          regulator-always-on;
98        };
99        mt6332_vsram_reg: ldo-vsram {
100          regulator-name = "vauxa32";
101          regulator-min-microvolt = <700000>;
102          regulator-max-microvolt = <1493750>;
103          regulator-always-on;
104        };
105        mt6332_vusb33_reg: ldo-vusb33 {
106          regulator-name = "vusb33";
107          regulator-min-microvolt = <3300000>;
108          regulator-max-microvolt = <3300000>;
109        };
110      };
111    };
112...
113