blob: 03e97e27d16d4abb521e5fb152d0a743d702809a [file] [log] [blame]
Tom Rini93743d22024-04-01 09:08:13 -04001// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
9#include "sc7280.dtsi"
10#include "pm7325.dtsi"
11#include "pm8350c.dtsi"
12#include "pmk8350.dtsi"
13
14/delete-node/ &ipa_fw_mem;
15/delete-node/ &rmtfs_mem;
16/delete-node/ &adsp_mem;
17/delete-node/ &cdsp_mem;
18/delete-node/ &video_mem;
19/delete-node/ &wlan_ce_mem;
20/delete-node/ &wpss_mem;
21/delete-node/ &xbl_mem;
22
23/ {
24 model = "Qualcomm Technologies, Inc. QCM6490 IDP";
25 compatible = "qcom,qcm6490-idp", "qcom,qcm6490";
26 chassis-type = "embedded";
27
28 aliases {
29 serial0 = &uart5;
30 };
31
32 chosen {
33 stdout-path = "serial0:115200n8";
34 };
35
36 reserved-memory {
37 xbl_mem: xbl@80700000 {
38 reg = <0x0 0x80700000 0x0 0x100000>;
39 no-map;
40 };
41
42 cdsp_secure_heap_mem: cdsp-secure-heap@81800000 {
43 reg = <0x0 0x81800000 0x0 0x1e00000>;
44 no-map;
45 };
46
47 camera_mem: camera@84300000 {
48 reg = <0x0 0x84300000 0x0 0x500000>;
49 no-map;
50 };
51
52 wpss_mem: wpss@84800000 {
53 reg = <0x0 0x84800000 0x0 0x1900000>;
54 no-map;
55 };
56
57 adsp_mem: adsp@86100000 {
58 reg = <0x0 0x86100000 0x0 0x2800000>;
59 no-map;
60 };
61
62 cdsp_mem: cdsp@88900000 {
63 reg = <0x0 0x88900000 0x0 0x1e00000>;
64 no-map;
65 };
66
67 video_mem: video@8a700000 {
68 reg = <0x0 0x8a700000 0x0 0x700000>;
69 no-map;
70 };
71
72 cvp_mem: cvp@8ae00000 {
73 reg = <0x0 0x8ae00000 0x0 0x500000>;
74 no-map;
75 };
76
77 ipa_fw_mem: ipa-fw@8b300000 {
78 reg = <0x0 0x8b300000 0x0 0x10000>;
79 no-map;
80 };
81
82 ipa_gsi_mem: ipa-gsi@8b310000 {
83 reg = <0x0 0x8b310000 0x0 0xa000>;
84 no-map;
85 };
86
87 gpu_microcode_mem: gpu-microcode@8b31a000 {
88 reg = <0x0 0x8b31a000 0x0 0x2000>;
89 no-map;
90 };
91
92 mpss_mem: mpss@8b800000 {
93 reg = <0x0 0x8b800000 0x0 0xf600000>;
94 no-map;
95 };
96
97 tz_stat_mem: tz-stat@c0000000 {
98 reg = <0x0 0xc0000000 0x0 0x100000>;
99 no-map;
100 };
101
102 tags_mem: tags@c0100000 {
103 reg = <0x0 0xc0100000 0x0 0x1200000>;
104 no-map;
105 };
106
107 qtee_mem: qtee@c1300000 {
108 reg = <0x0 0xc1300000 0x0 0x500000>;
109 no-map;
110 };
111
112 trusted_apps_mem: trusted_apps@c1800000 {
113 reg = <0x0 0xc1800000 0x0 0x1c00000>;
114 no-map;
115 };
116
117 debug_vm_mem: debug-vm@d0600000 {
118 reg = <0x0 0xd0600000 0x0 0x100000>;
119 no-map;
120 };
121 };
122
123 vph_pwr: vph-pwr-regulator {
124 compatible = "regulator-fixed";
125 regulator-name = "vph_pwr";
126 regulator-min-microvolt = <2500000>;
127 regulator-max-microvolt = <4350000>;
128 };
129};
130
131&apps_rsc {
132 regulators-0 {
133 compatible = "qcom,pm7325-rpmh-regulators";
134 qcom,pmic-id = "b";
135
136 vdd-s1-supply = <&vph_pwr>;
137 vdd-s2-supply = <&vph_pwr>;
138 vdd-s3-supply = <&vph_pwr>;
139 vdd-s4-supply = <&vph_pwr>;
140 vdd-s5-supply = <&vph_pwr>;
141 vdd-s6-supply = <&vph_pwr>;
142 vdd-s7-supply = <&vph_pwr>;
143 vdd-s8-supply = <&vph_pwr>;
144 vdd-l1-l4-l12-l15-supply = <&vreg_s7b_0p972>;
145 vdd-l2-l7-supply = <&vreg_bob_3p296>;
146 vdd-l3-supply = <&vreg_s2b_0p876>;
147 vdd-l5-supply = <&vreg_s2b_0p876>;
148 vdd-l6-l9-l10-supply = <&vreg_s8b_1p272>;
149 vdd-l8-supply = <&vreg_s7b_0p972>;
150 vdd-l11-l17-l18-l19-supply = <&vreg_s1b_1p872>;
151 vdd-l13-supply = <&vreg_s7b_0p972>;
152 vdd-l14-l16-supply = <&vreg_s8b_1p272>;
153
154 vreg_s1b_1p872: smps1 {
155 regulator-min-microvolt = <1840000>;
156 regulator-max-microvolt = <2040000>;
157 };
158
159 vreg_s2b_0p876: smps2 {
160 regulator-min-microvolt = <570070>;
161 regulator-max-microvolt = <1050000>;
162 };
163
164 vreg_s7b_0p972: smps7 {
165 regulator-min-microvolt = <535000>;
166 regulator-max-microvolt = <1120000>;
167 };
168
169 vreg_s8b_1p272: smps8 {
170 regulator-min-microvolt = <1200000>;
171 regulator-max-microvolt = <1500000>;
172 regulator-initial-mode = <RPMH_REGULATOR_MODE_RET>;
173 };
174
175 vreg_l1b_0p912: ldo1 {
176 regulator-min-microvolt = <825000>;
177 regulator-max-microvolt = <925000>;
178 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
179 };
180
181 vreg_l2b_3p072: ldo2 {
182 regulator-min-microvolt = <2700000>;
183 regulator-max-microvolt = <3544000>;
184 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
185 };
186
187 vreg_l3b_0p504: ldo3 {
188 regulator-min-microvolt = <312000>;
189 regulator-max-microvolt = <910000>;
190 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
191 };
192
193 vreg_l4b_0p752: ldo4 {
194 regulator-min-microvolt = <752000>;
195 regulator-max-microvolt = <820000>;
196 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
197 };
198
199 reg_l5b_0p752: ldo5 {
200 regulator-min-microvolt = <552000>;
201 regulator-max-microvolt = <832000>;
202 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
203 };
204
205 vreg_l6b_1p2: ldo6 {
206 regulator-min-microvolt = <1140000>;
207 regulator-max-microvolt = <1260000>;
208 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
209 };
210
211 vreg_l7b_2p952: ldo7 {
212 regulator-min-microvolt = <2400000>;
213 regulator-max-microvolt = <3544000>;
214 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
215 };
216
217 vreg_l8b_0p904: ldo8 {
218 regulator-min-microvolt = <870000>;
219 regulator-max-microvolt = <970000>;
220 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
221 };
222
223 vreg_l9b_1p2: ldo9 {
224 regulator-min-microvolt = <1200000>;
225 regulator-max-microvolt = <1304000>;
226 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
227 };
228
229 vreg_l11b_1p504: ldo11 {
230 regulator-min-microvolt = <1504000>;
231 regulator-max-microvolt = <2000000>;
232 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
233 };
234
235 vreg_l12b_0p751: ldo12 {
236 regulator-min-microvolt = <751000>;
237 regulator-max-microvolt = <824000>;
238 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
239 };
240
241 vreg_l13b_0p53: ldo13 {
242 regulator-min-microvolt = <530000>;
243 regulator-max-microvolt = <824000>;
244 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
245 };
246
247 vreg_l14b_1p08: ldo14 {
248 regulator-min-microvolt = <1080000>;
249 regulator-max-microvolt = <1304000>;
250 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
251 };
252
253 vreg_l15b_0p765: ldo15 {
254 regulator-min-microvolt = <765000>;
255 regulator-max-microvolt = <1020000>;
256 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
257 };
258
259 vreg_l16b_1p1: ldo16 {
260 regulator-min-microvolt = <1100000>;
261 regulator-max-microvolt = <1300000>;
262 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
263 };
264
265 vreg_l17b_1p7: ldo17 {
266 regulator-min-microvolt = <1700000>;
267 regulator-max-microvolt = <1900000>;
268 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
269 };
270
271 vreg_l18b_1p8: ldo18 {
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <2000000>;
274 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
275 };
276
277 vreg_l19b_1p8: ldo19 {
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <2000000>;
280 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
281 regulator-allow-set-load;
282 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
283 RPMH_REGULATOR_MODE_HPM>;
284 };
285 };
286
287 regulators-1 {
288 compatible = "qcom,pm8350c-rpmh-regulators";
289 qcom,pmic-id = "c";
290
291 vdd-s1-supply = <&vph_pwr>;
292 vdd-s2-supply = <&vph_pwr>;
293 vdd-s3-supply = <&vph_pwr>;
294 vdd-s4-supply = <&vph_pwr>;
295 vdd-s5-supply = <&vph_pwr>;
296 vdd-s6-supply = <&vph_pwr>;
297 vdd-s7-supply = <&vph_pwr>;
298 vdd-s8-supply = <&vph_pwr>;
299 vdd-s9-supply = <&vph_pwr>;
300 vdd-s10-supply = <&vph_pwr>;
301 vdd-l1-l12-supply = <&vreg_s1b_1p872>;
302 vdd-l2-l8-supply = <&vreg_s1b_1p872>;
303 vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob_3p296>;
304 vdd-l6-l9-l11-supply = <&vreg_bob_3p296>;
305 vdd-l10-supply = <&vreg_s7b_0p972>;
306 vdd-bob-supply = <&vph_pwr>;
307
308 vreg_s1c_2p19: smps1 {
309 regulator-min-microvolt = <2190000>;
310 regulator-max-microvolt = <2210000>;
311 };
312
313 vreg_s2c_0p752: smps2 {
314 regulator-min-microvolt = <750000>;
315 regulator-max-microvolt = <800000>;
316 };
317
318 vreg_s5c_0p752: smps5 {
319 regulator-min-microvolt = <465000>;
320 regulator-max-microvolt = <1050000>;
321 };
322
323 vreg_s7c_0p752: smps7 {
324 regulator-min-microvolt = <465000>;
325 regulator-max-microvolt = <800000>;
326 };
327
328 vreg_s9c_1p084: smps9 {
329 regulator-min-microvolt = <1010000>;
330 regulator-max-microvolt = <1170000>;
331 };
332
333 vreg_l1c_1p8: ldo1 {
334 regulator-min-microvolt = <1800000>;
335 regulator-max-microvolt = <1980000>;
336 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
337 };
338
339 vreg_l2c_1p62: ldo2 {
340 regulator-min-microvolt = <1620000>;
341 regulator-max-microvolt = <1980000>;
342 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
343 };
344
345 vreg_l3c_2p8: ldo3 {
346 regulator-min-microvolt = <2800000>;
347 regulator-max-microvolt = <3540000>;
348 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
349 };
350
351 vreg_l4c_1p62: ldo4 {
352 regulator-min-microvolt = <1620000>;
353 regulator-max-microvolt = <3300000>;
354 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
355 };
356
357 vreg_l5c_1p62: ldo5 {
358 regulator-min-microvolt = <1620000>;
359 regulator-max-microvolt = <3300000>;
360 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
361 };
362
363 vreg_l6c_2p96: ldo6 {
364 regulator-min-microvolt = <1650000>;
365 regulator-max-microvolt = <3544000>;
366 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
367 };
368
369 vreg_l7c_3p0: ldo7 {
370 regulator-min-microvolt = <3000000>;
371 regulator-max-microvolt = <3544000>;
372 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
373 };
374
375 vreg_l8c_1p62: ldo8 {
376 regulator-min-microvolt = <1620000>;
377 regulator-max-microvolt = <2000000>;
378 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
379 };
380
381 vreg_l9c_2p96: ldo9 {
382 regulator-min-microvolt = <2700000>;
383 regulator-max-microvolt = <35440000>;
384 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
385 };
386
387 vreg_l10c_0p88: ldo10 {
388 regulator-min-microvolt = <720000>;
389 regulator-max-microvolt = <1050000>;
390 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
391 };
392
393 vreg_l11c_2p8: ldo11 {
394 regulator-min-microvolt = <2800000>;
395 regulator-max-microvolt = <3544000>;
396 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
397 };
398
399 vreg_l12c_1p65: ldo12 {
400 regulator-min-microvolt = <1650000>;
401 regulator-max-microvolt = <2000000>;
402 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
403 };
404
405 vreg_l13c_2p7: ldo13 {
406 regulator-min-microvolt = <2700000>;
407 regulator-max-microvolt = <3544000>;
408 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
409 };
410
411 vreg_bob_3p296: bob {
412 regulator-min-microvolt = <3008000>;
413 regulator-max-microvolt = <3960000>;
414 };
415 };
416};
417
418&qupv3_id_0 {
419 status = "okay";
420};
421
422&sdhc_1 {
423 non-removable;
424 no-sd;
425 no-sdio;
426
427 vmmc-supply = <&vreg_l7b_2p952>;
428 vqmmc-supply = <&vreg_l19b_1p8>;
429
430 status = "okay";
431};
432
433&tlmm {
434 gpio-reserved-ranges = <32 2>, /* ADSP */
435 <48 4>; /* NFC */
436};
437
438&uart5 {
439 compatible = "qcom,geni-debug-uart";
440 status = "okay";
441};
442
443&usb_1 {
444 status = "okay";
445};
446
447&usb_1_dwc3 {
448 dr_mode = "peripheral";
449};
450
451&usb_1_hsphy {
452 vdda-pll-supply = <&vreg_l10c_0p88>;
453 vdda33-supply = <&vreg_l2b_3p072>;
454 vdda18-supply = <&vreg_l1c_1p8>;
455
456 status = "okay";
457};
458
459&usb_1_qmpphy {
460 vdda-phy-supply = <&vreg_l6b_1p2>;
461 vdda-pll-supply = <&vreg_l1b_0p912>;
462
463 status = "okay";
464};
465
466&wifi {
467 memory-region = <&wlan_fw_mem>;
468};