blob: 4c12c37e13fe3604ec52e089bbe363e498dfe103 [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
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530513 blsp1_uart0: serial@78af000 {
514 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
515 reg = <0x78af000 0x200>;
516 interrupts = <0 107 0>;
Maria Yuaf0e9252017-11-30 19:58:44 +0800517 clocks = <&clock_gcc clk_gcc_blsp1_uart1_apps_clk>,
518 <&clock_gcc clk_gcc_blsp1_ahb_clk>;
519 clock-names = "core", "iface";
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530520 status = "disabled";
521 };
522
523 dma_blsp1: qcom,sps-dma@7884000 { /* BLSP1 */
524 #dma-cells = <4>;
525 compatible = "qcom,sps-dma";
526 reg = <0x7884000 0x1f000>;
527 interrupts = <0 238 0>;
528 qcom,summing-threshold = <10>;
529 };
530
531 dma_blsp2: qcom,sps-dma@7ac4000 { /* BLSP2 */
532 #dma-cells = <4>;
533 compatible = "qcom,sps-dma";
534 reg = <0x7ac4000 0x1f000>;
535 interrupts = <0 239 0>;
536 qcom,summing-threshold = <10>;
537 };
538
539 slim_msm: slim@c140000{
540 cell-index = <1>;
541 compatible = "qcom,slim-ngd";
542 reg = <0xc140000 0x2c000>,
543 <0xc104000 0x2a000>;
544 reg-names = "slimbus_physical", "slimbus_bam_physical";
545 interrupts = <0 163 0>, <0 180 0>;
546 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
547 qcom,apps-ch-pipes = <0x600000>;
548 qcom,ea-pc = <0x200>;
549 status = "disabled";
550 };
551
Shefali Jain44e24ad2017-11-23 12:27:33 +0530552 clock_gcc: qcom,gcc@1800000 {
553 compatible = "qcom,gcc-8953";
554 reg = <0x1800000 0x80000>,
555 <0x00a4124 0x08>;
556 reg-names = "cc_base", "efuse";
557 vdd_dig-supply = <&pm8953_s2_level>;
558 #clock-cells = <1>;
559 #reset-cells = <1>;
560 };
561
562 clock_debug: qcom,cc-debug@1874000 {
563 compatible = "qcom,cc-debug-8953";
564 reg = <0x1874000 0x4>;
565 reg-names = "cc_base";
566 clocks = <&clock_cpu clk_cpu_debug_pri_mux>;
567 clock-names = "debug_cpu_clk";
568 #clock-cells = <1>;
569 };
570
571 clock_gcc_gfx: qcom,gcc-gfx@1800000 {
572 compatible = "qcom,gcc-gfx-8953";
573 reg = <0x1800000 0x80000>;
574 reg-names = "cc_base";
575 vdd_gfx-supply = <&gfx_vreg_corner>;
576 qcom,gfxfreq-corner =
577 < 0 0 >,
578 < 133330000 1 >, /* Min SVS */
579 < 216000000 2 >, /* Low SVS */
580 < 320000000 3 >, /* SVS */
581 < 400000000 4 >, /* SVS Plus */
582 < 510000000 5 >, /* NOM */
583 < 560000000 6 >, /* Nom Plus */
584 < 650000000 7 >; /* Turbo */
585 #clock-cells = <1>;
586 };
587
588 clock_cpu: qcom,cpu-clock-8953@b116000 {
589 compatible = "qcom,cpu-clock-8953";
590 reg = <0xb114000 0x68>,
591 <0xb014000 0x68>,
592 <0xb116000 0x400>,
593 <0xb111050 0x08>,
594 <0xb011050 0x08>,
595 <0xb1d1050 0x08>,
596 <0x00a4124 0x08>;
597 reg-names = "rcgwr-c0-base", "rcgwr-c1-base",
598 "c0-pll", "c0-mux", "c1-mux",
599 "cci-mux", "efuse";
600 vdd-mx-supply = <&pm8953_s7_level_ao>;
601 vdd-cl-supply = <&apc_vreg>;
602 clocks = <&clock_gcc clk_xo_a_clk_src>;
603 clock-names = "xo_a";
604 qcom,num-clusters = <2>;
605 qcom,speed0-bin-v0-cl =
606 < 0 0>,
607 < 652800000 1>,
608 < 1036800000 2>,
609 < 1401600000 3>,
610 < 1689600000 4>,
611 < 1804800000 5>,
612 < 1958400000 6>,
613 < 2016000000 7>;
614 qcom,speed0-bin-v0-cci =
615 < 0 0>,
616 < 261120000 1>,
617 < 414720000 2>,
618 < 560640000 3>,
619 < 675840000 4>,
620 < 721920000 5>,
621 < 783360000 6>,
622 < 806400000 7>;
623 qcom,speed2-bin-v0-cl =
624 < 0 0>,
625 < 652800000 1>,
626 < 1036800000 2>,
627 < 1401600000 3>,
628 < 1689600000 4>,
629 < 1804800000 5>,
630 < 1958400000 6>,
631 < 2016000000 7>;
632 qcom,speed2-bin-v0-cci =
633 < 0 0>,
634 < 261120000 1>,
635 < 414720000 2>,
636 < 560640000 3>,
637 < 675840000 4>,
638 < 721920000 5>,
639 < 783360000 6>,
640 < 806400000 7>;
641 qcom,speed7-bin-v0-cl =
642 < 0 0>,
643 < 652800000 1>,
644 < 1036800000 2>,
645 < 1401600000 3>,
646 < 1689600000 4>,
647 < 1804800000 5>,
648 < 1958400000 6>,
649 < 2016000000 7>,
650 < 2150400000 8>,
651 < 2208000000 9>;
652 qcom,speed7-bin-v0-cci =
653 < 0 0>,
654 < 261120000 1>,
655 < 414720000 2>,
656 < 560640000 3>,
657 < 675840000 4>,
658 < 721920000 5>,
659 < 783360000 6>,
660 < 806400000 7>,
661 < 860160000 8>,
662 < 883200000 9>;
663 qcom,speed6-bin-v0-cl =
664 < 0 0>,
665 < 652800000 1>,
666 < 1036800000 2>,
667 < 1401600000 3>,
668 < 1689600000 4>,
669 < 1804800000 5>;
670 qcom,speed6-bin-v0-cci =
671 < 0 0>,
672 < 261120000 1>,
673 < 414720000 2>,
674 < 560640000 3>,
675 < 675840000 4>,
676 < 721920000 5>;
677 #clock-cells = <1>;
Maria Yub90c5482017-12-01 13:28:56 +0800678 };
679
680 msm_cpufreq: qcom,msm-cpufreq {
681 compatible = "qcom,msm-cpufreq";
682 clock-names = "l2_clk", "cpu0_clk", "cpu1_clk", "cpu2_clk",
683 "cpu3_clk", "cpu4_clk", "cpu5_clk",
684 "cpu6_clk", "cpu7_clk";
685 clocks = <&clock_cpu clk_cci_clk>,
686 <&clock_cpu clk_a53_pwr_clk>,
687 <&clock_cpu clk_a53_pwr_clk>,
688 <&clock_cpu clk_a53_pwr_clk>,
689 <&clock_cpu clk_a53_pwr_clk>,
690 <&clock_cpu clk_a53_pwr_clk>,
691 <&clock_cpu clk_a53_pwr_clk>,
692 <&clock_cpu clk_a53_pwr_clk>,
693 <&clock_cpu clk_a53_pwr_clk>;
694
695 qcom,cpufreq-table =
696 < 652800 >,
697 < 1036800 >,
698 < 1401600 >,
699 < 1689600 >,
700 < 1804800 >,
701 < 1958400 >,
702 < 2016000 >,
703 < 2150400 >,
704 < 2208000 >;
Shefali Jain44e24ad2017-11-23 12:27:33 +0530705 };
706
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530707 cpubw: qcom,cpubw {
708 compatible = "qcom,devbw";
709 governor = "cpufreq";
710 qcom,src-dst-ports = <1 512>;
711 qcom,active-only;
712 qcom,bw-tbl =
713 < 769 /* 100.8 MHz */ >,
714 < 1611 /* 211.2 MHz */ >, /*Low SVS*/
715 < 2124 /* 278.4 MHz */ >,
716 < 2929 /* 384 MHz */ >,
717 < 3221 /* 422.4 MHz */ >, /* SVS */
718 < 4248 /* 556.8 MHz */ >,
719 < 5126 /* 672 MHz */ >,
720 < 5859 /* 768 MHz */ >, /* SVS+ */
721 < 6152 /* 806.4 MHz */ >,
722 < 6445 /* 844.8 MHz */ >, /* NOM */
723 < 7104 /* 931.2 MHz */ >; /* TURBO */
724 };
725
726 mincpubw: qcom,mincpubw {
727 compatible = "qcom,devbw";
728 governor = "cpufreq";
729 qcom,src-dst-ports = <1 512>;
730 qcom,active-only;
731 qcom,bw-tbl =
732 < 769 /* 100.8 MHz */ >,
733 < 1611 /* 211.2 MHz */ >, /*Low SVS*/
734 < 2124 /* 278.4 MHz */ >,
735 < 2929 /* 384 MHz */ >,
736 < 3221 /* 422.4 MHz */ >, /* SVS */
737 < 4248 /* 556.8 MHz */ >,
738 < 5126 /* 672 MHz */ >,
739 < 5859 /* 768 MHz */ >, /* SVS+ */
740 < 6152 /* 806.4 MHz */ >,
741 < 6445 /* 844.8 MHz */ >, /* NOM */
742 < 7104 /* 931.2 MHz */ >; /* TURBO */
743 };
744
745 qcom,cpu-bwmon {
746 compatible = "qcom,bimc-bwmon2";
747 reg = <0x408000 0x300>, <0x401000 0x200>;
748 reg-names = "base", "global_base";
749 interrupts = <0 183 4>;
750 qcom,mport = <0>;
751 qcom,target-dev = <&cpubw>;
752 };
753
754 devfreq-cpufreq {
755 cpubw-cpufreq {
756 target-dev = <&cpubw>;
757 cpu-to-dev-map =
758 < 652800 1611>,
759 < 1036800 3221>,
760 < 1401600 5859>,
761 < 1689600 6445>,
762 < 1804800 7104>,
763 < 1958400 7104>,
764 < 2208000 7104>;
765 };
766
767 mincpubw-cpufreq {
768 target-dev = <&mincpubw>;
769 cpu-to-dev-map =
770 < 652800 1611 >,
771 < 1401600 3221 >,
772 < 2208000 5859 >;
773 };
774 };
775
Jonathan Avilac7a6fd52017-10-12 15:24:05 -0700776 cpubw_compute: qcom,cpubw-compute {
777 compatible = "qcom,arm-cpu-mon";
778 qcom,cpulist = < &CPU0 &CPU1 &CPU2 &CPU3
779 &CPU4 &CPU5 &CPU6 &CPU7 >;
780 qcom,target-dev = <&cpubw>;
781 qcom,core-dev-table =
782 < 652800 1611>,
783 < 1036800 3221>,
784 < 1401600 5859>,
785 < 1689600 6445>,
786 < 1804800 7104>,
787 < 1958400 7104>,
788 < 2208000 7104>;
789 };
790
791 mincpubw_compute: qcom,mincpubw-compute {
792 compatible = "qcom,arm-cpu-mon";
793 qcom,cpulist = < &CPU0 &CPU1 &CPU2 &CPU3
794 &CPU4 &CPU5 &CPU6 &CPU7 >;
795 qcom,target-dev = <&mincpubw>;
796 qcom,core-dev-table =
797 < 652800 1611 >,
798 < 1401600 3221 >,
799 < 2208000 5859 >;
800 };
801
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530802 qcom,ipc-spinlock@1905000 {
803 compatible = "qcom,ipc-spinlock-sfpb";
804 reg = <0x1905000 0x8000>;
805 qcom,num-locks = <8>;
806 };
807
808 qcom,smem@86300000 {
809 compatible = "qcom,smem";
810 reg = <0x86300000 0x100000>,
811 <0x0b011008 0x4>,
812 <0x60000 0x8000>,
813 <0x193d000 0x8>;
814 reg-names = "smem", "irq-reg-base",
815 "aux-mem1", "smem_targ_info_reg";
816 qcom,mpu-enabled;
817
818 qcom,smd-modem {
819 compatible = "qcom,smd";
820 qcom,smd-edge = <0>;
821 qcom,smd-irq-offset = <0x0>;
822 qcom,smd-irq-bitmask = <0x1000>;
823 interrupts = <0 25 1>;
824 label = "modem";
825 qcom,not-loadable;
826 };
827
828 qcom,smsm-modem {
829 compatible = "qcom,smsm";
830 qcom,smsm-edge = <0>;
831 qcom,smsm-irq-offset = <0x0>;
832 qcom,smsm-irq-bitmask = <0x2000>;
833 interrupts = <0 26 1>;
834 };
835
836 qcom,smd-wcnss {
837 compatible = "qcom,smd";
838 qcom,smd-edge = <6>;
839 qcom,smd-irq-offset = <0x0>;
840 qcom,smd-irq-bitmask = <0x20000>;
841 interrupts = <0 142 1>;
842 label = "wcnss";
843 };
844
845 qcom,smsm-wcnss {
846 compatible = "qcom,smsm";
847 qcom,smsm-edge = <6>;
848 qcom,smsm-irq-offset = <0x0>;
849 qcom,smsm-irq-bitmask = <0x80000>;
850 interrupts = <0 144 1>;
851 };
852
853 qcom,smd-adsp {
854 compatible = "qcom,smd";
855 qcom,smd-edge = <1>;
856 qcom,smd-irq-offset = <0x0>;
857 qcom,smd-irq-bitmask = <0x100>;
858 interrupts = <0 289 1>;
859 label = "adsp";
860 };
861
862 qcom,smsm-adsp {
863 compatible = "qcom,smsm";
864 qcom,smsm-edge = <1>;
865 qcom,smsm-irq-offset = <0x0>;
866 qcom,smsm-irq-bitmask = <0x200>;
867 interrupts = <0 290 1>;
868 };
869
870 qcom,smd-rpm {
871 compatible = "qcom,smd";
872 qcom,smd-edge = <15>;
873 qcom,smd-irq-offset = <0x0>;
874 qcom,smd-irq-bitmask = <0x1>;
875 interrupts = <0 168 1>;
876 label = "rpm";
877 qcom,irq-no-suspend;
878 qcom,not-loadable;
879 };
880 };
881
Arun Kumar Neelakantam36151aa2017-11-02 21:34:33 +0530882 qcom,smdtty {
883 compatible = "qcom,smdtty";
884
885 smdtty_apps_fm: qcom,smdtty-apps-fm {
886 qcom,smdtty-remote = "wcnss";
887 qcom,smdtty-port-name = "APPS_FM";
888 };
889
890 smdtty_apps_riva_bt_acl: smdtty-apps-riva-bt-acl {
891 qcom,smdtty-remote = "wcnss";
892 qcom,smdtty-port-name = "APPS_RIVA_BT_ACL";
893 };
894
895 smdtty_apps_riva_bt_cmd: qcom,smdtty-apps-riva-bt-cmd {
896 qcom,smdtty-remote = "wcnss";
897 qcom,smdtty-port-name = "APPS_RIVA_BT_CMD";
898 };
899
900 smdtty_mbalbridge: qcom,smdtty-mbalbridge {
901 qcom,smdtty-remote = "modem";
902 qcom,smdtty-port-name = "MBALBRIDGE";
903 };
904
905 smdtty_apps_riva_ant_cmd: smdtty-apps-riva-ant-cmd {
906 qcom,smdtty-remote = "wcnss";
907 qcom,smdtty-port-name = "APPS_RIVA_ANT_CMD";
908 };
909
910 smdtty_apps_riva_ant_data: smdtty-apps-riva-ant-data {
911 qcom,smdtty-remote = "wcnss";
912 qcom,smdtty-port-name = "APPS_RIVA_ANT_DATA";
913 };
914
915 smdtty_data1: qcom,smdtty-data1 {
916 qcom,smdtty-remote = "modem";
917 qcom,smdtty-port-name = "DATA1";
918 };
919
920 smdtty_data4: qcom,smdtty-data4 {
921 qcom,smdtty-remote = "modem";
922 qcom,smdtty-port-name = "DATA4";
923 };
924
925 smdtty_data11: qcom,smdtty-data11 {
926 qcom,smdtty-remote = "modem";
927 qcom,smdtty-port-name = "DATA11";
928 };
929
930 smdtty_data21: qcom,smdtty-data21 {
931 qcom,smdtty-remote = "modem";
932 qcom,smdtty-port-name = "DATA21";
933 };
934
935 smdtty_loopback: smdtty-loopback {
936 qcom,smdtty-remote = "modem";
937 qcom,smdtty-port-name = "LOOPBACK";
938 qcom,smdtty-dev-name = "LOOPBACK_TTY";
939 };
940 };
941
Arun Kumar Neelakantamea07e3d2017-11-02 21:27:50 +0530942 qcom,smdpkt {
943 compatible = "qcom,smdpkt";
944
945 qcom,smdpkt-data5-cntl {
946 qcom,smdpkt-remote = "modem";
947 qcom,smdpkt-port-name = "DATA5_CNTL";
948 qcom,smdpkt-dev-name = "smdcntl0";
949 };
950
951 qcom,smdpkt-data22 {
952 qcom,smdpkt-remote = "modem";
953 qcom,smdpkt-port-name = "DATA22";
954 qcom,smdpkt-dev-name = "smd22";
955 };
956
957 qcom,smdpkt-data40-cntl {
958 qcom,smdpkt-remote = "modem";
959 qcom,smdpkt-port-name = "DATA40_CNTL";
960 qcom,smdpkt-dev-name = "smdcntl8";
961 };
962
963 qcom,smdpkt-apr-apps2 {
964 qcom,smdpkt-remote = "adsp";
965 qcom,smdpkt-port-name = "apr_apps2";
966 qcom,smdpkt-dev-name = "apr_apps2";
967 };
968
969 qcom,smdpkt-loopback {
970 qcom,smdpkt-remote = "modem";
971 qcom,smdpkt-port-name = "LOOPBACK";
972 qcom,smdpkt-dev-name = "smd_pkt_loopback";
973 };
974 };
975
Raju P.L.S.S.S.N786994d2017-11-08 17:03:56 +0530976 rpm_bus: qcom,rpm-smd {
977 compatible = "qcom,rpm-smd";
978 rpm-channel-name = "rpm_requests";
979 rpm-channel-type = <15>; /* SMD_APPS_RPM */
980 };
981
Srinivas Ramana3cac2782017-09-13 16:31:17 +0530982 qcom,wdt@b017000 {
983 compatible = "qcom,msm-watchdog";
984 reg = <0xb017000 0x1000>;
985 reg-names = "wdt-base";
986 interrupts = <0 3 0>, <0 4 0>;
987 qcom,bark-time = <11000>;
988 qcom,pet-time = <10000>;
989 qcom,ipi-ping;
990 qcom,wakeup-enable;
991 };
992
993 qcom,chd {
994 compatible = "qcom,core-hang-detect";
995 qcom,threshold-arr = <0xb1880b0 0xb1980b0 0xb1a80b0
996 0xb1b80b0 0xb0880b0 0xb0980b0 0xb0a80b0 0xb0b80b0>;
997 qcom,config-arr = <0xb1880b8 0xb1980b8 0xb1a80b8
998 0xb1b80b8 0xb0880b8 0xb0980b8 0xb0a80b8 0xb0b80b8>;
999 };
1000
1001 qcom,msm-rtb {
1002 compatible = "qcom,msm-rtb";
1003 qcom,rtb-size = <0x100000>;
1004 };
1005
1006 qcom,msm-imem@8600000 {
1007 compatible = "qcom,msm-imem";
1008 reg = <0x08600000 0x1000>;
1009 ranges = <0x0 0x08600000 0x1000>;
1010 #address-cells = <1>;
1011 #size-cells = <1>;
1012
1013 mem_dump_table@10 {
1014 compatible = "qcom,msm-imem-mem_dump_table";
1015 reg = <0x10 8>;
1016 };
1017
Maria Yu06cf96e2017-09-21 17:35:13 +08001018 dload_type@18 {
1019 compatible = "qcom,msm-imem-dload-type";
1020 reg = <0x18 4>;
1021 };
1022
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301023 restart_reason@65c {
1024 compatible = "qcom,msm-imem-restart_reason";
1025 reg = <0x65c 4>;
1026 };
1027
1028 boot_stats@6b0 {
1029 compatible = "qcom,msm-imem-boot_stats";
1030 reg = <0x6b0 32>;
1031 };
1032
Maria Yu575d67f2017-12-05 16:31:19 +08001033 kaslr_offset@6d0 {
1034 compatible = "qcom,msm-imem-kaslr_offset";
1035 reg = <0x6d0 12>;
1036 };
1037
1038 pil@94c {
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301039 compatible = "qcom,msm-imem-pil";
1040 reg = <0x94c 200>;
1041
1042 };
1043 };
1044
1045 qcom,memshare {
1046 compatible = "qcom,memshare";
1047
1048 qcom,client_1 {
1049 compatible = "qcom,memshare-peripheral";
1050 qcom,peripheral-size = <0x200000>;
1051 qcom,client-id = <0>;
1052 qcom,allocate-boot-time;
1053 label = "modem";
1054 };
1055
1056 qcom,client_2 {
1057 compatible = "qcom,memshare-peripheral";
1058 qcom,peripheral-size = <0x300000>;
1059 qcom,client-id = <2>;
1060 label = "modem";
1061 };
1062
1063 mem_client_3_size: qcom,client_3 {
1064 compatible = "qcom,memshare-peripheral";
1065 qcom,peripheral-size = <0x0>;
1066 qcom,client-id = <1>;
1067 label = "modem";
1068 };
1069 };
1070 sdcc1_ice: sdcc1ice@7803000 {
1071 compatible = "qcom,ice";
1072 reg = <0x7803000 0x8000>;
1073 interrupt-names = "sdcc_ice_nonsec_level_irq",
1074 "sdcc_ice_sec_level_irq";
1075 interrupts = <0 312 0>, <0 313 0>;
1076 qcom,enable-ice-clk;
Sayali Lokhande31299932017-12-06 09:41:17 +05301077 clock-names = "ice_core_clk_src", "ice_core_clk",
1078 "bus_clk", "iface_clk";
1079 clocks = <&clock_gcc clk_sdcc1_ice_core_clk_src>,
1080 <&clock_gcc clk_gcc_sdcc1_ice_core_clk>,
1081 <&clock_gcc clk_gcc_sdcc1_apps_clk>,
1082 <&clock_gcc clk_gcc_sdcc1_ahb_clk>;
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301083 qcom,op-freq-hz = <270000000>, <0>, <0>, <0>;
1084 qcom,msm-bus,name = "sdcc_ice_noc";
1085 qcom,msm-bus,num-cases = <2>;
1086 qcom,msm-bus,num-paths = <1>;
1087 qcom,msm-bus,vectors-KBps =
1088 <78 512 0 0>, /* No vote */
1089 <78 512 1000 0>; /* Max. bandwidth */
1090 qcom,bus-vector-names = "MIN", "MAX";
1091 qcom,instance-type = "sdcc";
1092 };
1093
1094 sdhc_1: sdhci@7824900 {
1095 compatible = "qcom,sdhci-msm";
1096 reg = <0x7824900 0x500>, <0x7824000 0x800>, <0x7824e00 0x200>;
1097 reg-names = "hc_mem", "core_mem", "cmdq_mem";
1098
1099 interrupts = <0 123 0>, <0 138 0>;
1100 interrupt-names = "hc_irq", "pwr_irq";
1101
1102 sdhc-msm-crypto = <&sdcc1_ice>;
1103 qcom,bus-width = <8>;
1104
1105 qcom,devfreq,freq-table = <50000000 200000000>;
1106
1107 qcom,pm-qos-irq-type = "affine_irq";
1108 qcom,pm-qos-irq-latency = <2 213>;
1109
1110 qcom,pm-qos-cpu-groups = <0x0f 0xf0>;
1111 qcom,pm-qos-cmdq-latency-us = <2 213>, <2 213>;
1112
1113 qcom,pm-qos-legacy-latency-us = <2 213>, <2 213>;
1114
1115 qcom,msm-bus,name = "sdhc1";
1116 qcom,msm-bus,num-cases = <9>;
1117 qcom,msm-bus,num-paths = <1>;
1118 qcom,msm-bus,vectors-KBps = <78 512 0 0>, /* No vote */
1119 <78 512 1046 3200>, /* 400 KB/s*/
1120 <78 512 52286 160000>, /* 20 MB/s */
1121 <78 512 65360 200000>, /* 25 MB/s */
1122 <78 512 130718 400000>, /* 50 MB/s */
1123 <78 512 130718 400000>, /* 100 MB/s */
1124 <78 512 261438 800000>, /* 200 MB/s */
1125 <78 512 261438 800000>, /* 400 MB/s */
1126 <78 512 1338562 4096000>; /* Max. bandwidth */
1127 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
1128 100000000 200000000 400000000 4294967295>;
1129
Sayali Lokhande31299932017-12-06 09:41:17 +05301130 clocks = <&clock_gcc clk_gcc_sdcc1_ahb_clk>,
1131 <&clock_gcc clk_gcc_sdcc1_apps_clk>,
1132 <&clock_gcc clk_gcc_sdcc1_ice_core_clk>;
1133 clock-names = "iface_clk", "core_clk", "ice_core_clk";
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301134 qcom,ice-clk-rates = <270000000 160000000>;
1135 qcom,large-address-bus;
1136
1137 status = "disabled";
1138 };
1139
1140 sdhc_2: sdhci@7864900 {
1141 compatible = "qcom,sdhci-msm";
1142 reg = <0x7864900 0x500>, <0x7864000 0x800>;
1143 reg-names = "hc_mem", "core_mem";
1144
1145 interrupts = <0 125 0>, <0 221 0>;
1146 interrupt-names = "hc_irq", "pwr_irq";
1147
1148 qcom,bus-width = <4>;
1149
1150 qcom,pm-qos-irq-type = "affine_irq";
1151 qcom,pm-qos-irq-latency = <2 213>;
1152
1153 qcom,pm-qos-cpu-groups = <0x0f 0xf0>;
1154 qcom,pm-qos-legacy-latency-us = <2 213>, <2 213>;
1155
1156 qcom,devfreq,freq-table = <50000000 200000000>;
1157
1158 qcom,msm-bus,name = "sdhc2";
1159 qcom,msm-bus,num-cases = <8>;
1160 qcom,msm-bus,num-paths = <1>;
1161 qcom,msm-bus,vectors-KBps = <81 512 0 0>, /* No vote */
1162 <81 512 1046 3200>, /* 400 KB/s*/
1163 <81 512 52286 160000>, /* 20 MB/s */
1164 <81 512 65360 200000>, /* 25 MB/s */
1165 <81 512 130718 400000>, /* 50 MB/s */
1166 <81 512 261438 800000>, /* 100 MB/s */
1167 <81 512 261438 800000>, /* 200 MB/s */
1168 <81 512 1338562 4096000>; /* Max. bandwidth */
1169 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
1170 100000000 200000000 4294967295>;
1171
Sayali Lokhande31299932017-12-06 09:41:17 +05301172 clocks = <&clock_gcc clk_gcc_sdcc2_ahb_clk>,
1173 <&clock_gcc clk_gcc_sdcc2_apps_clk>;
1174 clock-names = "iface_clk", "core_clk";
1175
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301176 qcom,large-address-bus;
1177 status = "disabled";
1178 };
1179
Kiran Gundaaf6a0b62017-10-23 16:03:10 +05301180 spmi_bus: qcom,spmi@200f000 {
1181 compatible = "qcom,spmi-pmic-arb";
1182 reg = <0x200f000 0x1000>,
1183 <0x2400000 0x800000>,
1184 <0x2c00000 0x800000>,
1185 <0x3800000 0x200000>,
1186 <0x200a000 0x2100>;
1187 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1188 interrupt-names = "periph_irq";
1189 interrupts = <GIC_SPI 190 IRQ_TYPE_NONE>;
1190 qcom,ee = <0>;
1191 qcom,channel = <0>;
Kiran Gunda90e356a2017-11-22 17:04:46 +05301192 #address-cells = <2>;
Kiran Gundaaf6a0b62017-10-23 16:03:10 +05301193 #size-cells = <0>;
1194 interrupt-controller;
Kiran Gunda90e356a2017-11-22 17:04:46 +05301195 #interrupt-cells = <4>;
Kiran Gundaaf6a0b62017-10-23 16:03:10 +05301196 cell-index = <0>;
1197 };
Chandana Kishori Chiluveru34872ee2017-11-30 17:35:26 +05301198
1199 usb3: ssusb@7000000{
1200 compatible = "qcom,dwc-usb3-msm";
1201 reg = <0x07000000 0xfc000>,
1202 <0x0007e000 0x400>;
1203 reg-names = "core_base",
1204 "ahb2phy_base";
1205 #address-cells = <1>;
1206 #size-cells = <1>;
1207 ranges;
1208
1209 interrupts = <0 136 0>, <0 220 0>, <0 134 0>;
1210 interrupt-names = "hs_phy_irq", "ss_phy_irq", "pwr_event_irq";
1211
1212 USB3_GDSC-supply = <&gdsc_usb30>;
1213 qcom,usb-dbm = <&dbm_1p5>;
1214 qcom,msm-bus,name = "usb3";
1215 qcom,msm-bus,num-cases = <3>;
1216 qcom,msm-bus,num-paths = <1>;
1217 qcom,msm-bus,vectors-KBps =
1218 <61 512 0 0>,
1219 <61 512 240000 800000>,
1220 <61 512 240000 800000>;
1221
1222 /* CPU-CLUSTER-WFI-LVL latency +1 */
1223 qcom,pm-qos-latency = <2>;
1224
1225 qcom,dwc-usb3-msm-tx-fifo-size = <21288>;
1226
1227 clocks = <&clock_gcc clk_gcc_usb30_master_clk>,
1228 <&clock_gcc clk_gcc_pcnoc_usb3_axi_clk>,
1229 <&clock_gcc clk_gcc_usb30_mock_utmi_clk>,
1230 <&clock_gcc clk_gcc_usb30_sleep_clk>,
1231 <&clock_gcc clk_xo_dwc3_clk>,
1232 <&clock_gcc clk_gcc_usb_phy_cfg_ahb_clk>;
1233
1234 clock-names = "core_clk", "iface_clk", "utmi_clk",
1235 "sleep_clk", "xo", "cfg_ahb_clk";
1236
1237 qcom,core-clk-rate = <133333333>; /* NOM */
1238 qcom,core-clk-rate-hs = <60000000>; /* LOW SVS */
1239
1240 resets = <&clock_gcc GCC_USB_30_BCR>;
1241 reset-names = "core_reset";
1242
1243 dwc3@7000000 {
1244 compatible = "snps,dwc3";
1245 reg = <0x07000000 0xc8d0>;
1246 interrupt-parent = <&intc>;
1247 interrupts = <0 140 0>;
1248 usb-phy = <&qusb_phy>, <&ssphy>;
1249 tx-fifo-resize;
1250 snps,usb3-u1u2-disable;
1251 snps,nominal-elastic-buffer;
1252 snps,is-utmi-l1-suspend;
1253 snps,hird-threshold = /bits/ 8 <0x0>;
1254 };
1255
1256 qcom,usbbam@7104000 {
1257 compatible = "qcom,usb-bam-msm";
1258 reg = <0x07104000 0x1a934>;
1259 interrupt-parent = <&intc>;
1260 interrupts = <0 135 0>;
1261
1262 qcom,bam-type = <0>;
1263 qcom,usb-bam-fifo-baseaddr = <0x08605000>;
1264 qcom,usb-bam-num-pipes = <8>;
1265 qcom,ignore-core-reset-ack;
1266 qcom,disable-clk-gating;
1267 qcom,usb-bam-override-threshold = <0x4001>;
1268 qcom,usb-bam-max-mbps-highspeed = <400>;
1269 qcom,usb-bam-max-mbps-superspeed = <3600>;
1270 qcom,reset-bam-on-connect;
1271
1272 qcom,pipe0 {
1273 label = "ssusb-ipa-out-0";
1274 qcom,usb-bam-mem-type = <1>;
1275 qcom,dir = <0>;
1276 qcom,pipe-num = <0>;
1277 qcom,peer-bam = <1>;
1278 qcom,src-bam-pipe-index = <1>;
1279 qcom,data-fifo-size = <0x8000>;
1280 qcom,descriptor-fifo-size = <0x2000>;
1281 };
1282
1283 qcom,pipe1 {
1284 label = "ssusb-ipa-in-0";
1285 qcom,usb-bam-mem-type = <1>;
1286 qcom,dir = <1>;
1287 qcom,pipe-num = <0>;
1288 qcom,peer-bam = <1>;
1289 qcom,dst-bam-pipe-index = <0>;
1290 qcom,data-fifo-size = <0x8000>;
1291 qcom,descriptor-fifo-size = <0x2000>;
1292 };
1293
1294 qcom,pipe2 {
1295 label = "ssusb-qdss-in-0";
1296 qcom,usb-bam-mem-type = <2>;
1297 qcom,dir = <1>;
1298 qcom,pipe-num = <0>;
1299 qcom,peer-bam = <0>;
1300 qcom,peer-bam-physical-address = <0x06044000>;
1301 qcom,src-bam-pipe-index = <0>;
1302 qcom,dst-bam-pipe-index = <2>;
1303 qcom,data-fifo-offset = <0x0>;
1304 qcom,data-fifo-size = <0xe00>;
1305 qcom,descriptor-fifo-offset = <0xe00>;
1306 qcom,descriptor-fifo-size = <0x200>;
1307 };
1308
1309 qcom,pipe3 {
1310 label = "ssusb-dpl-ipa-in-1";
1311 qcom,usb-bam-mem-type = <1>;
1312 qcom,dir = <1>;
1313 qcom,pipe-num = <1>;
1314 qcom,peer-bam = <1>;
1315 qcom,dst-bam-pipe-index = <2>;
1316 qcom,data-fifo-size = <0x8000>;
1317 qcom,descriptor-fifo-size = <0x2000>;
1318 };
1319 };
1320 };
1321
1322 qusb_phy: qusb@79000 {
1323 compatible = "qcom,qusb2phy";
1324 reg = <0x079000 0x180>,
1325 <0x01841030 0x4>,
1326 <0x0193f020 0x4>;
1327 reg-names = "qusb_phy_base",
1328 "ref_clk_addr",
1329 "tcsr_clamp_dig_n_1p8";
1330
1331 USB3_GDSC-supply = <&gdsc_usb30>;
1332 vdd-supply = <&pm8953_l3>;
1333 vdda18-supply = <&pm8953_l7>;
1334 vdda33-supply = <&pm8953_l13>;
1335 qcom,vdd-voltage-level = <0 925000 925000>;
1336
1337 qcom,qusb-phy-init-seq = <0xf8 0x80
1338 0xb3 0x84
1339 0x83 0x88
1340 0xc0 0x8c
1341 0x14 0x9c
1342 0x30 0x08
1343 0x79 0x0c
1344 0x21 0x10
1345 0x00 0x90
1346 0x9f 0x1c
1347 0x00 0x18>;
1348 phy_type= "utmi";
1349 qcom,phy-clk-scheme = "cml";
1350 qcom,major-rev = <1>;
1351
1352 clocks = <&clock_gcc clk_bb_clk1>,
1353 <&clock_gcc clk_gcc_qusb_ref_clk>,
1354 <&clock_gcc clk_gcc_usb_phy_cfg_ahb_clk>,
1355 <&clock_gcc clk_gcc_pcnoc_usb3_axi_clk>,
1356 <&clock_gcc clk_gcc_usb30_master_clk>;
1357
1358 clock-names = "ref_clk_src", "ref_clk", "cfg_ahb_clk",
1359 "iface_clk", "core_clk";
1360
1361 resets = <&clock_gcc GCC_QUSB2_PHY_BCR>;
1362 reset-names = "phy_reset";
1363 };
1364
1365 ssphy: ssphy@78000 {
1366 compatible = "qcom,usb-ssphy-qmp";
1367 reg = <0x78000 0x9f8>,
1368 <0x0193f244 0x4>;
1369 reg-names = "qmp_phy_base",
1370 "vls_clamp_reg";
1371
1372 qcom,qmp-phy-init-seq = /*<reg_offset, value, delay>*/
1373 <0xac 0x14 0x00
1374 0x34 0x08 0x00
1375 0x174 0x30 0x00
1376 0x3c 0x06 0x00
1377 0xb4 0x00 0x00
1378 0xb8 0x08 0x00
1379 0x194 0x06 0x3e8
1380 0x19c 0x01 0x00
1381 0x178 0x00 0x00
1382 0xd0 0x82 0x00
1383 0xdc 0x55 0x00
1384 0xe0 0x55 0x00
1385 0xe4 0x03 0x00
1386 0x78 0x0b 0x00
1387 0x84 0x16 0x00
1388 0x90 0x28 0x00
1389 0x108 0x80 0x00
1390 0x10c 0x00 0x00
1391 0x184 0x0a 0x00
1392 0x4c 0x15 0x00
1393 0x50 0x34 0x00
1394 0x54 0x00 0x00
1395 0xc8 0x00 0x00
1396 0x18c 0x00 0x00
1397 0xcc 0x00 0x00
1398 0x128 0x00 0x00
1399 0x0c 0x0a 0x00
1400 0x10 0x01 0x00
1401 0x1c 0x31 0x00
1402 0x20 0x01 0x00
1403 0x14 0x00 0x00
1404 0x18 0x00 0x00
1405 0x24 0xde 0x00
1406 0x28 0x07 0x00
1407 0x48 0x0f 0x00
1408 0x70 0x0f 0x00
1409 0x100 0x80 0x00
1410 0x440 0x0b 0x00
1411 0x4d8 0x02 0x00
1412 0x4dc 0x6c 0x00
1413 0x4e0 0xbb 0x00
1414 0x508 0x77 0x00
1415 0x50c 0x80 0x00
1416 0x514 0x03 0x00
1417 0x51c 0x16 0x00
1418 0x448 0x75 0x00
1419 0x454 0x00 0x00
1420 0x40c 0x0a 0x00
1421 0x41c 0x06 0x00
1422 0x510 0x00 0x00
1423 0x268 0x45 0x00
1424 0x2ac 0x12 0x00
1425 0x294 0x06 0x00
1426 0x254 0x00 0x00
1427 0x8c8 0x83 0x00
1428 0x8c4 0x02 0x00
1429 0x8cc 0x09 0x00
1430 0x8d0 0xa2 0x00
1431 0x8d4 0x85 0x00
1432 0x880 0xd1 0x00
1433 0x884 0x1f 0x00
1434 0x888 0x47 0x00
1435 0x80c 0x9f 0x00
1436 0x824 0x17 0x00
1437 0x828 0x0f 0x00
1438 0x8b8 0x75 0x00
1439 0x8bc 0x13 0x00
1440 0x8b0 0x86 0x00
1441 0x8a0 0x04 0x00
1442 0x88c 0x44 0x00
1443 0x870 0xe7 0x00
1444 0x874 0x03 0x00
1445 0x878 0x40 0x00
1446 0x87c 0x00 0x00
1447 0x9d8 0x88 0x00
1448 0xffffffff 0x00 0x00>;
1449 qcom,qmp-phy-reg-offset =
1450 <0x974 /* USB3_PHY_PCS_STATUS */
1451 0x8d8 /* USB3_PHY_AUTONOMOUS_MODE_CTRL */
1452 0x8dc /* USB3_PHY_LFPS_RXTERM_IRQ_CLEAR */
1453 0x804 /* USB3_PHY_POWER_DOWN_CONTROL */
1454 0x800 /* USB3_PHY_SW_RESET */
1455 0x808>; /* USB3_PHY_START */
1456
1457 vdd-supply = <&pm8953_l3>;
1458 core-supply = <&pm8953_l7>;
1459 qcom,vdd-voltage-level = <0 925000 925000>;
1460 qcom,core-voltage-level = <0 1800000 1800000>;
1461 qcom,vbus-valid-override;
1462
1463 clocks = <&clock_gcc clk_gcc_usb3_aux_clk>,
1464 <&clock_gcc clk_gcc_usb3_pipe_clk>,
1465 <&clock_gcc clk_gcc_usb_phy_cfg_ahb_clk>,
1466 <&clock_gcc clk_bb_clk1>,
1467 <&clock_gcc clk_gcc_usb_ss_ref_clk>;
1468
1469 clock-names = "aux_clk", "pipe_clk", "cfg_ahb_clk",
1470 "ref_clk_src", "ref_clk";
1471
1472 resets = <&clock_gcc GCC_USB3_PHY_BCR>,
1473 <&clock_gcc GCC_USB3PHY_PHY_BCR>;
1474
1475 reset-names = "phy_reset", "phy_phy_reset";
1476 };
1477
1478 dbm_1p5: dbm@70f8000 {
1479 compatible = "qcom,usb-dbm-1p5";
1480 reg = <0x070f8000 0x300>;
1481 qcom,reset-ep-after-lpm-resume;
1482 };
Srinivas Ramana3cac2782017-09-13 16:31:17 +05301483};
Kiran Gunda0954f392017-10-16 16:24:55 +05301484
1485#include "pm8953-rpm-regulator.dtsi"
1486#include "pm8953.dtsi"
1487#include "msm8953-regulator.dtsi"
Shefali Jain44e24ad2017-11-23 12:27:33 +05301488#include "msm-gdsc-8916.dtsi"
1489
1490&gdsc_venus {
1491 clock-names = "bus_clk", "core_clk";
1492 clocks = <&clock_gcc clk_gcc_venus0_axi_clk>,
1493 <&clock_gcc clk_gcc_venus0_vcodec0_clk>;
1494 status = "okay";
1495};
1496
1497&gdsc_venus_core0 {
1498 qcom,support-hw-trigger;
1499 clock-names ="core0_clk";
1500 clocks = <&clock_gcc clk_gcc_venus0_core0_vcodec0_clk>;
1501 status = "okay";
1502};
1503
1504&gdsc_mdss {
1505 clock-names = "core_clk", "bus_clk";
1506 clocks = <&clock_gcc clk_gcc_mdss_mdp_clk>,
1507 <&clock_gcc clk_gcc_mdss_axi_clk>;
1508 proxy-supply = <&gdsc_mdss>;
1509 qcom,proxy-consumer-enable;
1510 status = "okay";
1511};
1512
1513&gdsc_oxili_gx {
1514 clock-names = "core_root_clk";
1515 clocks =<&clock_gcc_gfx clk_gfx3d_clk_src>;
1516 qcom,force-enable-root-clk;
1517 parent-supply = <&gfx_vreg_corner>;
1518 status = "okay";
1519};
1520
1521&gdsc_jpeg {
1522 clock-names = "core_clk", "bus_clk";
1523 clocks = <&clock_gcc clk_gcc_camss_jpeg0_clk>,
1524 <&clock_gcc clk_gcc_camss_jpeg_axi_clk>;
1525 status = "okay";
1526};
1527
1528&gdsc_vfe {
1529 clock-names = "core_clk", "bus_clk", "micro_clk",
1530 "csi_clk";
1531 clocks = <&clock_gcc clk_gcc_camss_vfe0_clk>,
1532 <&clock_gcc clk_gcc_camss_vfe_axi_clk>,
1533 <&clock_gcc clk_gcc_camss_micro_ahb_clk>,
1534 <&clock_gcc clk_gcc_camss_csi_vfe0_clk>;
1535 status = "okay";
1536};
1537
1538&gdsc_vfe1 {
1539 clock-names = "core_clk", "bus_clk", "micro_clk",
1540 "csi_clk";
1541 clocks = <&clock_gcc clk_gcc_camss_vfe1_clk>,
1542 <&clock_gcc clk_gcc_camss_vfe1_axi_clk>,
1543 <&clock_gcc clk_gcc_camss_micro_ahb_clk>,
1544 <&clock_gcc clk_gcc_camss_csi_vfe1_clk>;
1545 status = "okay";
1546};
1547
1548&gdsc_cpp {
1549 clock-names = "core_clk", "bus_clk";
1550 clocks = <&clock_gcc clk_gcc_camss_cpp_clk>,
1551 <&clock_gcc clk_gcc_camss_cpp_axi_clk>;
1552 status = "okay";
1553};
1554
1555&gdsc_oxili_cx {
1556 clock-names = "core_clk";
1557 clocks = <&clock_gcc_gfx clk_gcc_oxili_gfx3d_clk>;
1558 status = "okay";
1559};
1560
1561&gdsc_usb30 {
1562 status = "okay";
1563};