1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright (C) 2022 MediaTek Inc.
4 */
5
6&pwrap {
7	pmic: pmic {
8		compatible = "mediatek,mt6359";
9		interrupt-controller;
10		#interrupt-cells = <2>;
11
12		pmic_adc: adc {
13			compatible = "mediatek,mt6359-auxadc";
14			#io-channel-cells = <1>;
15		};
16
17		mt6359codec: mt6359codec {
18		};
19
20		regulators {
21			mt6359_vs1_buck_reg: buck_vs1 {
22				regulator-name = "vs1";
23				regulator-min-microvolt = <800000>;
24				regulator-max-microvolt = <2200000>;
25				regulator-enable-ramp-delay = <0>;
26				regulator-always-on;
27			};
28			mt6359_vgpu11_buck_reg: buck_vgpu11 {
29				regulator-name = "vgpu11";
30				regulator-min-microvolt = <400000>;
31				regulator-max-microvolt = <1193750>;
32				regulator-ramp-delay = <5000>;
33				regulator-enable-ramp-delay = <200>;
34				regulator-allowed-modes = <0 1 2>;
35			};
36			mt6359_vmodem_buck_reg: buck_vmodem {
37				regulator-name = "vmodem";
38				regulator-min-microvolt = <400000>;
39				regulator-max-microvolt = <1100000>;
40				regulator-ramp-delay = <10760>;
41				regulator-enable-ramp-delay = <200>;
42			};
43			mt6359_vpu_buck_reg: buck_vpu {
44				regulator-name = "vpu";
45				regulator-min-microvolt = <400000>;
46				regulator-max-microvolt = <1193750>;
47				regulator-ramp-delay = <5000>;
48				regulator-enable-ramp-delay = <200>;
49				regulator-allowed-modes = <0 1 2>;
50			};
51			mt6359_vcore_buck_reg: buck_vcore {
52				regulator-name = "vcore";
53				regulator-min-microvolt = <400000>;
54				regulator-max-microvolt = <1300000>;
55				regulator-ramp-delay = <5000>;
56				regulator-enable-ramp-delay = <200>;
57				regulator-allowed-modes = <0 1 2>;
58			};
59			mt6359_vs2_buck_reg: buck_vs2 {
60				regulator-name = "vs2";
61				regulator-min-microvolt = <800000>;
62				regulator-max-microvolt = <1600000>;
63				regulator-enable-ramp-delay = <0>;
64				regulator-always-on;
65			};
66			mt6359_vpa_buck_reg: buck_vpa {
67				regulator-name = "vpa";
68				regulator-min-microvolt = <500000>;
69				regulator-max-microvolt = <3650000>;
70				regulator-enable-ramp-delay = <300>;
71			};
72			mt6359_vproc2_buck_reg: buck_vproc2 {
73				regulator-name = "vproc2";
74				regulator-min-microvolt = <400000>;
75				regulator-max-microvolt = <1193750>;
76				regulator-ramp-delay = <7500>;
77				regulator-enable-ramp-delay = <200>;
78				regulator-allowed-modes = <0 1 2>;
79			};
80			mt6359_vproc1_buck_reg: buck_vproc1 {
81				regulator-name = "vproc1";
82				regulator-min-microvolt = <400000>;
83				regulator-max-microvolt = <1193750>;
84				regulator-ramp-delay = <7500>;
85				regulator-enable-ramp-delay = <200>;
86				regulator-allowed-modes = <0 1 2>;
87			};
88			mt6359_vcore_sshub_buck_reg: buck_vcore_sshub {
89				regulator-name = "vcore_sshub";
90				regulator-min-microvolt = <400000>;
91				regulator-max-microvolt = <1193750>;
92			};
93			mt6359_vgpu11_sshub_buck_reg: buck_vgpu11_sshub {
94				regulator-name = "vgpu11_sshub";
95				regulator-min-microvolt = <400000>;
96				regulator-max-microvolt = <1193750>;
97			};
98			mt6359_vaud18_ldo_reg: ldo_vaud18 {
99				regulator-name = "vaud18";
100				regulator-min-microvolt = <1800000>;
101				regulator-max-microvolt = <1800000>;
102				regulator-enable-ramp-delay = <240>;
103			};
104			mt6359_vsim1_ldo_reg: ldo_vsim1 {
105				regulator-name = "vsim1";
106				regulator-min-microvolt = <1700000>;
107				regulator-max-microvolt = <3100000>;
108			};
109			mt6359_vibr_ldo_reg: ldo_vibr {
110				regulator-name = "vibr";
111				regulator-min-microvolt = <1200000>;
112				regulator-max-microvolt = <3300000>;
113			};
114			mt6359_vrf12_ldo_reg: ldo_vrf12 {
115				regulator-name = "vrf12";
116				regulator-min-microvolt = <1100000>;
117				regulator-max-microvolt = <1300000>;
118			};
119			mt6359_vusb_ldo_reg: ldo_vusb {
120				regulator-name = "vusb";
121				regulator-min-microvolt = <3000000>;
122				regulator-max-microvolt = <3000000>;
123				regulator-enable-ramp-delay = <960>;
124				regulator-always-on;
125			};
126			mt6359_vsram_proc2_ldo_reg: ldo_vsram_proc2 {
127				regulator-name = "vsram_proc2";
128				regulator-min-microvolt = <500000>;
129				regulator-max-microvolt = <1293750>;
130				regulator-ramp-delay = <7500>;
131				regulator-enable-ramp-delay = <240>;
132				regulator-always-on;
133			};
134			mt6359_vio18_ldo_reg: ldo_vio18 {
135				regulator-name = "vio18";
136				regulator-min-microvolt = <1700000>;
137				regulator-max-microvolt = <1900000>;
138				regulator-enable-ramp-delay = <960>;
139				regulator-always-on;
140			};
141			mt6359_vcamio_ldo_reg: ldo_vcamio {
142				regulator-name = "vcamio";
143				regulator-min-microvolt = <1700000>;
144				regulator-max-microvolt = <1900000>;
145			};
146			mt6359_vcn18_ldo_reg: ldo_vcn18 {
147				regulator-name = "vcn18";
148				regulator-min-microvolt = <1800000>;
149				regulator-max-microvolt = <1800000>;
150				regulator-enable-ramp-delay = <240>;
151			};
152			mt6359_vfe28_ldo_reg: ldo_vfe28 {
153				regulator-name = "vfe28";
154				regulator-min-microvolt = <2800000>;
155				regulator-max-microvolt = <2800000>;
156				regulator-enable-ramp-delay = <120>;
157			};
158			mt6359_vcn13_ldo_reg: ldo_vcn13 {
159				regulator-name = "vcn13";
160				regulator-min-microvolt = <900000>;
161				regulator-max-microvolt = <1300000>;
162			};
163			mt6359_vcn33_1_bt_ldo_reg: ldo_vcn33_1_bt {
164				regulator-name = "vcn33_1_bt";
165				regulator-min-microvolt = <2800000>;
166				regulator-max-microvolt = <3500000>;
167			};
168			mt6359_vcn33_1_wifi_ldo_reg: ldo_vcn33_1_wifi {
169				regulator-name = "vcn33_1_wifi";
170				regulator-min-microvolt = <2800000>;
171				regulator-max-microvolt = <3500000>;
172			};
173			mt6359_vaux18_ldo_reg: ldo_vaux18 {
174				regulator-name = "vaux18";
175				regulator-min-microvolt = <1800000>;
176				regulator-max-microvolt = <1800000>;
177				regulator-enable-ramp-delay = <240>;
178				regulator-always-on;
179			};
180			mt6359_vsram_others_ldo_reg: ldo_vsram_others {
181				regulator-name = "vsram_others";
182				regulator-min-microvolt = <500000>;
183				regulator-max-microvolt = <1293750>;
184				regulator-ramp-delay = <5000>;
185				regulator-enable-ramp-delay = <240>;
186			};
187			mt6359_vefuse_ldo_reg: ldo_vefuse {
188				regulator-name = "vefuse";
189				regulator-min-microvolt = <1700000>;
190				regulator-max-microvolt = <2000000>;
191			};
192			mt6359_vxo22_ldo_reg: ldo_vxo22 {
193				regulator-name = "vxo22";
194				regulator-min-microvolt = <1800000>;
195				regulator-max-microvolt = <2200000>;
196				regulator-always-on;
197			};
198			mt6359_vrfck_ldo_reg: ldo_vrfck {
199				regulator-name = "vrfck";
200				regulator-min-microvolt = <1500000>;
201				regulator-max-microvolt = <1700000>;
202			};
203			mt6359_vrfck_1_ldo_reg: ldo_vrfck_1 {
204				regulator-name = "vrfck";
205				regulator-min-microvolt = <1240000>;
206				regulator-max-microvolt = <1600000>;
207			};
208			mt6359_vbif28_ldo_reg: ldo_vbif28 {
209				regulator-name = "vbif28";
210				regulator-min-microvolt = <2800000>;
211				regulator-max-microvolt = <2800000>;
212				regulator-enable-ramp-delay = <240>;
213			};
214			mt6359_vio28_ldo_reg: ldo_vio28 {
215				regulator-name = "vio28";
216				regulator-min-microvolt = <2800000>;
217				regulator-max-microvolt = <3300000>;
218				regulator-always-on;
219			};
220			mt6359_vemc_ldo_reg: ldo_vemc {
221				regulator-name = "vemc";
222				regulator-min-microvolt = <2900000>;
223				regulator-max-microvolt = <3300000>;
224			};
225			mt6359_vemc_1_ldo_reg: ldo_vemc_1 {
226				regulator-name = "vemc";
227				regulator-min-microvolt = <2500000>;
228				regulator-max-microvolt = <3300000>;
229			};
230			mt6359_vcn33_2_bt_ldo_reg: ldo_vcn33_2_bt {
231				regulator-name = "vcn33_2_bt";
232				regulator-min-microvolt = <2800000>;
233				regulator-max-microvolt = <3500000>;
234			};
235			mt6359_vcn33_2_wifi_ldo_reg: ldo_vcn33_2_wifi {
236				regulator-name = "vcn33_2_wifi";
237				regulator-min-microvolt = <2800000>;
238				regulator-max-microvolt = <3500000>;
239			};
240			mt6359_va12_ldo_reg: ldo_va12 {
241				regulator-name = "va12";
242				regulator-min-microvolt = <1200000>;
243				regulator-max-microvolt = <1300000>;
244				regulator-always-on;
245			};
246			mt6359_va09_ldo_reg: ldo_va09 {
247				regulator-name = "va09";
248				regulator-min-microvolt = <800000>;
249				regulator-max-microvolt = <1200000>;
250			};
251			mt6359_vrf18_ldo_reg: ldo_vrf18 {
252				regulator-name = "vrf18";
253				regulator-min-microvolt = <1700000>;
254				regulator-max-microvolt = <1810000>;
255			};
256			mt6359_vsram_md_ldo_reg: ldo_vsram_md {
257				regulator-name = "vsram_md";
258				regulator-min-microvolt = <500000>;
259				regulator-max-microvolt = <1293750>;
260				regulator-ramp-delay = <10760>;
261				regulator-enable-ramp-delay = <240>;
262			};
263			mt6359_vufs_ldo_reg: ldo_vufs {
264				regulator-name = "vufs";
265				regulator-min-microvolt = <1700000>;
266				regulator-max-microvolt = <1900000>;
267			};
268			mt6359_vm18_ldo_reg: ldo_vm18 {
269				regulator-name = "vm18";
270				regulator-min-microvolt = <1700000>;
271				regulator-max-microvolt = <1900000>;
272				regulator-always-on;
273			};
274			mt6359_vbbck_ldo_reg: ldo_vbbck {
275				regulator-name = "vbbck";
276				regulator-min-microvolt = <1100000>;
277				regulator-max-microvolt = <1200000>;
278			};
279			mt6359_vsram_proc1_ldo_reg: ldo_vsram_proc1 {
280				regulator-name = "vsram_proc1";
281				regulator-min-microvolt = <500000>;
282				regulator-max-microvolt = <1293750>;
283				regulator-ramp-delay = <7500>;
284				regulator-enable-ramp-delay = <240>;
285				regulator-always-on;
286			};
287			mt6359_vsim2_ldo_reg: ldo_vsim2 {
288				regulator-name = "vsim2";
289				regulator-min-microvolt = <1700000>;
290				regulator-max-microvolt = <3100000>;
291			};
292			mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub {
293				regulator-name = "vsram_others_sshub";
294				regulator-min-microvolt = <500000>;
295				regulator-max-microvolt = <1293750>;
296			};
297		};
298
299		mt6359rtc: mt6359rtc {
300			compatible = "mediatek,mt6358-rtc";
301		};
302	};
303};
304