1Mediatek MT6397 Regulator Driver
2
3Required properties:
4- compatible: "mediatek,mt6397-regulator"
5- mt6397regulator: List of regulators provided by this controller. It is named
6  according to its regulator type, buck_<name> and ldo_<name>.
7  The definition for each of these nodes is defined using the standard binding
8  for regulators at Documentation/devicetree/bindings/regulator/regulator.txt.
9
10The valid names for regulators are::
11BUCK:
12  buck_vpca15, buck_vpca7, buck_vsramca15, buck_vsramca7, buck_vcore, buck_vgpu,
13  buck_vdrm, buck_vio18
14LDO:
15  ldo_vtcxo, ldo_va28, ldo_vcama, ldo_vio28, ldo_vusb, ldo_vmc, ldo_vmch,
16  ldo_vemc3v3, ldo_vgp1, ldo_vgp2, ldo_vgp3, ldo_vgp4, ldo_vgp5, ldo_vgp6,
17  ldo_vibr
18
19Example:
20	pmic {
21		compatible = "mediatek,mt6397";
22
23		mt6397regulator: mt6397regulator {
24			compatible = "mediatek,mt6397-regulator";
25
26			mt6397_vpca15_reg: buck_vpca15 {
27				regulator-compatible = "buck_vpca15";
28				regulator-name = "vpca15";
29				regulator-min-microvolt = < 850000>;
30				regulator-max-microvolt = <1350000>;
31				regulator-ramp-delay = <12500>;
32				regulator-enable-ramp-delay = <200>;
33			};
34
35			mt6397_vpca7_reg: buck_vpca7 {
36				regulator-compatible = "buck_vpca7";
37				regulator-name = "vpca7";
38				regulator-min-microvolt = < 850000>;
39				regulator-max-microvolt = <1350000>;
40				regulator-ramp-delay = <12500>;
41				regulator-enable-ramp-delay = <115>;
42			};
43
44			mt6397_vsramca15_reg: buck_vsramca15 {
45				regulator-compatible = "buck_vsramca15";
46				regulator-name = "vsramca15";
47				regulator-min-microvolt = < 850000>;
48				regulator-max-microvolt = <1350000>;
49				regulator-ramp-delay = <12500>;
50				regulator-enable-ramp-delay = <115>;
51
52			};
53
54			mt6397_vsramca7_reg: buck_vsramca7 {
55				regulator-compatible = "buck_vsramca7";
56				regulator-name = "vsramca7";
57				regulator-min-microvolt = < 850000>;
58				regulator-max-microvolt = <1350000>;
59				regulator-ramp-delay = <12500>;
60				regulator-enable-ramp-delay = <115>;
61
62			};
63
64			mt6397_vcore_reg: buck_vcore {
65				regulator-compatible = "buck_vcore";
66				regulator-name = "vcore";
67				regulator-min-microvolt = < 850000>;
68				regulator-max-microvolt = <1350000>;
69				regulator-ramp-delay = <12500>;
70				regulator-enable-ramp-delay = <115>;
71			};
72
73			mt6397_vgpu_reg: buck_vgpu {
74				regulator-compatible = "buck_vgpu";
75				regulator-name = "vgpu";
76				regulator-min-microvolt = < 700000>;
77				regulator-max-microvolt = <1350000>;
78				regulator-ramp-delay = <12500>;
79				regulator-enable-ramp-delay = <115>;
80			};
81
82			mt6397_vdrm_reg: buck_vdrm {
83				regulator-compatible = "buck_vdrm";
84				regulator-name = "vdrm";
85				regulator-min-microvolt = < 800000>;
86				regulator-max-microvolt = <1400000>;
87				regulator-ramp-delay = <12500>;
88				regulator-enable-ramp-delay = <500>;
89			};
90
91			mt6397_vio18_reg: buck_vio18 {
92				regulator-compatible = "buck_vio18";
93				regulator-name = "vio18";
94				regulator-min-microvolt = <1500000>;
95				regulator-max-microvolt = <2120000>;
96				regulator-ramp-delay = <12500>;
97				regulator-enable-ramp-delay = <500>;
98			};
99
100			mt6397_vtcxo_reg: ldo_vtcxo {
101				regulator-compatible = "ldo_vtcxo";
102				regulator-name = "vtcxo";
103				regulator-min-microvolt = <2800000>;
104				regulator-max-microvolt = <2800000>;
105				regulator-enable-ramp-delay = <90>;
106			};
107
108			mt6397_va28_reg: ldo_va28 {
109				regulator-compatible = "ldo_va28";
110				regulator-name = "va28";
111				/* fixed output 2.8 V */
112				regulator-enable-ramp-delay = <218>;
113			};
114
115			mt6397_vcama_reg: ldo_vcama {
116				regulator-compatible = "ldo_vcama";
117				regulator-name = "vcama";
118				regulator-min-microvolt = <1500000>;
119				regulator-max-microvolt = <2800000>;
120				regulator-enable-ramp-delay = <218>;
121			};
122
123			mt6397_vio28_reg: ldo_vio28 {
124				regulator-compatible = "ldo_vio28";
125				regulator-name = "vio28";
126				/* fixed output 2.8 V */
127				regulator-enable-ramp-delay = <240>;
128			};
129
130			mt6397_usb_reg: ldo_vusb {
131				regulator-compatible = "ldo_vusb";
132				regulator-name = "vusb";
133				/* fixed output 3.3 V */
134				regulator-enable-ramp-delay = <218>;
135			};
136
137			mt6397_vmc_reg: ldo_vmc {
138				regulator-compatible = "ldo_vmc";
139				regulator-name = "vmc";
140				regulator-min-microvolt = <1800000>;
141				regulator-max-microvolt = <3300000>;
142				regulator-enable-ramp-delay = <218>;
143			};
144
145			mt6397_vmch_reg: ldo_vmch {
146				regulator-compatible = "ldo_vmch";
147				regulator-name = "vmch";
148				regulator-min-microvolt = <3000000>;
149				regulator-max-microvolt = <3300000>;
150				regulator-enable-ramp-delay = <218>;
151			};
152
153			mt6397_vemc_3v3_reg: ldo_vemc3v3 {
154				regulator-compatible = "ldo_vemc3v3";
155				regulator-name = "vemc_3v3";
156				regulator-min-microvolt = <3000000>;
157				regulator-max-microvolt = <3300000>;
158				regulator-enable-ramp-delay = <218>;
159			};
160
161			mt6397_vgp1_reg: ldo_vgp1 {
162				regulator-compatible = "ldo_vgp1";
163				regulator-name = "vcamd";
164				regulator-min-microvolt = <1220000>;
165				regulator-max-microvolt = <3300000>;
166				regulator-enable-ramp-delay = <240>;
167			};
168
169			mt6397_vgp2_reg: ldo_vgp2 {
170				egulator-compatible = "ldo_vgp2";
171				regulator-name = "vcamio";
172				regulator-min-microvolt = <1000000>;
173				regulator-max-microvolt = <3300000>;
174				regulator-enable-ramp-delay = <218>;
175			};
176
177			mt6397_vgp3_reg: ldo_vgp3 {
178				regulator-compatible = "ldo_vgp3";
179				regulator-name = "vcamaf";
180				regulator-min-microvolt = <1200000>;
181				regulator-max-microvolt = <3300000>;
182				regulator-enable-ramp-delay = <218>;
183			};
184
185			mt6397_vgp4_reg: ldo_vgp4 {
186				regulator-compatible = "ldo_vgp4";
187				regulator-name = "vgp4";
188				regulator-min-microvolt = <1200000>;
189				regulator-max-microvolt = <3300000>;
190				regulator-enable-ramp-delay = <218>;
191			};
192
193			mt6397_vgp5_reg: ldo_vgp5 {
194				regulator-compatible = "ldo_vgp5";
195				regulator-name = "vgp5";
196				regulator-min-microvolt = <1200000>;
197				regulator-max-microvolt = <3000000>;
198				regulator-enable-ramp-delay = <218>;
199			};
200
201			mt6397_vgp6_reg: ldo_vgp6 {
202				regulator-compatible = "ldo_vgp6";
203				regulator-name = "vgp6";
204				regulator-min-microvolt = <1200000>;
205				regulator-max-microvolt = <3300000>;
206				regulator-enable-ramp-delay = <218>;
207			};
208
209			mt6397_vibr_reg: ldo_vibr {
210				regulator-compatible = "ldo_vibr";
211				regulator-name = "vibr";
212				regulator-min-microvolt = <1200000>;
213				regulator-max-microvolt = <3300000>;
214				regulator-enable-ramp-delay = <218>;
215			};
216		};
217	};
218