1MediaTek MT6358 Regulator
2
3All voltage regulators provided by the MT6358 PMIC are described as the
4subnodes of the MT6358 regulators node. Each regulator is named according
5to its regulator type, buck_<name> and ldo_<name>. The definition for each
6of these nodes is defined using the standard binding for regulators at
7Documentation/devicetree/bindings/regulator/regulator.txt.
8
9The valid names for regulators are::
10BUCK:
11  buck_vdram1, buck_vcore, buck_vpa, buck_vproc11, buck_vproc12, buck_vgpu,
12  buck_vs2, buck_vmodem, buck_vs1
13LDO:
14  ldo_vdram2, ldo_vsim1, ldo_vibr, ldo_vrf12, ldo_vio18, ldo_vusb, ldo_vcamio,
15  ldo_vcamd, ldo_vcn18, ldo_vfe28, ldo_vsram_proc11, ldo_vcn28, ldo_vsram_others,
16  ldo_vsram_gpu, ldo_vxo22, ldo_vefuse, ldo_vaux18, ldo_vmch, ldo_vbif28,
17  ldo_vsram_proc12, ldo_vcama1, ldo_vemc, ldo_vio28, ldo_va12, ldo_vrf18,
18  ldo_vcn33, ldo_vcama2, ldo_vmc, ldo_vldo28, ldo_vaud28, ldo_vsim2
19
20Example:
21
22	pmic {
23		compatible = "mediatek,mt6358";
24
25		mt6358regulator: mt6358regulator {
26			compatible = "mediatek,mt6358-regulator";
27
28			mt6358_vdram1_reg: buck_vdram1 {
29				regulator-compatible = "buck_vdram1";
30				regulator-name = "vdram1";
31				regulator-min-microvolt = <500000>;
32				regulator-max-microvolt = <2087500>;
33				regulator-ramp-delay = <12500>;
34				regulator-enable-ramp-delay = <0>;
35				regulator-always-on;
36			};
37
38			mt6358_vcore_reg: buck_vcore {
39				regulator-name = "vcore";
40				regulator-min-microvolt = <500000>;
41				regulator-max-microvolt = <1293750>;
42				regulator-ramp-delay = <6250>;
43				regulator-enable-ramp-delay = <200>;
44				regulator-always-on;
45			};
46
47			mt6358_vpa_reg: buck_vpa {
48				regulator-name = "vpa";
49				regulator-min-microvolt = <500000>;
50				regulator-max-microvolt = <3650000>;
51				regulator-ramp-delay = <50000>;
52				regulator-enable-ramp-delay = <250>;
53			};
54
55			mt6358_vproc11_reg: buck_vproc11 {
56				regulator-name = "vproc11";
57				regulator-min-microvolt = <500000>;
58				regulator-max-microvolt = <1293750>;
59				regulator-ramp-delay = <6250>;
60				regulator-enable-ramp-delay = <200>;
61				regulator-always-on;
62			};
63
64			mt6358_vproc12_reg: buck_vproc12 {
65				regulator-name = "vproc12";
66				regulator-min-microvolt = <500000>;
67				regulator-max-microvolt = <1293750>;
68				regulator-ramp-delay = <6250>;
69				regulator-enable-ramp-delay = <200>;
70				regulator-always-on;
71			};
72
73			mt6358_vgpu_reg: buck_vgpu {
74				regulator-name = "vgpu";
75				regulator-min-microvolt = <500000>;
76				regulator-max-microvolt = <1293750>;
77				regulator-ramp-delay = <6250>;
78				regulator-enable-ramp-delay = <200>;
79			};
80
81			mt6358_vs2_reg: buck_vs2 {
82				regulator-name = "vs2";
83				regulator-min-microvolt = <500000>;
84				regulator-max-microvolt = <2087500>;
85				regulator-ramp-delay = <12500>;
86				regulator-enable-ramp-delay = <0>;
87				regulator-always-on;
88			};
89
90			mt6358_vmodem_reg: buck_vmodem {
91				regulator-name = "vmodem";
92				regulator-min-microvolt = <500000>;
93				regulator-max-microvolt = <1293750>;
94				regulator-ramp-delay = <6250>;
95				regulator-enable-ramp-delay = <900>;
96				regulator-always-on;
97			};
98
99			mt6358_vs1_reg: buck_vs1 {
100				regulator-name = "vs1";
101				regulator-min-microvolt = <1000000>;
102				regulator-max-microvolt = <2587500>;
103				regulator-ramp-delay = <12500>;
104				regulator-enable-ramp-delay = <0>;
105				regulator-always-on;
106			};
107
108			mt6358_vdram2_reg: ldo_vdram2 {
109				regulator-name = "vdram2";
110				regulator-min-microvolt = <600000>;
111				regulator-max-microvolt = <1800000>;
112				regulator-enable-ramp-delay = <3300>;
113			};
114
115			mt6358_vsim1_reg: ldo_vsim1 {
116				regulator-name = "vsim1";
117				regulator-min-microvolt = <1700000>;
118				regulator-max-microvolt = <3100000>;
119				regulator-enable-ramp-delay = <540>;
120			};
121
122			mt6358_vibr_reg: ldo_vibr {
123				regulator-name = "vibr";
124				regulator-min-microvolt = <1200000>;
125				regulator-max-microvolt = <3300000>;
126				regulator-enable-ramp-delay = <60>;
127			};
128
129			mt6358_vrf12_reg: ldo_vrf12 {
130				compatible = "regulator-fixed";
131				regulator-name = "vrf12";
132				regulator-min-microvolt = <1200000>;
133				regulator-max-microvolt = <1200000>;
134				regulator-enable-ramp-delay = <120>;
135			};
136
137			mt6358_vio18_reg: ldo_vio18 {
138				compatible = "regulator-fixed";
139				regulator-name = "vio18";
140				regulator-min-microvolt = <1800000>;
141				regulator-max-microvolt = <1800000>;
142				regulator-enable-ramp-delay = <2700>;
143				regulator-always-on;
144			};
145
146			mt6358_vusb_reg: ldo_vusb {
147				regulator-name = "vusb";
148				regulator-min-microvolt = <3000000>;
149				regulator-max-microvolt = <3100000>;
150				regulator-enable-ramp-delay = <270>;
151				regulator-always-on;
152			};
153
154			mt6358_vcamio_reg: ldo_vcamio {
155				compatible = "regulator-fixed";
156				regulator-name = "vcamio";
157				regulator-min-microvolt = <1800000>;
158				regulator-max-microvolt = <1800000>;
159				regulator-enable-ramp-delay = <270>;
160			};
161
162			mt6358_vcamd_reg: ldo_vcamd {
163				regulator-name = "vcamd";
164				regulator-min-microvolt = <900000>;
165				regulator-max-microvolt = <1800000>;
166				regulator-enable-ramp-delay = <270>;
167			};
168
169			mt6358_vcn18_reg: ldo_vcn18 {
170				compatible = "regulator-fixed";
171				regulator-name = "vcn18";
172				regulator-min-microvolt = <1800000>;
173				regulator-max-microvolt = <1800000>;
174				regulator-enable-ramp-delay = <270>;
175			};
176
177			mt6358_vfe28_reg: ldo_vfe28 {
178				compatible = "regulator-fixed";
179				regulator-name = "vfe28";
180				regulator-min-microvolt = <2800000>;
181				regulator-max-microvolt = <2800000>;
182				regulator-enable-ramp-delay = <270>;
183			};
184
185			mt6358_vsram_proc11_reg: ldo_vsram_proc11 {
186				regulator-name = "vsram_proc11";
187				regulator-min-microvolt = <500000>;
188				regulator-max-microvolt = <1293750>;
189				regulator-ramp-delay = <6250>;
190				regulator-enable-ramp-delay = <240>;
191				regulator-always-on;
192			};
193
194			mt6358_vcn28_reg: ldo_vcn28 {
195				compatible = "regulator-fixed";
196				regulator-name = "vcn28";
197				regulator-min-microvolt = <2800000>;
198				regulator-max-microvolt = <2800000>;
199				regulator-enable-ramp-delay = <270>;
200			};
201
202			mt6358_vsram_others_reg: ldo_vsram_others {
203				regulator-name = "vsram_others";
204				regulator-min-microvolt = <500000>;
205				regulator-max-microvolt = <1293750>;
206				regulator-ramp-delay = <6250>;
207				regulator-enable-ramp-delay = <240>;
208				regulator-always-on;
209			};
210
211			mt6358_vsram_gpu_reg: ldo_vsram_gpu {
212				regulator-name = "vsram_gpu";
213				regulator-min-microvolt = <500000>;
214				regulator-max-microvolt = <1293750>;
215				regulator-ramp-delay = <6250>;
216				regulator-enable-ramp-delay = <240>;
217			};
218
219			mt6358_vxo22_reg: ldo_vxo22 {
220				compatible = "regulator-fixed";
221				regulator-name = "vxo22";
222				regulator-min-microvolt = <2200000>;
223				regulator-max-microvolt = <2200000>;
224				regulator-enable-ramp-delay = <120>;
225				regulator-always-on;
226			};
227
228			mt6358_vefuse_reg: ldo_vefuse {
229				regulator-name = "vefuse";
230				regulator-min-microvolt = <1700000>;
231				regulator-max-microvolt = <1900000>;
232				regulator-enable-ramp-delay = <270>;
233			};
234
235			mt6358_vaux18_reg: ldo_vaux18 {
236				compatible = "regulator-fixed";
237				regulator-name = "vaux18";
238				regulator-min-microvolt = <1800000>;
239				regulator-max-microvolt = <1800000>;
240				regulator-enable-ramp-delay = <270>;
241			};
242
243			mt6358_vmch_reg: ldo_vmch {
244				regulator-name = "vmch";
245				regulator-min-microvolt = <2900000>;
246				regulator-max-microvolt = <3300000>;
247				regulator-enable-ramp-delay = <60>;
248			};
249
250			mt6358_vbif28_reg: ldo_vbif28 {
251				compatible = "regulator-fixed";
252				regulator-name = "vbif28";
253				regulator-min-microvolt = <2800000>;
254				regulator-max-microvolt = <2800000>;
255				regulator-enable-ramp-delay = <270>;
256			};
257
258			mt6358_vsram_proc12_reg: ldo_vsram_proc12 {
259				regulator-name = "vsram_proc12";
260				regulator-min-microvolt = <500000>;
261				regulator-max-microvolt = <1293750>;
262				regulator-ramp-delay = <6250>;
263				regulator-enable-ramp-delay = <240>;
264				regulator-always-on;
265			};
266
267			mt6358_vcama1_reg: ldo_vcama1 {
268				regulator-name = "vcama1";
269				regulator-min-microvolt = <1800000>;
270				regulator-max-microvolt = <3000000>;
271				regulator-enable-ramp-delay = <270>;
272			};
273
274			mt6358_vemc_reg: ldo_vemc {
275				regulator-name = "vemc";
276				regulator-min-microvolt = <2900000>;
277				regulator-max-microvolt = <3300000>;
278				regulator-enable-ramp-delay = <60>;
279				regulator-always-on;
280			};
281
282			mt6358_vio28_reg: ldo_vio28 {
283				compatible = "regulator-fixed";
284				regulator-name = "vio28";
285				regulator-min-microvolt = <2800000>;
286				regulator-max-microvolt = <2800000>;
287				regulator-enable-ramp-delay = <270>;
288			};
289
290			mt6358_va12_reg: ldo_va12 {
291				compatible = "regulator-fixed";
292				regulator-name = "va12";
293				regulator-min-microvolt = <1200000>;
294				regulator-max-microvolt = <1200000>;
295				regulator-enable-ramp-delay = <270>;
296				regulator-always-on;
297			};
298
299			mt6358_vrf18_reg: ldo_vrf18 {
300				compatible = "regulator-fixed";
301				regulator-name = "vrf18";
302				regulator-min-microvolt = <1800000>;
303				regulator-max-microvolt = <1800000>;
304				regulator-enable-ramp-delay = <120>;
305			};
306
307			mt6358_vcn33_reg: ldo_vcn33 {
308				regulator-name = "vcn33";
309				regulator-min-microvolt = <3300000>;
310				regulator-max-microvolt = <3500000>;
311				regulator-enable-ramp-delay = <270>;
312			};
313
314			mt6358_vcama2_reg: ldo_vcama2 {
315				regulator-name = "vcama2";
316				regulator-min-microvolt = <1800000>;
317				regulator-max-microvolt = <3000000>;
318				regulator-enable-ramp-delay = <270>;
319			};
320
321			mt6358_vmc_reg: ldo_vmc {
322				regulator-name = "vmc";
323				regulator-min-microvolt = <1800000>;
324				regulator-max-microvolt = <3300000>;
325				regulator-enable-ramp-delay = <60>;
326			};
327
328			mt6358_vldo28_reg: ldo_vldo28 {
329				regulator-name = "vldo28";
330				regulator-min-microvolt = <2800000>;
331				regulator-max-microvolt = <3000000>;
332				regulator-enable-ramp-delay = <270>;
333			};
334
335			mt6358_vaud28_reg: ldo_vaud28 {
336				compatible = "regulator-fixed";
337				regulator-name = "vaud28";
338				regulator-min-microvolt = <2800000>;
339				regulator-max-microvolt = <2800000>;
340				regulator-enable-ramp-delay = <270>;
341			};
342
343			mt6358_vsim2_reg: ldo_vsim2 {
344				regulator-name = "vsim2";
345				regulator-min-microvolt = <1700000>;
346				regulator-max-microvolt = <3100000>;
347				regulator-enable-ramp-delay = <540>;
348			};
349		};
350	};
351