blob: 30252249945728fb93955a56bcf6be06e268cd34 [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>
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +053024#include <dt-bindings/clock/qcom,aop-qmp.h>
Imran Khan04f08312017-03-30 15:07:43 +053025
26/ {
27 model = "Qualcomm Technologies, Inc. SDM670";
28 compatible = "qcom,sdm670";
29 qcom,msm-id = <336 0x0>;
Maulik Shah30ebbde2017-06-15 10:02:54 +053030 interrupt-parent = <&pdc>;
Imran Khan04f08312017-03-30 15:07:43 +053031
Sayali Lokhande099af9c2017-06-08 10:18:29 +053032 aliases {
33 ufshc1 = &ufshc_mem; /* Embedded UFS slot */
Vijay Viswanatheac72722017-06-05 11:01:38 +053034 sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
Vijay Viswanathee4340d2017-08-28 09:50:18 +053035 sdhc2 = &sdhc_2; /* SDC2 SD Card slot */
Mukesh Kumar Savaliya7b272542017-07-10 19:35:29 +053036 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 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +053075 L1_TLB_0: l1-tlb {
76 qcom,dump-size = <0x3000>;
77 };
Imran Khan04f08312017-03-30 15:07:43 +053078 };
79
80 CPU1: cpu@100 {
81 device_type = "cpu";
82 compatible = "arm,armv8";
83 reg = <0x0 0x100>;
84 enable-method = "psci";
85 efficiency = <1024>;
86 cache-size = <0x8000>;
87 cpu-release-addr = <0x0 0x90000000>;
88 next-level-cache = <&L2_100>;
89 L2_100: l2-cache {
90 compatible = "arm,arch-cache";
91 cache-size = <0x20000>;
92 cache-level = <2>;
93 next-level-cache = <&L3_0>;
94 };
95 L1_I_100: l1-icache {
96 compatible = "arm,arch-cache";
97 qcom,dump-size = <0x9000>;
98 };
99 L1_D_100: l1-dcache {
100 compatible = "arm,arch-cache";
101 qcom,dump-size = <0x9000>;
102 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530103 L1_TLB_100: l1-tlb {
104 qcom,dump-size = <0x3000>;
105 };
Imran Khan04f08312017-03-30 15:07:43 +0530106 };
107
108 CPU2: cpu@200 {
109 device_type = "cpu";
110 compatible = "arm,armv8";
111 reg = <0x0 0x200>;
112 enable-method = "psci";
113 efficiency = <1024>;
114 cache-size = <0x8000>;
115 cpu-release-addr = <0x0 0x90000000>;
116 next-level-cache = <&L2_200>;
117 L2_200: l2-cache {
118 compatible = "arm,arch-cache";
119 cache-size = <0x20000>;
120 cache-level = <2>;
121 next-level-cache = <&L3_0>;
122 };
123 L1_I_200: l1-icache {
124 compatible = "arm,arch-cache";
125 qcom,dump-size = <0x9000>;
126 };
127 L1_D_200: l1-dcache {
128 compatible = "arm,arch-cache";
129 qcom,dump-size = <0x9000>;
130 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530131 L1_TLB_200: l1-tlb {
132 qcom,dump-size = <0x3000>;
133 };
Imran Khan04f08312017-03-30 15:07:43 +0530134 };
135
136 CPU3: cpu@300 {
137 device_type = "cpu";
138 compatible = "arm,armv8";
139 reg = <0x0 0x300>;
140 enable-method = "psci";
141 efficiency = <1024>;
142 cache-size = <0x8000>;
143 cpu-release-addr = <0x0 0x90000000>;
144 next-level-cache = <&L2_300>;
145 L2_300: l2-cache {
146 compatible = "arm,arch-cache";
147 cache-size = <0x20000>;
148 cache-level = <2>;
149 next-level-cache = <&L3_0>;
150 };
151 L1_I_300: l1-icache {
152 compatible = "arm,arch-cache";
153 qcom,dump-size = <0x9000>;
154 };
155 L1_D_300: l1-dcache {
156 compatible = "arm,arch-cache";
157 qcom,dump-size = <0x9000>;
158 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530159 L1_TLB_300: l1-tlb {
160 qcom,dump-size = <0x3000>;
161 };
Imran Khan04f08312017-03-30 15:07:43 +0530162 };
163
164 CPU4: cpu@400 {
165 device_type = "cpu";
166 compatible = "arm,armv8";
167 reg = <0x0 0x400>;
168 enable-method = "psci";
169 efficiency = <1024>;
170 cache-size = <0x8000>;
171 cpu-release-addr = <0x0 0x90000000>;
172 next-level-cache = <&L2_400>;
173 L2_400: l2-cache {
174 compatible = "arm,arch-cache";
175 cache-size = <0x20000>;
176 cache-level = <2>;
177 next-level-cache = <&L3_0>;
178 };
179 L1_I_400: l1-icache {
180 compatible = "arm,arch-cache";
181 qcom,dump-size = <0x9000>;
182 };
183 L1_D_400: l1-dcache {
184 compatible = "arm,arch-cache";
185 qcom,dump-size = <0x9000>;
186 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530187 L1_TLB_400: l1-tlb {
188 qcom,dump-size = <0x3000>;
189 };
Imran Khan04f08312017-03-30 15:07:43 +0530190 };
191
192 CPU5: cpu@500 {
193 device_type = "cpu";
194 compatible = "arm,armv8";
195 reg = <0x0 0x500>;
196 enable-method = "psci";
197 efficiency = <1024>;
198 cache-size = <0x8000>;
199 cpu-release-addr = <0x0 0x90000000>;
200 next-level-cache = <&L2_500>;
201 L2_500: l2-cache {
202 compatible = "arm,arch-cache";
203 cache-size = <0x20000>;
204 cache-level = <2>;
205 next-level-cache = <&L3_0>;
206 };
207 L1_I_500: l1-icache {
208 compatible = "arm,arch-cache";
209 qcom,dump-size = <0x9000>;
210 };
211 L1_D_500: l1-dcache {
212 compatible = "arm,arch-cache";
213 qcom,dump-size = <0x9000>;
214 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530215 L1_TLB_500: l1-tlb {
216 qcom,dump-size = <0x3000>;
217 };
Imran Khan04f08312017-03-30 15:07:43 +0530218 };
219
220 CPU6: cpu@600 {
221 device_type = "cpu";
222 compatible = "arm,armv8";
223 reg = <0x0 0x600>;
224 enable-method = "psci";
225 efficiency = <1740>;
226 cache-size = <0x10000>;
227 cpu-release-addr = <0x0 0x90000000>;
228 next-level-cache = <&L2_600>;
229 L2_600: l2-cache {
230 compatible = "arm,arch-cache";
231 cache-size = <0x40000>;
232 cache-level = <2>;
233 next-level-cache = <&L3_0>;
234 };
235 L1_I_600: l1-icache {
236 compatible = "arm,arch-cache";
237 qcom,dump-size = <0x12000>;
238 };
239 L1_D_600: l1-dcache {
240 compatible = "arm,arch-cache";
241 qcom,dump-size = <0x12000>;
242 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530243 L1_TLB_600: l1-tlb {
244 qcom,dump-size = <0x3c000>;
245 };
Imran Khan04f08312017-03-30 15:07:43 +0530246 };
247
248 CPU7: cpu@700 {
249 device_type = "cpu";
250 compatible = "arm,armv8";
251 reg = <0x0 0x700>;
252 enable-method = "psci";
253 efficiency = <1740>;
254 cache-size = <0x10000>;
255 cpu-release-addr = <0x0 0x90000000>;
256 next-level-cache = <&L2_700>;
257 L2_700: l2-cache {
258 compatible = "arm,arch-cache";
259 cache-size = <0x40000>;
260 cache-level = <2>;
261 next-level-cache = <&L3_0>;
262 };
263 L1_I_700: l1-icache {
264 compatible = "arm,arch-cache";
265 qcom,dump-size = <0x12000>;
266 };
267 L1_D_700: l1-dcache {
268 compatible = "arm,arch-cache";
269 qcom,dump-size = <0x12000>;
270 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530271 L1_TLB_700: l1-tlb {
272 qcom,dump-size = <0x3c000>;
273 };
Imran Khan04f08312017-03-30 15:07:43 +0530274 };
275
276 cpu-map {
277 cluster0 {
278 core0 {
279 cpu = <&CPU0>;
280 };
281
282 core1 {
283 cpu = <&CPU1>;
284 };
285
286 core2 {
287 cpu = <&CPU2>;
288 };
289
290 core3 {
291 cpu = <&CPU3>;
292 };
293
294 core4 {
295 cpu = <&CPU4>;
296 };
297
298 core5 {
299 cpu = <&CPU5>;
300 };
301 };
302 cluster1 {
303 core0 {
304 cpu = <&CPU6>;
305 };
306
307 core1 {
308 cpu = <&CPU7>;
309 };
310 };
311 };
312 };
313
314 psci {
315 compatible = "arm,psci-1.0";
316 method = "smc";
317 };
318
319 soc: soc { };
320
Imran Khanb1066fa2017-08-01 17:20:22 +0530321 vendor: vendor {
322 #address-cells = <1>;
323 #size-cells = <1>;
324 ranges = <0 0 0 0xffffffff>;
325 compatible = "simple-bus";
326 };
327
Imran Khan5381c932017-08-02 11:27:07 +0530328 firmware: firmware {
329 android {
330 compatible = "android,firmware";
331
332 fstab {
333 compatible = "android,fstab";
334 vendor {
335 compatible = "android,vendor";
336 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
337 type = "ext4";
338 mnt_flags = "ro,barrier=1,discard";
339 fsmgr_flags = "wait,slotselect";
340 };
341 };
342 };
343 };
344
Imran Khan04f08312017-03-30 15:07:43 +0530345 reserved-memory {
346 #address-cells = <2>;
347 #size-cells = <2>;
348 ranges;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530349
350 removed_regions: removed_regions@85700000 {
351 compatible = "removed-dma-pool";
352 no-map;
353 reg = <0 0x85700000 0 0x3800000>;
354 };
355
356 pil_camera_mem: camera_region@8ab00000 {
357 compatible = "removed-dma-pool";
358 no-map;
359 reg = <0 0x8ab00000 0 0x500000>;
360 };
361
362 pil_modem_mem: modem_region@8b000000 {
363 compatible = "removed-dma-pool";
364 no-map;
365 reg = <0 0x8b000000 0 0x7e00000>;
366 };
367
368 pil_video_mem: pil_video_region@92e00000 {
369 compatible = "removed-dma-pool";
370 no-map;
371 reg = <0 0x92e00000 0 0x500000>;
372 };
373
374 pil_cdsp_mem: cdsp_regions@93300000 {
375 compatible = "removed-dma-pool";
376 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530377 reg = <0 0x93300000 0 0x800000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530378 };
379
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530380 pil_mba_mem: pil_mba_region@0x93b00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530381 compatible = "removed-dma-pool";
382 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530383 reg = <0 0x93b00000 0 0x200000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530384 };
385
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530386 pil_adsp_mem: pil_adsp_region@93d00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530387 compatible = "removed-dma-pool";
388 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530389 reg = <0 0x93d00000 0 0x1e00000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530390 };
391
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530392 pil_ipa_fw_mem: pil_ipa_fw_region@95b00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530393 compatible = "removed-dma-pool";
394 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530395 reg = <0 0x95b00000 0 0x10000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530396 };
397
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530398 pil_ipa_gsi_mem: pil_ipa_gsi_region@95b10000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530399 compatible = "removed-dma-pool";
400 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530401 reg = <0 0x95b10000 0 0x5000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530402 };
403
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530404 pil_gpu_mem: pil_gpu_region@95b15000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530405 compatible = "removed-dma-pool";
406 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530407 reg = <0 0x95b15000 0 0x1000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530408 };
409
410 adsp_mem: adsp_region {
411 compatible = "shared-dma-pool";
412 alloc-ranges = <0 0x00000000 0 0xffffffff>;
413 reusable;
414 alignment = <0 0x400000>;
415 size = <0 0xc00000>;
416 };
417
418 qseecom_mem: qseecom_region {
419 compatible = "shared-dma-pool";
420 alloc-ranges = <0 0x00000000 0 0xffffffff>;
421 reusable;
422 alignment = <0 0x400000>;
423 size = <0 0x1400000>;
424 };
425
426 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
427 compatible = "shared-dma-pool";
428 alloc-ranges = <0 0x00000000 0 0xffffffff>; /* 32-bit */
429 reusable;
430 alignment = <0 0x400000>;
431 size = <0 0x800000>;
432 };
433
434 secure_display_memory: secure_display_region {
435 compatible = "shared-dma-pool";
436 alloc-ranges = <0 0x00000000 0 0xffffffff>;
437 reusable;
438 alignment = <0 0x400000>;
439 size = <0 0x5c00000>;
440 };
441
442 /* global autoconfigured region for contiguous allocations */
443 linux,cma {
444 compatible = "shared-dma-pool";
445 alloc-ranges = <0 0x00000000 0 0xffffffff>;
446 reusable;
447 alignment = <0 0x400000>;
448 size = <0 0x2000000>;
449 linux,cma-default;
450 };
Imran Khan04f08312017-03-30 15:07:43 +0530451 };
452};
453
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530454#include "sdm670-ion.dtsi"
455
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530456#include "sdm670-smp2p.dtsi"
457
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530458#include "sdm670-qupv3.dtsi"
459
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530460#include "sdm670-coresight.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +0530461&soc {
462 #address-cells = <1>;
463 #size-cells = <1>;
464 ranges = <0 0 0 0xffffffff>;
465 compatible = "simple-bus";
466
467 intc: interrupt-controller@17a00000 {
468 compatible = "arm,gic-v3";
469 #interrupt-cells = <3>;
470 interrupt-controller;
471 #redistributor-regions = <1>;
472 redistributor-stride = <0x0 0x20000>;
473 reg = <0x17a00000 0x10000>, /* GICD */
474 <0x17a60000 0x100000>; /* GICR * 8 */
475 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530476 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530477 };
478
479 timer {
480 compatible = "arm,armv8-timer";
481 interrupts = <1 1 0xf08>,
482 <1 2 0xf08>,
483 <1 3 0xf08>,
484 <1 0 0xf08>;
485 clock-frequency = <19200000>;
486 };
487
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530488 qcom,sps {
489 compatible = "qcom,msm_sps_4k";
490 qcom,pipe-attr-ee;
491 };
492
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530493 thermal_zones: thermal-zones {
494 aoss0-usr {
495 polling-delay-passive = <0>;
496 polling-delay = <0>;
497 thermal-governor = "user_space";
498 thermal-sensors = <&tsens0 0>;
499 trips {
500 active-config0 {
501 temperature = <125000>;
502 hysteresis = <1000>;
503 type = "passive";
504 };
505 };
506 };
507
508 cpu0-silver-usr {
509 polling-delay-passive = <0>;
510 polling-delay = <0>;
511 thermal-governor = "user_space";
512 thermal-sensors = <&tsens0 1>;
513 trips {
514 active-config0 {
515 temperature = <125000>;
516 hysteresis = <1000>;
517 type = "passive";
518 };
519 };
520 };
521
522 cpu1-silver-usr {
523 polling-delay-passive = <0>;
524 polling-delay = <0>;
525 thermal-governor = "user_space";
526 thermal-sensors = <&tsens0 2>;
527 trips {
528 active-config0 {
529 temperature = <125000>;
530 hysteresis = <1000>;
531 type = "passive";
532 };
533 };
534 };
535
536 cpu2-silver-usr {
537 polling-delay-passive = <0>;
538 polling-delay = <0>;
539 thermal-governor = "user_space";
540 thermal-sensors = <&tsens0 3>;
541 trips {
542 active-config0 {
543 temperature = <125000>;
544 hysteresis = <1000>;
545 type = "passive";
546 };
547 };
548 };
549
550 cpu3-silver-usr {
551 polling-delay-passive = <0>;
552 polling-delay = <0>;
553 thermal-sensors = <&tsens0 4>;
554 thermal-governor = "user_space";
555 trips {
556 active-config0 {
557 temperature = <125000>;
558 hysteresis = <1000>;
559 type = "passive";
560 };
561 };
562 };
563
564 cpu4-silver-usr {
565 polling-delay-passive = <0>;
566 polling-delay = <0>;
567 thermal-sensors = <&tsens0 5>;
568 thermal-governor = "user_space";
569 trips {
570 active-config0 {
571 temperature = <125000>;
572 hysteresis = <1000>;
573 type = "passive";
574 };
575 };
576 };
577
578 cpu5-silver-usr {
579 polling-delay-passive = <0>;
580 polling-delay = <0>;
581 thermal-sensors = <&tsens0 6>;
582 thermal-governor = "user_space";
583 trips {
584 active-config0 {
585 temperature = <125000>;
586 hysteresis = <1000>;
587 type = "passive";
588 };
589 };
590 };
591
592 kryo-l3-0-usr {
593 polling-delay-passive = <0>;
594 polling-delay = <0>;
595 thermal-sensors = <&tsens0 7>;
596 thermal-governor = "user_space";
597 trips {
598 active-config0 {
599 temperature = <125000>;
600 hysteresis = <1000>;
601 type = "passive";
602 };
603 };
604 };
605
606 kryo-l3-1-usr {
607 polling-delay-passive = <0>;
608 polling-delay = <0>;
609 thermal-sensors = <&tsens0 8>;
610 thermal-governor = "user_space";
611 trips {
612 active-config0 {
613 temperature = <125000>;
614 hysteresis = <1000>;
615 type = "passive";
616 };
617 };
618 };
619
620 cpu0-gold-usr {
621 polling-delay-passive = <0>;
622 polling-delay = <0>;
623 thermal-sensors = <&tsens0 9>;
624 thermal-governor = "user_space";
625 trips {
626 active-config0 {
627 temperature = <125000>;
628 hysteresis = <1000>;
629 type = "passive";
630 };
631 };
632 };
633
634 cpu1-gold-usr {
635 polling-delay-passive = <0>;
636 polling-delay = <0>;
637 thermal-sensors = <&tsens0 10>;
638 thermal-governor = "user_space";
639 trips {
640 active-config0 {
641 temperature = <125000>;
642 hysteresis = <1000>;
643 type = "passive";
644 };
645 };
646 };
647
648 gpu0-usr {
649 polling-delay-passive = <0>;
650 polling-delay = <0>;
651 thermal-sensors = <&tsens0 11>;
652 thermal-governor = "user_space";
653 trips {
654 active-config0 {
655 temperature = <125000>;
656 hysteresis = <1000>;
657 type = "passive";
658 };
659 };
660 };
661
662 gpu1-usr {
663 polling-delay-passive = <0>;
664 polling-delay = <0>;
665 thermal-governor = "user_space";
666 thermal-sensors = <&tsens0 12>;
667 trips {
668 active-config0 {
669 temperature = <125000>;
670 hysteresis = <1000>;
671 type = "passive";
672 };
673 };
674 };
675
676 aoss1-usr {
677 polling-delay-passive = <0>;
678 polling-delay = <0>;
679 thermal-sensors = <&tsens1 0>;
680 thermal-governor = "user_space";
681 trips {
682 active-config0 {
683 temperature = <125000>;
684 hysteresis = <1000>;
685 type = "passive";
686 };
687 };
688 };
689
690 mdm-dsp-usr {
691 polling-delay-passive = <0>;
692 polling-delay = <0>;
693 thermal-sensors = <&tsens1 1>;
694 thermal-governor = "user_space";
695 trips {
696 active-config0 {
697 temperature = <125000>;
698 hysteresis = <1000>;
699 type = "passive";
700 };
701 };
702 };
703
704 ddr-usr {
705 polling-delay-passive = <0>;
706 polling-delay = <0>;
707 thermal-sensors = <&tsens1 2>;
708 thermal-governor = "user_space";
709 trips {
710 active-config0 {
711 temperature = <125000>;
712 hysteresis = <1000>;
713 type = "passive";
714 };
715 };
716 };
717
718 wlan-usr {
719 polling-delay-passive = <0>;
720 polling-delay = <0>;
721 thermal-sensors = <&tsens1 3>;
722 thermal-governor = "user_space";
723 trips {
724 active-config0 {
725 temperature = <125000>;
726 hysteresis = <1000>;
727 type = "passive";
728 };
729 };
730 };
731
732 compute-hvx-usr {
733 polling-delay-passive = <0>;
734 polling-delay = <0>;
735 thermal-sensors = <&tsens1 4>;
736 thermal-governor = "user_space";
737 trips {
738 active-config0 {
739 temperature = <125000>;
740 hysteresis = <1000>;
741 type = "passive";
742 };
743 };
744 };
745
746 camera-usr {
747 polling-delay-passive = <0>;
748 polling-delay = <0>;
749 thermal-sensors = <&tsens1 5>;
750 thermal-governor = "user_space";
751 trips {
752 active-config0 {
753 temperature = <125000>;
754 hysteresis = <1000>;
755 type = "passive";
756 };
757 };
758 };
759
760 mmss-usr {
761 polling-delay-passive = <0>;
762 polling-delay = <0>;
763 thermal-sensors = <&tsens1 6>;
764 thermal-governor = "user_space";
765 trips {
766 active-config0 {
767 temperature = <125000>;
768 hysteresis = <1000>;
769 type = "passive";
770 };
771 };
772 };
773
774 mdm-core-usr {
775 polling-delay-passive = <0>;
776 polling-delay = <0>;
777 thermal-sensors = <&tsens1 7>;
778 thermal-governor = "user_space";
779 trips {
780 active-config0 {
781 temperature = <125000>;
782 hysteresis = <1000>;
783 type = "passive";
784 };
785 };
786 };
787 };
788
789 tsens0: tsens@c222000 {
790 compatible = "qcom,tsens24xx";
791 reg = <0xc222000 0x4>,
792 <0xc263000 0x1ff>;
793 reg-names = "tsens_srot_physical",
794 "tsens_tm_physical";
795 interrupts = <0 506 0>, <0 508 0>;
796 interrupt-names = "tsens-upper-lower", "tsens-critical";
797 #thermal-sensor-cells = <1>;
798 };
799
800 tsens1: tsens@c223000 {
801 compatible = "qcom,tsens24xx";
802 reg = <0xc223000 0x4>,
803 <0xc265000 0x1ff>;
804 reg-names = "tsens_srot_physical",
805 "tsens_tm_physical";
806 interrupts = <0 507 0>, <0 509 0>;
807 interrupt-names = "tsens-upper-lower", "tsens-critical";
808 #thermal-sensor-cells = <1>;
809 };
810
Imran Khan04f08312017-03-30 15:07:43 +0530811 timer@0x17c90000{
812 #address-cells = <1>;
813 #size-cells = <1>;
814 ranges;
815 compatible = "arm,armv7-timer-mem";
816 reg = <0x17c90000 0x1000>;
817 clock-frequency = <19200000>;
818
819 frame@0x17ca0000 {
820 frame-number = <0>;
821 interrupts = <0 7 0x4>,
822 <0 6 0x4>;
823 reg = <0x17ca0000 0x1000>,
824 <0x17cb0000 0x1000>;
825 };
826
827 frame@17cc0000 {
828 frame-number = <1>;
829 interrupts = <0 8 0x4>;
830 reg = <0x17cc0000 0x1000>;
831 status = "disabled";
832 };
833
834 frame@17cd0000 {
835 frame-number = <2>;
836 interrupts = <0 9 0x4>;
837 reg = <0x17cd0000 0x1000>;
838 status = "disabled";
839 };
840
841 frame@17ce0000 {
842 frame-number = <3>;
843 interrupts = <0 10 0x4>;
844 reg = <0x17ce0000 0x1000>;
845 status = "disabled";
846 };
847
848 frame@17cf0000 {
849 frame-number = <4>;
850 interrupts = <0 11 0x4>;
851 reg = <0x17cf0000 0x1000>;
852 status = "disabled";
853 };
854
855 frame@17d00000 {
856 frame-number = <5>;
857 interrupts = <0 12 0x4>;
858 reg = <0x17d00000 0x1000>;
859 status = "disabled";
860 };
861
862 frame@17d10000 {
863 frame-number = <6>;
864 interrupts = <0 13 0x4>;
865 reg = <0x17d10000 0x1000>;
866 status = "disabled";
867 };
868 };
869
870 restart@10ac000 {
871 compatible = "qcom,pshold";
872 reg = <0xC264000 0x4>,
873 <0x1fd3000 0x4>;
874 reg-names = "pshold-base", "tcsr-boot-misc-detect";
875 };
876
Maulik Shah6bf7d5d2017-07-27 09:48:42 +0530877 aop-msg-client {
878 compatible = "qcom,debugfs-qmp-client";
879 mboxes = <&qmp_aop 0>;
880 mbox-names = "aop";
881 };
882
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530883 clock_rpmh: qcom,rpmhclk {
884 compatible = "qcom,dummycc";
885 clock-output-names = "rpmh_clocks";
886 #clock-cells = <1>;
887 };
888
889 clock_gcc: qcom,gcc@100000 {
890 compatible = "qcom,dummycc";
891 clock-output-names = "gcc_clocks";
892 #clock-cells = <1>;
893 #reset-cells = <1>;
894 };
895
896 clock_videocc: qcom,videocc@ab00000 {
897 compatible = "qcom,dummycc";
898 clock-output-names = "videocc_clocks";
899 #clock-cells = <1>;
900 #reset-cells = <1>;
901 };
902
903 clock_camcc: qcom,camcc@ad00000 {
904 compatible = "qcom,dummycc";
905 clock-output-names = "camcc_clocks";
906 #clock-cells = <1>;
907 #reset-cells = <1>;
908 };
909
910 clock_dispcc: qcom,dispcc@af00000 {
911 compatible = "qcom,dummycc";
912 clock-output-names = "dispcc_clocks";
913 #clock-cells = <1>;
914 #reset-cells = <1>;
915 };
916
917 clock_gpucc: qcom,gpucc@5090000 {
918 compatible = "qcom,dummycc";
919 clock-output-names = "gpucc_clocks";
920 #clock-cells = <1>;
921 #reset-cells = <1>;
922 };
923
924 clock_gfx: qcom,gfxcc@5090000 {
925 compatible = "qcom,dummycc";
926 clock-output-names = "gfxcc_clocks";
927 #clock-cells = <1>;
928 #reset-cells = <1>;
929 };
930
Imran Khan04f08312017-03-30 15:07:43 +0530931 clock_cpucc: qcom,cpucc {
932 compatible = "qcom,dummycc";
933 clock-output-names = "cpucc_clocks";
934 #clock-cells = <1>;
935 #reset-cells = <1>;
936 };
937
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +0530938 clock_aop: qcom,aopclk {
939 compatible = "qcom,aop-qmp-clk-v2";
940 #clock-cells = <1>;
941 mboxes = <&qmp_aop 0>;
942 mbox-names = "qdss_clk";
943 };
944
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530945 slim_aud: slim@62dc0000 {
946 cell-index = <1>;
947 compatible = "qcom,slim-ngd";
948 reg = <0x62dc0000 0x2c000>,
949 <0x62d84000 0x2a000>;
950 reg-names = "slimbus_physical", "slimbus_bam_physical";
951 interrupts = <0 163 0>, <0 164 0>;
952 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
953 qcom,apps-ch-pipes = <0x780000>;
954 qcom,ea-pc = <0x290>;
955 status = "disabled";
956 };
957
958 slim_qca: slim@62e40000 {
959 cell-index = <3>;
960 compatible = "qcom,slim-ngd";
961 reg = <0x62e40000 0x2c000>,
962 <0x62e04000 0x20000>;
963 reg-names = "slimbus_physical", "slimbus_bam_physical";
964 interrupts = <0 291 0>, <0 292 0>;
965 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
966 status = "disabled";
967 };
968
Imran Khan04f08312017-03-30 15:07:43 +0530969 wdog: qcom,wdt@17980000{
970 compatible = "qcom,msm-watchdog";
971 reg = <0x17980000 0x1000>;
972 reg-names = "wdt-base";
973 interrupts = <0 3 0>, <0 4 0>;
974 qcom,bark-time = <11000>;
975 qcom,pet-time = <10000>;
976 qcom,ipi-ping;
977 qcom,wakeup-enable;
978 };
979
980 qcom,msm-rtb {
981 compatible = "qcom,msm-rtb";
982 qcom,rtb-size = <0x100000>;
983 };
984
985 qcom,msm-imem@146bf000 {
986 compatible = "qcom,msm-imem";
987 reg = <0x146bf000 0x1000>;
988 ranges = <0x0 0x146bf000 0x1000>;
989 #address-cells = <1>;
990 #size-cells = <1>;
991
992 mem_dump_table@10 {
993 compatible = "qcom,msm-imem-mem_dump_table";
994 reg = <0x10 8>;
995 };
996
997 restart_reason@65c {
998 compatible = "qcom,msm-imem-restart_reason";
999 reg = <0x65c 4>;
1000 };
1001
1002 pil@94c {
1003 compatible = "qcom,msm-imem-pil";
1004 reg = <0x94c 200>;
1005 };
1006
1007 kaslr_offset@6d0 {
1008 compatible = "qcom,msm-imem-kaslr_offset";
1009 reg = <0x6d0 12>;
1010 };
1011 };
1012
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301013 gpi_dma0: qcom,gpi-dma@0x800000 {
1014 #dma-cells = <6>;
1015 compatible = "qcom,gpi-dma";
1016 reg = <0x800000 0x60000>;
1017 reg-names = "gpi-top";
1018 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
1019 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
1020 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
1021 <0 256 0>;
1022 qcom,max-num-gpii = <13>;
1023 qcom,gpii-mask = <0xfa>;
1024 qcom,ev-factor = <2>;
1025 iommus = <&apps_smmu 0x0016 0x0>;
1026 status = "ok";
1027 };
1028
1029 gpi_dma1: qcom,gpi-dma@0xa00000 {
1030 #dma-cells = <6>;
1031 compatible = "qcom,gpi-dma";
1032 reg = <0xa00000 0x60000>;
1033 reg-names = "gpi-top";
1034 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
1035 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
1036 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
1037 <0 299 0>;
1038 qcom,max-num-gpii = <13>;
1039 qcom,gpii-mask = <0xfa>;
1040 qcom,ev-factor = <2>;
1041 iommus = <&apps_smmu 0x06d6 0x0>;
1042 status = "ok";
1043 };
1044
Imran Khan04f08312017-03-30 15:07:43 +05301045 cpuss_dump {
1046 compatible = "qcom,cpuss-dump";
1047 qcom,l1_i_cache0 {
1048 qcom,dump-node = <&L1_I_0>;
1049 qcom,dump-id = <0x60>;
1050 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301051 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301052 qcom,dump-node = <&L1_I_100>;
1053 qcom,dump-id = <0x61>;
1054 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301055 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301056 qcom,dump-node = <&L1_I_200>;
1057 qcom,dump-id = <0x62>;
1058 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301059 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301060 qcom,dump-node = <&L1_I_300>;
1061 qcom,dump-id = <0x63>;
1062 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301063 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301064 qcom,dump-node = <&L1_I_400>;
1065 qcom,dump-id = <0x64>;
1066 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301067 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301068 qcom,dump-node = <&L1_I_500>;
1069 qcom,dump-id = <0x65>;
1070 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301071 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301072 qcom,dump-node = <&L1_I_600>;
1073 qcom,dump-id = <0x66>;
1074 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301075 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301076 qcom,dump-node = <&L1_I_700>;
1077 qcom,dump-id = <0x67>;
1078 };
1079 qcom,l1_d_cache0 {
1080 qcom,dump-node = <&L1_D_0>;
1081 qcom,dump-id = <0x80>;
1082 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301083 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301084 qcom,dump-node = <&L1_D_100>;
1085 qcom,dump-id = <0x81>;
1086 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301087 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301088 qcom,dump-node = <&L1_D_200>;
1089 qcom,dump-id = <0x82>;
1090 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301091 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301092 qcom,dump-node = <&L1_D_300>;
1093 qcom,dump-id = <0x83>;
1094 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301095 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301096 qcom,dump-node = <&L1_D_400>;
1097 qcom,dump-id = <0x84>;
1098 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301099 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301100 qcom,dump-node = <&L1_D_500>;
1101 qcom,dump-id = <0x85>;
1102 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301103 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301104 qcom,dump-node = <&L1_D_600>;
1105 qcom,dump-id = <0x86>;
1106 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301107 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301108 qcom,dump-node = <&L1_D_700>;
1109 qcom,dump-id = <0x87>;
1110 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301111 qcom,llcc1_d_cache {
1112 qcom,dump-node = <&LLCC_1>;
1113 qcom,dump-id = <0x140>;
1114 };
1115 qcom,llcc2_d_cache {
1116 qcom,dump-node = <&LLCC_2>;
1117 qcom,dump-id = <0x141>;
1118 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301119 qcom,l1_tlb_dump0 {
1120 qcom,dump-node = <&L1_TLB_0>;
1121 qcom,dump-id = <0x20>;
1122 };
1123 qcom,l1_tlb_dump100 {
1124 qcom,dump-node = <&L1_TLB_100>;
1125 qcom,dump-id = <0x21>;
1126 };
1127 qcom,l1_tlb_dump200 {
1128 qcom,dump-node = <&L1_TLB_200>;
1129 qcom,dump-id = <0x22>;
1130 };
1131 qcom,l1_tlb_dump300 {
1132 qcom,dump-node = <&L1_TLB_300>;
1133 qcom,dump-id = <0x23>;
1134 };
1135 qcom,l1_tlb_dump400 {
1136 qcom,dump-node = <&L1_TLB_400>;
1137 qcom,dump-id = <0x24>;
1138 };
1139 qcom,l1_tlb_dump500 {
1140 qcom,dump-node = <&L1_TLB_500>;
1141 qcom,dump-id = <0x25>;
1142 };
1143 qcom,l1_tlb_dump600 {
1144 qcom,dump-node = <&L1_TLB_600>;
1145 qcom,dump-id = <0x26>;
1146 };
1147 qcom,l1_tlb_dump700 {
1148 qcom,dump-node = <&L1_TLB_700>;
1149 qcom,dump-id = <0x27>;
1150 };
Imran Khan04f08312017-03-30 15:07:43 +05301151 };
1152
1153 kryo3xx-erp {
1154 compatible = "arm,arm64-kryo3xx-cpu-erp";
1155 interrupts = <1 6 4>,
1156 <1 7 4>,
1157 <0 34 4>,
1158 <0 35 4>;
1159
1160 interrupt-names = "l1-l2-faultirq",
1161 "l1-l2-errirq",
1162 "l3-scu-errirq",
1163 "l3-scu-faultirq";
1164 };
1165
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301166 qcom,ipc-spinlock@1f40000 {
1167 compatible = "qcom,ipc-spinlock-sfpb";
1168 reg = <0x1f40000 0x8000>;
1169 qcom,num-locks = <8>;
1170 };
1171
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301172 qcom,smem@86000000 {
1173 compatible = "qcom,smem";
1174 reg = <0x86000000 0x200000>,
1175 <0x17911008 0x4>,
1176 <0x778000 0x7000>,
1177 <0x1fd4000 0x8>;
1178 reg-names = "smem", "irq-reg-base", "aux-mem1",
1179 "smem_targ_info_reg";
1180 qcom,mpu-enabled;
1181 };
1182
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301183 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301184 compatible = "qcom,qmp-mbox";
1185 label = "aop";
1186 reg = <0xc300000 0x100000>,
1187 <0x1799000c 0x4>;
1188 reg-names = "msgram", "irq-reg-base";
1189 qcom,irq-mask = <0x1>;
1190 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301191 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301192 mbox-desc-offset = <0x0>;
1193 #mbox-cells = <1>;
1194 };
1195
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301196 qcom,glink-smem-native-xprt-modem@86000000 {
1197 compatible = "qcom,glink-smem-native-xprt";
1198 reg = <0x86000000 0x200000>,
1199 <0x1799000c 0x4>;
1200 reg-names = "smem", "irq-reg-base";
1201 qcom,irq-mask = <0x1000>;
1202 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1203 label = "mpss";
1204 };
1205
1206 qcom,glink-smem-native-xprt-adsp@86000000 {
1207 compatible = "qcom,glink-smem-native-xprt";
1208 reg = <0x86000000 0x200000>,
1209 <0x1799000c 0x4>;
1210 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301211 qcom,irq-mask = <0x1000000>;
1212 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301213 label = "lpass";
1214 qcom,qos-config = <&glink_qos_adsp>;
1215 qcom,ramp-time = <0xaf>;
1216 };
1217
1218 glink_qos_adsp: qcom,glink-qos-config-adsp {
1219 compatible = "qcom,glink-qos-config";
1220 qcom,flow-info = <0x3c 0x0>,
1221 <0x3c 0x0>,
1222 <0x3c 0x0>,
1223 <0x3c 0x0>;
1224 qcom,mtu-size = <0x800>;
1225 qcom,tput-stats-cycle = <0xa>;
1226 };
1227
1228 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1229 compatible = "qcom,glink-spi-xprt";
1230 label = "wdsp";
1231 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1232 qcom,qos-config = <&glink_qos_wdsp>;
1233 qcom,ramp-time = <0x10>,
1234 <0x20>,
1235 <0x30>,
1236 <0x40>;
1237 };
1238
1239 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1240 compatible = "qcom,glink-fifo-config";
1241 qcom,out-read-idx-reg = <0x12000>;
1242 qcom,out-write-idx-reg = <0x12004>;
1243 qcom,in-read-idx-reg = <0x1200C>;
1244 qcom,in-write-idx-reg = <0x12010>;
1245 };
1246
1247 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1248 compatible = "qcom,glink-qos-config";
1249 qcom,flow-info = <0x80 0x0>,
1250 <0x70 0x1>,
1251 <0x60 0x2>,
1252 <0x50 0x3>;
1253 qcom,mtu-size = <0x800>;
1254 qcom,tput-stats-cycle = <0xa>;
1255 };
1256
1257 qcom,glink-smem-native-xprt-cdsp@86000000 {
1258 compatible = "qcom,glink-smem-native-xprt";
1259 reg = <0x86000000 0x200000>,
1260 <0x1799000c 0x4>;
1261 reg-names = "smem", "irq-reg-base";
1262 qcom,irq-mask = <0x10>;
1263 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1264 label = "cdsp";
1265 };
1266
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301267 glink_mpss: qcom,glink-ssr-modem {
1268 compatible = "qcom,glink_ssr";
1269 label = "modem";
1270 qcom,edge = "mpss";
1271 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1272 qcom,xprt = "smem";
1273 };
1274
1275 glink_lpass: qcom,glink-ssr-adsp {
1276 compatible = "qcom,glink_ssr";
1277 label = "adsp";
1278 qcom,edge = "lpass";
1279 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1280 qcom,xprt = "smem";
1281 };
1282
1283 glink_cdsp: qcom,glink-ssr-cdsp {
1284 compatible = "qcom,glink_ssr";
1285 label = "cdsp";
1286 qcom,edge = "cdsp";
1287 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1288 qcom,xprt = "smem";
1289 };
1290
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301291 qcom,ipc_router {
1292 compatible = "qcom,ipc_router";
1293 qcom,node-id = <1>;
1294 };
1295
1296 qcom,ipc_router_modem_xprt {
1297 compatible = "qcom,ipc_router_glink_xprt";
1298 qcom,ch-name = "IPCRTR";
1299 qcom,xprt-remote = "mpss";
1300 qcom,glink-xprt = "smem";
1301 qcom,xprt-linkid = <1>;
1302 qcom,xprt-version = <1>;
1303 qcom,fragmented-data;
1304 };
1305
1306 qcom,ipc_router_q6_xprt {
1307 compatible = "qcom,ipc_router_glink_xprt";
1308 qcom,ch-name = "IPCRTR";
1309 qcom,xprt-remote = "lpass";
1310 qcom,glink-xprt = "smem";
1311 qcom,xprt-linkid = <1>;
1312 qcom,xprt-version = <1>;
1313 qcom,fragmented-data;
1314 };
1315
1316 qcom,ipc_router_cdsp_xprt {
1317 compatible = "qcom,ipc_router_glink_xprt";
1318 qcom,ch-name = "IPCRTR";
1319 qcom,xprt-remote = "cdsp";
1320 qcom,glink-xprt = "smem";
1321 qcom,xprt-linkid = <1>;
1322 qcom,xprt-version = <1>;
1323 qcom,fragmented-data;
1324 };
1325
Dhoat Harpal11d34482017-06-06 21:00:14 +05301326 qcom,glink_pkt {
1327 compatible = "qcom,glinkpkt";
1328
1329 qcom,glinkpkt-at-mdm0 {
1330 qcom,glinkpkt-transport = "smem";
1331 qcom,glinkpkt-edge = "mpss";
1332 qcom,glinkpkt-ch-name = "DS";
1333 qcom,glinkpkt-dev-name = "at_mdm0";
1334 };
1335
1336 qcom,glinkpkt-loopback_cntl {
1337 qcom,glinkpkt-transport = "lloop";
1338 qcom,glinkpkt-edge = "local";
1339 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1340 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1341 };
1342
1343 qcom,glinkpkt-loopback_data {
1344 qcom,glinkpkt-transport = "lloop";
1345 qcom,glinkpkt-edge = "local";
1346 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1347 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1348 };
1349
1350 qcom,glinkpkt-apr-apps2 {
1351 qcom,glinkpkt-transport = "smem";
1352 qcom,glinkpkt-edge = "adsp";
1353 qcom,glinkpkt-ch-name = "apr_apps2";
1354 qcom,glinkpkt-dev-name = "apr_apps2";
1355 };
1356
1357 qcom,glinkpkt-data40-cntl {
1358 qcom,glinkpkt-transport = "smem";
1359 qcom,glinkpkt-edge = "mpss";
1360 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1361 qcom,glinkpkt-dev-name = "smdcntl8";
1362 };
1363
1364 qcom,glinkpkt-data1 {
1365 qcom,glinkpkt-transport = "smem";
1366 qcom,glinkpkt-edge = "mpss";
1367 qcom,glinkpkt-ch-name = "DATA1";
1368 qcom,glinkpkt-dev-name = "smd7";
1369 };
1370
1371 qcom,glinkpkt-data4 {
1372 qcom,glinkpkt-transport = "smem";
1373 qcom,glinkpkt-edge = "mpss";
1374 qcom,glinkpkt-ch-name = "DATA4";
1375 qcom,glinkpkt-dev-name = "smd8";
1376 };
1377
1378 qcom,glinkpkt-data11 {
1379 qcom,glinkpkt-transport = "smem";
1380 qcom,glinkpkt-edge = "mpss";
1381 qcom,glinkpkt-ch-name = "DATA11";
1382 qcom,glinkpkt-dev-name = "smd11";
1383 };
1384 };
1385
Imran Khan04f08312017-03-30 15:07:43 +05301386 qcom,chd_sliver {
1387 compatible = "qcom,core-hang-detect";
1388 label = "silver";
1389 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1390 0x17e30058 0x17e40058 0x17e50058>;
1391 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1392 0x17e30060 0x17e40060 0x17e50060>;
1393 };
1394
1395 qcom,chd_gold {
1396 compatible = "qcom,core-hang-detect";
1397 label = "gold";
1398 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1399 qcom,config-arr = <0x17e60060 0x17e70060>;
1400 };
1401
1402 qcom,ghd {
1403 compatible = "qcom,gladiator-hang-detect-v2";
1404 qcom,threshold-arr = <0x1799041c 0x17990420>;
1405 qcom,config-reg = <0x17990434>;
1406 };
1407
1408 qcom,msm-gladiator-v3@17900000 {
1409 compatible = "qcom,msm-gladiator-v3";
1410 reg = <0x17900000 0xd080>;
1411 reg-names = "gladiator_base";
1412 interrupts = <0 17 0>;
1413 };
1414
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301415 qcom,llcc@1100000 {
1416 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1417 reg = <0x1100000 0x250000>;
1418 reg-names = "llcc_base";
1419 qcom,llcc-banks-off = <0x0 0x80000 >;
1420 qcom,llcc-broadcast-off = <0x200000>;
1421
1422 llcc: qcom,sdm670-llcc {
1423 compatible = "qcom,sdm670-llcc";
1424 #cache-cells = <1>;
1425 max-slices = <32>;
1426 qcom,dump-size = <0x80000>;
1427 };
1428
1429 qcom,llcc-erp {
1430 compatible = "qcom,llcc-erp";
1431 interrupt-names = "ecc_irq";
1432 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1433 };
1434
1435 qcom,llcc-amon {
1436 compatible = "qcom,llcc-amon";
1437 };
1438
1439 LLCC_1: llcc_1_dcache {
1440 qcom,dump-size = <0xd8000>;
1441 };
1442
1443 LLCC_2: llcc_2_dcache {
1444 qcom,dump-size = <0xd8000>;
1445 };
1446 };
1447
Maulik Shah210773d2017-06-15 09:49:12 +05301448 cmd_db: qcom,cmd-db@c3f000c {
1449 compatible = "qcom,cmd-db";
1450 reg = <0xc3f000c 0x8>;
1451 };
1452
Maulik Shahc77d1d22017-06-15 14:04:50 +05301453 apps_rsc: mailbox@179e0000 {
1454 compatible = "qcom,tcs-drv";
1455 label = "apps_rsc";
1456 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1457 interrupts = <0 5 0>;
1458 #mbox-cells = <1>;
1459 qcom,drv-id = <2>;
1460 qcom,tcs-config = <ACTIVE_TCS 2>,
1461 <SLEEP_TCS 3>,
1462 <WAKE_TCS 3>,
1463 <CONTROL_TCS 1>;
1464 };
1465
Maulik Shahda3941f2017-06-15 09:41:38 +05301466 disp_rsc: mailbox@af20000 {
1467 compatible = "qcom,tcs-drv";
1468 label = "display_rsc";
1469 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1470 interrupts = <0 129 0>;
1471 #mbox-cells = <1>;
1472 qcom,drv-id = <0>;
1473 qcom,tcs-config = <SLEEP_TCS 1>,
1474 <WAKE_TCS 1>,
1475 <ACTIVE_TCS 0>,
1476 <CONTROL_TCS 1>;
1477 };
1478
Maulik Shah0dd203f2017-06-15 09:44:59 +05301479 system_pm {
1480 compatible = "qcom,system-pm";
1481 mboxes = <&apps_rsc 0>;
1482 };
1483
Imran Khan04f08312017-03-30 15:07:43 +05301484 dcc: dcc_v2@10a2000 {
1485 compatible = "qcom,dcc_v2";
1486 reg = <0x10a2000 0x1000>,
1487 <0x10ae000 0x2000>;
1488 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301489
1490 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301491 };
1492
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301493 spmi_bus: qcom,spmi@c440000 {
1494 compatible = "qcom,spmi-pmic-arb";
1495 reg = <0xc440000 0x1100>,
1496 <0xc600000 0x2000000>,
1497 <0xe600000 0x100000>,
1498 <0xe700000 0xa0000>,
1499 <0xc40a000 0x26000>;
1500 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1501 interrupt-names = "periph_irq";
1502 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1503 qcom,ee = <0>;
1504 qcom,channel = <0>;
1505 #address-cells = <2>;
1506 #size-cells = <0>;
1507 interrupt-controller;
1508 #interrupt-cells = <4>;
1509 cell-index = <0>;
1510 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301511
1512 ufsphy_mem: ufsphy_mem@1d87000 {
1513 reg = <0x1d87000 0xe00>; /* PHY regs */
1514 reg-names = "phy_mem";
1515 #phy-cells = <0>;
1516
1517 lanes-per-direction = <1>;
1518
1519 clock-names = "ref_clk_src",
1520 "ref_clk",
1521 "ref_aux_clk";
1522 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1523 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1524 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1525
1526 status = "disabled";
1527 };
1528
1529 ufshc_mem: ufshc@1d84000 {
1530 compatible = "qcom,ufshc";
1531 reg = <0x1d84000 0x3000>;
1532 interrupts = <0 265 0>;
1533 phys = <&ufsphy_mem>;
1534 phy-names = "ufsphy";
1535
1536 lanes-per-direction = <1>;
1537 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1538
1539 clock-names =
1540 "core_clk",
1541 "bus_aggr_clk",
1542 "iface_clk",
1543 "core_clk_unipro",
1544 "core_clk_ice",
1545 "ref_clk",
1546 "tx_lane0_sync_clk",
1547 "rx_lane0_sync_clk";
1548 clocks =
1549 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1550 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1551 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1552 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1553 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1554 <&clock_rpmh RPMH_CXO_CLK>,
1555 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1556 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1557 freq-table-hz =
1558 <50000000 200000000>,
1559 <0 0>,
1560 <0 0>,
1561 <37500000 150000000>,
1562 <75000000 300000000>,
1563 <0 0>,
1564 <0 0>,
1565 <0 0>;
1566
1567 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1568 reset-names = "core_reset";
1569
1570 status = "disabled";
1571 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301572
1573 qcom,lpass@62400000 {
1574 compatible = "qcom,pil-tz-generic";
1575 reg = <0x62400000 0x00100>;
1576 interrupts = <0 162 1>;
1577
1578 vdd_cx-supply = <&pm660l_l9_level>;
1579 qcom,proxy-reg-names = "vdd_cx";
1580 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1581
1582 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1583 clock-names = "xo";
1584 qcom,proxy-clock-names = "xo";
1585
1586 qcom,pas-id = <1>;
1587 qcom,proxy-timeout-ms = <10000>;
1588 qcom,smem-id = <423>;
1589 qcom,sysmon-id = <1>;
1590 qcom,ssctl-instance-id = <0x14>;
1591 qcom,firmware-name = "adsp";
1592 memory-region = <&pil_adsp_mem>;
1593
1594 /* GPIO inputs from lpass */
1595 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1596 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1597 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1598 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1599
1600 /* GPIO output to lpass */
1601 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
1602 status = "ok";
1603 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301604
1605 qcom,rmnet-ipa {
1606 compatible = "qcom,rmnet-ipa3";
1607 qcom,rmnet-ipa-ssr;
1608 qcom,ipa-loaduC;
1609 qcom,ipa-advertise-sg-support;
1610 qcom,ipa-napi-enable;
1611 };
1612
1613 ipa_hw: qcom,ipa@01e00000 {
1614 compatible = "qcom,ipa";
1615 reg = <0x1e00000 0x34000>,
1616 <0x1e04000 0x2c000>;
1617 reg-names = "ipa-base", "gsi-base";
1618 interrupts =
1619 <0 311 0>,
1620 <0 432 0>;
1621 interrupt-names = "ipa-irq", "gsi-irq";
1622 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1623 qcom,ipa-hw-mode = <1>;
1624 qcom,ee = <0>;
1625 qcom,use-ipa-tethering-bridge;
1626 qcom,modem-cfg-emb-pipe-flt;
1627 qcom,ipa-wdi2;
1628 qcom,use-64-bit-dma-mask;
1629 qcom,arm-smmu;
1630 qcom,smmu-s1-bypass;
1631 qcom,bandwidth-vote-for-ipa;
1632 qcom,msm-bus,name = "ipa";
1633 qcom,msm-bus,num-cases = <4>;
1634 qcom,msm-bus,num-paths = <4>;
1635 qcom,msm-bus,vectors-KBps =
1636 /* No vote */
1637 <90 512 0 0>,
1638 <90 585 0 0>,
1639 <1 676 0 0>,
1640 <143 777 0 0>,
1641 /* SVS */
1642 <90 512 80000 640000>,
1643 <90 585 80000 640000>,
1644 <1 676 80000 80000>,
1645 <143 777 0 150000>,
1646 /* NOMINAL */
1647 <90 512 206000 960000>,
1648 <90 585 206000 960000>,
1649 <1 676 206000 160000>,
1650 <143 777 0 300000>,
1651 /* TURBO */
1652 <90 512 206000 3600000>,
1653 <90 585 206000 3600000>,
1654 <1 676 206000 300000>,
1655 <143 777 0 355333>;
1656 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1657
1658 /* IPA RAM mmap */
1659 qcom,ipa-ram-mmap = <
1660 0x280 /* ofst_start; */
1661 0x0 /* nat_ofst; */
1662 0x0 /* nat_size; */
1663 0x288 /* v4_flt_hash_ofst; */
1664 0x78 /* v4_flt_hash_size; */
1665 0x4000 /* v4_flt_hash_size_ddr; */
1666 0x308 /* v4_flt_nhash_ofst; */
1667 0x78 /* v4_flt_nhash_size; */
1668 0x4000 /* v4_flt_nhash_size_ddr; */
1669 0x388 /* v6_flt_hash_ofst; */
1670 0x78 /* v6_flt_hash_size; */
1671 0x4000 /* v6_flt_hash_size_ddr; */
1672 0x408 /* v6_flt_nhash_ofst; */
1673 0x78 /* v6_flt_nhash_size; */
1674 0x4000 /* v6_flt_nhash_size_ddr; */
1675 0xf /* v4_rt_num_index; */
1676 0x0 /* v4_modem_rt_index_lo; */
1677 0x7 /* v4_modem_rt_index_hi; */
1678 0x8 /* v4_apps_rt_index_lo; */
1679 0xe /* v4_apps_rt_index_hi; */
1680 0x488 /* v4_rt_hash_ofst; */
1681 0x78 /* v4_rt_hash_size; */
1682 0x4000 /* v4_rt_hash_size_ddr; */
1683 0x508 /* v4_rt_nhash_ofst; */
1684 0x78 /* v4_rt_nhash_size; */
1685 0x4000 /* v4_rt_nhash_size_ddr; */
1686 0xf /* v6_rt_num_index; */
1687 0x0 /* v6_modem_rt_index_lo; */
1688 0x7 /* v6_modem_rt_index_hi; */
1689 0x8 /* v6_apps_rt_index_lo; */
1690 0xe /* v6_apps_rt_index_hi; */
1691 0x588 /* v6_rt_hash_ofst; */
1692 0x78 /* v6_rt_hash_size; */
1693 0x4000 /* v6_rt_hash_size_ddr; */
1694 0x608 /* v6_rt_nhash_ofst; */
1695 0x78 /* v6_rt_nhash_size; */
1696 0x4000 /* v6_rt_nhash_size_ddr; */
1697 0x688 /* modem_hdr_ofst; */
1698 0x140 /* modem_hdr_size; */
1699 0x7c8 /* apps_hdr_ofst; */
1700 0x0 /* apps_hdr_size; */
1701 0x800 /* apps_hdr_size_ddr; */
1702 0x7d0 /* modem_hdr_proc_ctx_ofst; */
1703 0x200 /* modem_hdr_proc_ctx_size; */
1704 0x9d0 /* apps_hdr_proc_ctx_ofst; */
1705 0x200 /* apps_hdr_proc_ctx_size; */
1706 0x0 /* apps_hdr_proc_ctx_size_ddr; */
1707 0x0 /* modem_comp_decomp_ofst; diff */
1708 0x0 /* modem_comp_decomp_size; diff */
1709 0xbd8 /* modem_ofst; */
1710 0x1024 /* modem_size; */
1711 0x2000 /* apps_v4_flt_hash_ofst; */
1712 0x0 /* apps_v4_flt_hash_size; */
1713 0x2000 /* apps_v4_flt_nhash_ofst; */
1714 0x0 /* apps_v4_flt_nhash_size; */
1715 0x2000 /* apps_v6_flt_hash_ofst; */
1716 0x0 /* apps_v6_flt_hash_size; */
1717 0x2000 /* apps_v6_flt_nhash_ofst; */
1718 0x0 /* apps_v6_flt_nhash_size; */
1719 0x80 /* uc_info_ofst; */
1720 0x200 /* uc_info_size; */
1721 0x2000 /* end_ofst; */
1722 0x2000 /* apps_v4_rt_hash_ofst; */
1723 0x0 /* apps_v4_rt_hash_size; */
1724 0x2000 /* apps_v4_rt_nhash_ofst; */
1725 0x0 /* apps_v4_rt_nhash_size; */
1726 0x2000 /* apps_v6_rt_hash_ofst; */
1727 0x0 /* apps_v6_rt_hash_size; */
1728 0x2000 /* apps_v6_rt_nhash_ofst; */
1729 0x0 /* apps_v6_rt_nhash_size; */
1730 0x1c00 /* uc_event_ring_ofst; */
1731 0x400 /* uc_event_ring_size; */
1732 >;
1733
1734 /* smp2p gpio information */
1735 qcom,smp2pgpio_map_ipa_1_out {
1736 compatible = "qcom,smp2pgpio-map-ipa-1-out";
1737 gpios = <&smp2pgpio_ipa_1_out 0 0>;
1738 };
1739
1740 qcom,smp2pgpio_map_ipa_1_in {
1741 compatible = "qcom,smp2pgpio-map-ipa-1-in";
1742 gpios = <&smp2pgpio_ipa_1_in 0 0>;
1743 };
1744
1745 ipa_smmu_ap: ipa_smmu_ap {
1746 compatible = "qcom,ipa-smmu-ap-cb";
1747 iommus = <&apps_smmu 0x720 0x0>;
1748 qcom,iova-mapping = <0x20000000 0x40000000>;
1749 };
1750
1751 ipa_smmu_wlan: ipa_smmu_wlan {
1752 compatible = "qcom,ipa-smmu-wlan-cb";
1753 iommus = <&apps_smmu 0x721 0x0>;
1754 };
1755
1756 ipa_smmu_uc: ipa_smmu_uc {
1757 compatible = "qcom,ipa-smmu-uc-cb";
1758 iommus = <&apps_smmu 0x722 0x0>;
1759 qcom,iova-mapping = <0x40000000 0x20000000>;
1760 };
1761 };
1762
1763 qcom,ipa_fws {
1764 compatible = "qcom,pil-tz-generic";
1765 qcom,pas-id = <0xf>;
1766 qcom,firmware-name = "ipa_fws";
1767 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301768
1769 pil_modem: qcom,mss@4080000 {
1770 compatible = "qcom,pil-q6v55-mss";
1771 reg = <0x4080000 0x100>,
1772 <0x1f63000 0x008>,
1773 <0x1f65000 0x008>,
1774 <0x1f64000 0x008>,
1775 <0x4180000 0x020>,
1776 <0xc2b0000 0x004>,
1777 <0xb2e0100 0x004>,
1778 <0x4180044 0x004>;
1779 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
1780 "halt_nc", "rmb_base", "restart_reg",
1781 "pdc_sync", "alt_reset";
1782
1783 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1784 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
1785 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
1786 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
1787 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
1788 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
1789 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
1790 <&clock_gcc GCC_PRNG_AHB_CLK>;
1791 clock-names = "xo", "iface_clk", "bus_clk",
1792 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
1793 "mnoc_axi_clk", "prng_clk";
1794 qcom,proxy-clock-names = "xo", "prng_clk";
1795 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
1796 "gpll0_mss_clk", "snoc_axi_clk",
1797 "mnoc_axi_clk";
1798
1799 interrupts = <0 266 1>;
1800 vdd_cx-supply = <&pm660l_s3_level>;
1801 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
1802 vdd_mx-supply = <&pm660l_s1_level>;
1803 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
1804 qcom,firmware-name = "modem";
1805 qcom,pil-self-auth;
1806 qcom,sysmon-id = <0>;
1807 qcom,ssctl-instance-id = <0x12>;
1808 qcom,override-acc;
1809 qcom,qdsp6v65-1-0;
1810 status = "ok";
1811 memory-region = <&pil_modem_mem>;
1812 qcom,mem-protect-id = <0xF>;
1813
1814 /* GPIO inputs from mss */
1815 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
1816 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
1817 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
1818 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
1819 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
1820
1821 /* GPIO output to mss */
1822 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
1823 qcom,mba-mem@0 {
1824 compatible = "qcom,pil-mba-mem";
1825 memory-region = <&pil_mba_mem>;
1826 };
1827 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05301828
1829 qcom,venus@aae0000 {
1830 compatible = "qcom,pil-tz-generic";
1831 reg = <0xaae0000 0x4000>;
1832
1833 vdd-supply = <&venus_gdsc>;
1834 qcom,proxy-reg-names = "vdd";
1835
1836 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
1837 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
1838 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
1839 clock-names = "core_clk", "iface_clk", "bus_clk";
1840 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
1841
1842 qcom,pas-id = <9>;
1843 qcom,msm-bus,name = "pil-venus";
1844 qcom,msm-bus,num-cases = <2>;
1845 qcom,msm-bus,num-paths = <1>;
1846 qcom,msm-bus,vectors-KBps =
1847 <63 512 0 0>,
1848 <63 512 0 304000>;
1849 qcom,proxy-timeout-ms = <100>;
1850 qcom,firmware-name = "venus";
1851 memory-region = <&pil_video_mem>;
1852 status = "ok";
1853 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05301854
1855 qcom,turing@8300000 {
1856 compatible = "qcom,pil-tz-generic";
1857 reg = <0x8300000 0x100000>;
1858 interrupts = <0 578 1>;
1859
1860 vdd_cx-supply = <&pm660l_s3_level>;
1861 qcom,proxy-reg-names = "vdd_cx";
1862 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1863
1864 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1865 clock-names = "xo";
1866 qcom,proxy-clock-names = "xo";
1867
1868 qcom,pas-id = <18>;
1869 qcom,proxy-timeout-ms = <10000>;
1870 qcom,smem-id = <601>;
1871 qcom,sysmon-id = <7>;
1872 qcom,ssctl-instance-id = <0x17>;
1873 qcom,firmware-name = "cdsp";
1874 memory-region = <&pil_cdsp_mem>;
1875
1876 /* GPIO inputs from turing */
1877 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
1878 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
1879 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
1880 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
1881
1882 /* GPIO output to turing*/
1883 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
1884 status = "ok";
1885 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05301886
1887 sdhc_1: sdhci@7c4000 {
1888 compatible = "qcom,sdhci-msm-v5";
1889 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
1890 reg-names = "hc_mem", "cmdq_mem";
1891
1892 interrupts = <0 641 0>, <0 644 0>;
1893 interrupt-names = "hc_irq", "pwr_irq";
1894
1895 qcom,bus-width = <8>;
1896 qcom,large-address-bus;
1897
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05301898 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
1899 192000000 384000000>;
1900 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
1901
1902 qcom,devfreq,freq-table = <50000000 200000000>;
1903
Vijay Viswanatheac72722017-06-05 11:01:38 +05301904 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
1905 <&clock_gcc GCC_SDCC1_APPS_CLK>;
1906 clock-names = "iface_clk", "core_clk";
1907
1908 qcom,nonremovable;
1909
1910 qcom,scaling-lower-bus-speed-mode = "DDR52";
1911 status = "disabled";
1912 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05301913
Vijay Viswanathee4340d2017-08-28 09:50:18 +05301914 sdhc_2: sdhci@8804000 {
1915 compatible = "qcom,sdhci-msm-v5";
1916 reg = <0x8804000 0x1000>;
1917 reg-names = "hc_mem";
1918
1919 interrupts = <0 204 0>, <0 222 0>;
1920 interrupt-names = "hc_irq", "pwr_irq";
1921
1922 qcom,bus-width = <4>;
1923 qcom,large-address-bus;
1924
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05301925 qcom,clk-rates = <400000 20000000 25000000
1926 50000000 100000000 201500000>;
1927 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
1928 "SDR104";
1929
1930 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanathee4340d2017-08-28 09:50:18 +05301931 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
1932 <&clock_gcc GCC_SDCC2_APPS_CLK>;
1933 clock-names = "iface_clk", "core_clk";
1934
1935 status = "disabled";
1936 };
1937
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05301938 qcom,msm-cdsp-loader {
1939 compatible = "qcom,cdsp-loader";
1940 qcom,proc-img-to-load = "cdsp";
1941 };
1942
1943 qcom,msm-adsprpc-mem {
1944 compatible = "qcom,msm-adsprpc-mem-region";
1945 memory-region = <&adsp_mem>;
1946 };
1947
1948 qcom,msm_fastrpc {
1949 compatible = "qcom,msm-fastrpc-compute";
1950
1951 qcom,msm_fastrpc_compute_cb1 {
1952 compatible = "qcom,msm-fastrpc-compute-cb";
1953 label = "cdsprpc-smd";
1954 iommus = <&apps_smmu 0x1421 0x30>;
1955 dma-coherent;
1956 };
1957 qcom,msm_fastrpc_compute_cb2 {
1958 compatible = "qcom,msm-fastrpc-compute-cb";
1959 label = "cdsprpc-smd";
1960 iommus = <&apps_smmu 0x1422 0x30>;
1961 dma-coherent;
1962 };
1963 qcom,msm_fastrpc_compute_cb3 {
1964 compatible = "qcom,msm-fastrpc-compute-cb";
1965 label = "cdsprpc-smd";
1966 iommus = <&apps_smmu 0x1423 0x30>;
1967 dma-coherent;
1968 };
1969 qcom,msm_fastrpc_compute_cb4 {
1970 compatible = "qcom,msm-fastrpc-compute-cb";
1971 label = "cdsprpc-smd";
1972 iommus = <&apps_smmu 0x1424 0x30>;
1973 dma-coherent;
1974 };
1975 qcom,msm_fastrpc_compute_cb5 {
1976 compatible = "qcom,msm-fastrpc-compute-cb";
1977 label = "cdsprpc-smd";
1978 iommus = <&apps_smmu 0x1425 0x30>;
1979 dma-coherent;
1980 };
1981 qcom,msm_fastrpc_compute_cb6 {
1982 compatible = "qcom,msm-fastrpc-compute-cb";
1983 label = "cdsprpc-smd";
1984 iommus = <&apps_smmu 0x1426 0x30>;
1985 dma-coherent;
1986 };
1987 qcom,msm_fastrpc_compute_cb7 {
1988 compatible = "qcom,msm-fastrpc-compute-cb";
1989 label = "cdsprpc-smd";
1990 qcom,secure-context-bank;
1991 iommus = <&apps_smmu 0x1429 0x30>;
1992 dma-coherent;
1993 };
1994 qcom,msm_fastrpc_compute_cb8 {
1995 compatible = "qcom,msm-fastrpc-compute-cb";
1996 label = "cdsprpc-smd";
1997 qcom,secure-context-bank;
1998 iommus = <&apps_smmu 0x142A 0x30>;
1999 dma-coherent;
2000 };
2001 qcom,msm_fastrpc_compute_cb9 {
2002 compatible = "qcom,msm-fastrpc-compute-cb";
2003 label = "adsprpc-smd";
2004 iommus = <&apps_smmu 0x1803 0x0>;
2005 dma-coherent;
2006 };
2007 qcom,msm_fastrpc_compute_cb10 {
2008 compatible = "qcom,msm-fastrpc-compute-cb";
2009 label = "adsprpc-smd";
2010 iommus = <&apps_smmu 0x1804 0x0>;
2011 dma-coherent;
2012 };
2013 qcom,msm_fastrpc_compute_cb11 {
2014 compatible = "qcom,msm-fastrpc-compute-cb";
2015 label = "adsprpc-smd";
2016 iommus = <&apps_smmu 0x1805 0x0>;
2017 dma-coherent;
2018 };
2019 };
Imran Khan04f08312017-03-30 15:07:43 +05302020};
2021
2022#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302023#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302024#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302025#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302026
2027&usb30_prim_gdsc {
2028 status = "ok";
2029};
2030
2031&ufs_phy_gdsc {
2032 status = "ok";
2033};
2034
2035&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2036 status = "ok";
2037};
2038
2039&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2040 status = "ok";
2041};
2042
2043&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2044 status = "ok";
2045};
2046
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302047&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2048 status = "ok";
2049};
2050
2051&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2052 status = "ok";
2053};
2054
2055&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2056 status = "ok";
2057};
2058
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302059&bps_gdsc {
2060 status = "ok";
2061};
2062
2063&ife_0_gdsc {
2064 status = "ok";
2065};
2066
2067&ife_1_gdsc {
2068 status = "ok";
2069};
2070
2071&ipe_0_gdsc {
2072 status = "ok";
2073};
2074
2075&ipe_1_gdsc {
2076 status = "ok";
2077};
2078
2079&titan_top_gdsc {
2080 status = "ok";
2081};
2082
2083&mdss_core_gdsc {
2084 status = "ok";
2085};
2086
2087&gpu_cx_gdsc {
2088 status = "ok";
2089};
2090
2091&gpu_gx_gdsc {
2092 clock-names = "core_root_clk";
2093 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2094 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302095 parent-supply = <&pm660l_s2_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302096 status = "ok";
2097};
2098
2099&vcodec0_gdsc {
2100 qcom,support-hw-trigger;
2101 status = "ok";
2102};
2103
2104&vcodec1_gdsc {
2105 qcom,support-hw-trigger;
2106 status = "ok";
2107};
2108
2109&venus_gdsc {
2110 status = "ok";
2111};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302112
Tirupathi Reddy242bd802017-06-09 11:31:05 +05302113#include "pm660.dtsi"
2114#include "pm660l.dtsi"
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302115#include "sdm670-regulator.dtsi"
Rohit Kumar14051282017-07-12 11:18:48 +05302116#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05302117#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05302118#include "sdm670-gpu.dtsi"