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