blob: d3dbae4062763e0a32db9ebe5dd567838543327a [file] [log] [blame]
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301/*
2 * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include "skeleton64.dtsi"
15#include <dt-bindings/gpio/gpio.h>
Kiran Gunda0954f392017-10-16 16:24:55 +053016#include <dt-bindings/spmi/spmi.h>
Kiran Gundaaf6a0b62017-10-23 16:03:10 +053017#include <dt-bindings/interrupt-controller/arm-gic.h>
Kiran Gunda0954f392017-10-16 16:24:55 +053018#include <dt-bindings/regulator/qcom,rpm-smd-regulator.h>
Shefali Jain44e24ad2017-11-23 12:27:33 +053019#include <dt-bindings/clock/msm-clocks-8953.h>
Srinivas Ramana3cac2782017-09-13 16:31:17 +053020
21/ {
22 model = "Qualcomm Technologies, Inc. MSM 8953";
23 compatible = "qcom,msm8953";
24 qcom,msm-id = <293 0x0>;
25 interrupt-parent = <&intc>;
26
27 chosen {
28 bootargs = "sched_enable_hmp=1 sched_enable_power_aware=1";
29 };
30
31 reserved-memory {
32 #address-cells = <2>;
33 #size-cells = <2>;
34 ranges;
35
36 other_ext_mem: other_ext_region@0 {
37 compatible = "removed-dma-pool";
38 no-map;
39 reg = <0x0 0x85b00000 0x0 0xd00000>;
40 };
41
42 modem_mem: modem_region@0 {
43 compatible = "removed-dma-pool";
44 no-map-fixup;
45 reg = <0x0 0x86c00000 0x0 0x6a00000>;
46 };
47
48 adsp_fw_mem: adsp_fw_region@0 {
49 compatible = "removed-dma-pool";
50 no-map;
51 reg = <0x0 0x8d600000 0x0 0x1100000>;
52 };
53
54 wcnss_fw_mem: wcnss_fw_region@0 {
55 compatible = "removed-dma-pool";
56 no-map;
57 reg = <0x0 0x8e700000 0x0 0x700000>;
58 };
59
60 venus_mem: venus_region@0 {
61 compatible = "shared-dma-pool";
62 reusable;
63 alloc-ranges = <0x0 0x80000000 0x0 0x10000000>;
64 alignment = <0 0x400000>;
65 size = <0 0x0800000>;
66 };
67
68 secure_mem: secure_region@0 {
69 compatible = "shared-dma-pool";
70 reusable;
71 alignment = <0 0x400000>;
72 size = <0 0x09800000>;
73 };
74
75 qseecom_mem: qseecom_region@0 {
76 compatible = "shared-dma-pool";
77 reusable;
78 alignment = <0 0x400000>;
79 size = <0 0x1000000>;
80 };
81
82 adsp_mem: adsp_region@0 {
83 compatible = "shared-dma-pool";
84 reusable;
85 size = <0 0x400000>;
86 };
87
88 dfps_data_mem: dfps_data_mem@90000000 {
89 reg = <0 0x90000000 0 0x1000>;
90 label = "dfps_data_mem";
91 };
92
93 cont_splash_mem: splash_region@0x90001000 {
94 reg = <0x0 0x90001000 0x0 0x13ff000>;
95 label = "cont_splash_mem";
96 };
97
98 gpu_mem: gpu_region@0 {
99 compatible = "shared-dma-pool";
100 reusable;
101 alloc-ranges = <0x0 0x80000000 0x0 0x10000000>;
102 alignment = <0 0x400000>;
103 size = <0 0x800000>;
104 };
105 };
106
107 aliases {
108 /* smdtty devices */
Arun Kumar Neelakantam36151aa2017-11-02 21:34:33 +0530109 smd1 = &smdtty_apps_fm;
110 smd2 = &smdtty_apps_riva_bt_acl;
111 smd3 = &smdtty_apps_riva_bt_cmd;
112 smd4 = &smdtty_mbalbridge;
113 smd5 = &smdtty_apps_riva_ant_cmd;
114 smd6 = &smdtty_apps_riva_ant_data;
115 smd7 = &smdtty_data1;
116 smd8 = &smdtty_data4;
117 smd11 = &smdtty_data11;
118 smd21 = &smdtty_data21;
119 smd36 = &smdtty_loopback;
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530120 sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
121 sdhc2 = &sdhc_2; /* SDC2 for SD card */
122 };
123
124 soc: soc { };
125
126};
127
128#include "msm8953-pinctrl.dtsi"
129#include "msm8953-cpu.dtsi"
Raju P.L.S.S.S.Ne0b22c92017-11-02 13:42:27 +0530130#include "msm8953-pm.dtsi"
Odelu Kukatla1a811042017-10-29 17:26:44 +0530131#include "msm8953-bus.dtsi"
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530132
133
134&soc {
135 #address-cells = <1>;
136 #size-cells = <1>;
137 ranges = <0 0 0 0xffffffff>;
138 compatible = "simple-bus";
139
140 apc_apm: apm@b111000 {
141 compatible = "qcom,msm8953-apm";
142 reg = <0xb111000 0x1000>;
143 reg-names = "pm-apcc-glb";
144 qcom,apm-post-halt-delay = <0x2>;
145 qcom,apm-halt-clk-delay = <0x11>;
146 qcom,apm-resume-clk-delay = <0x10>;
147 qcom,apm-sel-switch-delay = <0x01>;
148 };
149
150 intc: interrupt-controller@b000000 {
151 compatible = "qcom,msm-qgic2";
152 interrupt-controller;
153 #interrupt-cells = <3>;
154 reg = <0x0b000000 0x1000>,
155 <0x0b002000 0x1000>;
156 };
157
158 qcom,msm-gladiator@b1c0000 {
159 compatible = "qcom,msm-gladiator";
160 reg = <0x0b1c0000 0x4000>;
161 reg-names = "gladiator_base";
162 interrupts = <0 22 0>;
163 };
164
165 timer {
166 compatible = "arm,armv8-timer";
167 interrupts = <1 2 0xff08>,
168 <1 3 0xff08>,
169 <1 4 0xff08>,
170 <1 1 0xff08>;
171 clock-frequency = <19200000>;
172 };
173
174 timer@b120000 {
175 #address-cells = <1>;
176 #size-cells = <1>;
177 ranges;
178 compatible = "arm,armv7-timer-mem";
179 reg = <0xb120000 0x1000>;
180 clock-frequency = <19200000>;
181
182 frame@b121000 {
183 frame-number = <0>;
184 interrupts = <0 8 0x4>,
185 <0 7 0x4>;
186 reg = <0xb121000 0x1000>,
187 <0xb122000 0x1000>;
188 };
189
190 frame@b123000 {
191 frame-number = <1>;
192 interrupts = <0 9 0x4>;
193 reg = <0xb123000 0x1000>;
194 status = "disabled";
195 };
196
197 frame@b124000 {
198 frame-number = <2>;
199 interrupts = <0 10 0x4>;
200 reg = <0xb124000 0x1000>;
201 status = "disabled";
202 };
203
204 frame@b125000 {
205 frame-number = <3>;
206 interrupts = <0 11 0x4>;
207 reg = <0xb125000 0x1000>;
208 status = "disabled";
209 };
210
211 frame@b126000 {
212 frame-number = <4>;
213 interrupts = <0 12 0x4>;
214 reg = <0xb126000 0x1000>;
215 status = "disabled";
216 };
217
218 frame@b127000 {
219 frame-number = <5>;
220 interrupts = <0 13 0x4>;
221 reg = <0xb127000 0x1000>;
222 status = "disabled";
223 };
224
225 frame@b128000 {
226 frame-number = <6>;
227 interrupts = <0 14 0x4>;
228 reg = <0xb128000 0x1000>;
229 status = "disabled";
230 };
231 };
232 qcom,rmtfs_sharedmem@00000000 {
233 compatible = "qcom,sharedmem-uio";
234 reg = <0x00000000 0x00180000>;
235 reg-names = "rmtfs";
236 qcom,client-id = <0x00000001>;
237 };
238
239 restart@4ab000 {
240 compatible = "qcom,pshold";
241 reg = <0x4ab000 0x4>,
242 <0x193d100 0x4>;
243 reg-names = "pshold-base", "tcsr-boot-misc-detect";
244 };
245
246 qcom,mpm2-sleep-counter@4a3000 {
247 compatible = "qcom,mpm2-sleep-counter";
248 reg = <0x4a3000 0x1000>;
249 clock-frequency = <32768>;
250 };
251
252 cpu-pmu {
253 compatible = "arm,armv8-pmuv3";
254 interrupts = <1 7 0xff00>;
255 };
256
257 qcom,sps {
258 compatible = "qcom,msm_sps_4k";
259 qcom,pipe-attr-ee;
260 };
261
Ashok Jammigumpuladb43f572017-12-06 18:05:57 +0530262 thermal_zones: thermal-zones {
263 mdm-core-usr {
264 polling-delay-passive = <0>;
265 polling-delay = <0>;
266 thermal-governor = "user_space";
267 thermal-sensors = <&tsens0 1>;
268 trips {
269 active-config0 {
270 temperature = <125000>;
271 hysteresis = <1000>;
272 type = "passive";
273 };
274 };
275 };
276
277 qdsp-usr {
278 polling-delay-passive = <0>;
279 polling-delay = <0>;
280 thermal-governor = "user_space";
281 thermal-sensors = <&tsens0 2>;
282 trips {
283 active-config0 {
284 temperature = <125000>;
285 hysteresis = <1000>;
286 type = "passive";
287 };
288 };
289 };
290
291 camera-usr {
292 polling-delay-passive = <0>;
293 polling-delay = <0>;
294 thermal-governor = "user_space";
295 thermal-sensors = <&tsens0 3>;
296 trips {
297 active-config0 {
298 temperature = <125000>;
299 hysteresis = <1000>;
300 type = "passive";
301 };
302 };
303 };
304
305 apc1_cpu0-usr {
306 polling-delay-passive = <0>;
307 polling-delay = <0>;
308 thermal-sensors = <&tsens0 4>;
309 thermal-governor = "user_space";
310 trips {
311 active-config0 {
312 temperature = <125000>;
313 hysteresis = <1000>;
314 type = "passive";
315 };
316 };
317 };
318
319 apc1_cpu1-usr {
320 polling-delay-passive = <0>;
321 polling-delay = <0>;
322 thermal-sensors = <&tsens0 5>;
323 thermal-governor = "user_space";
324 trips {
325 active-config0 {
326 temperature = <125000>;
327 hysteresis = <1000>;
328 type = "passive";
329 };
330 };
331 };
332
333 apc1_cpu2-usr {
334 polling-delay-passive = <0>;
335 polling-delay = <0>;
336 thermal-sensors = <&tsens0 6>;
337 thermal-governor = "user_space";
338 trips {
339 active-config0 {
340 temperature = <125000>;
341 hysteresis = <1000>;
342 type = "passive";
343 };
344 };
345 };
346
347 apc1_cpu3-usr {
348 polling-delay-passive = <0>;
349 polling-delay = <0>;
350 thermal-sensors = <&tsens0 7>;
351 thermal-governor = "user_space";
352 trips {
353 active-config0 {
354 temperature = <125000>;
355 hysteresis = <1000>;
356 type = "passive";
357 };
358 };
359 };
360
361 apc1_l2-usr {
362 polling-delay-passive = <0>;
363 polling-delay = <0>;
364 thermal-sensors = <&tsens0 8>;
365 thermal-governor = "user_space";
366 trips {
367 active-config0 {
368 temperature = <125000>;
369 hysteresis = <1000>;
370 type = "passive";
371 };
372 };
373 };
374
375 apc0_cpu0-usr {
376 polling-delay-passive = <0>;
377 polling-delay = <0>;
378 thermal-sensors = <&tsens0 9>;
379 thermal-governor = "user_space";
380 trips {
381 active-config0 {
382 temperature = <125000>;
383 hysteresis = <1000>;
384 type = "passive";
385 };
386 };
387 };
388
389 apc0_cpu1-usr {
390 polling-delay-passive = <0>;
391 polling-delay = <0>;
392 thermal-sensors = <&tsens0 10>;
393 thermal-governor = "user_space";
394 trips {
395 active-config0 {
396 temperature = <125000>;
397 hysteresis = <1000>;
398 type = "passive";
399 };
400 };
401 };
402
403 apc0_cpu2-usr {
404 polling-delay-passive = <0>;
405 polling-delay = <0>;
406 thermal-sensors = <&tsens0 11>;
407 thermal-governor = "user_space";
408 trips {
409 active-config0 {
410 temperature = <125000>;
411 hysteresis = <1000>;
412 type = "passive";
413 };
414 };
415 };
416
417 apc0_cpu3-usr {
418 polling-delay-passive = <0>;
419 polling-delay = <0>;
420 thermal-sensors = <&tsens0 12>;
421 thermal-governor = "user_space";
422 trips {
423 active-config0 {
424 temperature = <125000>;
425 hysteresis = <1000>;
426 type = "passive";
427 };
428 };
429 };
430
431 apc0_l2-usr {
432 polling-delay-passive = <0>;
433 polling-delay = <0>;
434 thermal-sensors = <&tsens0 13>;
435 thermal-governor = "user_space";
436 trips {
437 active-config0 {
438 temperature = <125000>;
439 hysteresis = <1000>;
440 type = "passive";
441 };
442 };
443 };
444
445 gpu0-usr {
446 polling-delay-passive = <0>;
447 polling-delay = <0>;
448 thermal-sensors = <&tsens0 14>;
449 thermal-governor = "user_space";
450 trips {
451 active-config0 {
452 temperature = <125000>;
453 hysteresis = <1000>;
454 type = "passive";
455 };
456 };
457 };
458
459 gpu1-usr {
460 polling-delay-passive = <0>;
461 polling-delay = <0>;
462 thermal-sensors = <&tsens0 15>;
463 thermal-governor = "user_space";
464 trips {
465 active-config0 {
466 temperature = <125000>;
467 hysteresis = <1000>;
468 type = "passive";
469 };
470 };
471 };
472 };
473
474 tsens0: tsens@4a8000 {
475 compatible = "qcom,msm8953-tsens";
476 reg = <0x4a8000 0x1000>,
477 <0x4a9000 0x1000>;
478 reg-names = "tsens_srot_physical",
479 "tsens_tm_physical";
480 interrupts = <0 184 0>, <0 314 0>;
481 interrupt-names = "tsens-upper-lower", "tsens-critical";
482 #thermal-sensor-cells = <1>;
483 };
484
mohamed sunfeer2bfd8c82017-11-30 13:08:36 +0530485 qcom_seecom: qseecom@85b00000 {
486 compatible = "qcom,qseecom";
487 reg = <0x85b00000 0x800000>;
488 reg-names = "secapp-region";
489 qcom,hlos-num-ce-hw-instances = <1>;
490 qcom,hlos-ce-hw-instance = <0>;
491 qcom,qsee-ce-hw-instance = <0>;
492 qcom,disk-encrypt-pipe-pair = <2>;
493 qcom,support-fde;
494 qcom,msm-bus,name = "qseecom-noc";
495 qcom,msm-bus,num-cases = <4>;
496 qcom,msm-bus,num-paths = <1>;
497 qcom,support-bus-scaling;
498 qcom,msm-bus,vectors-KBps =
499 <55 512 0 0>,
500 <55 512 0 0>,
501 <55 512 120000 1200000>,
502 <55 512 393600 3936000>;
503 clocks = <&clock_gcc clk_crypto_clk_src>,
504 <&clock_gcc clk_gcc_crypto_clk>,
505 <&clock_gcc clk_gcc_crypto_ahb_clk>,
506 <&clock_gcc clk_gcc_crypto_axi_clk>;
507 clock-names = "core_clk_src", "core_clk",
508 "iface_clk", "bus_clk";
509 qcom,ce-opp-freq = <100000000>;
510 status = "disabled";
511 };
512
mohamed sunfeerd9761e62017-11-30 13:33:02 +0530513 qcom_tzlog: tz-log@08600720 {
514 compatible = "qcom,tz-log";
515 reg = <0x08600720 0x2000>;
516 status = "disabled";
517 };
518
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530519 blsp1_uart0: serial@78af000 {
520 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
521 reg = <0x78af000 0x200>;
522 interrupts = <0 107 0>;
Maria Yuaf0e9252017-11-30 19:58:44 +0800523 clocks = <&clock_gcc clk_gcc_blsp1_uart1_apps_clk>,
524 <&clock_gcc clk_gcc_blsp1_ahb_clk>;
525 clock-names = "core", "iface";
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530526 status = "disabled";
527 };
528
529 dma_blsp1: qcom,sps-dma@7884000 { /* BLSP1 */
530 #dma-cells = <4>;
531 compatible = "qcom,sps-dma";
532 reg = <0x7884000 0x1f000>;
533 interrupts = <0 238 0>;
534 qcom,summing-threshold = <10>;
535 };
536
537 dma_blsp2: qcom,sps-dma@7ac4000 { /* BLSP2 */
538 #dma-cells = <4>;
539 compatible = "qcom,sps-dma";
540 reg = <0x7ac4000 0x1f000>;
541 interrupts = <0 239 0>;
542 qcom,summing-threshold = <10>;
543 };
544
545 slim_msm: slim@c140000{
546 cell-index = <1>;
547 compatible = "qcom,slim-ngd";
548 reg = <0xc140000 0x2c000>,
549 <0xc104000 0x2a000>;
550 reg-names = "slimbus_physical", "slimbus_bam_physical";
551 interrupts = <0 163 0>, <0 180 0>;
552 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
553 qcom,apps-ch-pipes = <0x600000>;
554 qcom,ea-pc = <0x200>;
555 status = "disabled";
556 };
557
Shefali Jain44e24ad2017-11-23 12:27:33 +0530558 clock_gcc: qcom,gcc@1800000 {
559 compatible = "qcom,gcc-8953";
560 reg = <0x1800000 0x80000>,
561 <0x00a4124 0x08>;
562 reg-names = "cc_base", "efuse";
563 vdd_dig-supply = <&pm8953_s2_level>;
564 #clock-cells = <1>;
565 #reset-cells = <1>;
566 };
567
568 clock_debug: qcom,cc-debug@1874000 {
569 compatible = "qcom,cc-debug-8953";
570 reg = <0x1874000 0x4>;
571 reg-names = "cc_base";
572 clocks = <&clock_cpu clk_cpu_debug_pri_mux>;
573 clock-names = "debug_cpu_clk";
574 #clock-cells = <1>;
575 };
576
577 clock_gcc_gfx: qcom,gcc-gfx@1800000 {
578 compatible = "qcom,gcc-gfx-8953";
579 reg = <0x1800000 0x80000>;
580 reg-names = "cc_base";
581 vdd_gfx-supply = <&gfx_vreg_corner>;
582 qcom,gfxfreq-corner =
583 < 0 0 >,
584 < 133330000 1 >, /* Min SVS */
585 < 216000000 2 >, /* Low SVS */
586 < 320000000 3 >, /* SVS */
587 < 400000000 4 >, /* SVS Plus */
588 < 510000000 5 >, /* NOM */
589 < 560000000 6 >, /* Nom Plus */
590 < 650000000 7 >; /* Turbo */
591 #clock-cells = <1>;
592 };
593
594 clock_cpu: qcom,cpu-clock-8953@b116000 {
595 compatible = "qcom,cpu-clock-8953";
596 reg = <0xb114000 0x68>,
597 <0xb014000 0x68>,
598 <0xb116000 0x400>,
599 <0xb111050 0x08>,
600 <0xb011050 0x08>,
601 <0xb1d1050 0x08>,
602 <0x00a4124 0x08>;
603 reg-names = "rcgwr-c0-base", "rcgwr-c1-base",
604 "c0-pll", "c0-mux", "c1-mux",
605 "cci-mux", "efuse";
606 vdd-mx-supply = <&pm8953_s7_level_ao>;
607 vdd-cl-supply = <&apc_vreg>;
608 clocks = <&clock_gcc clk_xo_a_clk_src>;
609 clock-names = "xo_a";
610 qcom,num-clusters = <2>;
611 qcom,speed0-bin-v0-cl =
612 < 0 0>,
613 < 652800000 1>,
614 < 1036800000 2>,
615 < 1401600000 3>,
616 < 1689600000 4>,
617 < 1804800000 5>,
618 < 1958400000 6>,
619 < 2016000000 7>;
620 qcom,speed0-bin-v0-cci =
621 < 0 0>,
622 < 261120000 1>,
623 < 414720000 2>,
624 < 560640000 3>,
625 < 675840000 4>,
626 < 721920000 5>,
627 < 783360000 6>,
628 < 806400000 7>;
629 qcom,speed2-bin-v0-cl =
630 < 0 0>,
631 < 652800000 1>,
632 < 1036800000 2>,
633 < 1401600000 3>,
634 < 1689600000 4>,
635 < 1804800000 5>,
636 < 1958400000 6>,
637 < 2016000000 7>;
638 qcom,speed2-bin-v0-cci =
639 < 0 0>,
640 < 261120000 1>,
641 < 414720000 2>,
642 < 560640000 3>,
643 < 675840000 4>,
644 < 721920000 5>,
645 < 783360000 6>,
646 < 806400000 7>;
647 qcom,speed7-bin-v0-cl =
648 < 0 0>,
649 < 652800000 1>,
650 < 1036800000 2>,
651 < 1401600000 3>,
652 < 1689600000 4>,
653 < 1804800000 5>,
654 < 1958400000 6>,
655 < 2016000000 7>,
656 < 2150400000 8>,
657 < 2208000000 9>;
658 qcom,speed7-bin-v0-cci =
659 < 0 0>,
660 < 261120000 1>,
661 < 414720000 2>,
662 < 560640000 3>,
663 < 675840000 4>,
664 < 721920000 5>,
665 < 783360000 6>,
666 < 806400000 7>,
667 < 860160000 8>,
668 < 883200000 9>;
669 qcom,speed6-bin-v0-cl =
670 < 0 0>,
671 < 652800000 1>,
672 < 1036800000 2>,
673 < 1401600000 3>,
674 < 1689600000 4>,
675 < 1804800000 5>;
676 qcom,speed6-bin-v0-cci =
677 < 0 0>,
678 < 261120000 1>,
679 < 414720000 2>,
680 < 560640000 3>,
681 < 675840000 4>,
682 < 721920000 5>;
683 #clock-cells = <1>;
Maria Yub90c5482017-12-01 13:28:56 +0800684 };
685
686 msm_cpufreq: qcom,msm-cpufreq {
687 compatible = "qcom,msm-cpufreq";
688 clock-names = "l2_clk", "cpu0_clk", "cpu1_clk", "cpu2_clk",
689 "cpu3_clk", "cpu4_clk", "cpu5_clk",
690 "cpu6_clk", "cpu7_clk";
691 clocks = <&clock_cpu clk_cci_clk>,
692 <&clock_cpu clk_a53_pwr_clk>,
693 <&clock_cpu clk_a53_pwr_clk>,
694 <&clock_cpu clk_a53_pwr_clk>,
695 <&clock_cpu clk_a53_pwr_clk>,
696 <&clock_cpu clk_a53_pwr_clk>,
697 <&clock_cpu clk_a53_pwr_clk>,
698 <&clock_cpu clk_a53_pwr_clk>,
699 <&clock_cpu clk_a53_pwr_clk>;
700
701 qcom,cpufreq-table =
702 < 652800 >,
703 < 1036800 >,
704 < 1401600 >,
705 < 1689600 >,
706 < 1804800 >,
707 < 1958400 >,
708 < 2016000 >,
709 < 2150400 >,
710 < 2208000 >;
Shefali Jain44e24ad2017-11-23 12:27:33 +0530711 };
712
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530713 cpubw: qcom,cpubw {
714 compatible = "qcom,devbw";
715 governor = "cpufreq";
716 qcom,src-dst-ports = <1 512>;
717 qcom,active-only;
718 qcom,bw-tbl =
719 < 769 /* 100.8 MHz */ >,
720 < 1611 /* 211.2 MHz */ >, /*Low SVS*/
721 < 2124 /* 278.4 MHz */ >,
722 < 2929 /* 384 MHz */ >,
723 < 3221 /* 422.4 MHz */ >, /* SVS */
724 < 4248 /* 556.8 MHz */ >,
725 < 5126 /* 672 MHz */ >,
726 < 5859 /* 768 MHz */ >, /* SVS+ */
727 < 6152 /* 806.4 MHz */ >,
728 < 6445 /* 844.8 MHz */ >, /* NOM */
729 < 7104 /* 931.2 MHz */ >; /* TURBO */
730 };
731
732 mincpubw: qcom,mincpubw {
733 compatible = "qcom,devbw";
734 governor = "cpufreq";
735 qcom,src-dst-ports = <1 512>;
736 qcom,active-only;
737 qcom,bw-tbl =
738 < 769 /* 100.8 MHz */ >,
739 < 1611 /* 211.2 MHz */ >, /*Low SVS*/
740 < 2124 /* 278.4 MHz */ >,
741 < 2929 /* 384 MHz */ >,
742 < 3221 /* 422.4 MHz */ >, /* SVS */
743 < 4248 /* 556.8 MHz */ >,
744 < 5126 /* 672 MHz */ >,
745 < 5859 /* 768 MHz */ >, /* SVS+ */
746 < 6152 /* 806.4 MHz */ >,
747 < 6445 /* 844.8 MHz */ >, /* NOM */
748 < 7104 /* 931.2 MHz */ >; /* TURBO */
749 };
750
751 qcom,cpu-bwmon {
752 compatible = "qcom,bimc-bwmon2";
753 reg = <0x408000 0x300>, <0x401000 0x200>;
754 reg-names = "base", "global_base";
755 interrupts = <0 183 4>;
756 qcom,mport = <0>;
757 qcom,target-dev = <&cpubw>;
758 };
759
760 devfreq-cpufreq {
761 cpubw-cpufreq {
762 target-dev = <&cpubw>;
763 cpu-to-dev-map =
764 < 652800 1611>,
765 < 1036800 3221>,
766 < 1401600 5859>,
767 < 1689600 6445>,
768 < 1804800 7104>,
769 < 1958400 7104>,
770 < 2208000 7104>;
771 };
772
773 mincpubw-cpufreq {
774 target-dev = <&mincpubw>;
775 cpu-to-dev-map =
776 < 652800 1611 >,
777 < 1401600 3221 >,
778 < 2208000 5859 >;
779 };
780 };
781
Jonathan Avilac7a6fd52017-10-12 15:24:05 -0700782 cpubw_compute: qcom,cpubw-compute {
783 compatible = "qcom,arm-cpu-mon";
784 qcom,cpulist = < &CPU0 &CPU1 &CPU2 &CPU3
785 &CPU4 &CPU5 &CPU6 &CPU7 >;
786 qcom,target-dev = <&cpubw>;
787 qcom,core-dev-table =
788 < 652800 1611>,
789 < 1036800 3221>,
790 < 1401600 5859>,
791 < 1689600 6445>,
792 < 1804800 7104>,
793 < 1958400 7104>,
794 < 2208000 7104>;
795 };
796
797 mincpubw_compute: qcom,mincpubw-compute {
798 compatible = "qcom,arm-cpu-mon";
799 qcom,cpulist = < &CPU0 &CPU1 &CPU2 &CPU3
800 &CPU4 &CPU5 &CPU6 &CPU7 >;
801 qcom,target-dev = <&mincpubw>;
802 qcom,core-dev-table =
803 < 652800 1611 >,
804 < 1401600 3221 >,
805 < 2208000 5859 >;
806 };
807
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530808 qcom,ipc-spinlock@1905000 {
809 compatible = "qcom,ipc-spinlock-sfpb";
810 reg = <0x1905000 0x8000>;
811 qcom,num-locks = <8>;
812 };
813
814 qcom,smem@86300000 {
815 compatible = "qcom,smem";
816 reg = <0x86300000 0x100000>,
817 <0x0b011008 0x4>,
818 <0x60000 0x8000>,
819 <0x193d000 0x8>;
820 reg-names = "smem", "irq-reg-base",
821 "aux-mem1", "smem_targ_info_reg";
822 qcom,mpu-enabled;
823
824 qcom,smd-modem {
825 compatible = "qcom,smd";
826 qcom,smd-edge = <0>;
827 qcom,smd-irq-offset = <0x0>;
828 qcom,smd-irq-bitmask = <0x1000>;
829 interrupts = <0 25 1>;
830 label = "modem";
831 qcom,not-loadable;
832 };
833
834 qcom,smsm-modem {
835 compatible = "qcom,smsm";
836 qcom,smsm-edge = <0>;
837 qcom,smsm-irq-offset = <0x0>;
838 qcom,smsm-irq-bitmask = <0x2000>;
839 interrupts = <0 26 1>;
840 };
841
842 qcom,smd-wcnss {
843 compatible = "qcom,smd";
844 qcom,smd-edge = <6>;
845 qcom,smd-irq-offset = <0x0>;
846 qcom,smd-irq-bitmask = <0x20000>;
847 interrupts = <0 142 1>;
848 label = "wcnss";
849 };
850
851 qcom,smsm-wcnss {
852 compatible = "qcom,smsm";
853 qcom,smsm-edge = <6>;
854 qcom,smsm-irq-offset = <0x0>;
855 qcom,smsm-irq-bitmask = <0x80000>;
856 interrupts = <0 144 1>;
857 };
858
859 qcom,smd-adsp {
860 compatible = "qcom,smd";
861 qcom,smd-edge = <1>;
862 qcom,smd-irq-offset = <0x0>;
863 qcom,smd-irq-bitmask = <0x100>;
864 interrupts = <0 289 1>;
865 label = "adsp";
866 };
867
868 qcom,smsm-adsp {
869 compatible = "qcom,smsm";
870 qcom,smsm-edge = <1>;
871 qcom,smsm-irq-offset = <0x0>;
872 qcom,smsm-irq-bitmask = <0x200>;
873 interrupts = <0 290 1>;
874 };
875
876 qcom,smd-rpm {
877 compatible = "qcom,smd";
878 qcom,smd-edge = <15>;
879 qcom,smd-irq-offset = <0x0>;
880 qcom,smd-irq-bitmask = <0x1>;
881 interrupts = <0 168 1>;
882 label = "rpm";
883 qcom,irq-no-suspend;
884 qcom,not-loadable;
885 };
886 };
887
Arun Kumar Neelakantam36151aa2017-11-02 21:34:33 +0530888 qcom,smdtty {
889 compatible = "qcom,smdtty";
890
891 smdtty_apps_fm: qcom,smdtty-apps-fm {
892 qcom,smdtty-remote = "wcnss";
893 qcom,smdtty-port-name = "APPS_FM";
894 };
895
896 smdtty_apps_riva_bt_acl: smdtty-apps-riva-bt-acl {
897 qcom,smdtty-remote = "wcnss";
898 qcom,smdtty-port-name = "APPS_RIVA_BT_ACL";
899 };
900
901 smdtty_apps_riva_bt_cmd: qcom,smdtty-apps-riva-bt-cmd {
902 qcom,smdtty-remote = "wcnss";
903 qcom,smdtty-port-name = "APPS_RIVA_BT_CMD";
904 };
905
906 smdtty_mbalbridge: qcom,smdtty-mbalbridge {
907 qcom,smdtty-remote = "modem";
908 qcom,smdtty-port-name = "MBALBRIDGE";
909 };
910
911 smdtty_apps_riva_ant_cmd: smdtty-apps-riva-ant-cmd {
912 qcom,smdtty-remote = "wcnss";
913 qcom,smdtty-port-name = "APPS_RIVA_ANT_CMD";
914 };
915
916 smdtty_apps_riva_ant_data: smdtty-apps-riva-ant-data {
917 qcom,smdtty-remote = "wcnss";
918 qcom,smdtty-port-name = "APPS_RIVA_ANT_DATA";
919 };
920
921 smdtty_data1: qcom,smdtty-data1 {
922 qcom,smdtty-remote = "modem";
923 qcom,smdtty-port-name = "DATA1";
924 };
925
926 smdtty_data4: qcom,smdtty-data4 {
927 qcom,smdtty-remote = "modem";
928 qcom,smdtty-port-name = "DATA4";
929 };
930
931 smdtty_data11: qcom,smdtty-data11 {
932 qcom,smdtty-remote = "modem";
933 qcom,smdtty-port-name = "DATA11";
934 };
935
936 smdtty_data21: qcom,smdtty-data21 {
937 qcom,smdtty-remote = "modem";
938 qcom,smdtty-port-name = "DATA21";
939 };
940
941 smdtty_loopback: smdtty-loopback {
942 qcom,smdtty-remote = "modem";
943 qcom,smdtty-port-name = "LOOPBACK";
944 qcom,smdtty-dev-name = "LOOPBACK_TTY";
945 };
946 };
947
Arun Kumar Neelakantamea07e3d2017-11-02 21:27:50 +0530948 qcom,smdpkt {
949 compatible = "qcom,smdpkt";
950
951 qcom,smdpkt-data5-cntl {
952 qcom,smdpkt-remote = "modem";
953 qcom,smdpkt-port-name = "DATA5_CNTL";
954 qcom,smdpkt-dev-name = "smdcntl0";
955 };
956
957 qcom,smdpkt-data22 {
958 qcom,smdpkt-remote = "modem";
959 qcom,smdpkt-port-name = "DATA22";
960 qcom,smdpkt-dev-name = "smd22";
961 };
962
963 qcom,smdpkt-data40-cntl {
964 qcom,smdpkt-remote = "modem";
965 qcom,smdpkt-port-name = "DATA40_CNTL";
966 qcom,smdpkt-dev-name = "smdcntl8";
967 };
968
969 qcom,smdpkt-apr-apps2 {
970 qcom,smdpkt-remote = "adsp";
971 qcom,smdpkt-port-name = "apr_apps2";
972 qcom,smdpkt-dev-name = "apr_apps2";
973 };
974
975 qcom,smdpkt-loopback {
976 qcom,smdpkt-remote = "modem";
977 qcom,smdpkt-port-name = "LOOPBACK";
978 qcom,smdpkt-dev-name = "smd_pkt_loopback";
979 };
980 };
981
Raju P.L.S.S.S.N786994d2017-11-08 17:03:56 +0530982 rpm_bus: qcom,rpm-smd {
983 compatible = "qcom,rpm-smd";
984 rpm-channel-name = "rpm_requests";
985 rpm-channel-type = <15>; /* SMD_APPS_RPM */
986 };
987
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530988 qcom,wdt@b017000 {
989 compatible = "qcom,msm-watchdog";
990 reg = <0xb017000 0x1000>;
991 reg-names = "wdt-base";
992 interrupts = <0 3 0>, <0 4 0>;
993 qcom,bark-time = <11000>;
994 qcom,pet-time = <10000>;
995 qcom,ipi-ping;
996 qcom,wakeup-enable;
997 };
998
999 qcom,chd {
1000 compatible = "qcom,core-hang-detect";
1001 qcom,threshold-arr = <0xb1880b0 0xb1980b0 0xb1a80b0
1002 0xb1b80b0 0xb0880b0 0xb0980b0 0xb0a80b0 0xb0b80b0>;
1003 qcom,config-arr = <0xb1880b8 0xb1980b8 0xb1a80b8
1004 0xb1b80b8 0xb0880b8 0xb0980b8 0xb0a80b8 0xb0b80b8>;
1005 };
1006
1007 qcom,msm-rtb {
1008 compatible = "qcom,msm-rtb";
1009 qcom,rtb-size = <0x100000>;
1010 };
1011
1012 qcom,msm-imem@8600000 {
1013 compatible = "qcom,msm-imem";
1014 reg = <0x08600000 0x1000>;
1015 ranges = <0x0 0x08600000 0x1000>;
1016 #address-cells = <1>;
1017 #size-cells = <1>;
1018
1019 mem_dump_table@10 {
1020 compatible = "qcom,msm-imem-mem_dump_table";
1021 reg = <0x10 8>;
1022 };
1023
Maria Yu06cf96e2017-09-21 17:35:13 +08001024 dload_type@18 {
1025 compatible = "qcom,msm-imem-dload-type";
1026 reg = <0x18 4>;
1027 };
1028
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301029 restart_reason@65c {
1030 compatible = "qcom,msm-imem-restart_reason";
1031 reg = <0x65c 4>;
1032 };
1033
1034 boot_stats@6b0 {
1035 compatible = "qcom,msm-imem-boot_stats";
1036 reg = <0x6b0 32>;
1037 };
1038
Maria Yu575d67f2017-12-05 16:31:19 +08001039 kaslr_offset@6d0 {
1040 compatible = "qcom,msm-imem-kaslr_offset";
1041 reg = <0x6d0 12>;
1042 };
1043
1044 pil@94c {
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301045 compatible = "qcom,msm-imem-pil";
1046 reg = <0x94c 200>;
1047
1048 };
1049 };
1050
1051 qcom,memshare {
1052 compatible = "qcom,memshare";
1053
1054 qcom,client_1 {
1055 compatible = "qcom,memshare-peripheral";
1056 qcom,peripheral-size = <0x200000>;
1057 qcom,client-id = <0>;
1058 qcom,allocate-boot-time;
1059 label = "modem";
1060 };
1061
1062 qcom,client_2 {
1063 compatible = "qcom,memshare-peripheral";
1064 qcom,peripheral-size = <0x300000>;
1065 qcom,client-id = <2>;
1066 label = "modem";
1067 };
1068
1069 mem_client_3_size: qcom,client_3 {
1070 compatible = "qcom,memshare-peripheral";
1071 qcom,peripheral-size = <0x0>;
1072 qcom,client-id = <1>;
1073 label = "modem";
1074 };
1075 };
1076 sdcc1_ice: sdcc1ice@7803000 {
1077 compatible = "qcom,ice";
1078 reg = <0x7803000 0x8000>;
1079 interrupt-names = "sdcc_ice_nonsec_level_irq",
1080 "sdcc_ice_sec_level_irq";
1081 interrupts = <0 312 0>, <0 313 0>;
1082 qcom,enable-ice-clk;
Sayali Lokhande31299932017-12-06 09:41:17 +05301083 clock-names = "ice_core_clk_src", "ice_core_clk",
1084 "bus_clk", "iface_clk";
1085 clocks = <&clock_gcc clk_sdcc1_ice_core_clk_src>,
1086 <&clock_gcc clk_gcc_sdcc1_ice_core_clk>,
1087 <&clock_gcc clk_gcc_sdcc1_apps_clk>,
1088 <&clock_gcc clk_gcc_sdcc1_ahb_clk>;
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301089 qcom,op-freq-hz = <270000000>, <0>, <0>, <0>;
1090 qcom,msm-bus,name = "sdcc_ice_noc";
1091 qcom,msm-bus,num-cases = <2>;
1092 qcom,msm-bus,num-paths = <1>;
1093 qcom,msm-bus,vectors-KBps =
1094 <78 512 0 0>, /* No vote */
1095 <78 512 1000 0>; /* Max. bandwidth */
1096 qcom,bus-vector-names = "MIN", "MAX";
1097 qcom,instance-type = "sdcc";
1098 };
1099
1100 sdhc_1: sdhci@7824900 {
1101 compatible = "qcom,sdhci-msm";
1102 reg = <0x7824900 0x500>, <0x7824000 0x800>, <0x7824e00 0x200>;
1103 reg-names = "hc_mem", "core_mem", "cmdq_mem";
1104
1105 interrupts = <0 123 0>, <0 138 0>;
1106 interrupt-names = "hc_irq", "pwr_irq";
1107
1108 sdhc-msm-crypto = <&sdcc1_ice>;
1109 qcom,bus-width = <8>;
1110
1111 qcom,devfreq,freq-table = <50000000 200000000>;
1112
1113 qcom,pm-qos-irq-type = "affine_irq";
1114 qcom,pm-qos-irq-latency = <2 213>;
1115
1116 qcom,pm-qos-cpu-groups = <0x0f 0xf0>;
1117 qcom,pm-qos-cmdq-latency-us = <2 213>, <2 213>;
1118
1119 qcom,pm-qos-legacy-latency-us = <2 213>, <2 213>;
1120
1121 qcom,msm-bus,name = "sdhc1";
1122 qcom,msm-bus,num-cases = <9>;
1123 qcom,msm-bus,num-paths = <1>;
1124 qcom,msm-bus,vectors-KBps = <78 512 0 0>, /* No vote */
1125 <78 512 1046 3200>, /* 400 KB/s*/
1126 <78 512 52286 160000>, /* 20 MB/s */
1127 <78 512 65360 200000>, /* 25 MB/s */
1128 <78 512 130718 400000>, /* 50 MB/s */
1129 <78 512 130718 400000>, /* 100 MB/s */
1130 <78 512 261438 800000>, /* 200 MB/s */
1131 <78 512 261438 800000>, /* 400 MB/s */
1132 <78 512 1338562 4096000>; /* Max. bandwidth */
1133 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
1134 100000000 200000000 400000000 4294967295>;
1135
Sayali Lokhande31299932017-12-06 09:41:17 +05301136 clocks = <&clock_gcc clk_gcc_sdcc1_ahb_clk>,
1137 <&clock_gcc clk_gcc_sdcc1_apps_clk>,
1138 <&clock_gcc clk_gcc_sdcc1_ice_core_clk>;
1139 clock-names = "iface_clk", "core_clk", "ice_core_clk";
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301140 qcom,ice-clk-rates = <270000000 160000000>;
1141 qcom,large-address-bus;
1142
1143 status = "disabled";
1144 };
1145
1146 sdhc_2: sdhci@7864900 {
1147 compatible = "qcom,sdhci-msm";
1148 reg = <0x7864900 0x500>, <0x7864000 0x800>;
1149 reg-names = "hc_mem", "core_mem";
1150
1151 interrupts = <0 125 0>, <0 221 0>;
1152 interrupt-names = "hc_irq", "pwr_irq";
1153
1154 qcom,bus-width = <4>;
1155
1156 qcom,pm-qos-irq-type = "affine_irq";
1157 qcom,pm-qos-irq-latency = <2 213>;
1158
1159 qcom,pm-qos-cpu-groups = <0x0f 0xf0>;
1160 qcom,pm-qos-legacy-latency-us = <2 213>, <2 213>;
1161
1162 qcom,devfreq,freq-table = <50000000 200000000>;
1163
1164 qcom,msm-bus,name = "sdhc2";
1165 qcom,msm-bus,num-cases = <8>;
1166 qcom,msm-bus,num-paths = <1>;
1167 qcom,msm-bus,vectors-KBps = <81 512 0 0>, /* No vote */
1168 <81 512 1046 3200>, /* 400 KB/s*/
1169 <81 512 52286 160000>, /* 20 MB/s */
1170 <81 512 65360 200000>, /* 25 MB/s */
1171 <81 512 130718 400000>, /* 50 MB/s */
1172 <81 512 261438 800000>, /* 100 MB/s */
1173 <81 512 261438 800000>, /* 200 MB/s */
1174 <81 512 1338562 4096000>; /* Max. bandwidth */
1175 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
1176 100000000 200000000 4294967295>;
1177
Sayali Lokhande31299932017-12-06 09:41:17 +05301178 clocks = <&clock_gcc clk_gcc_sdcc2_ahb_clk>,
1179 <&clock_gcc clk_gcc_sdcc2_apps_clk>;
1180 clock-names = "iface_clk", "core_clk";
1181
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301182 qcom,large-address-bus;
1183 status = "disabled";
1184 };
1185
Kiran Gundaaf6a0b62017-10-23 16:03:10 +05301186 spmi_bus: qcom,spmi@200f000 {
1187 compatible = "qcom,spmi-pmic-arb";
1188 reg = <0x200f000 0x1000>,
1189 <0x2400000 0x800000>,
1190 <0x2c00000 0x800000>,
1191 <0x3800000 0x200000>,
1192 <0x200a000 0x2100>;
1193 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1194 interrupt-names = "periph_irq";
1195 interrupts = <GIC_SPI 190 IRQ_TYPE_NONE>;
1196 qcom,ee = <0>;
1197 qcom,channel = <0>;
Kiran Gunda90e356a2017-11-22 17:04:46 +05301198 #address-cells = <2>;
Kiran Gundaaf6a0b62017-10-23 16:03:10 +05301199 #size-cells = <0>;
1200 interrupt-controller;
Kiran Gunda90e356a2017-11-22 17:04:46 +05301201 #interrupt-cells = <4>;
Kiran Gundaaf6a0b62017-10-23 16:03:10 +05301202 cell-index = <0>;
1203 };
Chandana Kishori Chiluveru34872ee2017-11-30 17:35:26 +05301204
1205 usb3: ssusb@7000000{
1206 compatible = "qcom,dwc-usb3-msm";
1207 reg = <0x07000000 0xfc000>,
1208 <0x0007e000 0x400>;
1209 reg-names = "core_base",
1210 "ahb2phy_base";
1211 #address-cells = <1>;
1212 #size-cells = <1>;
1213 ranges;
1214
1215 interrupts = <0 136 0>, <0 220 0>, <0 134 0>;
1216 interrupt-names = "hs_phy_irq", "ss_phy_irq", "pwr_event_irq";
1217
1218 USB3_GDSC-supply = <&gdsc_usb30>;
1219 qcom,usb-dbm = <&dbm_1p5>;
1220 qcom,msm-bus,name = "usb3";
1221 qcom,msm-bus,num-cases = <3>;
1222 qcom,msm-bus,num-paths = <1>;
1223 qcom,msm-bus,vectors-KBps =
1224 <61 512 0 0>,
1225 <61 512 240000 800000>,
1226 <61 512 240000 800000>;
1227
1228 /* CPU-CLUSTER-WFI-LVL latency +1 */
1229 qcom,pm-qos-latency = <2>;
1230
1231 qcom,dwc-usb3-msm-tx-fifo-size = <21288>;
1232
1233 clocks = <&clock_gcc clk_gcc_usb30_master_clk>,
1234 <&clock_gcc clk_gcc_pcnoc_usb3_axi_clk>,
1235 <&clock_gcc clk_gcc_usb30_mock_utmi_clk>,
1236 <&clock_gcc clk_gcc_usb30_sleep_clk>,
1237 <&clock_gcc clk_xo_dwc3_clk>,
1238 <&clock_gcc clk_gcc_usb_phy_cfg_ahb_clk>;
1239
1240 clock-names = "core_clk", "iface_clk", "utmi_clk",
1241 "sleep_clk", "xo", "cfg_ahb_clk";
1242
1243 qcom,core-clk-rate = <133333333>; /* NOM */
1244 qcom,core-clk-rate-hs = <60000000>; /* LOW SVS */
1245
1246 resets = <&clock_gcc GCC_USB_30_BCR>;
1247 reset-names = "core_reset";
1248
1249 dwc3@7000000 {
1250 compatible = "snps,dwc3";
1251 reg = <0x07000000 0xc8d0>;
1252 interrupt-parent = <&intc>;
1253 interrupts = <0 140 0>;
1254 usb-phy = <&qusb_phy>, <&ssphy>;
1255 tx-fifo-resize;
1256 snps,usb3-u1u2-disable;
1257 snps,nominal-elastic-buffer;
1258 snps,is-utmi-l1-suspend;
1259 snps,hird-threshold = /bits/ 8 <0x0>;
1260 };
1261
1262 qcom,usbbam@7104000 {
1263 compatible = "qcom,usb-bam-msm";
1264 reg = <0x07104000 0x1a934>;
1265 interrupt-parent = <&intc>;
1266 interrupts = <0 135 0>;
1267
1268 qcom,bam-type = <0>;
1269 qcom,usb-bam-fifo-baseaddr = <0x08605000>;
1270 qcom,usb-bam-num-pipes = <8>;
1271 qcom,ignore-core-reset-ack;
1272 qcom,disable-clk-gating;
1273 qcom,usb-bam-override-threshold = <0x4001>;
1274 qcom,usb-bam-max-mbps-highspeed = <400>;
1275 qcom,usb-bam-max-mbps-superspeed = <3600>;
1276 qcom,reset-bam-on-connect;
1277
1278 qcom,pipe0 {
1279 label = "ssusb-ipa-out-0";
1280 qcom,usb-bam-mem-type = <1>;
1281 qcom,dir = <0>;
1282 qcom,pipe-num = <0>;
1283 qcom,peer-bam = <1>;
1284 qcom,src-bam-pipe-index = <1>;
1285 qcom,data-fifo-size = <0x8000>;
1286 qcom,descriptor-fifo-size = <0x2000>;
1287 };
1288
1289 qcom,pipe1 {
1290 label = "ssusb-ipa-in-0";
1291 qcom,usb-bam-mem-type = <1>;
1292 qcom,dir = <1>;
1293 qcom,pipe-num = <0>;
1294 qcom,peer-bam = <1>;
1295 qcom,dst-bam-pipe-index = <0>;
1296 qcom,data-fifo-size = <0x8000>;
1297 qcom,descriptor-fifo-size = <0x2000>;
1298 };
1299
1300 qcom,pipe2 {
1301 label = "ssusb-qdss-in-0";
1302 qcom,usb-bam-mem-type = <2>;
1303 qcom,dir = <1>;
1304 qcom,pipe-num = <0>;
1305 qcom,peer-bam = <0>;
1306 qcom,peer-bam-physical-address = <0x06044000>;
1307 qcom,src-bam-pipe-index = <0>;
1308 qcom,dst-bam-pipe-index = <2>;
1309 qcom,data-fifo-offset = <0x0>;
1310 qcom,data-fifo-size = <0xe00>;
1311 qcom,descriptor-fifo-offset = <0xe00>;
1312 qcom,descriptor-fifo-size = <0x200>;
1313 };
1314
1315 qcom,pipe3 {
1316 label = "ssusb-dpl-ipa-in-1";
1317 qcom,usb-bam-mem-type = <1>;
1318 qcom,dir = <1>;
1319 qcom,pipe-num = <1>;
1320 qcom,peer-bam = <1>;
1321 qcom,dst-bam-pipe-index = <2>;
1322 qcom,data-fifo-size = <0x8000>;
1323 qcom,descriptor-fifo-size = <0x2000>;
1324 };
1325 };
1326 };
1327
1328 qusb_phy: qusb@79000 {
1329 compatible = "qcom,qusb2phy";
1330 reg = <0x079000 0x180>,
1331 <0x01841030 0x4>,
1332 <0x0193f020 0x4>;
1333 reg-names = "qusb_phy_base",
1334 "ref_clk_addr",
1335 "tcsr_clamp_dig_n_1p8";
1336
1337 USB3_GDSC-supply = <&gdsc_usb30>;
1338 vdd-supply = <&pm8953_l3>;
1339 vdda18-supply = <&pm8953_l7>;
1340 vdda33-supply = <&pm8953_l13>;
1341 qcom,vdd-voltage-level = <0 925000 925000>;
1342
1343 qcom,qusb-phy-init-seq = <0xf8 0x80
1344 0xb3 0x84
1345 0x83 0x88
1346 0xc0 0x8c
1347 0x14 0x9c
1348 0x30 0x08
1349 0x79 0x0c
1350 0x21 0x10
1351 0x00 0x90
1352 0x9f 0x1c
1353 0x00 0x18>;
1354 phy_type= "utmi";
1355 qcom,phy-clk-scheme = "cml";
1356 qcom,major-rev = <1>;
1357
1358 clocks = <&clock_gcc clk_bb_clk1>,
1359 <&clock_gcc clk_gcc_qusb_ref_clk>,
1360 <&clock_gcc clk_gcc_usb_phy_cfg_ahb_clk>,
1361 <&clock_gcc clk_gcc_pcnoc_usb3_axi_clk>,
1362 <&clock_gcc clk_gcc_usb30_master_clk>;
1363
1364 clock-names = "ref_clk_src", "ref_clk", "cfg_ahb_clk",
1365 "iface_clk", "core_clk";
1366
1367 resets = <&clock_gcc GCC_QUSB2_PHY_BCR>;
1368 reset-names = "phy_reset";
1369 };
1370
1371 ssphy: ssphy@78000 {
1372 compatible = "qcom,usb-ssphy-qmp";
1373 reg = <0x78000 0x9f8>,
1374 <0x0193f244 0x4>;
1375 reg-names = "qmp_phy_base",
1376 "vls_clamp_reg";
1377
1378 qcom,qmp-phy-init-seq = /*<reg_offset, value, delay>*/
1379 <0xac 0x14 0x00
1380 0x34 0x08 0x00
1381 0x174 0x30 0x00
1382 0x3c 0x06 0x00
1383 0xb4 0x00 0x00
1384 0xb8 0x08 0x00
1385 0x194 0x06 0x3e8
1386 0x19c 0x01 0x00
1387 0x178 0x00 0x00
1388 0xd0 0x82 0x00
1389 0xdc 0x55 0x00
1390 0xe0 0x55 0x00
1391 0xe4 0x03 0x00
1392 0x78 0x0b 0x00
1393 0x84 0x16 0x00
1394 0x90 0x28 0x00
1395 0x108 0x80 0x00
1396 0x10c 0x00 0x00
1397 0x184 0x0a 0x00
1398 0x4c 0x15 0x00
1399 0x50 0x34 0x00
1400 0x54 0x00 0x00
1401 0xc8 0x00 0x00
1402 0x18c 0x00 0x00
1403 0xcc 0x00 0x00
1404 0x128 0x00 0x00
1405 0x0c 0x0a 0x00
1406 0x10 0x01 0x00
1407 0x1c 0x31 0x00
1408 0x20 0x01 0x00
1409 0x14 0x00 0x00
1410 0x18 0x00 0x00
1411 0x24 0xde 0x00
1412 0x28 0x07 0x00
1413 0x48 0x0f 0x00
1414 0x70 0x0f 0x00
1415 0x100 0x80 0x00
1416 0x440 0x0b 0x00
1417 0x4d8 0x02 0x00
1418 0x4dc 0x6c 0x00
1419 0x4e0 0xbb 0x00
1420 0x508 0x77 0x00
1421 0x50c 0x80 0x00
1422 0x514 0x03 0x00
1423 0x51c 0x16 0x00
1424 0x448 0x75 0x00
1425 0x454 0x00 0x00
1426 0x40c 0x0a 0x00
1427 0x41c 0x06 0x00
1428 0x510 0x00 0x00
1429 0x268 0x45 0x00
1430 0x2ac 0x12 0x00
1431 0x294 0x06 0x00
1432 0x254 0x00 0x00
1433 0x8c8 0x83 0x00
1434 0x8c4 0x02 0x00
1435 0x8cc 0x09 0x00
1436 0x8d0 0xa2 0x00
1437 0x8d4 0x85 0x00
1438 0x880 0xd1 0x00
1439 0x884 0x1f 0x00
1440 0x888 0x47 0x00
1441 0x80c 0x9f 0x00
1442 0x824 0x17 0x00
1443 0x828 0x0f 0x00
1444 0x8b8 0x75 0x00
1445 0x8bc 0x13 0x00
1446 0x8b0 0x86 0x00
1447 0x8a0 0x04 0x00
1448 0x88c 0x44 0x00
1449 0x870 0xe7 0x00
1450 0x874 0x03 0x00
1451 0x878 0x40 0x00
1452 0x87c 0x00 0x00
1453 0x9d8 0x88 0x00
1454 0xffffffff 0x00 0x00>;
1455 qcom,qmp-phy-reg-offset =
1456 <0x974 /* USB3_PHY_PCS_STATUS */
1457 0x8d8 /* USB3_PHY_AUTONOMOUS_MODE_CTRL */
1458 0x8dc /* USB3_PHY_LFPS_RXTERM_IRQ_CLEAR */
1459 0x804 /* USB3_PHY_POWER_DOWN_CONTROL */
1460 0x800 /* USB3_PHY_SW_RESET */
1461 0x808>; /* USB3_PHY_START */
1462
1463 vdd-supply = <&pm8953_l3>;
1464 core-supply = <&pm8953_l7>;
1465 qcom,vdd-voltage-level = <0 925000 925000>;
1466 qcom,core-voltage-level = <0 1800000 1800000>;
1467 qcom,vbus-valid-override;
1468
1469 clocks = <&clock_gcc clk_gcc_usb3_aux_clk>,
1470 <&clock_gcc clk_gcc_usb3_pipe_clk>,
1471 <&clock_gcc clk_gcc_usb_phy_cfg_ahb_clk>,
1472 <&clock_gcc clk_bb_clk1>,
1473 <&clock_gcc clk_gcc_usb_ss_ref_clk>;
1474
1475 clock-names = "aux_clk", "pipe_clk", "cfg_ahb_clk",
1476 "ref_clk_src", "ref_clk";
1477
1478 resets = <&clock_gcc GCC_USB3_PHY_BCR>,
1479 <&clock_gcc GCC_USB3PHY_PHY_BCR>;
1480
1481 reset-names = "phy_reset", "phy_phy_reset";
1482 };
1483
1484 dbm_1p5: dbm@70f8000 {
1485 compatible = "qcom,usb-dbm-1p5";
1486 reg = <0x070f8000 0x300>;
1487 qcom,reset-ep-after-lpm-resume;
1488 };
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301489};
Kiran Gunda0954f392017-10-16 16:24:55 +05301490
1491#include "pm8953-rpm-regulator.dtsi"
1492#include "pm8953.dtsi"
1493#include "msm8953-regulator.dtsi"
Shefali Jain44e24ad2017-11-23 12:27:33 +05301494#include "msm-gdsc-8916.dtsi"
1495
1496&gdsc_venus {
1497 clock-names = "bus_clk", "core_clk";
1498 clocks = <&clock_gcc clk_gcc_venus0_axi_clk>,
1499 <&clock_gcc clk_gcc_venus0_vcodec0_clk>;
1500 status = "okay";
1501};
1502
1503&gdsc_venus_core0 {
1504 qcom,support-hw-trigger;
1505 clock-names ="core0_clk";
1506 clocks = <&clock_gcc clk_gcc_venus0_core0_vcodec0_clk>;
1507 status = "okay";
1508};
1509
1510&gdsc_mdss {
1511 clock-names = "core_clk", "bus_clk";
1512 clocks = <&clock_gcc clk_gcc_mdss_mdp_clk>,
1513 <&clock_gcc clk_gcc_mdss_axi_clk>;
1514 proxy-supply = <&gdsc_mdss>;
1515 qcom,proxy-consumer-enable;
1516 status = "okay";
1517};
1518
1519&gdsc_oxili_gx {
1520 clock-names = "core_root_clk";
1521 clocks =<&clock_gcc_gfx clk_gfx3d_clk_src>;
1522 qcom,force-enable-root-clk;
1523 parent-supply = <&gfx_vreg_corner>;
1524 status = "okay";
1525};
1526
1527&gdsc_jpeg {
1528 clock-names = "core_clk", "bus_clk";
1529 clocks = <&clock_gcc clk_gcc_camss_jpeg0_clk>,
1530 <&clock_gcc clk_gcc_camss_jpeg_axi_clk>;
1531 status = "okay";
1532};
1533
1534&gdsc_vfe {
1535 clock-names = "core_clk", "bus_clk", "micro_clk",
1536 "csi_clk";
1537 clocks = <&clock_gcc clk_gcc_camss_vfe0_clk>,
1538 <&clock_gcc clk_gcc_camss_vfe_axi_clk>,
1539 <&clock_gcc clk_gcc_camss_micro_ahb_clk>,
1540 <&clock_gcc clk_gcc_camss_csi_vfe0_clk>;
1541 status = "okay";
1542};
1543
1544&gdsc_vfe1 {
1545 clock-names = "core_clk", "bus_clk", "micro_clk",
1546 "csi_clk";
1547 clocks = <&clock_gcc clk_gcc_camss_vfe1_clk>,
1548 <&clock_gcc clk_gcc_camss_vfe1_axi_clk>,
1549 <&clock_gcc clk_gcc_camss_micro_ahb_clk>,
1550 <&clock_gcc clk_gcc_camss_csi_vfe1_clk>;
1551 status = "okay";
1552};
1553
1554&gdsc_cpp {
1555 clock-names = "core_clk", "bus_clk";
1556 clocks = <&clock_gcc clk_gcc_camss_cpp_clk>,
1557 <&clock_gcc clk_gcc_camss_cpp_axi_clk>;
1558 status = "okay";
1559};
1560
1561&gdsc_oxili_cx {
1562 clock-names = "core_clk";
1563 clocks = <&clock_gcc_gfx clk_gcc_oxili_gfx3d_clk>;
1564 status = "okay";
1565};
1566
1567&gdsc_usb30 {
1568 status = "okay";
1569};