blob: 7f128f41b3d9295c559c6aef139cfb75ae5cd8c4 [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";
894 };
895
896 slim_qca: slim@62e40000 {
897 cell-index = <3>;
898 compatible = "qcom,slim-ngd";
899 reg = <0x62e40000 0x2c000>,
900 <0x62e04000 0x20000>;
901 reg-names = "slimbus_physical", "slimbus_bam_physical";
902 interrupts = <0 291 0>, <0 292 0>;
903 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
904 status = "disabled";
905 };
906
Imran Khan04f08312017-03-30 15:07:43 +0530907 wdog: qcom,wdt@17980000{
908 compatible = "qcom,msm-watchdog";
909 reg = <0x17980000 0x1000>;
910 reg-names = "wdt-base";
911 interrupts = <0 3 0>, <0 4 0>;
912 qcom,bark-time = <11000>;
913 qcom,pet-time = <10000>;
914 qcom,ipi-ping;
915 qcom,wakeup-enable;
916 };
917
918 qcom,msm-rtb {
919 compatible = "qcom,msm-rtb";
920 qcom,rtb-size = <0x100000>;
921 };
922
923 qcom,msm-imem@146bf000 {
924 compatible = "qcom,msm-imem";
925 reg = <0x146bf000 0x1000>;
926 ranges = <0x0 0x146bf000 0x1000>;
927 #address-cells = <1>;
928 #size-cells = <1>;
929
930 mem_dump_table@10 {
931 compatible = "qcom,msm-imem-mem_dump_table";
932 reg = <0x10 8>;
933 };
934
935 restart_reason@65c {
936 compatible = "qcom,msm-imem-restart_reason";
937 reg = <0x65c 4>;
938 };
939
940 pil@94c {
941 compatible = "qcom,msm-imem-pil";
942 reg = <0x94c 200>;
943 };
944
945 kaslr_offset@6d0 {
946 compatible = "qcom,msm-imem-kaslr_offset";
947 reg = <0x6d0 12>;
948 };
949 };
950
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +0530951 gpi_dma0: qcom,gpi-dma@0x800000 {
952 #dma-cells = <6>;
953 compatible = "qcom,gpi-dma";
954 reg = <0x800000 0x60000>;
955 reg-names = "gpi-top";
956 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
957 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
958 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
959 <0 256 0>;
960 qcom,max-num-gpii = <13>;
961 qcom,gpii-mask = <0xfa>;
962 qcom,ev-factor = <2>;
963 iommus = <&apps_smmu 0x0016 0x0>;
964 status = "ok";
965 };
966
967 gpi_dma1: qcom,gpi-dma@0xa00000 {
968 #dma-cells = <6>;
969 compatible = "qcom,gpi-dma";
970 reg = <0xa00000 0x60000>;
971 reg-names = "gpi-top";
972 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
973 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
974 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
975 <0 299 0>;
976 qcom,max-num-gpii = <13>;
977 qcom,gpii-mask = <0xfa>;
978 qcom,ev-factor = <2>;
979 iommus = <&apps_smmu 0x06d6 0x0>;
980 status = "ok";
981 };
982
Imran Khan04f08312017-03-30 15:07:43 +0530983 cpuss_dump {
984 compatible = "qcom,cpuss-dump";
985 qcom,l1_i_cache0 {
986 qcom,dump-node = <&L1_I_0>;
987 qcom,dump-id = <0x60>;
988 };
989 qcom,l1_i_cache1 {
990 qcom,dump-node = <&L1_I_100>;
991 qcom,dump-id = <0x61>;
992 };
993 qcom,l1_i_cache2 {
994 qcom,dump-node = <&L1_I_200>;
995 qcom,dump-id = <0x62>;
996 };
997 qcom,l1_i_cache3 {
998 qcom,dump-node = <&L1_I_300>;
999 qcom,dump-id = <0x63>;
1000 };
1001 qcom,l1_i_cache100 {
1002 qcom,dump-node = <&L1_I_400>;
1003 qcom,dump-id = <0x64>;
1004 };
1005 qcom,l1_i_cache101 {
1006 qcom,dump-node = <&L1_I_500>;
1007 qcom,dump-id = <0x65>;
1008 };
1009 qcom,l1_i_cache102 {
1010 qcom,dump-node = <&L1_I_600>;
1011 qcom,dump-id = <0x66>;
1012 };
1013 qcom,l1_i_cache103 {
1014 qcom,dump-node = <&L1_I_700>;
1015 qcom,dump-id = <0x67>;
1016 };
1017 qcom,l1_d_cache0 {
1018 qcom,dump-node = <&L1_D_0>;
1019 qcom,dump-id = <0x80>;
1020 };
1021 qcom,l1_d_cache1 {
1022 qcom,dump-node = <&L1_D_100>;
1023 qcom,dump-id = <0x81>;
1024 };
1025 qcom,l1_d_cache2 {
1026 qcom,dump-node = <&L1_D_200>;
1027 qcom,dump-id = <0x82>;
1028 };
1029 qcom,l1_d_cache3 {
1030 qcom,dump-node = <&L1_D_300>;
1031 qcom,dump-id = <0x83>;
1032 };
1033 qcom,l1_d_cache100 {
1034 qcom,dump-node = <&L1_D_400>;
1035 qcom,dump-id = <0x84>;
1036 };
1037 qcom,l1_d_cache101 {
1038 qcom,dump-node = <&L1_D_500>;
1039 qcom,dump-id = <0x85>;
1040 };
1041 qcom,l1_d_cache102 {
1042 qcom,dump-node = <&L1_D_600>;
1043 qcom,dump-id = <0x86>;
1044 };
1045 qcom,l1_d_cache103 {
1046 qcom,dump-node = <&L1_D_700>;
1047 qcom,dump-id = <0x87>;
1048 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301049 qcom,llcc1_d_cache {
1050 qcom,dump-node = <&LLCC_1>;
1051 qcom,dump-id = <0x140>;
1052 };
1053 qcom,llcc2_d_cache {
1054 qcom,dump-node = <&LLCC_2>;
1055 qcom,dump-id = <0x141>;
1056 };
Imran Khan04f08312017-03-30 15:07:43 +05301057 };
1058
1059 kryo3xx-erp {
1060 compatible = "arm,arm64-kryo3xx-cpu-erp";
1061 interrupts = <1 6 4>,
1062 <1 7 4>,
1063 <0 34 4>,
1064 <0 35 4>;
1065
1066 interrupt-names = "l1-l2-faultirq",
1067 "l1-l2-errirq",
1068 "l3-scu-errirq",
1069 "l3-scu-faultirq";
1070 };
1071
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301072 qcom,ipc-spinlock@1f40000 {
1073 compatible = "qcom,ipc-spinlock-sfpb";
1074 reg = <0x1f40000 0x8000>;
1075 qcom,num-locks = <8>;
1076 };
1077
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301078 qcom,smem@86000000 {
1079 compatible = "qcom,smem";
1080 reg = <0x86000000 0x200000>,
1081 <0x17911008 0x4>,
1082 <0x778000 0x7000>,
1083 <0x1fd4000 0x8>;
1084 reg-names = "smem", "irq-reg-base", "aux-mem1",
1085 "smem_targ_info_reg";
1086 qcom,mpu-enabled;
1087 };
1088
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301089 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301090 compatible = "qcom,qmp-mbox";
1091 label = "aop";
1092 reg = <0xc300000 0x100000>,
1093 <0x1799000c 0x4>;
1094 reg-names = "msgram", "irq-reg-base";
1095 qcom,irq-mask = <0x1>;
1096 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301097 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301098 mbox-desc-offset = <0x0>;
1099 #mbox-cells = <1>;
1100 };
1101
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301102 qcom,glink-smem-native-xprt-modem@86000000 {
1103 compatible = "qcom,glink-smem-native-xprt";
1104 reg = <0x86000000 0x200000>,
1105 <0x1799000c 0x4>;
1106 reg-names = "smem", "irq-reg-base";
1107 qcom,irq-mask = <0x1000>;
1108 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1109 label = "mpss";
1110 };
1111
1112 qcom,glink-smem-native-xprt-adsp@86000000 {
1113 compatible = "qcom,glink-smem-native-xprt";
1114 reg = <0x86000000 0x200000>,
1115 <0x1799000c 0x4>;
1116 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301117 qcom,irq-mask = <0x1000000>;
1118 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301119 label = "lpass";
1120 qcom,qos-config = <&glink_qos_adsp>;
1121 qcom,ramp-time = <0xaf>;
1122 };
1123
1124 glink_qos_adsp: qcom,glink-qos-config-adsp {
1125 compatible = "qcom,glink-qos-config";
1126 qcom,flow-info = <0x3c 0x0>,
1127 <0x3c 0x0>,
1128 <0x3c 0x0>,
1129 <0x3c 0x0>;
1130 qcom,mtu-size = <0x800>;
1131 qcom,tput-stats-cycle = <0xa>;
1132 };
1133
1134 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1135 compatible = "qcom,glink-spi-xprt";
1136 label = "wdsp";
1137 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1138 qcom,qos-config = <&glink_qos_wdsp>;
1139 qcom,ramp-time = <0x10>,
1140 <0x20>,
1141 <0x30>,
1142 <0x40>;
1143 };
1144
1145 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1146 compatible = "qcom,glink-fifo-config";
1147 qcom,out-read-idx-reg = <0x12000>;
1148 qcom,out-write-idx-reg = <0x12004>;
1149 qcom,in-read-idx-reg = <0x1200C>;
1150 qcom,in-write-idx-reg = <0x12010>;
1151 };
1152
1153 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1154 compatible = "qcom,glink-qos-config";
1155 qcom,flow-info = <0x80 0x0>,
1156 <0x70 0x1>,
1157 <0x60 0x2>,
1158 <0x50 0x3>;
1159 qcom,mtu-size = <0x800>;
1160 qcom,tput-stats-cycle = <0xa>;
1161 };
1162
1163 qcom,glink-smem-native-xprt-cdsp@86000000 {
1164 compatible = "qcom,glink-smem-native-xprt";
1165 reg = <0x86000000 0x200000>,
1166 <0x1799000c 0x4>;
1167 reg-names = "smem", "irq-reg-base";
1168 qcom,irq-mask = <0x10>;
1169 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1170 label = "cdsp";
1171 };
1172
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301173 glink_mpss: qcom,glink-ssr-modem {
1174 compatible = "qcom,glink_ssr";
1175 label = "modem";
1176 qcom,edge = "mpss";
1177 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1178 qcom,xprt = "smem";
1179 };
1180
1181 glink_lpass: qcom,glink-ssr-adsp {
1182 compatible = "qcom,glink_ssr";
1183 label = "adsp";
1184 qcom,edge = "lpass";
1185 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1186 qcom,xprt = "smem";
1187 };
1188
1189 glink_cdsp: qcom,glink-ssr-cdsp {
1190 compatible = "qcom,glink_ssr";
1191 label = "cdsp";
1192 qcom,edge = "cdsp";
1193 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1194 qcom,xprt = "smem";
1195 };
1196
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301197 qcom,ipc_router {
1198 compatible = "qcom,ipc_router";
1199 qcom,node-id = <1>;
1200 };
1201
1202 qcom,ipc_router_modem_xprt {
1203 compatible = "qcom,ipc_router_glink_xprt";
1204 qcom,ch-name = "IPCRTR";
1205 qcom,xprt-remote = "mpss";
1206 qcom,glink-xprt = "smem";
1207 qcom,xprt-linkid = <1>;
1208 qcom,xprt-version = <1>;
1209 qcom,fragmented-data;
1210 };
1211
1212 qcom,ipc_router_q6_xprt {
1213 compatible = "qcom,ipc_router_glink_xprt";
1214 qcom,ch-name = "IPCRTR";
1215 qcom,xprt-remote = "lpass";
1216 qcom,glink-xprt = "smem";
1217 qcom,xprt-linkid = <1>;
1218 qcom,xprt-version = <1>;
1219 qcom,fragmented-data;
1220 };
1221
1222 qcom,ipc_router_cdsp_xprt {
1223 compatible = "qcom,ipc_router_glink_xprt";
1224 qcom,ch-name = "IPCRTR";
1225 qcom,xprt-remote = "cdsp";
1226 qcom,glink-xprt = "smem";
1227 qcom,xprt-linkid = <1>;
1228 qcom,xprt-version = <1>;
1229 qcom,fragmented-data;
1230 };
1231
Dhoat Harpal11d34482017-06-06 21:00:14 +05301232 qcom,glink_pkt {
1233 compatible = "qcom,glinkpkt";
1234
1235 qcom,glinkpkt-at-mdm0 {
1236 qcom,glinkpkt-transport = "smem";
1237 qcom,glinkpkt-edge = "mpss";
1238 qcom,glinkpkt-ch-name = "DS";
1239 qcom,glinkpkt-dev-name = "at_mdm0";
1240 };
1241
1242 qcom,glinkpkt-loopback_cntl {
1243 qcom,glinkpkt-transport = "lloop";
1244 qcom,glinkpkt-edge = "local";
1245 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1246 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1247 };
1248
1249 qcom,glinkpkt-loopback_data {
1250 qcom,glinkpkt-transport = "lloop";
1251 qcom,glinkpkt-edge = "local";
1252 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1253 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1254 };
1255
1256 qcom,glinkpkt-apr-apps2 {
1257 qcom,glinkpkt-transport = "smem";
1258 qcom,glinkpkt-edge = "adsp";
1259 qcom,glinkpkt-ch-name = "apr_apps2";
1260 qcom,glinkpkt-dev-name = "apr_apps2";
1261 };
1262
1263 qcom,glinkpkt-data40-cntl {
1264 qcom,glinkpkt-transport = "smem";
1265 qcom,glinkpkt-edge = "mpss";
1266 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1267 qcom,glinkpkt-dev-name = "smdcntl8";
1268 };
1269
1270 qcom,glinkpkt-data1 {
1271 qcom,glinkpkt-transport = "smem";
1272 qcom,glinkpkt-edge = "mpss";
1273 qcom,glinkpkt-ch-name = "DATA1";
1274 qcom,glinkpkt-dev-name = "smd7";
1275 };
1276
1277 qcom,glinkpkt-data4 {
1278 qcom,glinkpkt-transport = "smem";
1279 qcom,glinkpkt-edge = "mpss";
1280 qcom,glinkpkt-ch-name = "DATA4";
1281 qcom,glinkpkt-dev-name = "smd8";
1282 };
1283
1284 qcom,glinkpkt-data11 {
1285 qcom,glinkpkt-transport = "smem";
1286 qcom,glinkpkt-edge = "mpss";
1287 qcom,glinkpkt-ch-name = "DATA11";
1288 qcom,glinkpkt-dev-name = "smd11";
1289 };
1290 };
1291
Imran Khan04f08312017-03-30 15:07:43 +05301292 qcom,chd_sliver {
1293 compatible = "qcom,core-hang-detect";
1294 label = "silver";
1295 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1296 0x17e30058 0x17e40058 0x17e50058>;
1297 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1298 0x17e30060 0x17e40060 0x17e50060>;
1299 };
1300
1301 qcom,chd_gold {
1302 compatible = "qcom,core-hang-detect";
1303 label = "gold";
1304 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1305 qcom,config-arr = <0x17e60060 0x17e70060>;
1306 };
1307
1308 qcom,ghd {
1309 compatible = "qcom,gladiator-hang-detect-v2";
1310 qcom,threshold-arr = <0x1799041c 0x17990420>;
1311 qcom,config-reg = <0x17990434>;
1312 };
1313
1314 qcom,msm-gladiator-v3@17900000 {
1315 compatible = "qcom,msm-gladiator-v3";
1316 reg = <0x17900000 0xd080>;
1317 reg-names = "gladiator_base";
1318 interrupts = <0 17 0>;
1319 };
1320
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301321 qcom,llcc@1100000 {
1322 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1323 reg = <0x1100000 0x250000>;
1324 reg-names = "llcc_base";
1325 qcom,llcc-banks-off = <0x0 0x80000 >;
1326 qcom,llcc-broadcast-off = <0x200000>;
1327
1328 llcc: qcom,sdm670-llcc {
1329 compatible = "qcom,sdm670-llcc";
1330 #cache-cells = <1>;
1331 max-slices = <32>;
1332 qcom,dump-size = <0x80000>;
1333 };
1334
1335 qcom,llcc-erp {
1336 compatible = "qcom,llcc-erp";
1337 interrupt-names = "ecc_irq";
1338 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1339 };
1340
1341 qcom,llcc-amon {
1342 compatible = "qcom,llcc-amon";
1343 };
1344
1345 LLCC_1: llcc_1_dcache {
1346 qcom,dump-size = <0xd8000>;
1347 };
1348
1349 LLCC_2: llcc_2_dcache {
1350 qcom,dump-size = <0xd8000>;
1351 };
1352 };
1353
Maulik Shah210773d2017-06-15 09:49:12 +05301354 cmd_db: qcom,cmd-db@c3f000c {
1355 compatible = "qcom,cmd-db";
1356 reg = <0xc3f000c 0x8>;
1357 };
1358
Maulik Shahc77d1d22017-06-15 14:04:50 +05301359 apps_rsc: mailbox@179e0000 {
1360 compatible = "qcom,tcs-drv";
1361 label = "apps_rsc";
1362 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1363 interrupts = <0 5 0>;
1364 #mbox-cells = <1>;
1365 qcom,drv-id = <2>;
1366 qcom,tcs-config = <ACTIVE_TCS 2>,
1367 <SLEEP_TCS 3>,
1368 <WAKE_TCS 3>,
1369 <CONTROL_TCS 1>;
1370 };
1371
Maulik Shah0dd203f2017-06-15 09:44:59 +05301372 system_pm {
1373 compatible = "qcom,system-pm";
1374 mboxes = <&apps_rsc 0>;
1375 };
1376
Imran Khan04f08312017-03-30 15:07:43 +05301377 dcc: dcc_v2@10a2000 {
1378 compatible = "qcom,dcc_v2";
1379 reg = <0x10a2000 0x1000>,
1380 <0x10ae000 0x2000>;
1381 reg-names = "dcc-base", "dcc-ram-base";
1382 };
1383
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301384 spmi_bus: qcom,spmi@c440000 {
1385 compatible = "qcom,spmi-pmic-arb";
1386 reg = <0xc440000 0x1100>,
1387 <0xc600000 0x2000000>,
1388 <0xe600000 0x100000>,
1389 <0xe700000 0xa0000>,
1390 <0xc40a000 0x26000>;
1391 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1392 interrupt-names = "periph_irq";
1393 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1394 qcom,ee = <0>;
1395 qcom,channel = <0>;
1396 #address-cells = <2>;
1397 #size-cells = <0>;
1398 interrupt-controller;
1399 #interrupt-cells = <4>;
1400 cell-index = <0>;
1401 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301402
1403 ufsphy_mem: ufsphy_mem@1d87000 {
1404 reg = <0x1d87000 0xe00>; /* PHY regs */
1405 reg-names = "phy_mem";
1406 #phy-cells = <0>;
1407
1408 lanes-per-direction = <1>;
1409
1410 clock-names = "ref_clk_src",
1411 "ref_clk",
1412 "ref_aux_clk";
1413 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1414 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1415 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1416
1417 status = "disabled";
1418 };
1419
1420 ufshc_mem: ufshc@1d84000 {
1421 compatible = "qcom,ufshc";
1422 reg = <0x1d84000 0x3000>;
1423 interrupts = <0 265 0>;
1424 phys = <&ufsphy_mem>;
1425 phy-names = "ufsphy";
1426
1427 lanes-per-direction = <1>;
1428 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1429
1430 clock-names =
1431 "core_clk",
1432 "bus_aggr_clk",
1433 "iface_clk",
1434 "core_clk_unipro",
1435 "core_clk_ice",
1436 "ref_clk",
1437 "tx_lane0_sync_clk",
1438 "rx_lane0_sync_clk";
1439 clocks =
1440 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1441 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1442 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1443 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1444 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1445 <&clock_rpmh RPMH_CXO_CLK>,
1446 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1447 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1448 freq-table-hz =
1449 <50000000 200000000>,
1450 <0 0>,
1451 <0 0>,
1452 <37500000 150000000>,
1453 <75000000 300000000>,
1454 <0 0>,
1455 <0 0>,
1456 <0 0>;
1457
1458 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1459 reset-names = "core_reset";
1460
1461 status = "disabled";
1462 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301463
1464 qcom,lpass@62400000 {
1465 compatible = "qcom,pil-tz-generic";
1466 reg = <0x62400000 0x00100>;
1467 interrupts = <0 162 1>;
1468
1469 vdd_cx-supply = <&pm660l_l9_level>;
1470 qcom,proxy-reg-names = "vdd_cx";
1471 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1472
1473 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1474 clock-names = "xo";
1475 qcom,proxy-clock-names = "xo";
1476
1477 qcom,pas-id = <1>;
1478 qcom,proxy-timeout-ms = <10000>;
1479 qcom,smem-id = <423>;
1480 qcom,sysmon-id = <1>;
1481 qcom,ssctl-instance-id = <0x14>;
1482 qcom,firmware-name = "adsp";
1483 memory-region = <&pil_adsp_mem>;
1484
1485 /* GPIO inputs from lpass */
1486 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1487 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1488 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1489 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1490
1491 /* GPIO output to lpass */
1492 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
1493 status = "ok";
1494 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301495
1496 qcom,rmnet-ipa {
1497 compatible = "qcom,rmnet-ipa3";
1498 qcom,rmnet-ipa-ssr;
1499 qcom,ipa-loaduC;
1500 qcom,ipa-advertise-sg-support;
1501 qcom,ipa-napi-enable;
1502 };
1503
1504 ipa_hw: qcom,ipa@01e00000 {
1505 compatible = "qcom,ipa";
1506 reg = <0x1e00000 0x34000>,
1507 <0x1e04000 0x2c000>;
1508 reg-names = "ipa-base", "gsi-base";
1509 interrupts =
1510 <0 311 0>,
1511 <0 432 0>;
1512 interrupt-names = "ipa-irq", "gsi-irq";
1513 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1514 qcom,ipa-hw-mode = <1>;
1515 qcom,ee = <0>;
1516 qcom,use-ipa-tethering-bridge;
1517 qcom,modem-cfg-emb-pipe-flt;
1518 qcom,ipa-wdi2;
1519 qcom,use-64-bit-dma-mask;
1520 qcom,arm-smmu;
1521 qcom,smmu-s1-bypass;
1522 qcom,bandwidth-vote-for-ipa;
1523 qcom,msm-bus,name = "ipa";
1524 qcom,msm-bus,num-cases = <4>;
1525 qcom,msm-bus,num-paths = <4>;
1526 qcom,msm-bus,vectors-KBps =
1527 /* No vote */
1528 <90 512 0 0>,
1529 <90 585 0 0>,
1530 <1 676 0 0>,
1531 <143 777 0 0>,
1532 /* SVS */
1533 <90 512 80000 640000>,
1534 <90 585 80000 640000>,
1535 <1 676 80000 80000>,
1536 <143 777 0 150000>,
1537 /* NOMINAL */
1538 <90 512 206000 960000>,
1539 <90 585 206000 960000>,
1540 <1 676 206000 160000>,
1541 <143 777 0 300000>,
1542 /* TURBO */
1543 <90 512 206000 3600000>,
1544 <90 585 206000 3600000>,
1545 <1 676 206000 300000>,
1546 <143 777 0 355333>;
1547 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1548
1549 /* IPA RAM mmap */
1550 qcom,ipa-ram-mmap = <
1551 0x280 /* ofst_start; */
1552 0x0 /* nat_ofst; */
1553 0x0 /* nat_size; */
1554 0x288 /* v4_flt_hash_ofst; */
1555 0x78 /* v4_flt_hash_size; */
1556 0x4000 /* v4_flt_hash_size_ddr; */
1557 0x308 /* v4_flt_nhash_ofst; */
1558 0x78 /* v4_flt_nhash_size; */
1559 0x4000 /* v4_flt_nhash_size_ddr; */
1560 0x388 /* v6_flt_hash_ofst; */
1561 0x78 /* v6_flt_hash_size; */
1562 0x4000 /* v6_flt_hash_size_ddr; */
1563 0x408 /* v6_flt_nhash_ofst; */
1564 0x78 /* v6_flt_nhash_size; */
1565 0x4000 /* v6_flt_nhash_size_ddr; */
1566 0xf /* v4_rt_num_index; */
1567 0x0 /* v4_modem_rt_index_lo; */
1568 0x7 /* v4_modem_rt_index_hi; */
1569 0x8 /* v4_apps_rt_index_lo; */
1570 0xe /* v4_apps_rt_index_hi; */
1571 0x488 /* v4_rt_hash_ofst; */
1572 0x78 /* v4_rt_hash_size; */
1573 0x4000 /* v4_rt_hash_size_ddr; */
1574 0x508 /* v4_rt_nhash_ofst; */
1575 0x78 /* v4_rt_nhash_size; */
1576 0x4000 /* v4_rt_nhash_size_ddr; */
1577 0xf /* v6_rt_num_index; */
1578 0x0 /* v6_modem_rt_index_lo; */
1579 0x7 /* v6_modem_rt_index_hi; */
1580 0x8 /* v6_apps_rt_index_lo; */
1581 0xe /* v6_apps_rt_index_hi; */
1582 0x588 /* v6_rt_hash_ofst; */
1583 0x78 /* v6_rt_hash_size; */
1584 0x4000 /* v6_rt_hash_size_ddr; */
1585 0x608 /* v6_rt_nhash_ofst; */
1586 0x78 /* v6_rt_nhash_size; */
1587 0x4000 /* v6_rt_nhash_size_ddr; */
1588 0x688 /* modem_hdr_ofst; */
1589 0x140 /* modem_hdr_size; */
1590 0x7c8 /* apps_hdr_ofst; */
1591 0x0 /* apps_hdr_size; */
1592 0x800 /* apps_hdr_size_ddr; */
1593 0x7d0 /* modem_hdr_proc_ctx_ofst; */
1594 0x200 /* modem_hdr_proc_ctx_size; */
1595 0x9d0 /* apps_hdr_proc_ctx_ofst; */
1596 0x200 /* apps_hdr_proc_ctx_size; */
1597 0x0 /* apps_hdr_proc_ctx_size_ddr; */
1598 0x0 /* modem_comp_decomp_ofst; diff */
1599 0x0 /* modem_comp_decomp_size; diff */
1600 0xbd8 /* modem_ofst; */
1601 0x1024 /* modem_size; */
1602 0x2000 /* apps_v4_flt_hash_ofst; */
1603 0x0 /* apps_v4_flt_hash_size; */
1604 0x2000 /* apps_v4_flt_nhash_ofst; */
1605 0x0 /* apps_v4_flt_nhash_size; */
1606 0x2000 /* apps_v6_flt_hash_ofst; */
1607 0x0 /* apps_v6_flt_hash_size; */
1608 0x2000 /* apps_v6_flt_nhash_ofst; */
1609 0x0 /* apps_v6_flt_nhash_size; */
1610 0x80 /* uc_info_ofst; */
1611 0x200 /* uc_info_size; */
1612 0x2000 /* end_ofst; */
1613 0x2000 /* apps_v4_rt_hash_ofst; */
1614 0x0 /* apps_v4_rt_hash_size; */
1615 0x2000 /* apps_v4_rt_nhash_ofst; */
1616 0x0 /* apps_v4_rt_nhash_size; */
1617 0x2000 /* apps_v6_rt_hash_ofst; */
1618 0x0 /* apps_v6_rt_hash_size; */
1619 0x2000 /* apps_v6_rt_nhash_ofst; */
1620 0x0 /* apps_v6_rt_nhash_size; */
1621 0x1c00 /* uc_event_ring_ofst; */
1622 0x400 /* uc_event_ring_size; */
1623 >;
1624
1625 /* smp2p gpio information */
1626 qcom,smp2pgpio_map_ipa_1_out {
1627 compatible = "qcom,smp2pgpio-map-ipa-1-out";
1628 gpios = <&smp2pgpio_ipa_1_out 0 0>;
1629 };
1630
1631 qcom,smp2pgpio_map_ipa_1_in {
1632 compatible = "qcom,smp2pgpio-map-ipa-1-in";
1633 gpios = <&smp2pgpio_ipa_1_in 0 0>;
1634 };
1635
1636 ipa_smmu_ap: ipa_smmu_ap {
1637 compatible = "qcom,ipa-smmu-ap-cb";
1638 iommus = <&apps_smmu 0x720 0x0>;
1639 qcom,iova-mapping = <0x20000000 0x40000000>;
1640 };
1641
1642 ipa_smmu_wlan: ipa_smmu_wlan {
1643 compatible = "qcom,ipa-smmu-wlan-cb";
1644 iommus = <&apps_smmu 0x721 0x0>;
1645 };
1646
1647 ipa_smmu_uc: ipa_smmu_uc {
1648 compatible = "qcom,ipa-smmu-uc-cb";
1649 iommus = <&apps_smmu 0x722 0x0>;
1650 qcom,iova-mapping = <0x40000000 0x20000000>;
1651 };
1652 };
1653
1654 qcom,ipa_fws {
1655 compatible = "qcom,pil-tz-generic";
1656 qcom,pas-id = <0xf>;
1657 qcom,firmware-name = "ipa_fws";
1658 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301659
1660 pil_modem: qcom,mss@4080000 {
1661 compatible = "qcom,pil-q6v55-mss";
1662 reg = <0x4080000 0x100>,
1663 <0x1f63000 0x008>,
1664 <0x1f65000 0x008>,
1665 <0x1f64000 0x008>,
1666 <0x4180000 0x020>,
1667 <0xc2b0000 0x004>,
1668 <0xb2e0100 0x004>,
1669 <0x4180044 0x004>;
1670 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
1671 "halt_nc", "rmb_base", "restart_reg",
1672 "pdc_sync", "alt_reset";
1673
1674 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1675 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
1676 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
1677 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
1678 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
1679 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
1680 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
1681 <&clock_gcc GCC_PRNG_AHB_CLK>;
1682 clock-names = "xo", "iface_clk", "bus_clk",
1683 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
1684 "mnoc_axi_clk", "prng_clk";
1685 qcom,proxy-clock-names = "xo", "prng_clk";
1686 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
1687 "gpll0_mss_clk", "snoc_axi_clk",
1688 "mnoc_axi_clk";
1689
1690 interrupts = <0 266 1>;
1691 vdd_cx-supply = <&pm660l_s3_level>;
1692 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
1693 vdd_mx-supply = <&pm660l_s1_level>;
1694 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
1695 qcom,firmware-name = "modem";
1696 qcom,pil-self-auth;
1697 qcom,sysmon-id = <0>;
1698 qcom,ssctl-instance-id = <0x12>;
1699 qcom,override-acc;
1700 qcom,qdsp6v65-1-0;
1701 status = "ok";
1702 memory-region = <&pil_modem_mem>;
1703 qcom,mem-protect-id = <0xF>;
1704
1705 /* GPIO inputs from mss */
1706 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
1707 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
1708 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
1709 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
1710 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
1711
1712 /* GPIO output to mss */
1713 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
1714 qcom,mba-mem@0 {
1715 compatible = "qcom,pil-mba-mem";
1716 memory-region = <&pil_mba_mem>;
1717 };
1718 };
Imran Khan04f08312017-03-30 15:07:43 +05301719};
1720
1721#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05301722#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301723#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05301724#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301725
1726&usb30_prim_gdsc {
1727 status = "ok";
1728};
1729
1730&ufs_phy_gdsc {
1731 status = "ok";
1732};
1733
1734&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
1735 status = "ok";
1736};
1737
1738&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
1739 status = "ok";
1740};
1741
1742&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
1743 status = "ok";
1744};
1745
1746&bps_gdsc {
1747 status = "ok";
1748};
1749
1750&ife_0_gdsc {
1751 status = "ok";
1752};
1753
1754&ife_1_gdsc {
1755 status = "ok";
1756};
1757
1758&ipe_0_gdsc {
1759 status = "ok";
1760};
1761
1762&ipe_1_gdsc {
1763 status = "ok";
1764};
1765
1766&titan_top_gdsc {
1767 status = "ok";
1768};
1769
1770&mdss_core_gdsc {
1771 status = "ok";
1772};
1773
1774&gpu_cx_gdsc {
1775 status = "ok";
1776};
1777
1778&gpu_gx_gdsc {
1779 clock-names = "core_root_clk";
1780 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
1781 qcom,force-enable-root-clk;
1782 status = "ok";
1783};
1784
1785&vcodec0_gdsc {
1786 qcom,support-hw-trigger;
1787 status = "ok";
1788};
1789
1790&vcodec1_gdsc {
1791 qcom,support-hw-trigger;
1792 status = "ok";
1793};
1794
1795&venus_gdsc {
1796 status = "ok";
1797};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05301798
Tirupathi Reddy242bd802017-06-09 11:31:05 +05301799#include "pm660.dtsi"
1800#include "pm660l.dtsi"
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05301801#include "sdm670-regulator.dtsi"