blob: 0629b39ff73a5ca8f9d4452dce5533bbaf96cc2b [file] [log] [blame]
Imran Khan04f08312017-03-30 15:07:43 +05301/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include "skeleton64.dtsi"
14#include <dt-bindings/interrupt-controller/arm-gic.h>
Odelu Kukatla1fe3a222017-06-01 16:24:59 +053015#include <dt-bindings/clock/qcom,gcc-sdm845.h>
16#include <dt-bindings/clock/qcom,camcc-sdm845.h>
17#include <dt-bindings/clock/qcom,dispcc-sdm845.h>
18#include <dt-bindings/clock/qcom,gpucc-sdm845.h>
19#include <dt-bindings/clock/qcom,videocc-sdm845.h>
20#include <dt-bindings/clock/qcom,cpucc-sdm845.h>
21#include <dt-bindings/clock/qcom,rpmh.h>
Maulik Shahc77d1d22017-06-15 14:04:50 +053022#include <dt-bindings/soc/qcom,tcs-mbox.h>
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +053023#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
Imran Khan04f08312017-03-30 15:07:43 +053024
25/ {
26 model = "Qualcomm Technologies, Inc. SDM670";
27 compatible = "qcom,sdm670";
28 qcom,msm-id = <336 0x0>;
Maulik Shah30ebbde2017-06-15 10:02:54 +053029 interrupt-parent = <&pdc>;
Imran Khan04f08312017-03-30 15:07:43 +053030
Sayali Lokhande099af9c2017-06-08 10:18:29 +053031 aliases {
32 ufshc1 = &ufshc_mem; /* Embedded UFS slot */
33 };
Imran Khan04f08312017-03-30 15:07:43 +053034
Mukesh Kumar Savaliya7b272542017-07-10 19:35:29 +053035 aliases {
36 serial0 = &qupv3_se12_2uart;
37 spi0 = &qupv3_se8_spi;
38 i2c0 = &qupv3_se10_i2c;
39 i2c1 = &qupv3_se3_i2c;
40 hsuart0 = &qupv3_se6_4uart;
41 };
42
Imran Khan04f08312017-03-30 15:07:43 +053043 cpus {
44 #address-cells = <2>;
45 #size-cells = <0>;
46
47 CPU0: cpu@0 {
48 device_type = "cpu";
49 compatible = "arm,armv8";
50 reg = <0x0 0x0>;
51 enable-method = "psci";
52 efficiency = <1024>;
53 cache-size = <0x8000>;
54 cpu-release-addr = <0x0 0x90000000>;
55 next-level-cache = <&L2_0>;
56 L2_0: l2-cache {
57 compatible = "arm,arch-cache";
58 cache-size = <0x20000>;
59 cache-level = <2>;
60 next-level-cache = <&L3_0>;
61 L3_0: l3-cache {
62 compatible = "arm,arch-cache";
63 cache-size = <0x100000>;
64 cache-level = <3>;
65 };
66 };
67 L1_I_0: l1-icache {
68 compatible = "arm,arch-cache";
69 qcom,dump-size = <0x9000>;
70 };
71 L1_D_0: l1-dcache {
72 compatible = "arm,arch-cache";
73 qcom,dump-size = <0x9000>;
74 };
75 };
76
77 CPU1: cpu@100 {
78 device_type = "cpu";
79 compatible = "arm,armv8";
80 reg = <0x0 0x100>;
81 enable-method = "psci";
82 efficiency = <1024>;
83 cache-size = <0x8000>;
84 cpu-release-addr = <0x0 0x90000000>;
85 next-level-cache = <&L2_100>;
86 L2_100: l2-cache {
87 compatible = "arm,arch-cache";
88 cache-size = <0x20000>;
89 cache-level = <2>;
90 next-level-cache = <&L3_0>;
91 };
92 L1_I_100: l1-icache {
93 compatible = "arm,arch-cache";
94 qcom,dump-size = <0x9000>;
95 };
96 L1_D_100: l1-dcache {
97 compatible = "arm,arch-cache";
98 qcom,dump-size = <0x9000>;
99 };
100 };
101
102 CPU2: cpu@200 {
103 device_type = "cpu";
104 compatible = "arm,armv8";
105 reg = <0x0 0x200>;
106 enable-method = "psci";
107 efficiency = <1024>;
108 cache-size = <0x8000>;
109 cpu-release-addr = <0x0 0x90000000>;
110 next-level-cache = <&L2_200>;
111 L2_200: l2-cache {
112 compatible = "arm,arch-cache";
113 cache-size = <0x20000>;
114 cache-level = <2>;
115 next-level-cache = <&L3_0>;
116 };
117 L1_I_200: l1-icache {
118 compatible = "arm,arch-cache";
119 qcom,dump-size = <0x9000>;
120 };
121 L1_D_200: l1-dcache {
122 compatible = "arm,arch-cache";
123 qcom,dump-size = <0x9000>;
124 };
125 };
126
127 CPU3: cpu@300 {
128 device_type = "cpu";
129 compatible = "arm,armv8";
130 reg = <0x0 0x300>;
131 enable-method = "psci";
132 efficiency = <1024>;
133 cache-size = <0x8000>;
134 cpu-release-addr = <0x0 0x90000000>;
135 next-level-cache = <&L2_300>;
136 L2_300: l2-cache {
137 compatible = "arm,arch-cache";
138 cache-size = <0x20000>;
139 cache-level = <2>;
140 next-level-cache = <&L3_0>;
141 };
142 L1_I_300: l1-icache {
143 compatible = "arm,arch-cache";
144 qcom,dump-size = <0x9000>;
145 };
146 L1_D_300: l1-dcache {
147 compatible = "arm,arch-cache";
148 qcom,dump-size = <0x9000>;
149 };
150 };
151
152 CPU4: cpu@400 {
153 device_type = "cpu";
154 compatible = "arm,armv8";
155 reg = <0x0 0x400>;
156 enable-method = "psci";
157 efficiency = <1024>;
158 cache-size = <0x8000>;
159 cpu-release-addr = <0x0 0x90000000>;
160 next-level-cache = <&L2_400>;
161 L2_400: l2-cache {
162 compatible = "arm,arch-cache";
163 cache-size = <0x20000>;
164 cache-level = <2>;
165 next-level-cache = <&L3_0>;
166 };
167 L1_I_400: l1-icache {
168 compatible = "arm,arch-cache";
169 qcom,dump-size = <0x9000>;
170 };
171 L1_D_400: l1-dcache {
172 compatible = "arm,arch-cache";
173 qcom,dump-size = <0x9000>;
174 };
175 };
176
177 CPU5: cpu@500 {
178 device_type = "cpu";
179 compatible = "arm,armv8";
180 reg = <0x0 0x500>;
181 enable-method = "psci";
182 efficiency = <1024>;
183 cache-size = <0x8000>;
184 cpu-release-addr = <0x0 0x90000000>;
185 next-level-cache = <&L2_500>;
186 L2_500: l2-cache {
187 compatible = "arm,arch-cache";
188 cache-size = <0x20000>;
189 cache-level = <2>;
190 next-level-cache = <&L3_0>;
191 };
192 L1_I_500: l1-icache {
193 compatible = "arm,arch-cache";
194 qcom,dump-size = <0x9000>;
195 };
196 L1_D_500: l1-dcache {
197 compatible = "arm,arch-cache";
198 qcom,dump-size = <0x9000>;
199 };
200 };
201
202 CPU6: cpu@600 {
203 device_type = "cpu";
204 compatible = "arm,armv8";
205 reg = <0x0 0x600>;
206 enable-method = "psci";
207 efficiency = <1740>;
208 cache-size = <0x10000>;
209 cpu-release-addr = <0x0 0x90000000>;
210 next-level-cache = <&L2_600>;
211 L2_600: l2-cache {
212 compatible = "arm,arch-cache";
213 cache-size = <0x40000>;
214 cache-level = <2>;
215 next-level-cache = <&L3_0>;
216 };
217 L1_I_600: l1-icache {
218 compatible = "arm,arch-cache";
219 qcom,dump-size = <0x12000>;
220 };
221 L1_D_600: l1-dcache {
222 compatible = "arm,arch-cache";
223 qcom,dump-size = <0x12000>;
224 };
225 };
226
227 CPU7: cpu@700 {
228 device_type = "cpu";
229 compatible = "arm,armv8";
230 reg = <0x0 0x700>;
231 enable-method = "psci";
232 efficiency = <1740>;
233 cache-size = <0x10000>;
234 cpu-release-addr = <0x0 0x90000000>;
235 next-level-cache = <&L2_700>;
236 L2_700: l2-cache {
237 compatible = "arm,arch-cache";
238 cache-size = <0x40000>;
239 cache-level = <2>;
240 next-level-cache = <&L3_0>;
241 };
242 L1_I_700: l1-icache {
243 compatible = "arm,arch-cache";
244 qcom,dump-size = <0x12000>;
245 };
246 L1_D_700: l1-dcache {
247 compatible = "arm,arch-cache";
248 qcom,dump-size = <0x12000>;
249 };
250 };
251
252 cpu-map {
253 cluster0 {
254 core0 {
255 cpu = <&CPU0>;
256 };
257
258 core1 {
259 cpu = <&CPU1>;
260 };
261
262 core2 {
263 cpu = <&CPU2>;
264 };
265
266 core3 {
267 cpu = <&CPU3>;
268 };
269
270 core4 {
271 cpu = <&CPU4>;
272 };
273
274 core5 {
275 cpu = <&CPU5>;
276 };
277 };
278 cluster1 {
279 core0 {
280 cpu = <&CPU6>;
281 };
282
283 core1 {
284 cpu = <&CPU7>;
285 };
286 };
287 };
288 };
289
290 psci {
291 compatible = "arm,psci-1.0";
292 method = "smc";
293 };
294
295 soc: soc { };
296
297 reserved-memory {
298 #address-cells = <2>;
299 #size-cells = <2>;
300 ranges;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530301
302 removed_regions: removed_regions@85700000 {
303 compatible = "removed-dma-pool";
304 no-map;
305 reg = <0 0x85700000 0 0x3800000>;
306 };
307
308 pil_camera_mem: camera_region@8ab00000 {
309 compatible = "removed-dma-pool";
310 no-map;
311 reg = <0 0x8ab00000 0 0x500000>;
312 };
313
314 pil_modem_mem: modem_region@8b000000 {
315 compatible = "removed-dma-pool";
316 no-map;
317 reg = <0 0x8b000000 0 0x7e00000>;
318 };
319
320 pil_video_mem: pil_video_region@92e00000 {
321 compatible = "removed-dma-pool";
322 no-map;
323 reg = <0 0x92e00000 0 0x500000>;
324 };
325
326 pil_cdsp_mem: cdsp_regions@93300000 {
327 compatible = "removed-dma-pool";
328 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530329 reg = <0 0x93300000 0 0x800000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530330 };
331
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530332 pil_mba_mem: pil_mba_region@0x93b00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530333 compatible = "removed-dma-pool";
334 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530335 reg = <0 0x93b00000 0 0x200000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530336 };
337
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530338 pil_adsp_mem: pil_adsp_region@93d00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530339 compatible = "removed-dma-pool";
340 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530341 reg = <0 0x93d00000 0 0x1e00000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530342 };
343
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530344 pil_ipa_fw_mem: pil_ipa_fw_region@95b00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530345 compatible = "removed-dma-pool";
346 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530347 reg = <0 0x95b00000 0 0x10000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530348 };
349
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530350 pil_ipa_gsi_mem: pil_ipa_gsi_region@95b10000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530351 compatible = "removed-dma-pool";
352 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530353 reg = <0 0x95b10000 0 0x5000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530354 };
355
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530356 pil_gpu_mem: pil_gpu_region@95b15000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530357 compatible = "removed-dma-pool";
358 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530359 reg = <0 0x95b15000 0 0x1000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530360 };
361
362 adsp_mem: adsp_region {
363 compatible = "shared-dma-pool";
364 alloc-ranges = <0 0x00000000 0 0xffffffff>;
365 reusable;
366 alignment = <0 0x400000>;
367 size = <0 0xc00000>;
368 };
369
370 qseecom_mem: qseecom_region {
371 compatible = "shared-dma-pool";
372 alloc-ranges = <0 0x00000000 0 0xffffffff>;
373 reusable;
374 alignment = <0 0x400000>;
375 size = <0 0x1400000>;
376 };
377
378 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
379 compatible = "shared-dma-pool";
380 alloc-ranges = <0 0x00000000 0 0xffffffff>; /* 32-bit */
381 reusable;
382 alignment = <0 0x400000>;
383 size = <0 0x800000>;
384 };
385
386 secure_display_memory: secure_display_region {
387 compatible = "shared-dma-pool";
388 alloc-ranges = <0 0x00000000 0 0xffffffff>;
389 reusable;
390 alignment = <0 0x400000>;
391 size = <0 0x5c00000>;
392 };
393
394 /* global autoconfigured region for contiguous allocations */
395 linux,cma {
396 compatible = "shared-dma-pool";
397 alloc-ranges = <0 0x00000000 0 0xffffffff>;
398 reusable;
399 alignment = <0 0x400000>;
400 size = <0 0x2000000>;
401 linux,cma-default;
402 };
Imran Khan04f08312017-03-30 15:07:43 +0530403 };
404};
405
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530406#include "sdm670-ion.dtsi"
407
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530408#include "sdm670-smp2p.dtsi"
409
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530410#include "sdm670-qupv3.dtsi"
411
Imran Khan04f08312017-03-30 15:07:43 +0530412&soc {
413 #address-cells = <1>;
414 #size-cells = <1>;
415 ranges = <0 0 0 0xffffffff>;
416 compatible = "simple-bus";
417
418 intc: interrupt-controller@17a00000 {
419 compatible = "arm,gic-v3";
420 #interrupt-cells = <3>;
421 interrupt-controller;
422 #redistributor-regions = <1>;
423 redistributor-stride = <0x0 0x20000>;
424 reg = <0x17a00000 0x10000>, /* GICD */
425 <0x17a60000 0x100000>; /* GICR * 8 */
426 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530427 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530428 };
429
430 timer {
431 compatible = "arm,armv8-timer";
432 interrupts = <1 1 0xf08>,
433 <1 2 0xf08>,
434 <1 3 0xf08>,
435 <1 0 0xf08>;
436 clock-frequency = <19200000>;
437 };
438
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530439 qcom,sps {
440 compatible = "qcom,msm_sps_4k";
441 qcom,pipe-attr-ee;
442 };
443
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530444 thermal_zones: thermal-zones {
445 aoss0-usr {
446 polling-delay-passive = <0>;
447 polling-delay = <0>;
448 thermal-governor = "user_space";
449 thermal-sensors = <&tsens0 0>;
450 trips {
451 active-config0 {
452 temperature = <125000>;
453 hysteresis = <1000>;
454 type = "passive";
455 };
456 };
457 };
458
459 cpu0-silver-usr {
460 polling-delay-passive = <0>;
461 polling-delay = <0>;
462 thermal-governor = "user_space";
463 thermal-sensors = <&tsens0 1>;
464 trips {
465 active-config0 {
466 temperature = <125000>;
467 hysteresis = <1000>;
468 type = "passive";
469 };
470 };
471 };
472
473 cpu1-silver-usr {
474 polling-delay-passive = <0>;
475 polling-delay = <0>;
476 thermal-governor = "user_space";
477 thermal-sensors = <&tsens0 2>;
478 trips {
479 active-config0 {
480 temperature = <125000>;
481 hysteresis = <1000>;
482 type = "passive";
483 };
484 };
485 };
486
487 cpu2-silver-usr {
488 polling-delay-passive = <0>;
489 polling-delay = <0>;
490 thermal-governor = "user_space";
491 thermal-sensors = <&tsens0 3>;
492 trips {
493 active-config0 {
494 temperature = <125000>;
495 hysteresis = <1000>;
496 type = "passive";
497 };
498 };
499 };
500
501 cpu3-silver-usr {
502 polling-delay-passive = <0>;
503 polling-delay = <0>;
504 thermal-sensors = <&tsens0 4>;
505 thermal-governor = "user_space";
506 trips {
507 active-config0 {
508 temperature = <125000>;
509 hysteresis = <1000>;
510 type = "passive";
511 };
512 };
513 };
514
515 cpu4-silver-usr {
516 polling-delay-passive = <0>;
517 polling-delay = <0>;
518 thermal-sensors = <&tsens0 5>;
519 thermal-governor = "user_space";
520 trips {
521 active-config0 {
522 temperature = <125000>;
523 hysteresis = <1000>;
524 type = "passive";
525 };
526 };
527 };
528
529 cpu5-silver-usr {
530 polling-delay-passive = <0>;
531 polling-delay = <0>;
532 thermal-sensors = <&tsens0 6>;
533 thermal-governor = "user_space";
534 trips {
535 active-config0 {
536 temperature = <125000>;
537 hysteresis = <1000>;
538 type = "passive";
539 };
540 };
541 };
542
543 kryo-l3-0-usr {
544 polling-delay-passive = <0>;
545 polling-delay = <0>;
546 thermal-sensors = <&tsens0 7>;
547 thermal-governor = "user_space";
548 trips {
549 active-config0 {
550 temperature = <125000>;
551 hysteresis = <1000>;
552 type = "passive";
553 };
554 };
555 };
556
557 kryo-l3-1-usr {
558 polling-delay-passive = <0>;
559 polling-delay = <0>;
560 thermal-sensors = <&tsens0 8>;
561 thermal-governor = "user_space";
562 trips {
563 active-config0 {
564 temperature = <125000>;
565 hysteresis = <1000>;
566 type = "passive";
567 };
568 };
569 };
570
571 cpu0-gold-usr {
572 polling-delay-passive = <0>;
573 polling-delay = <0>;
574 thermal-sensors = <&tsens0 9>;
575 thermal-governor = "user_space";
576 trips {
577 active-config0 {
578 temperature = <125000>;
579 hysteresis = <1000>;
580 type = "passive";
581 };
582 };
583 };
584
585 cpu1-gold-usr {
586 polling-delay-passive = <0>;
587 polling-delay = <0>;
588 thermal-sensors = <&tsens0 10>;
589 thermal-governor = "user_space";
590 trips {
591 active-config0 {
592 temperature = <125000>;
593 hysteresis = <1000>;
594 type = "passive";
595 };
596 };
597 };
598
599 gpu0-usr {
600 polling-delay-passive = <0>;
601 polling-delay = <0>;
602 thermal-sensors = <&tsens0 11>;
603 thermal-governor = "user_space";
604 trips {
605 active-config0 {
606 temperature = <125000>;
607 hysteresis = <1000>;
608 type = "passive";
609 };
610 };
611 };
612
613 gpu1-usr {
614 polling-delay-passive = <0>;
615 polling-delay = <0>;
616 thermal-governor = "user_space";
617 thermal-sensors = <&tsens0 12>;
618 trips {
619 active-config0 {
620 temperature = <125000>;
621 hysteresis = <1000>;
622 type = "passive";
623 };
624 };
625 };
626
627 aoss1-usr {
628 polling-delay-passive = <0>;
629 polling-delay = <0>;
630 thermal-sensors = <&tsens1 0>;
631 thermal-governor = "user_space";
632 trips {
633 active-config0 {
634 temperature = <125000>;
635 hysteresis = <1000>;
636 type = "passive";
637 };
638 };
639 };
640
641 mdm-dsp-usr {
642 polling-delay-passive = <0>;
643 polling-delay = <0>;
644 thermal-sensors = <&tsens1 1>;
645 thermal-governor = "user_space";
646 trips {
647 active-config0 {
648 temperature = <125000>;
649 hysteresis = <1000>;
650 type = "passive";
651 };
652 };
653 };
654
655 ddr-usr {
656 polling-delay-passive = <0>;
657 polling-delay = <0>;
658 thermal-sensors = <&tsens1 2>;
659 thermal-governor = "user_space";
660 trips {
661 active-config0 {
662 temperature = <125000>;
663 hysteresis = <1000>;
664 type = "passive";
665 };
666 };
667 };
668
669 wlan-usr {
670 polling-delay-passive = <0>;
671 polling-delay = <0>;
672 thermal-sensors = <&tsens1 3>;
673 thermal-governor = "user_space";
674 trips {
675 active-config0 {
676 temperature = <125000>;
677 hysteresis = <1000>;
678 type = "passive";
679 };
680 };
681 };
682
683 compute-hvx-usr {
684 polling-delay-passive = <0>;
685 polling-delay = <0>;
686 thermal-sensors = <&tsens1 4>;
687 thermal-governor = "user_space";
688 trips {
689 active-config0 {
690 temperature = <125000>;
691 hysteresis = <1000>;
692 type = "passive";
693 };
694 };
695 };
696
697 camera-usr {
698 polling-delay-passive = <0>;
699 polling-delay = <0>;
700 thermal-sensors = <&tsens1 5>;
701 thermal-governor = "user_space";
702 trips {
703 active-config0 {
704 temperature = <125000>;
705 hysteresis = <1000>;
706 type = "passive";
707 };
708 };
709 };
710
711 mmss-usr {
712 polling-delay-passive = <0>;
713 polling-delay = <0>;
714 thermal-sensors = <&tsens1 6>;
715 thermal-governor = "user_space";
716 trips {
717 active-config0 {
718 temperature = <125000>;
719 hysteresis = <1000>;
720 type = "passive";
721 };
722 };
723 };
724
725 mdm-core-usr {
726 polling-delay-passive = <0>;
727 polling-delay = <0>;
728 thermal-sensors = <&tsens1 7>;
729 thermal-governor = "user_space";
730 trips {
731 active-config0 {
732 temperature = <125000>;
733 hysteresis = <1000>;
734 type = "passive";
735 };
736 };
737 };
738 };
739
740 tsens0: tsens@c222000 {
741 compatible = "qcom,tsens24xx";
742 reg = <0xc222000 0x4>,
743 <0xc263000 0x1ff>;
744 reg-names = "tsens_srot_physical",
745 "tsens_tm_physical";
746 interrupts = <0 506 0>, <0 508 0>;
747 interrupt-names = "tsens-upper-lower", "tsens-critical";
748 #thermal-sensor-cells = <1>;
749 };
750
751 tsens1: tsens@c223000 {
752 compatible = "qcom,tsens24xx";
753 reg = <0xc223000 0x4>,
754 <0xc265000 0x1ff>;
755 reg-names = "tsens_srot_physical",
756 "tsens_tm_physical";
757 interrupts = <0 507 0>, <0 509 0>;
758 interrupt-names = "tsens-upper-lower", "tsens-critical";
759 #thermal-sensor-cells = <1>;
760 };
761
Imran Khan04f08312017-03-30 15:07:43 +0530762 timer@0x17c90000{
763 #address-cells = <1>;
764 #size-cells = <1>;
765 ranges;
766 compatible = "arm,armv7-timer-mem";
767 reg = <0x17c90000 0x1000>;
768 clock-frequency = <19200000>;
769
770 frame@0x17ca0000 {
771 frame-number = <0>;
772 interrupts = <0 7 0x4>,
773 <0 6 0x4>;
774 reg = <0x17ca0000 0x1000>,
775 <0x17cb0000 0x1000>;
776 };
777
778 frame@17cc0000 {
779 frame-number = <1>;
780 interrupts = <0 8 0x4>;
781 reg = <0x17cc0000 0x1000>;
782 status = "disabled";
783 };
784
785 frame@17cd0000 {
786 frame-number = <2>;
787 interrupts = <0 9 0x4>;
788 reg = <0x17cd0000 0x1000>;
789 status = "disabled";
790 };
791
792 frame@17ce0000 {
793 frame-number = <3>;
794 interrupts = <0 10 0x4>;
795 reg = <0x17ce0000 0x1000>;
796 status = "disabled";
797 };
798
799 frame@17cf0000 {
800 frame-number = <4>;
801 interrupts = <0 11 0x4>;
802 reg = <0x17cf0000 0x1000>;
803 status = "disabled";
804 };
805
806 frame@17d00000 {
807 frame-number = <5>;
808 interrupts = <0 12 0x4>;
809 reg = <0x17d00000 0x1000>;
810 status = "disabled";
811 };
812
813 frame@17d10000 {
814 frame-number = <6>;
815 interrupts = <0 13 0x4>;
816 reg = <0x17d10000 0x1000>;
817 status = "disabled";
818 };
819 };
820
821 restart@10ac000 {
822 compatible = "qcom,pshold";
823 reg = <0xC264000 0x4>,
824 <0x1fd3000 0x4>;
825 reg-names = "pshold-base", "tcsr-boot-misc-detect";
826 };
827
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530828 clock_rpmh: qcom,rpmhclk {
829 compatible = "qcom,dummycc";
830 clock-output-names = "rpmh_clocks";
831 #clock-cells = <1>;
832 };
833
834 clock_gcc: qcom,gcc@100000 {
835 compatible = "qcom,dummycc";
836 clock-output-names = "gcc_clocks";
837 #clock-cells = <1>;
838 #reset-cells = <1>;
839 };
840
841 clock_videocc: qcom,videocc@ab00000 {
842 compatible = "qcom,dummycc";
843 clock-output-names = "videocc_clocks";
844 #clock-cells = <1>;
845 #reset-cells = <1>;
846 };
847
848 clock_camcc: qcom,camcc@ad00000 {
849 compatible = "qcom,dummycc";
850 clock-output-names = "camcc_clocks";
851 #clock-cells = <1>;
852 #reset-cells = <1>;
853 };
854
855 clock_dispcc: qcom,dispcc@af00000 {
856 compatible = "qcom,dummycc";
857 clock-output-names = "dispcc_clocks";
858 #clock-cells = <1>;
859 #reset-cells = <1>;
860 };
861
862 clock_gpucc: qcom,gpucc@5090000 {
863 compatible = "qcom,dummycc";
864 clock-output-names = "gpucc_clocks";
865 #clock-cells = <1>;
866 #reset-cells = <1>;
867 };
868
869 clock_gfx: qcom,gfxcc@5090000 {
870 compatible = "qcom,dummycc";
871 clock-output-names = "gfxcc_clocks";
872 #clock-cells = <1>;
873 #reset-cells = <1>;
874 };
875
Imran Khan04f08312017-03-30 15:07:43 +0530876 clock_cpucc: qcom,cpucc {
877 compatible = "qcom,dummycc";
878 clock-output-names = "cpucc_clocks";
879 #clock-cells = <1>;
880 #reset-cells = <1>;
881 };
882
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530883 slim_aud: slim@62dc0000 {
884 cell-index = <1>;
885 compatible = "qcom,slim-ngd";
886 reg = <0x62dc0000 0x2c000>,
887 <0x62d84000 0x2a000>;
888 reg-names = "slimbus_physical", "slimbus_bam_physical";
889 interrupts = <0 163 0>, <0 164 0>;
890 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
891 qcom,apps-ch-pipes = <0x780000>;
892 qcom,ea-pc = <0x290>;
893 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +0530894 qcom,iommu-s1-bypass;
895
896 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
897 compatible = "qcom,iommu-slim-ctrl-cb";
898 iommus = <&apps_smmu 0x1826 0x0>,
899 <&apps_smmu 0x182d 0x0>,
900 <&apps_smmu 0x182e 0x1>,
901 <&apps_smmu 0x1830 0x1>;
902 };
903
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530904 };
905
906 slim_qca: slim@62e40000 {
907 cell-index = <3>;
908 compatible = "qcom,slim-ngd";
909 reg = <0x62e40000 0x2c000>,
910 <0x62e04000 0x20000>;
911 reg-names = "slimbus_physical", "slimbus_bam_physical";
912 interrupts = <0 291 0>, <0 292 0>;
913 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
914 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +0530915 qcom,iommu-s1-bypass;
916
917 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
918 compatible = "qcom,iommu-slim-ctrl-cb";
919 iommus = <&apps_smmu 0x1833 0x0>;
920 };
921
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530922 };
923
Imran Khan04f08312017-03-30 15:07:43 +0530924 wdog: qcom,wdt@17980000{
925 compatible = "qcom,msm-watchdog";
926 reg = <0x17980000 0x1000>;
927 reg-names = "wdt-base";
928 interrupts = <0 3 0>, <0 4 0>;
929 qcom,bark-time = <11000>;
930 qcom,pet-time = <10000>;
931 qcom,ipi-ping;
932 qcom,wakeup-enable;
933 };
934
935 qcom,msm-rtb {
936 compatible = "qcom,msm-rtb";
937 qcom,rtb-size = <0x100000>;
938 };
939
940 qcom,msm-imem@146bf000 {
941 compatible = "qcom,msm-imem";
942 reg = <0x146bf000 0x1000>;
943 ranges = <0x0 0x146bf000 0x1000>;
944 #address-cells = <1>;
945 #size-cells = <1>;
946
947 mem_dump_table@10 {
948 compatible = "qcom,msm-imem-mem_dump_table";
949 reg = <0x10 8>;
950 };
951
952 restart_reason@65c {
953 compatible = "qcom,msm-imem-restart_reason";
954 reg = <0x65c 4>;
955 };
956
957 pil@94c {
958 compatible = "qcom,msm-imem-pil";
959 reg = <0x94c 200>;
960 };
961
962 kaslr_offset@6d0 {
963 compatible = "qcom,msm-imem-kaslr_offset";
964 reg = <0x6d0 12>;
965 };
966 };
967
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +0530968 gpi_dma0: qcom,gpi-dma@0x800000 {
969 #dma-cells = <6>;
970 compatible = "qcom,gpi-dma";
971 reg = <0x800000 0x60000>;
972 reg-names = "gpi-top";
973 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
974 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
975 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
976 <0 256 0>;
977 qcom,max-num-gpii = <13>;
978 qcom,gpii-mask = <0xfa>;
979 qcom,ev-factor = <2>;
980 iommus = <&apps_smmu 0x0016 0x0>;
981 status = "ok";
982 };
983
984 gpi_dma1: qcom,gpi-dma@0xa00000 {
985 #dma-cells = <6>;
986 compatible = "qcom,gpi-dma";
987 reg = <0xa00000 0x60000>;
988 reg-names = "gpi-top";
989 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
990 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
991 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
992 <0 299 0>;
993 qcom,max-num-gpii = <13>;
994 qcom,gpii-mask = <0xfa>;
995 qcom,ev-factor = <2>;
996 iommus = <&apps_smmu 0x06d6 0x0>;
997 status = "ok";
998 };
999
Imran Khan04f08312017-03-30 15:07:43 +05301000 cpuss_dump {
1001 compatible = "qcom,cpuss-dump";
1002 qcom,l1_i_cache0 {
1003 qcom,dump-node = <&L1_I_0>;
1004 qcom,dump-id = <0x60>;
1005 };
1006 qcom,l1_i_cache1 {
1007 qcom,dump-node = <&L1_I_100>;
1008 qcom,dump-id = <0x61>;
1009 };
1010 qcom,l1_i_cache2 {
1011 qcom,dump-node = <&L1_I_200>;
1012 qcom,dump-id = <0x62>;
1013 };
1014 qcom,l1_i_cache3 {
1015 qcom,dump-node = <&L1_I_300>;
1016 qcom,dump-id = <0x63>;
1017 };
1018 qcom,l1_i_cache100 {
1019 qcom,dump-node = <&L1_I_400>;
1020 qcom,dump-id = <0x64>;
1021 };
1022 qcom,l1_i_cache101 {
1023 qcom,dump-node = <&L1_I_500>;
1024 qcom,dump-id = <0x65>;
1025 };
1026 qcom,l1_i_cache102 {
1027 qcom,dump-node = <&L1_I_600>;
1028 qcom,dump-id = <0x66>;
1029 };
1030 qcom,l1_i_cache103 {
1031 qcom,dump-node = <&L1_I_700>;
1032 qcom,dump-id = <0x67>;
1033 };
1034 qcom,l1_d_cache0 {
1035 qcom,dump-node = <&L1_D_0>;
1036 qcom,dump-id = <0x80>;
1037 };
1038 qcom,l1_d_cache1 {
1039 qcom,dump-node = <&L1_D_100>;
1040 qcom,dump-id = <0x81>;
1041 };
1042 qcom,l1_d_cache2 {
1043 qcom,dump-node = <&L1_D_200>;
1044 qcom,dump-id = <0x82>;
1045 };
1046 qcom,l1_d_cache3 {
1047 qcom,dump-node = <&L1_D_300>;
1048 qcom,dump-id = <0x83>;
1049 };
1050 qcom,l1_d_cache100 {
1051 qcom,dump-node = <&L1_D_400>;
1052 qcom,dump-id = <0x84>;
1053 };
1054 qcom,l1_d_cache101 {
1055 qcom,dump-node = <&L1_D_500>;
1056 qcom,dump-id = <0x85>;
1057 };
1058 qcom,l1_d_cache102 {
1059 qcom,dump-node = <&L1_D_600>;
1060 qcom,dump-id = <0x86>;
1061 };
1062 qcom,l1_d_cache103 {
1063 qcom,dump-node = <&L1_D_700>;
1064 qcom,dump-id = <0x87>;
1065 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301066 qcom,llcc1_d_cache {
1067 qcom,dump-node = <&LLCC_1>;
1068 qcom,dump-id = <0x140>;
1069 };
1070 qcom,llcc2_d_cache {
1071 qcom,dump-node = <&LLCC_2>;
1072 qcom,dump-id = <0x141>;
1073 };
Imran Khan04f08312017-03-30 15:07:43 +05301074 };
1075
1076 kryo3xx-erp {
1077 compatible = "arm,arm64-kryo3xx-cpu-erp";
1078 interrupts = <1 6 4>,
1079 <1 7 4>,
1080 <0 34 4>,
1081 <0 35 4>;
1082
1083 interrupt-names = "l1-l2-faultirq",
1084 "l1-l2-errirq",
1085 "l3-scu-errirq",
1086 "l3-scu-faultirq";
1087 };
1088
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301089 qcom,ipc-spinlock@1f40000 {
1090 compatible = "qcom,ipc-spinlock-sfpb";
1091 reg = <0x1f40000 0x8000>;
1092 qcom,num-locks = <8>;
1093 };
1094
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301095 qcom,smem@86000000 {
1096 compatible = "qcom,smem";
1097 reg = <0x86000000 0x200000>,
1098 <0x17911008 0x4>,
1099 <0x778000 0x7000>,
1100 <0x1fd4000 0x8>;
1101 reg-names = "smem", "irq-reg-base", "aux-mem1",
1102 "smem_targ_info_reg";
1103 qcom,mpu-enabled;
1104 };
1105
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301106 qmp_aop: mailbox@1799000c {
1107 compatible = "qcom,qmp-mbox";
1108 label = "aop";
1109 reg = <0xc300000 0x100000>,
1110 <0x1799000c 0x4>;
1111 reg-names = "msgram", "irq-reg-base";
1112 qcom,irq-mask = <0x1>;
1113 interrupts = <0 389 1>;
1114 mbox-desc-offset = <0x0>;
1115 #mbox-cells = <1>;
1116 };
1117
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301118 qcom,glink-smem-native-xprt-modem@86000000 {
1119 compatible = "qcom,glink-smem-native-xprt";
1120 reg = <0x86000000 0x200000>,
1121 <0x1799000c 0x4>;
1122 reg-names = "smem", "irq-reg-base";
1123 qcom,irq-mask = <0x1000>;
1124 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1125 label = "mpss";
1126 };
1127
1128 qcom,glink-smem-native-xprt-adsp@86000000 {
1129 compatible = "qcom,glink-smem-native-xprt";
1130 reg = <0x86000000 0x200000>,
1131 <0x1799000c 0x4>;
1132 reg-names = "smem", "irq-reg-base";
1133 qcom,irq-mask = <0x100>;
1134 interrupts = <GIC_SPI 156 IRQ_TYPE_EDGE_RISING>;
1135 label = "lpass";
1136 qcom,qos-config = <&glink_qos_adsp>;
1137 qcom,ramp-time = <0xaf>;
1138 };
1139
1140 glink_qos_adsp: qcom,glink-qos-config-adsp {
1141 compatible = "qcom,glink-qos-config";
1142 qcom,flow-info = <0x3c 0x0>,
1143 <0x3c 0x0>,
1144 <0x3c 0x0>,
1145 <0x3c 0x0>;
1146 qcom,mtu-size = <0x800>;
1147 qcom,tput-stats-cycle = <0xa>;
1148 };
1149
1150 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1151 compatible = "qcom,glink-spi-xprt";
1152 label = "wdsp";
1153 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1154 qcom,qos-config = <&glink_qos_wdsp>;
1155 qcom,ramp-time = <0x10>,
1156 <0x20>,
1157 <0x30>,
1158 <0x40>;
1159 };
1160
1161 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1162 compatible = "qcom,glink-fifo-config";
1163 qcom,out-read-idx-reg = <0x12000>;
1164 qcom,out-write-idx-reg = <0x12004>;
1165 qcom,in-read-idx-reg = <0x1200C>;
1166 qcom,in-write-idx-reg = <0x12010>;
1167 };
1168
1169 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1170 compatible = "qcom,glink-qos-config";
1171 qcom,flow-info = <0x80 0x0>,
1172 <0x70 0x1>,
1173 <0x60 0x2>,
1174 <0x50 0x3>;
1175 qcom,mtu-size = <0x800>;
1176 qcom,tput-stats-cycle = <0xa>;
1177 };
1178
1179 qcom,glink-smem-native-xprt-cdsp@86000000 {
1180 compatible = "qcom,glink-smem-native-xprt";
1181 reg = <0x86000000 0x200000>,
1182 <0x1799000c 0x4>;
1183 reg-names = "smem", "irq-reg-base";
1184 qcom,irq-mask = <0x10>;
1185 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1186 label = "cdsp";
1187 };
1188
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301189 glink_mpss: qcom,glink-ssr-modem {
1190 compatible = "qcom,glink_ssr";
1191 label = "modem";
1192 qcom,edge = "mpss";
1193 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1194 qcom,xprt = "smem";
1195 };
1196
1197 glink_lpass: qcom,glink-ssr-adsp {
1198 compatible = "qcom,glink_ssr";
1199 label = "adsp";
1200 qcom,edge = "lpass";
1201 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1202 qcom,xprt = "smem";
1203 };
1204
1205 glink_cdsp: qcom,glink-ssr-cdsp {
1206 compatible = "qcom,glink_ssr";
1207 label = "cdsp";
1208 qcom,edge = "cdsp";
1209 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1210 qcom,xprt = "smem";
1211 };
1212
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301213 qcom,ipc_router {
1214 compatible = "qcom,ipc_router";
1215 qcom,node-id = <1>;
1216 };
1217
1218 qcom,ipc_router_modem_xprt {
1219 compatible = "qcom,ipc_router_glink_xprt";
1220 qcom,ch-name = "IPCRTR";
1221 qcom,xprt-remote = "mpss";
1222 qcom,glink-xprt = "smem";
1223 qcom,xprt-linkid = <1>;
1224 qcom,xprt-version = <1>;
1225 qcom,fragmented-data;
1226 };
1227
1228 qcom,ipc_router_q6_xprt {
1229 compatible = "qcom,ipc_router_glink_xprt";
1230 qcom,ch-name = "IPCRTR";
1231 qcom,xprt-remote = "lpass";
1232 qcom,glink-xprt = "smem";
1233 qcom,xprt-linkid = <1>;
1234 qcom,xprt-version = <1>;
1235 qcom,fragmented-data;
1236 };
1237
1238 qcom,ipc_router_cdsp_xprt {
1239 compatible = "qcom,ipc_router_glink_xprt";
1240 qcom,ch-name = "IPCRTR";
1241 qcom,xprt-remote = "cdsp";
1242 qcom,glink-xprt = "smem";
1243 qcom,xprt-linkid = <1>;
1244 qcom,xprt-version = <1>;
1245 qcom,fragmented-data;
1246 };
1247
Dhoat Harpal11d34482017-06-06 21:00:14 +05301248 qcom,glink_pkt {
1249 compatible = "qcom,glinkpkt";
1250
1251 qcom,glinkpkt-at-mdm0 {
1252 qcom,glinkpkt-transport = "smem";
1253 qcom,glinkpkt-edge = "mpss";
1254 qcom,glinkpkt-ch-name = "DS";
1255 qcom,glinkpkt-dev-name = "at_mdm0";
1256 };
1257
1258 qcom,glinkpkt-loopback_cntl {
1259 qcom,glinkpkt-transport = "lloop";
1260 qcom,glinkpkt-edge = "local";
1261 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1262 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1263 };
1264
1265 qcom,glinkpkt-loopback_data {
1266 qcom,glinkpkt-transport = "lloop";
1267 qcom,glinkpkt-edge = "local";
1268 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1269 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1270 };
1271
1272 qcom,glinkpkt-apr-apps2 {
1273 qcom,glinkpkt-transport = "smem";
1274 qcom,glinkpkt-edge = "adsp";
1275 qcom,glinkpkt-ch-name = "apr_apps2";
1276 qcom,glinkpkt-dev-name = "apr_apps2";
1277 };
1278
1279 qcom,glinkpkt-data40-cntl {
1280 qcom,glinkpkt-transport = "smem";
1281 qcom,glinkpkt-edge = "mpss";
1282 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1283 qcom,glinkpkt-dev-name = "smdcntl8";
1284 };
1285
1286 qcom,glinkpkt-data1 {
1287 qcom,glinkpkt-transport = "smem";
1288 qcom,glinkpkt-edge = "mpss";
1289 qcom,glinkpkt-ch-name = "DATA1";
1290 qcom,glinkpkt-dev-name = "smd7";
1291 };
1292
1293 qcom,glinkpkt-data4 {
1294 qcom,glinkpkt-transport = "smem";
1295 qcom,glinkpkt-edge = "mpss";
1296 qcom,glinkpkt-ch-name = "DATA4";
1297 qcom,glinkpkt-dev-name = "smd8";
1298 };
1299
1300 qcom,glinkpkt-data11 {
1301 qcom,glinkpkt-transport = "smem";
1302 qcom,glinkpkt-edge = "mpss";
1303 qcom,glinkpkt-ch-name = "DATA11";
1304 qcom,glinkpkt-dev-name = "smd11";
1305 };
1306 };
1307
Imran Khan04f08312017-03-30 15:07:43 +05301308 qcom,chd_sliver {
1309 compatible = "qcom,core-hang-detect";
1310 label = "silver";
1311 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1312 0x17e30058 0x17e40058 0x17e50058>;
1313 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1314 0x17e30060 0x17e40060 0x17e50060>;
1315 };
1316
1317 qcom,chd_gold {
1318 compatible = "qcom,core-hang-detect";
1319 label = "gold";
1320 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1321 qcom,config-arr = <0x17e60060 0x17e70060>;
1322 };
1323
1324 qcom,ghd {
1325 compatible = "qcom,gladiator-hang-detect-v2";
1326 qcom,threshold-arr = <0x1799041c 0x17990420>;
1327 qcom,config-reg = <0x17990434>;
1328 };
1329
1330 qcom,msm-gladiator-v3@17900000 {
1331 compatible = "qcom,msm-gladiator-v3";
1332 reg = <0x17900000 0xd080>;
1333 reg-names = "gladiator_base";
1334 interrupts = <0 17 0>;
1335 };
1336
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301337 qcom,llcc@1100000 {
1338 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1339 reg = <0x1100000 0x250000>;
1340 reg-names = "llcc_base";
1341 qcom,llcc-banks-off = <0x0 0x80000 >;
1342 qcom,llcc-broadcast-off = <0x200000>;
1343
1344 llcc: qcom,sdm670-llcc {
1345 compatible = "qcom,sdm670-llcc";
1346 #cache-cells = <1>;
1347 max-slices = <32>;
1348 qcom,dump-size = <0x80000>;
1349 };
1350
1351 qcom,llcc-erp {
1352 compatible = "qcom,llcc-erp";
1353 interrupt-names = "ecc_irq";
1354 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1355 };
1356
1357 qcom,llcc-amon {
1358 compatible = "qcom,llcc-amon";
1359 };
1360
1361 LLCC_1: llcc_1_dcache {
1362 qcom,dump-size = <0xd8000>;
1363 };
1364
1365 LLCC_2: llcc_2_dcache {
1366 qcom,dump-size = <0xd8000>;
1367 };
1368 };
1369
Maulik Shah210773d2017-06-15 09:49:12 +05301370 cmd_db: qcom,cmd-db@c3f000c {
1371 compatible = "qcom,cmd-db";
1372 reg = <0xc3f000c 0x8>;
1373 };
1374
Maulik Shahc77d1d22017-06-15 14:04:50 +05301375 apps_rsc: mailbox@179e0000 {
1376 compatible = "qcom,tcs-drv";
1377 label = "apps_rsc";
1378 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1379 interrupts = <0 5 0>;
1380 #mbox-cells = <1>;
1381 qcom,drv-id = <2>;
1382 qcom,tcs-config = <ACTIVE_TCS 2>,
1383 <SLEEP_TCS 3>,
1384 <WAKE_TCS 3>,
1385 <CONTROL_TCS 1>;
1386 };
1387
Maulik Shah0dd203f2017-06-15 09:44:59 +05301388 system_pm {
1389 compatible = "qcom,system-pm";
1390 mboxes = <&apps_rsc 0>;
1391 };
1392
Imran Khan04f08312017-03-30 15:07:43 +05301393 dcc: dcc_v2@10a2000 {
1394 compatible = "qcom,dcc_v2";
1395 reg = <0x10a2000 0x1000>,
1396 <0x10ae000 0x2000>;
1397 reg-names = "dcc-base", "dcc-ram-base";
1398 };
1399
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301400 spmi_bus: qcom,spmi@c440000 {
1401 compatible = "qcom,spmi-pmic-arb";
1402 reg = <0xc440000 0x1100>,
1403 <0xc600000 0x2000000>,
1404 <0xe600000 0x100000>,
1405 <0xe700000 0xa0000>,
1406 <0xc40a000 0x26000>;
1407 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1408 interrupt-names = "periph_irq";
1409 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1410 qcom,ee = <0>;
1411 qcom,channel = <0>;
1412 #address-cells = <2>;
1413 #size-cells = <0>;
1414 interrupt-controller;
1415 #interrupt-cells = <4>;
1416 cell-index = <0>;
1417 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301418
1419 ufsphy_mem: ufsphy_mem@1d87000 {
1420 reg = <0x1d87000 0xe00>; /* PHY regs */
1421 reg-names = "phy_mem";
1422 #phy-cells = <0>;
1423
1424 lanes-per-direction = <1>;
1425
1426 clock-names = "ref_clk_src",
1427 "ref_clk",
1428 "ref_aux_clk";
1429 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1430 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1431 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1432
1433 status = "disabled";
1434 };
1435
1436 ufshc_mem: ufshc@1d84000 {
1437 compatible = "qcom,ufshc";
1438 reg = <0x1d84000 0x3000>;
1439 interrupts = <0 265 0>;
1440 phys = <&ufsphy_mem>;
1441 phy-names = "ufsphy";
1442
1443 lanes-per-direction = <1>;
1444 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1445
1446 clock-names =
1447 "core_clk",
1448 "bus_aggr_clk",
1449 "iface_clk",
1450 "core_clk_unipro",
1451 "core_clk_ice",
1452 "ref_clk",
1453 "tx_lane0_sync_clk",
1454 "rx_lane0_sync_clk";
1455 clocks =
1456 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1457 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1458 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1459 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1460 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1461 <&clock_rpmh RPMH_CXO_CLK>,
1462 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1463 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1464 freq-table-hz =
1465 <50000000 200000000>,
1466 <0 0>,
1467 <0 0>,
1468 <37500000 150000000>,
1469 <75000000 300000000>,
1470 <0 0>,
1471 <0 0>,
1472 <0 0>;
1473
1474 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1475 reset-names = "core_reset";
1476
1477 status = "disabled";
1478 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301479
1480 qcom,lpass@62400000 {
1481 compatible = "qcom,pil-tz-generic";
1482 reg = <0x62400000 0x00100>;
1483 interrupts = <0 162 1>;
1484
1485 vdd_cx-supply = <&pm660l_l9_level>;
1486 qcom,proxy-reg-names = "vdd_cx";
1487 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1488
1489 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1490 clock-names = "xo";
1491 qcom,proxy-clock-names = "xo";
1492
1493 qcom,pas-id = <1>;
1494 qcom,proxy-timeout-ms = <10000>;
1495 qcom,smem-id = <423>;
1496 qcom,sysmon-id = <1>;
1497 qcom,ssctl-instance-id = <0x14>;
1498 qcom,firmware-name = "adsp";
1499 memory-region = <&pil_adsp_mem>;
1500
1501 /* GPIO inputs from lpass */
1502 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1503 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1504 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1505 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1506
1507 /* GPIO output to lpass */
1508 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
1509 status = "ok";
1510 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301511
1512 qcom,rmnet-ipa {
1513 compatible = "qcom,rmnet-ipa3";
1514 qcom,rmnet-ipa-ssr;
1515 qcom,ipa-loaduC;
1516 qcom,ipa-advertise-sg-support;
1517 qcom,ipa-napi-enable;
1518 };
1519
1520 ipa_hw: qcom,ipa@01e00000 {
1521 compatible = "qcom,ipa";
1522 reg = <0x1e00000 0x34000>,
1523 <0x1e04000 0x2c000>;
1524 reg-names = "ipa-base", "gsi-base";
1525 interrupts =
1526 <0 311 0>,
1527 <0 432 0>;
1528 interrupt-names = "ipa-irq", "gsi-irq";
1529 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1530 qcom,ipa-hw-mode = <1>;
1531 qcom,ee = <0>;
1532 qcom,use-ipa-tethering-bridge;
1533 qcom,modem-cfg-emb-pipe-flt;
1534 qcom,ipa-wdi2;
1535 qcom,use-64-bit-dma-mask;
1536 qcom,arm-smmu;
1537 qcom,smmu-s1-bypass;
1538 qcom,bandwidth-vote-for-ipa;
1539 qcom,msm-bus,name = "ipa";
1540 qcom,msm-bus,num-cases = <4>;
1541 qcom,msm-bus,num-paths = <4>;
1542 qcom,msm-bus,vectors-KBps =
1543 /* No vote */
1544 <90 512 0 0>,
1545 <90 585 0 0>,
1546 <1 676 0 0>,
1547 <143 777 0 0>,
1548 /* SVS */
1549 <90 512 80000 640000>,
1550 <90 585 80000 640000>,
1551 <1 676 80000 80000>,
1552 <143 777 0 150000>,
1553 /* NOMINAL */
1554 <90 512 206000 960000>,
1555 <90 585 206000 960000>,
1556 <1 676 206000 160000>,
1557 <143 777 0 300000>,
1558 /* TURBO */
1559 <90 512 206000 3600000>,
1560 <90 585 206000 3600000>,
1561 <1 676 206000 300000>,
1562 <143 777 0 355333>;
1563 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1564
1565 /* IPA RAM mmap */
1566 qcom,ipa-ram-mmap = <
1567 0x280 /* ofst_start; */
1568 0x0 /* nat_ofst; */
1569 0x0 /* nat_size; */
1570 0x288 /* v4_flt_hash_ofst; */
1571 0x78 /* v4_flt_hash_size; */
1572 0x4000 /* v4_flt_hash_size_ddr; */
1573 0x308 /* v4_flt_nhash_ofst; */
1574 0x78 /* v4_flt_nhash_size; */
1575 0x4000 /* v4_flt_nhash_size_ddr; */
1576 0x388 /* v6_flt_hash_ofst; */
1577 0x78 /* v6_flt_hash_size; */
1578 0x4000 /* v6_flt_hash_size_ddr; */
1579 0x408 /* v6_flt_nhash_ofst; */
1580 0x78 /* v6_flt_nhash_size; */
1581 0x4000 /* v6_flt_nhash_size_ddr; */
1582 0xf /* v4_rt_num_index; */
1583 0x0 /* v4_modem_rt_index_lo; */
1584 0x7 /* v4_modem_rt_index_hi; */
1585 0x8 /* v4_apps_rt_index_lo; */
1586 0xe /* v4_apps_rt_index_hi; */
1587 0x488 /* v4_rt_hash_ofst; */
1588 0x78 /* v4_rt_hash_size; */
1589 0x4000 /* v4_rt_hash_size_ddr; */
1590 0x508 /* v4_rt_nhash_ofst; */
1591 0x78 /* v4_rt_nhash_size; */
1592 0x4000 /* v4_rt_nhash_size_ddr; */
1593 0xf /* v6_rt_num_index; */
1594 0x0 /* v6_modem_rt_index_lo; */
1595 0x7 /* v6_modem_rt_index_hi; */
1596 0x8 /* v6_apps_rt_index_lo; */
1597 0xe /* v6_apps_rt_index_hi; */
1598 0x588 /* v6_rt_hash_ofst; */
1599 0x78 /* v6_rt_hash_size; */
1600 0x4000 /* v6_rt_hash_size_ddr; */
1601 0x608 /* v6_rt_nhash_ofst; */
1602 0x78 /* v6_rt_nhash_size; */
1603 0x4000 /* v6_rt_nhash_size_ddr; */
1604 0x688 /* modem_hdr_ofst; */
1605 0x140 /* modem_hdr_size; */
1606 0x7c8 /* apps_hdr_ofst; */
1607 0x0 /* apps_hdr_size; */
1608 0x800 /* apps_hdr_size_ddr; */
1609 0x7d0 /* modem_hdr_proc_ctx_ofst; */
1610 0x200 /* modem_hdr_proc_ctx_size; */
1611 0x9d0 /* apps_hdr_proc_ctx_ofst; */
1612 0x200 /* apps_hdr_proc_ctx_size; */
1613 0x0 /* apps_hdr_proc_ctx_size_ddr; */
1614 0x0 /* modem_comp_decomp_ofst; diff */
1615 0x0 /* modem_comp_decomp_size; diff */
1616 0xbd8 /* modem_ofst; */
1617 0x1024 /* modem_size; */
1618 0x2000 /* apps_v4_flt_hash_ofst; */
1619 0x0 /* apps_v4_flt_hash_size; */
1620 0x2000 /* apps_v4_flt_nhash_ofst; */
1621 0x0 /* apps_v4_flt_nhash_size; */
1622 0x2000 /* apps_v6_flt_hash_ofst; */
1623 0x0 /* apps_v6_flt_hash_size; */
1624 0x2000 /* apps_v6_flt_nhash_ofst; */
1625 0x0 /* apps_v6_flt_nhash_size; */
1626 0x80 /* uc_info_ofst; */
1627 0x200 /* uc_info_size; */
1628 0x2000 /* end_ofst; */
1629 0x2000 /* apps_v4_rt_hash_ofst; */
1630 0x0 /* apps_v4_rt_hash_size; */
1631 0x2000 /* apps_v4_rt_nhash_ofst; */
1632 0x0 /* apps_v4_rt_nhash_size; */
1633 0x2000 /* apps_v6_rt_hash_ofst; */
1634 0x0 /* apps_v6_rt_hash_size; */
1635 0x2000 /* apps_v6_rt_nhash_ofst; */
1636 0x0 /* apps_v6_rt_nhash_size; */
1637 0x1c00 /* uc_event_ring_ofst; */
1638 0x400 /* uc_event_ring_size; */
1639 >;
1640
1641 /* smp2p gpio information */
1642 qcom,smp2pgpio_map_ipa_1_out {
1643 compatible = "qcom,smp2pgpio-map-ipa-1-out";
1644 gpios = <&smp2pgpio_ipa_1_out 0 0>;
1645 };
1646
1647 qcom,smp2pgpio_map_ipa_1_in {
1648 compatible = "qcom,smp2pgpio-map-ipa-1-in";
1649 gpios = <&smp2pgpio_ipa_1_in 0 0>;
1650 };
1651
1652 ipa_smmu_ap: ipa_smmu_ap {
1653 compatible = "qcom,ipa-smmu-ap-cb";
1654 iommus = <&apps_smmu 0x720 0x0>;
1655 qcom,iova-mapping = <0x20000000 0x40000000>;
1656 };
1657
1658 ipa_smmu_wlan: ipa_smmu_wlan {
1659 compatible = "qcom,ipa-smmu-wlan-cb";
1660 iommus = <&apps_smmu 0x721 0x0>;
1661 };
1662
1663 ipa_smmu_uc: ipa_smmu_uc {
1664 compatible = "qcom,ipa-smmu-uc-cb";
1665 iommus = <&apps_smmu 0x722 0x0>;
1666 qcom,iova-mapping = <0x40000000 0x20000000>;
1667 };
1668 };
1669
1670 qcom,ipa_fws {
1671 compatible = "qcom,pil-tz-generic";
1672 qcom,pas-id = <0xf>;
1673 qcom,firmware-name = "ipa_fws";
1674 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301675
1676 pil_modem: qcom,mss@4080000 {
1677 compatible = "qcom,pil-q6v55-mss";
1678 reg = <0x4080000 0x100>,
1679 <0x1f63000 0x008>,
1680 <0x1f65000 0x008>,
1681 <0x1f64000 0x008>,
1682 <0x4180000 0x020>,
1683 <0xc2b0000 0x004>,
1684 <0xb2e0100 0x004>,
1685 <0x4180044 0x004>;
1686 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
1687 "halt_nc", "rmb_base", "restart_reg",
1688 "pdc_sync", "alt_reset";
1689
1690 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1691 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
1692 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
1693 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
1694 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
1695 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
1696 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
1697 <&clock_gcc GCC_PRNG_AHB_CLK>;
1698 clock-names = "xo", "iface_clk", "bus_clk",
1699 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
1700 "mnoc_axi_clk", "prng_clk";
1701 qcom,proxy-clock-names = "xo", "prng_clk";
1702 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
1703 "gpll0_mss_clk", "snoc_axi_clk",
1704 "mnoc_axi_clk";
1705
1706 interrupts = <0 266 1>;
1707 vdd_cx-supply = <&pm660l_s3_level>;
1708 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
1709 vdd_mx-supply = <&pm660l_s1_level>;
1710 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
1711 qcom,firmware-name = "modem";
1712 qcom,pil-self-auth;
1713 qcom,sysmon-id = <0>;
1714 qcom,ssctl-instance-id = <0x12>;
1715 qcom,override-acc;
1716 qcom,qdsp6v65-1-0;
1717 status = "ok";
1718 memory-region = <&pil_modem_mem>;
1719 qcom,mem-protect-id = <0xF>;
1720
1721 /* GPIO inputs from mss */
1722 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
1723 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
1724 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
1725 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
1726 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
1727
1728 /* GPIO output to mss */
1729 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
1730 qcom,mba-mem@0 {
1731 compatible = "qcom,pil-mba-mem";
1732 memory-region = <&pil_mba_mem>;
1733 };
1734 };
Imran Khan04f08312017-03-30 15:07:43 +05301735};
1736
1737#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05301738#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301739#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05301740#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301741
1742&usb30_prim_gdsc {
1743 status = "ok";
1744};
1745
1746&ufs_phy_gdsc {
1747 status = "ok";
1748};
1749
1750&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
1751 status = "ok";
1752};
1753
1754&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
1755 status = "ok";
1756};
1757
1758&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
1759 status = "ok";
1760};
1761
1762&bps_gdsc {
1763 status = "ok";
1764};
1765
1766&ife_0_gdsc {
1767 status = "ok";
1768};
1769
1770&ife_1_gdsc {
1771 status = "ok";
1772};
1773
1774&ipe_0_gdsc {
1775 status = "ok";
1776};
1777
1778&ipe_1_gdsc {
1779 status = "ok";
1780};
1781
1782&titan_top_gdsc {
1783 status = "ok";
1784};
1785
1786&mdss_core_gdsc {
1787 status = "ok";
1788};
1789
1790&gpu_cx_gdsc {
1791 status = "ok";
1792};
1793
1794&gpu_gx_gdsc {
1795 clock-names = "core_root_clk";
1796 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
1797 qcom,force-enable-root-clk;
1798 status = "ok";
1799};
1800
1801&vcodec0_gdsc {
1802 qcom,support-hw-trigger;
1803 status = "ok";
1804};
1805
1806&vcodec1_gdsc {
1807 qcom,support-hw-trigger;
1808 status = "ok";
1809};
1810
1811&venus_gdsc {
1812 status = "ok";
1813};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05301814
Tirupathi Reddy242bd802017-06-09 11:31:05 +05301815#include "pm660.dtsi"
1816#include "pm660l.dtsi"
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05301817#include "sdm670-regulator.dtsi"