blob: 81e6302502e50f001dee4cc7a9e9f6bb6a158eb8 [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
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +0530442 dump_mem: mem_dump_region {
443 compatible = "shared-dma-pool";
444 reusable;
445 size = <0 0x2400000>;
446 };
447
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530448 /* global autoconfigured region for contiguous allocations */
449 linux,cma {
450 compatible = "shared-dma-pool";
451 alloc-ranges = <0 0x00000000 0 0xffffffff>;
452 reusable;
453 alignment = <0 0x400000>;
454 size = <0 0x2000000>;
455 linux,cma-default;
456 };
Imran Khan04f08312017-03-30 15:07:43 +0530457 };
458};
459
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530460#include "sdm670-ion.dtsi"
461
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530462#include "sdm670-smp2p.dtsi"
463
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530464#include "sdm670-qupv3.dtsi"
465
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530466#include "sdm670-coresight.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +0530467&soc {
468 #address-cells = <1>;
469 #size-cells = <1>;
470 ranges = <0 0 0 0xffffffff>;
471 compatible = "simple-bus";
472
473 intc: interrupt-controller@17a00000 {
474 compatible = "arm,gic-v3";
475 #interrupt-cells = <3>;
476 interrupt-controller;
477 #redistributor-regions = <1>;
478 redistributor-stride = <0x0 0x20000>;
479 reg = <0x17a00000 0x10000>, /* GICD */
480 <0x17a60000 0x100000>; /* GICR * 8 */
481 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530482 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530483 };
484
485 timer {
486 compatible = "arm,armv8-timer";
487 interrupts = <1 1 0xf08>,
488 <1 2 0xf08>,
489 <1 3 0xf08>,
490 <1 0 0xf08>;
491 clock-frequency = <19200000>;
492 };
493
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530494 qcom,sps {
495 compatible = "qcom,msm_sps_4k";
496 qcom,pipe-attr-ee;
497 };
498
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530499 thermal_zones: thermal-zones {
500 aoss0-usr {
501 polling-delay-passive = <0>;
502 polling-delay = <0>;
503 thermal-governor = "user_space";
504 thermal-sensors = <&tsens0 0>;
505 trips {
506 active-config0 {
507 temperature = <125000>;
508 hysteresis = <1000>;
509 type = "passive";
510 };
511 };
512 };
513
514 cpu0-silver-usr {
515 polling-delay-passive = <0>;
516 polling-delay = <0>;
517 thermal-governor = "user_space";
518 thermal-sensors = <&tsens0 1>;
519 trips {
520 active-config0 {
521 temperature = <125000>;
522 hysteresis = <1000>;
523 type = "passive";
524 };
525 };
526 };
527
528 cpu1-silver-usr {
529 polling-delay-passive = <0>;
530 polling-delay = <0>;
531 thermal-governor = "user_space";
532 thermal-sensors = <&tsens0 2>;
533 trips {
534 active-config0 {
535 temperature = <125000>;
536 hysteresis = <1000>;
537 type = "passive";
538 };
539 };
540 };
541
542 cpu2-silver-usr {
543 polling-delay-passive = <0>;
544 polling-delay = <0>;
545 thermal-governor = "user_space";
546 thermal-sensors = <&tsens0 3>;
547 trips {
548 active-config0 {
549 temperature = <125000>;
550 hysteresis = <1000>;
551 type = "passive";
552 };
553 };
554 };
555
556 cpu3-silver-usr {
557 polling-delay-passive = <0>;
558 polling-delay = <0>;
559 thermal-sensors = <&tsens0 4>;
560 thermal-governor = "user_space";
561 trips {
562 active-config0 {
563 temperature = <125000>;
564 hysteresis = <1000>;
565 type = "passive";
566 };
567 };
568 };
569
570 cpu4-silver-usr {
571 polling-delay-passive = <0>;
572 polling-delay = <0>;
573 thermal-sensors = <&tsens0 5>;
574 thermal-governor = "user_space";
575 trips {
576 active-config0 {
577 temperature = <125000>;
578 hysteresis = <1000>;
579 type = "passive";
580 };
581 };
582 };
583
584 cpu5-silver-usr {
585 polling-delay-passive = <0>;
586 polling-delay = <0>;
587 thermal-sensors = <&tsens0 6>;
588 thermal-governor = "user_space";
589 trips {
590 active-config0 {
591 temperature = <125000>;
592 hysteresis = <1000>;
593 type = "passive";
594 };
595 };
596 };
597
598 kryo-l3-0-usr {
599 polling-delay-passive = <0>;
600 polling-delay = <0>;
601 thermal-sensors = <&tsens0 7>;
602 thermal-governor = "user_space";
603 trips {
604 active-config0 {
605 temperature = <125000>;
606 hysteresis = <1000>;
607 type = "passive";
608 };
609 };
610 };
611
612 kryo-l3-1-usr {
613 polling-delay-passive = <0>;
614 polling-delay = <0>;
615 thermal-sensors = <&tsens0 8>;
616 thermal-governor = "user_space";
617 trips {
618 active-config0 {
619 temperature = <125000>;
620 hysteresis = <1000>;
621 type = "passive";
622 };
623 };
624 };
625
626 cpu0-gold-usr {
627 polling-delay-passive = <0>;
628 polling-delay = <0>;
629 thermal-sensors = <&tsens0 9>;
630 thermal-governor = "user_space";
631 trips {
632 active-config0 {
633 temperature = <125000>;
634 hysteresis = <1000>;
635 type = "passive";
636 };
637 };
638 };
639
640 cpu1-gold-usr {
641 polling-delay-passive = <0>;
642 polling-delay = <0>;
643 thermal-sensors = <&tsens0 10>;
644 thermal-governor = "user_space";
645 trips {
646 active-config0 {
647 temperature = <125000>;
648 hysteresis = <1000>;
649 type = "passive";
650 };
651 };
652 };
653
654 gpu0-usr {
655 polling-delay-passive = <0>;
656 polling-delay = <0>;
657 thermal-sensors = <&tsens0 11>;
658 thermal-governor = "user_space";
659 trips {
660 active-config0 {
661 temperature = <125000>;
662 hysteresis = <1000>;
663 type = "passive";
664 };
665 };
666 };
667
668 gpu1-usr {
669 polling-delay-passive = <0>;
670 polling-delay = <0>;
671 thermal-governor = "user_space";
672 thermal-sensors = <&tsens0 12>;
673 trips {
674 active-config0 {
675 temperature = <125000>;
676 hysteresis = <1000>;
677 type = "passive";
678 };
679 };
680 };
681
682 aoss1-usr {
683 polling-delay-passive = <0>;
684 polling-delay = <0>;
685 thermal-sensors = <&tsens1 0>;
686 thermal-governor = "user_space";
687 trips {
688 active-config0 {
689 temperature = <125000>;
690 hysteresis = <1000>;
691 type = "passive";
692 };
693 };
694 };
695
696 mdm-dsp-usr {
697 polling-delay-passive = <0>;
698 polling-delay = <0>;
699 thermal-sensors = <&tsens1 1>;
700 thermal-governor = "user_space";
701 trips {
702 active-config0 {
703 temperature = <125000>;
704 hysteresis = <1000>;
705 type = "passive";
706 };
707 };
708 };
709
710 ddr-usr {
711 polling-delay-passive = <0>;
712 polling-delay = <0>;
713 thermal-sensors = <&tsens1 2>;
714 thermal-governor = "user_space";
715 trips {
716 active-config0 {
717 temperature = <125000>;
718 hysteresis = <1000>;
719 type = "passive";
720 };
721 };
722 };
723
724 wlan-usr {
725 polling-delay-passive = <0>;
726 polling-delay = <0>;
727 thermal-sensors = <&tsens1 3>;
728 thermal-governor = "user_space";
729 trips {
730 active-config0 {
731 temperature = <125000>;
732 hysteresis = <1000>;
733 type = "passive";
734 };
735 };
736 };
737
738 compute-hvx-usr {
739 polling-delay-passive = <0>;
740 polling-delay = <0>;
741 thermal-sensors = <&tsens1 4>;
742 thermal-governor = "user_space";
743 trips {
744 active-config0 {
745 temperature = <125000>;
746 hysteresis = <1000>;
747 type = "passive";
748 };
749 };
750 };
751
752 camera-usr {
753 polling-delay-passive = <0>;
754 polling-delay = <0>;
755 thermal-sensors = <&tsens1 5>;
756 thermal-governor = "user_space";
757 trips {
758 active-config0 {
759 temperature = <125000>;
760 hysteresis = <1000>;
761 type = "passive";
762 };
763 };
764 };
765
766 mmss-usr {
767 polling-delay-passive = <0>;
768 polling-delay = <0>;
769 thermal-sensors = <&tsens1 6>;
770 thermal-governor = "user_space";
771 trips {
772 active-config0 {
773 temperature = <125000>;
774 hysteresis = <1000>;
775 type = "passive";
776 };
777 };
778 };
779
780 mdm-core-usr {
781 polling-delay-passive = <0>;
782 polling-delay = <0>;
783 thermal-sensors = <&tsens1 7>;
784 thermal-governor = "user_space";
785 trips {
786 active-config0 {
787 temperature = <125000>;
788 hysteresis = <1000>;
789 type = "passive";
790 };
791 };
792 };
793 };
794
795 tsens0: tsens@c222000 {
796 compatible = "qcom,tsens24xx";
797 reg = <0xc222000 0x4>,
798 <0xc263000 0x1ff>;
799 reg-names = "tsens_srot_physical",
800 "tsens_tm_physical";
801 interrupts = <0 506 0>, <0 508 0>;
802 interrupt-names = "tsens-upper-lower", "tsens-critical";
803 #thermal-sensor-cells = <1>;
804 };
805
806 tsens1: tsens@c223000 {
807 compatible = "qcom,tsens24xx";
808 reg = <0xc223000 0x4>,
809 <0xc265000 0x1ff>;
810 reg-names = "tsens_srot_physical",
811 "tsens_tm_physical";
812 interrupts = <0 507 0>, <0 509 0>;
813 interrupt-names = "tsens-upper-lower", "tsens-critical";
814 #thermal-sensor-cells = <1>;
815 };
816
Imran Khan04f08312017-03-30 15:07:43 +0530817 timer@0x17c90000{
818 #address-cells = <1>;
819 #size-cells = <1>;
820 ranges;
821 compatible = "arm,armv7-timer-mem";
822 reg = <0x17c90000 0x1000>;
823 clock-frequency = <19200000>;
824
825 frame@0x17ca0000 {
826 frame-number = <0>;
827 interrupts = <0 7 0x4>,
828 <0 6 0x4>;
829 reg = <0x17ca0000 0x1000>,
830 <0x17cb0000 0x1000>;
831 };
832
833 frame@17cc0000 {
834 frame-number = <1>;
835 interrupts = <0 8 0x4>;
836 reg = <0x17cc0000 0x1000>;
837 status = "disabled";
838 };
839
840 frame@17cd0000 {
841 frame-number = <2>;
842 interrupts = <0 9 0x4>;
843 reg = <0x17cd0000 0x1000>;
844 status = "disabled";
845 };
846
847 frame@17ce0000 {
848 frame-number = <3>;
849 interrupts = <0 10 0x4>;
850 reg = <0x17ce0000 0x1000>;
851 status = "disabled";
852 };
853
854 frame@17cf0000 {
855 frame-number = <4>;
856 interrupts = <0 11 0x4>;
857 reg = <0x17cf0000 0x1000>;
858 status = "disabled";
859 };
860
861 frame@17d00000 {
862 frame-number = <5>;
863 interrupts = <0 12 0x4>;
864 reg = <0x17d00000 0x1000>;
865 status = "disabled";
866 };
867
868 frame@17d10000 {
869 frame-number = <6>;
870 interrupts = <0 13 0x4>;
871 reg = <0x17d10000 0x1000>;
872 status = "disabled";
873 };
874 };
875
876 restart@10ac000 {
877 compatible = "qcom,pshold";
878 reg = <0xC264000 0x4>,
879 <0x1fd3000 0x4>;
880 reg-names = "pshold-base", "tcsr-boot-misc-detect";
881 };
882
Maulik Shah6bf7d5d2017-07-27 09:48:42 +0530883 aop-msg-client {
884 compatible = "qcom,debugfs-qmp-client";
885 mboxes = <&qmp_aop 0>;
886 mbox-names = "aop";
887 };
888
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530889 clock_rpmh: qcom,rpmhclk {
890 compatible = "qcom,dummycc";
891 clock-output-names = "rpmh_clocks";
892 #clock-cells = <1>;
893 };
894
895 clock_gcc: qcom,gcc@100000 {
896 compatible = "qcom,dummycc";
897 clock-output-names = "gcc_clocks";
898 #clock-cells = <1>;
899 #reset-cells = <1>;
900 };
901
902 clock_videocc: qcom,videocc@ab00000 {
903 compatible = "qcom,dummycc";
904 clock-output-names = "videocc_clocks";
905 #clock-cells = <1>;
906 #reset-cells = <1>;
907 };
908
909 clock_camcc: qcom,camcc@ad00000 {
910 compatible = "qcom,dummycc";
911 clock-output-names = "camcc_clocks";
912 #clock-cells = <1>;
913 #reset-cells = <1>;
914 };
915
916 clock_dispcc: qcom,dispcc@af00000 {
917 compatible = "qcom,dummycc";
918 clock-output-names = "dispcc_clocks";
919 #clock-cells = <1>;
920 #reset-cells = <1>;
921 };
922
923 clock_gpucc: qcom,gpucc@5090000 {
924 compatible = "qcom,dummycc";
925 clock-output-names = "gpucc_clocks";
926 #clock-cells = <1>;
927 #reset-cells = <1>;
928 };
929
930 clock_gfx: qcom,gfxcc@5090000 {
931 compatible = "qcom,dummycc";
932 clock-output-names = "gfxcc_clocks";
933 #clock-cells = <1>;
934 #reset-cells = <1>;
935 };
936
Imran Khan04f08312017-03-30 15:07:43 +0530937 clock_cpucc: qcom,cpucc {
938 compatible = "qcom,dummycc";
939 clock-output-names = "cpucc_clocks";
940 #clock-cells = <1>;
941 #reset-cells = <1>;
942 };
943
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +0530944 clock_aop: qcom,aopclk {
945 compatible = "qcom,aop-qmp-clk-v2";
946 #clock-cells = <1>;
947 mboxes = <&qmp_aop 0>;
948 mbox-names = "qdss_clk";
949 };
950
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530951 slim_aud: slim@62dc0000 {
952 cell-index = <1>;
953 compatible = "qcom,slim-ngd";
954 reg = <0x62dc0000 0x2c000>,
955 <0x62d84000 0x2a000>;
956 reg-names = "slimbus_physical", "slimbus_bam_physical";
957 interrupts = <0 163 0>, <0 164 0>;
958 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
959 qcom,apps-ch-pipes = <0x780000>;
960 qcom,ea-pc = <0x290>;
961 status = "disabled";
962 };
963
964 slim_qca: slim@62e40000 {
965 cell-index = <3>;
966 compatible = "qcom,slim-ngd";
967 reg = <0x62e40000 0x2c000>,
968 <0x62e04000 0x20000>;
969 reg-names = "slimbus_physical", "slimbus_bam_physical";
970 interrupts = <0 291 0>, <0 292 0>;
971 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
972 status = "disabled";
973 };
974
Imran Khan04f08312017-03-30 15:07:43 +0530975 wdog: qcom,wdt@17980000{
976 compatible = "qcom,msm-watchdog";
977 reg = <0x17980000 0x1000>;
978 reg-names = "wdt-base";
979 interrupts = <0 3 0>, <0 4 0>;
980 qcom,bark-time = <11000>;
981 qcom,pet-time = <10000>;
982 qcom,ipi-ping;
983 qcom,wakeup-enable;
984 };
985
986 qcom,msm-rtb {
987 compatible = "qcom,msm-rtb";
988 qcom,rtb-size = <0x100000>;
989 };
990
991 qcom,msm-imem@146bf000 {
992 compatible = "qcom,msm-imem";
993 reg = <0x146bf000 0x1000>;
994 ranges = <0x0 0x146bf000 0x1000>;
995 #address-cells = <1>;
996 #size-cells = <1>;
997
998 mem_dump_table@10 {
999 compatible = "qcom,msm-imem-mem_dump_table";
1000 reg = <0x10 8>;
1001 };
1002
1003 restart_reason@65c {
1004 compatible = "qcom,msm-imem-restart_reason";
1005 reg = <0x65c 4>;
1006 };
1007
1008 pil@94c {
1009 compatible = "qcom,msm-imem-pil";
1010 reg = <0x94c 200>;
1011 };
1012
1013 kaslr_offset@6d0 {
1014 compatible = "qcom,msm-imem-kaslr_offset";
1015 reg = <0x6d0 12>;
1016 };
1017 };
1018
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301019 gpi_dma0: qcom,gpi-dma@0x800000 {
1020 #dma-cells = <6>;
1021 compatible = "qcom,gpi-dma";
1022 reg = <0x800000 0x60000>;
1023 reg-names = "gpi-top";
1024 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
1025 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
1026 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
1027 <0 256 0>;
1028 qcom,max-num-gpii = <13>;
1029 qcom,gpii-mask = <0xfa>;
1030 qcom,ev-factor = <2>;
1031 iommus = <&apps_smmu 0x0016 0x0>;
1032 status = "ok";
1033 };
1034
1035 gpi_dma1: qcom,gpi-dma@0xa00000 {
1036 #dma-cells = <6>;
1037 compatible = "qcom,gpi-dma";
1038 reg = <0xa00000 0x60000>;
1039 reg-names = "gpi-top";
1040 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
1041 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
1042 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
1043 <0 299 0>;
1044 qcom,max-num-gpii = <13>;
1045 qcom,gpii-mask = <0xfa>;
1046 qcom,ev-factor = <2>;
1047 iommus = <&apps_smmu 0x06d6 0x0>;
1048 status = "ok";
1049 };
1050
Imran Khan04f08312017-03-30 15:07:43 +05301051 cpuss_dump {
1052 compatible = "qcom,cpuss-dump";
1053 qcom,l1_i_cache0 {
1054 qcom,dump-node = <&L1_I_0>;
1055 qcom,dump-id = <0x60>;
1056 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301057 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301058 qcom,dump-node = <&L1_I_100>;
1059 qcom,dump-id = <0x61>;
1060 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301061 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301062 qcom,dump-node = <&L1_I_200>;
1063 qcom,dump-id = <0x62>;
1064 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301065 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301066 qcom,dump-node = <&L1_I_300>;
1067 qcom,dump-id = <0x63>;
1068 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301069 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301070 qcom,dump-node = <&L1_I_400>;
1071 qcom,dump-id = <0x64>;
1072 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301073 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301074 qcom,dump-node = <&L1_I_500>;
1075 qcom,dump-id = <0x65>;
1076 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301077 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301078 qcom,dump-node = <&L1_I_600>;
1079 qcom,dump-id = <0x66>;
1080 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301081 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301082 qcom,dump-node = <&L1_I_700>;
1083 qcom,dump-id = <0x67>;
1084 };
1085 qcom,l1_d_cache0 {
1086 qcom,dump-node = <&L1_D_0>;
1087 qcom,dump-id = <0x80>;
1088 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301089 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301090 qcom,dump-node = <&L1_D_100>;
1091 qcom,dump-id = <0x81>;
1092 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301093 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301094 qcom,dump-node = <&L1_D_200>;
1095 qcom,dump-id = <0x82>;
1096 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301097 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301098 qcom,dump-node = <&L1_D_300>;
1099 qcom,dump-id = <0x83>;
1100 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301101 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301102 qcom,dump-node = <&L1_D_400>;
1103 qcom,dump-id = <0x84>;
1104 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301105 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301106 qcom,dump-node = <&L1_D_500>;
1107 qcom,dump-id = <0x85>;
1108 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301109 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301110 qcom,dump-node = <&L1_D_600>;
1111 qcom,dump-id = <0x86>;
1112 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301113 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301114 qcom,dump-node = <&L1_D_700>;
1115 qcom,dump-id = <0x87>;
1116 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301117 qcom,llcc1_d_cache {
1118 qcom,dump-node = <&LLCC_1>;
1119 qcom,dump-id = <0x140>;
1120 };
1121 qcom,llcc2_d_cache {
1122 qcom,dump-node = <&LLCC_2>;
1123 qcom,dump-id = <0x141>;
1124 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301125 qcom,l1_tlb_dump0 {
1126 qcom,dump-node = <&L1_TLB_0>;
1127 qcom,dump-id = <0x20>;
1128 };
1129 qcom,l1_tlb_dump100 {
1130 qcom,dump-node = <&L1_TLB_100>;
1131 qcom,dump-id = <0x21>;
1132 };
1133 qcom,l1_tlb_dump200 {
1134 qcom,dump-node = <&L1_TLB_200>;
1135 qcom,dump-id = <0x22>;
1136 };
1137 qcom,l1_tlb_dump300 {
1138 qcom,dump-node = <&L1_TLB_300>;
1139 qcom,dump-id = <0x23>;
1140 };
1141 qcom,l1_tlb_dump400 {
1142 qcom,dump-node = <&L1_TLB_400>;
1143 qcom,dump-id = <0x24>;
1144 };
1145 qcom,l1_tlb_dump500 {
1146 qcom,dump-node = <&L1_TLB_500>;
1147 qcom,dump-id = <0x25>;
1148 };
1149 qcom,l1_tlb_dump600 {
1150 qcom,dump-node = <&L1_TLB_600>;
1151 qcom,dump-id = <0x26>;
1152 };
1153 qcom,l1_tlb_dump700 {
1154 qcom,dump-node = <&L1_TLB_700>;
1155 qcom,dump-id = <0x27>;
1156 };
Imran Khan04f08312017-03-30 15:07:43 +05301157 };
1158
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301159 mem_dump {
1160 compatible = "qcom,mem-dump";
1161 memory-region = <&dump_mem>;
1162
1163 rpmh_dump {
1164 qcom,dump-size = <0x2000000>;
1165 qcom,dump-id = <0xec>;
1166 };
1167
1168 rpm_sw_dump {
1169 qcom,dump-size = <0x28000>;
1170 qcom,dump-id = <0xea>;
1171 };
1172
1173 pmic_dump {
1174 qcom,dump-size = <0x10000>;
1175 qcom,dump-id = <0xe4>;
1176 };
1177
1178 tmc_etf_dump {
1179 qcom,dump-size = <0x10000>;
1180 qcom,dump-id = <0xf0>;
1181 };
1182
1183 tmc_etf_swao_dump {
1184 qcom,dump-size = <0x8400>;
1185 qcom,dump-id = <0xf1>;
1186 };
1187
1188 tmc_etr_reg_dump {
1189 qcom,dump-size = <0x1000>;
1190 qcom,dump-id = <0x100>;
1191 };
1192
1193 tmc_etf_reg_dump {
1194 qcom,dump-size = <0x1000>;
1195 qcom,dump-id = <0x101>;
1196 };
1197
1198 tmc_etf_swao_reg_dump {
1199 qcom,dump-size = <0x1000>;
1200 qcom,dump-id = <0x102>;
1201 };
1202
1203 misc_data_dump {
1204 qcom,dump-size = <0x1000>;
1205 qcom,dump-id = <0xe8>;
1206 };
1207
1208 power_regs_data_dump {
1209 qcom,dump-size = <0x100000>;
1210 qcom,dump-id = <0xed>;
1211 };
1212 };
1213
Imran Khan04f08312017-03-30 15:07:43 +05301214 kryo3xx-erp {
1215 compatible = "arm,arm64-kryo3xx-cpu-erp";
1216 interrupts = <1 6 4>,
1217 <1 7 4>,
1218 <0 34 4>,
1219 <0 35 4>;
1220
1221 interrupt-names = "l1-l2-faultirq",
1222 "l1-l2-errirq",
1223 "l3-scu-errirq",
1224 "l3-scu-faultirq";
1225 };
1226
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301227 qcom,ipc-spinlock@1f40000 {
1228 compatible = "qcom,ipc-spinlock-sfpb";
1229 reg = <0x1f40000 0x8000>;
1230 qcom,num-locks = <8>;
1231 };
1232
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301233 qcom,smem@86000000 {
1234 compatible = "qcom,smem";
1235 reg = <0x86000000 0x200000>,
1236 <0x17911008 0x4>,
1237 <0x778000 0x7000>,
1238 <0x1fd4000 0x8>;
1239 reg-names = "smem", "irq-reg-base", "aux-mem1",
1240 "smem_targ_info_reg";
1241 qcom,mpu-enabled;
1242 };
1243
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301244 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301245 compatible = "qcom,qmp-mbox";
1246 label = "aop";
1247 reg = <0xc300000 0x100000>,
1248 <0x1799000c 0x4>;
1249 reg-names = "msgram", "irq-reg-base";
1250 qcom,irq-mask = <0x1>;
1251 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301252 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301253 mbox-desc-offset = <0x0>;
1254 #mbox-cells = <1>;
1255 };
1256
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301257 qcom,glink-smem-native-xprt-modem@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 = <0x1000>;
1263 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1264 label = "mpss";
1265 };
1266
1267 qcom,glink-smem-native-xprt-adsp@86000000 {
1268 compatible = "qcom,glink-smem-native-xprt";
1269 reg = <0x86000000 0x200000>,
1270 <0x1799000c 0x4>;
1271 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301272 qcom,irq-mask = <0x1000000>;
1273 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301274 label = "lpass";
1275 qcom,qos-config = <&glink_qos_adsp>;
1276 qcom,ramp-time = <0xaf>;
1277 };
1278
1279 glink_qos_adsp: qcom,glink-qos-config-adsp {
1280 compatible = "qcom,glink-qos-config";
1281 qcom,flow-info = <0x3c 0x0>,
1282 <0x3c 0x0>,
1283 <0x3c 0x0>,
1284 <0x3c 0x0>;
1285 qcom,mtu-size = <0x800>;
1286 qcom,tput-stats-cycle = <0xa>;
1287 };
1288
1289 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1290 compatible = "qcom,glink-spi-xprt";
1291 label = "wdsp";
1292 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1293 qcom,qos-config = <&glink_qos_wdsp>;
1294 qcom,ramp-time = <0x10>,
1295 <0x20>,
1296 <0x30>,
1297 <0x40>;
1298 };
1299
1300 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1301 compatible = "qcom,glink-fifo-config";
1302 qcom,out-read-idx-reg = <0x12000>;
1303 qcom,out-write-idx-reg = <0x12004>;
1304 qcom,in-read-idx-reg = <0x1200C>;
1305 qcom,in-write-idx-reg = <0x12010>;
1306 };
1307
1308 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1309 compatible = "qcom,glink-qos-config";
1310 qcom,flow-info = <0x80 0x0>,
1311 <0x70 0x1>,
1312 <0x60 0x2>,
1313 <0x50 0x3>;
1314 qcom,mtu-size = <0x800>;
1315 qcom,tput-stats-cycle = <0xa>;
1316 };
1317
1318 qcom,glink-smem-native-xprt-cdsp@86000000 {
1319 compatible = "qcom,glink-smem-native-xprt";
1320 reg = <0x86000000 0x200000>,
1321 <0x1799000c 0x4>;
1322 reg-names = "smem", "irq-reg-base";
1323 qcom,irq-mask = <0x10>;
1324 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1325 label = "cdsp";
1326 };
1327
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301328 glink_mpss: qcom,glink-ssr-modem {
1329 compatible = "qcom,glink_ssr";
1330 label = "modem";
1331 qcom,edge = "mpss";
1332 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1333 qcom,xprt = "smem";
1334 };
1335
1336 glink_lpass: qcom,glink-ssr-adsp {
1337 compatible = "qcom,glink_ssr";
1338 label = "adsp";
1339 qcom,edge = "lpass";
1340 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1341 qcom,xprt = "smem";
1342 };
1343
1344 glink_cdsp: qcom,glink-ssr-cdsp {
1345 compatible = "qcom,glink_ssr";
1346 label = "cdsp";
1347 qcom,edge = "cdsp";
1348 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1349 qcom,xprt = "smem";
1350 };
1351
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301352 qcom,ipc_router {
1353 compatible = "qcom,ipc_router";
1354 qcom,node-id = <1>;
1355 };
1356
1357 qcom,ipc_router_modem_xprt {
1358 compatible = "qcom,ipc_router_glink_xprt";
1359 qcom,ch-name = "IPCRTR";
1360 qcom,xprt-remote = "mpss";
1361 qcom,glink-xprt = "smem";
1362 qcom,xprt-linkid = <1>;
1363 qcom,xprt-version = <1>;
1364 qcom,fragmented-data;
1365 };
1366
1367 qcom,ipc_router_q6_xprt {
1368 compatible = "qcom,ipc_router_glink_xprt";
1369 qcom,ch-name = "IPCRTR";
1370 qcom,xprt-remote = "lpass";
1371 qcom,glink-xprt = "smem";
1372 qcom,xprt-linkid = <1>;
1373 qcom,xprt-version = <1>;
1374 qcom,fragmented-data;
1375 };
1376
1377 qcom,ipc_router_cdsp_xprt {
1378 compatible = "qcom,ipc_router_glink_xprt";
1379 qcom,ch-name = "IPCRTR";
1380 qcom,xprt-remote = "cdsp";
1381 qcom,glink-xprt = "smem";
1382 qcom,xprt-linkid = <1>;
1383 qcom,xprt-version = <1>;
1384 qcom,fragmented-data;
1385 };
1386
Dhoat Harpal11d34482017-06-06 21:00:14 +05301387 qcom,glink_pkt {
1388 compatible = "qcom,glinkpkt";
1389
1390 qcom,glinkpkt-at-mdm0 {
1391 qcom,glinkpkt-transport = "smem";
1392 qcom,glinkpkt-edge = "mpss";
1393 qcom,glinkpkt-ch-name = "DS";
1394 qcom,glinkpkt-dev-name = "at_mdm0";
1395 };
1396
1397 qcom,glinkpkt-loopback_cntl {
1398 qcom,glinkpkt-transport = "lloop";
1399 qcom,glinkpkt-edge = "local";
1400 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1401 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1402 };
1403
1404 qcom,glinkpkt-loopback_data {
1405 qcom,glinkpkt-transport = "lloop";
1406 qcom,glinkpkt-edge = "local";
1407 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1408 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1409 };
1410
1411 qcom,glinkpkt-apr-apps2 {
1412 qcom,glinkpkt-transport = "smem";
1413 qcom,glinkpkt-edge = "adsp";
1414 qcom,glinkpkt-ch-name = "apr_apps2";
1415 qcom,glinkpkt-dev-name = "apr_apps2";
1416 };
1417
1418 qcom,glinkpkt-data40-cntl {
1419 qcom,glinkpkt-transport = "smem";
1420 qcom,glinkpkt-edge = "mpss";
1421 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1422 qcom,glinkpkt-dev-name = "smdcntl8";
1423 };
1424
1425 qcom,glinkpkt-data1 {
1426 qcom,glinkpkt-transport = "smem";
1427 qcom,glinkpkt-edge = "mpss";
1428 qcom,glinkpkt-ch-name = "DATA1";
1429 qcom,glinkpkt-dev-name = "smd7";
1430 };
1431
1432 qcom,glinkpkt-data4 {
1433 qcom,glinkpkt-transport = "smem";
1434 qcom,glinkpkt-edge = "mpss";
1435 qcom,glinkpkt-ch-name = "DATA4";
1436 qcom,glinkpkt-dev-name = "smd8";
1437 };
1438
1439 qcom,glinkpkt-data11 {
1440 qcom,glinkpkt-transport = "smem";
1441 qcom,glinkpkt-edge = "mpss";
1442 qcom,glinkpkt-ch-name = "DATA11";
1443 qcom,glinkpkt-dev-name = "smd11";
1444 };
1445 };
1446
Imran Khan04f08312017-03-30 15:07:43 +05301447 qcom,chd_sliver {
1448 compatible = "qcom,core-hang-detect";
1449 label = "silver";
1450 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1451 0x17e30058 0x17e40058 0x17e50058>;
1452 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1453 0x17e30060 0x17e40060 0x17e50060>;
1454 };
1455
1456 qcom,chd_gold {
1457 compatible = "qcom,core-hang-detect";
1458 label = "gold";
1459 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1460 qcom,config-arr = <0x17e60060 0x17e70060>;
1461 };
1462
1463 qcom,ghd {
1464 compatible = "qcom,gladiator-hang-detect-v2";
1465 qcom,threshold-arr = <0x1799041c 0x17990420>;
1466 qcom,config-reg = <0x17990434>;
1467 };
1468
1469 qcom,msm-gladiator-v3@17900000 {
1470 compatible = "qcom,msm-gladiator-v3";
1471 reg = <0x17900000 0xd080>;
1472 reg-names = "gladiator_base";
1473 interrupts = <0 17 0>;
1474 };
1475
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301476 qcom,llcc@1100000 {
1477 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1478 reg = <0x1100000 0x250000>;
1479 reg-names = "llcc_base";
1480 qcom,llcc-banks-off = <0x0 0x80000 >;
1481 qcom,llcc-broadcast-off = <0x200000>;
1482
1483 llcc: qcom,sdm670-llcc {
1484 compatible = "qcom,sdm670-llcc";
1485 #cache-cells = <1>;
1486 max-slices = <32>;
1487 qcom,dump-size = <0x80000>;
1488 };
1489
1490 qcom,llcc-erp {
1491 compatible = "qcom,llcc-erp";
1492 interrupt-names = "ecc_irq";
1493 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1494 };
1495
1496 qcom,llcc-amon {
1497 compatible = "qcom,llcc-amon";
1498 };
1499
1500 LLCC_1: llcc_1_dcache {
1501 qcom,dump-size = <0xd8000>;
1502 };
1503
1504 LLCC_2: llcc_2_dcache {
1505 qcom,dump-size = <0xd8000>;
1506 };
1507 };
1508
Maulik Shah210773d2017-06-15 09:49:12 +05301509 cmd_db: qcom,cmd-db@c3f000c {
1510 compatible = "qcom,cmd-db";
1511 reg = <0xc3f000c 0x8>;
1512 };
1513
Maulik Shahc77d1d22017-06-15 14:04:50 +05301514 apps_rsc: mailbox@179e0000 {
1515 compatible = "qcom,tcs-drv";
1516 label = "apps_rsc";
1517 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1518 interrupts = <0 5 0>;
1519 #mbox-cells = <1>;
1520 qcom,drv-id = <2>;
1521 qcom,tcs-config = <ACTIVE_TCS 2>,
1522 <SLEEP_TCS 3>,
1523 <WAKE_TCS 3>,
1524 <CONTROL_TCS 1>;
1525 };
1526
Maulik Shahda3941f2017-06-15 09:41:38 +05301527 disp_rsc: mailbox@af20000 {
1528 compatible = "qcom,tcs-drv";
1529 label = "display_rsc";
1530 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1531 interrupts = <0 129 0>;
1532 #mbox-cells = <1>;
1533 qcom,drv-id = <0>;
1534 qcom,tcs-config = <SLEEP_TCS 1>,
1535 <WAKE_TCS 1>,
1536 <ACTIVE_TCS 0>,
1537 <CONTROL_TCS 1>;
1538 };
1539
Maulik Shah0dd203f2017-06-15 09:44:59 +05301540 system_pm {
1541 compatible = "qcom,system-pm";
1542 mboxes = <&apps_rsc 0>;
1543 };
1544
Imran Khan04f08312017-03-30 15:07:43 +05301545 dcc: dcc_v2@10a2000 {
1546 compatible = "qcom,dcc_v2";
1547 reg = <0x10a2000 0x1000>,
1548 <0x10ae000 0x2000>;
1549 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301550
1551 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301552 };
1553
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301554 spmi_bus: qcom,spmi@c440000 {
1555 compatible = "qcom,spmi-pmic-arb";
1556 reg = <0xc440000 0x1100>,
1557 <0xc600000 0x2000000>,
1558 <0xe600000 0x100000>,
1559 <0xe700000 0xa0000>,
1560 <0xc40a000 0x26000>;
1561 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1562 interrupt-names = "periph_irq";
1563 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1564 qcom,ee = <0>;
1565 qcom,channel = <0>;
1566 #address-cells = <2>;
1567 #size-cells = <0>;
1568 interrupt-controller;
1569 #interrupt-cells = <4>;
1570 cell-index = <0>;
1571 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301572
1573 ufsphy_mem: ufsphy_mem@1d87000 {
1574 reg = <0x1d87000 0xe00>; /* PHY regs */
1575 reg-names = "phy_mem";
1576 #phy-cells = <0>;
1577
1578 lanes-per-direction = <1>;
1579
1580 clock-names = "ref_clk_src",
1581 "ref_clk",
1582 "ref_aux_clk";
1583 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1584 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1585 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1586
1587 status = "disabled";
1588 };
1589
1590 ufshc_mem: ufshc@1d84000 {
1591 compatible = "qcom,ufshc";
1592 reg = <0x1d84000 0x3000>;
1593 interrupts = <0 265 0>;
1594 phys = <&ufsphy_mem>;
1595 phy-names = "ufsphy";
1596
1597 lanes-per-direction = <1>;
1598 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1599
1600 clock-names =
1601 "core_clk",
1602 "bus_aggr_clk",
1603 "iface_clk",
1604 "core_clk_unipro",
1605 "core_clk_ice",
1606 "ref_clk",
1607 "tx_lane0_sync_clk",
1608 "rx_lane0_sync_clk";
1609 clocks =
1610 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1611 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1612 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1613 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1614 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1615 <&clock_rpmh RPMH_CXO_CLK>,
1616 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1617 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1618 freq-table-hz =
1619 <50000000 200000000>,
1620 <0 0>,
1621 <0 0>,
1622 <37500000 150000000>,
1623 <75000000 300000000>,
1624 <0 0>,
1625 <0 0>,
1626 <0 0>;
1627
1628 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1629 reset-names = "core_reset";
1630
1631 status = "disabled";
1632 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301633
1634 qcom,lpass@62400000 {
1635 compatible = "qcom,pil-tz-generic";
1636 reg = <0x62400000 0x00100>;
1637 interrupts = <0 162 1>;
1638
1639 vdd_cx-supply = <&pm660l_l9_level>;
1640 qcom,proxy-reg-names = "vdd_cx";
1641 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1642
1643 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1644 clock-names = "xo";
1645 qcom,proxy-clock-names = "xo";
1646
1647 qcom,pas-id = <1>;
1648 qcom,proxy-timeout-ms = <10000>;
1649 qcom,smem-id = <423>;
1650 qcom,sysmon-id = <1>;
1651 qcom,ssctl-instance-id = <0x14>;
1652 qcom,firmware-name = "adsp";
1653 memory-region = <&pil_adsp_mem>;
1654
1655 /* GPIO inputs from lpass */
1656 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1657 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1658 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1659 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1660
1661 /* GPIO output to lpass */
1662 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
1663 status = "ok";
1664 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301665
1666 qcom,rmnet-ipa {
1667 compatible = "qcom,rmnet-ipa3";
1668 qcom,rmnet-ipa-ssr;
1669 qcom,ipa-loaduC;
1670 qcom,ipa-advertise-sg-support;
1671 qcom,ipa-napi-enable;
1672 };
1673
1674 ipa_hw: qcom,ipa@01e00000 {
1675 compatible = "qcom,ipa";
1676 reg = <0x1e00000 0x34000>,
1677 <0x1e04000 0x2c000>;
1678 reg-names = "ipa-base", "gsi-base";
1679 interrupts =
1680 <0 311 0>,
1681 <0 432 0>;
1682 interrupt-names = "ipa-irq", "gsi-irq";
1683 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1684 qcom,ipa-hw-mode = <1>;
1685 qcom,ee = <0>;
1686 qcom,use-ipa-tethering-bridge;
1687 qcom,modem-cfg-emb-pipe-flt;
1688 qcom,ipa-wdi2;
1689 qcom,use-64-bit-dma-mask;
1690 qcom,arm-smmu;
1691 qcom,smmu-s1-bypass;
1692 qcom,bandwidth-vote-for-ipa;
1693 qcom,msm-bus,name = "ipa";
1694 qcom,msm-bus,num-cases = <4>;
1695 qcom,msm-bus,num-paths = <4>;
1696 qcom,msm-bus,vectors-KBps =
1697 /* No vote */
1698 <90 512 0 0>,
1699 <90 585 0 0>,
1700 <1 676 0 0>,
1701 <143 777 0 0>,
1702 /* SVS */
1703 <90 512 80000 640000>,
1704 <90 585 80000 640000>,
1705 <1 676 80000 80000>,
1706 <143 777 0 150000>,
1707 /* NOMINAL */
1708 <90 512 206000 960000>,
1709 <90 585 206000 960000>,
1710 <1 676 206000 160000>,
1711 <143 777 0 300000>,
1712 /* TURBO */
1713 <90 512 206000 3600000>,
1714 <90 585 206000 3600000>,
1715 <1 676 206000 300000>,
1716 <143 777 0 355333>;
1717 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1718
1719 /* IPA RAM mmap */
1720 qcom,ipa-ram-mmap = <
1721 0x280 /* ofst_start; */
1722 0x0 /* nat_ofst; */
1723 0x0 /* nat_size; */
1724 0x288 /* v4_flt_hash_ofst; */
1725 0x78 /* v4_flt_hash_size; */
1726 0x4000 /* v4_flt_hash_size_ddr; */
1727 0x308 /* v4_flt_nhash_ofst; */
1728 0x78 /* v4_flt_nhash_size; */
1729 0x4000 /* v4_flt_nhash_size_ddr; */
1730 0x388 /* v6_flt_hash_ofst; */
1731 0x78 /* v6_flt_hash_size; */
1732 0x4000 /* v6_flt_hash_size_ddr; */
1733 0x408 /* v6_flt_nhash_ofst; */
1734 0x78 /* v6_flt_nhash_size; */
1735 0x4000 /* v6_flt_nhash_size_ddr; */
1736 0xf /* v4_rt_num_index; */
1737 0x0 /* v4_modem_rt_index_lo; */
1738 0x7 /* v4_modem_rt_index_hi; */
1739 0x8 /* v4_apps_rt_index_lo; */
1740 0xe /* v4_apps_rt_index_hi; */
1741 0x488 /* v4_rt_hash_ofst; */
1742 0x78 /* v4_rt_hash_size; */
1743 0x4000 /* v4_rt_hash_size_ddr; */
1744 0x508 /* v4_rt_nhash_ofst; */
1745 0x78 /* v4_rt_nhash_size; */
1746 0x4000 /* v4_rt_nhash_size_ddr; */
1747 0xf /* v6_rt_num_index; */
1748 0x0 /* v6_modem_rt_index_lo; */
1749 0x7 /* v6_modem_rt_index_hi; */
1750 0x8 /* v6_apps_rt_index_lo; */
1751 0xe /* v6_apps_rt_index_hi; */
1752 0x588 /* v6_rt_hash_ofst; */
1753 0x78 /* v6_rt_hash_size; */
1754 0x4000 /* v6_rt_hash_size_ddr; */
1755 0x608 /* v6_rt_nhash_ofst; */
1756 0x78 /* v6_rt_nhash_size; */
1757 0x4000 /* v6_rt_nhash_size_ddr; */
1758 0x688 /* modem_hdr_ofst; */
1759 0x140 /* modem_hdr_size; */
1760 0x7c8 /* apps_hdr_ofst; */
1761 0x0 /* apps_hdr_size; */
1762 0x800 /* apps_hdr_size_ddr; */
1763 0x7d0 /* modem_hdr_proc_ctx_ofst; */
1764 0x200 /* modem_hdr_proc_ctx_size; */
1765 0x9d0 /* apps_hdr_proc_ctx_ofst; */
1766 0x200 /* apps_hdr_proc_ctx_size; */
1767 0x0 /* apps_hdr_proc_ctx_size_ddr; */
1768 0x0 /* modem_comp_decomp_ofst; diff */
1769 0x0 /* modem_comp_decomp_size; diff */
1770 0xbd8 /* modem_ofst; */
1771 0x1024 /* modem_size; */
1772 0x2000 /* apps_v4_flt_hash_ofst; */
1773 0x0 /* apps_v4_flt_hash_size; */
1774 0x2000 /* apps_v4_flt_nhash_ofst; */
1775 0x0 /* apps_v4_flt_nhash_size; */
1776 0x2000 /* apps_v6_flt_hash_ofst; */
1777 0x0 /* apps_v6_flt_hash_size; */
1778 0x2000 /* apps_v6_flt_nhash_ofst; */
1779 0x0 /* apps_v6_flt_nhash_size; */
1780 0x80 /* uc_info_ofst; */
1781 0x200 /* uc_info_size; */
1782 0x2000 /* end_ofst; */
1783 0x2000 /* apps_v4_rt_hash_ofst; */
1784 0x0 /* apps_v4_rt_hash_size; */
1785 0x2000 /* apps_v4_rt_nhash_ofst; */
1786 0x0 /* apps_v4_rt_nhash_size; */
1787 0x2000 /* apps_v6_rt_hash_ofst; */
1788 0x0 /* apps_v6_rt_hash_size; */
1789 0x2000 /* apps_v6_rt_nhash_ofst; */
1790 0x0 /* apps_v6_rt_nhash_size; */
1791 0x1c00 /* uc_event_ring_ofst; */
1792 0x400 /* uc_event_ring_size; */
1793 >;
1794
1795 /* smp2p gpio information */
1796 qcom,smp2pgpio_map_ipa_1_out {
1797 compatible = "qcom,smp2pgpio-map-ipa-1-out";
1798 gpios = <&smp2pgpio_ipa_1_out 0 0>;
1799 };
1800
1801 qcom,smp2pgpio_map_ipa_1_in {
1802 compatible = "qcom,smp2pgpio-map-ipa-1-in";
1803 gpios = <&smp2pgpio_ipa_1_in 0 0>;
1804 };
1805
1806 ipa_smmu_ap: ipa_smmu_ap {
1807 compatible = "qcom,ipa-smmu-ap-cb";
1808 iommus = <&apps_smmu 0x720 0x0>;
1809 qcom,iova-mapping = <0x20000000 0x40000000>;
1810 };
1811
1812 ipa_smmu_wlan: ipa_smmu_wlan {
1813 compatible = "qcom,ipa-smmu-wlan-cb";
1814 iommus = <&apps_smmu 0x721 0x0>;
1815 };
1816
1817 ipa_smmu_uc: ipa_smmu_uc {
1818 compatible = "qcom,ipa-smmu-uc-cb";
1819 iommus = <&apps_smmu 0x722 0x0>;
1820 qcom,iova-mapping = <0x40000000 0x20000000>;
1821 };
1822 };
1823
1824 qcom,ipa_fws {
1825 compatible = "qcom,pil-tz-generic";
1826 qcom,pas-id = <0xf>;
1827 qcom,firmware-name = "ipa_fws";
1828 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301829
1830 pil_modem: qcom,mss@4080000 {
1831 compatible = "qcom,pil-q6v55-mss";
1832 reg = <0x4080000 0x100>,
1833 <0x1f63000 0x008>,
1834 <0x1f65000 0x008>,
1835 <0x1f64000 0x008>,
1836 <0x4180000 0x020>,
1837 <0xc2b0000 0x004>,
1838 <0xb2e0100 0x004>,
1839 <0x4180044 0x004>;
1840 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
1841 "halt_nc", "rmb_base", "restart_reg",
1842 "pdc_sync", "alt_reset";
1843
1844 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1845 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
1846 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
1847 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
1848 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
1849 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
1850 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
1851 <&clock_gcc GCC_PRNG_AHB_CLK>;
1852 clock-names = "xo", "iface_clk", "bus_clk",
1853 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
1854 "mnoc_axi_clk", "prng_clk";
1855 qcom,proxy-clock-names = "xo", "prng_clk";
1856 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
1857 "gpll0_mss_clk", "snoc_axi_clk",
1858 "mnoc_axi_clk";
1859
1860 interrupts = <0 266 1>;
1861 vdd_cx-supply = <&pm660l_s3_level>;
1862 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
1863 vdd_mx-supply = <&pm660l_s1_level>;
1864 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
1865 qcom,firmware-name = "modem";
1866 qcom,pil-self-auth;
1867 qcom,sysmon-id = <0>;
1868 qcom,ssctl-instance-id = <0x12>;
1869 qcom,override-acc;
1870 qcom,qdsp6v65-1-0;
1871 status = "ok";
1872 memory-region = <&pil_modem_mem>;
1873 qcom,mem-protect-id = <0xF>;
1874
1875 /* GPIO inputs from mss */
1876 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
1877 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
1878 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
1879 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
1880 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
1881
1882 /* GPIO output to mss */
1883 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
1884 qcom,mba-mem@0 {
1885 compatible = "qcom,pil-mba-mem";
1886 memory-region = <&pil_mba_mem>;
1887 };
1888 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05301889
1890 qcom,venus@aae0000 {
1891 compatible = "qcom,pil-tz-generic";
1892 reg = <0xaae0000 0x4000>;
1893
1894 vdd-supply = <&venus_gdsc>;
1895 qcom,proxy-reg-names = "vdd";
1896
1897 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
1898 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
1899 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
1900 clock-names = "core_clk", "iface_clk", "bus_clk";
1901 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
1902
1903 qcom,pas-id = <9>;
1904 qcom,msm-bus,name = "pil-venus";
1905 qcom,msm-bus,num-cases = <2>;
1906 qcom,msm-bus,num-paths = <1>;
1907 qcom,msm-bus,vectors-KBps =
1908 <63 512 0 0>,
1909 <63 512 0 304000>;
1910 qcom,proxy-timeout-ms = <100>;
1911 qcom,firmware-name = "venus";
1912 memory-region = <&pil_video_mem>;
1913 status = "ok";
1914 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05301915
1916 qcom,turing@8300000 {
1917 compatible = "qcom,pil-tz-generic";
1918 reg = <0x8300000 0x100000>;
1919 interrupts = <0 578 1>;
1920
1921 vdd_cx-supply = <&pm660l_s3_level>;
1922 qcom,proxy-reg-names = "vdd_cx";
1923 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1924
1925 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1926 clock-names = "xo";
1927 qcom,proxy-clock-names = "xo";
1928
1929 qcom,pas-id = <18>;
1930 qcom,proxy-timeout-ms = <10000>;
1931 qcom,smem-id = <601>;
1932 qcom,sysmon-id = <7>;
1933 qcom,ssctl-instance-id = <0x17>;
1934 qcom,firmware-name = "cdsp";
1935 memory-region = <&pil_cdsp_mem>;
1936
1937 /* GPIO inputs from turing */
1938 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
1939 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
1940 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
1941 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
1942
1943 /* GPIO output to turing*/
1944 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
1945 status = "ok";
1946 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05301947
1948 sdhc_1: sdhci@7c4000 {
1949 compatible = "qcom,sdhci-msm-v5";
1950 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
1951 reg-names = "hc_mem", "cmdq_mem";
1952
1953 interrupts = <0 641 0>, <0 644 0>;
1954 interrupt-names = "hc_irq", "pwr_irq";
1955
1956 qcom,bus-width = <8>;
1957 qcom,large-address-bus;
1958
1959 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
1960 <&clock_gcc GCC_SDCC1_APPS_CLK>;
1961 clock-names = "iface_clk", "core_clk";
1962
1963 qcom,nonremovable;
1964
1965 qcom,scaling-lower-bus-speed-mode = "DDR52";
1966 status = "disabled";
1967 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05301968
Vijay Viswanathee4340d2017-08-28 09:50:18 +05301969 sdhc_2: sdhci@8804000 {
1970 compatible = "qcom,sdhci-msm-v5";
1971 reg = <0x8804000 0x1000>;
1972 reg-names = "hc_mem";
1973
1974 interrupts = <0 204 0>, <0 222 0>;
1975 interrupt-names = "hc_irq", "pwr_irq";
1976
1977 qcom,bus-width = <4>;
1978 qcom,large-address-bus;
1979
1980 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
1981 <&clock_gcc GCC_SDCC2_APPS_CLK>;
1982 clock-names = "iface_clk", "core_clk";
1983
1984 status = "disabled";
1985 };
1986
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05301987 qcom,msm-cdsp-loader {
1988 compatible = "qcom,cdsp-loader";
1989 qcom,proc-img-to-load = "cdsp";
1990 };
1991
1992 qcom,msm-adsprpc-mem {
1993 compatible = "qcom,msm-adsprpc-mem-region";
1994 memory-region = <&adsp_mem>;
1995 };
1996
1997 qcom,msm_fastrpc {
1998 compatible = "qcom,msm-fastrpc-compute";
1999
2000 qcom,msm_fastrpc_compute_cb1 {
2001 compatible = "qcom,msm-fastrpc-compute-cb";
2002 label = "cdsprpc-smd";
2003 iommus = <&apps_smmu 0x1421 0x30>;
2004 dma-coherent;
2005 };
2006 qcom,msm_fastrpc_compute_cb2 {
2007 compatible = "qcom,msm-fastrpc-compute-cb";
2008 label = "cdsprpc-smd";
2009 iommus = <&apps_smmu 0x1422 0x30>;
2010 dma-coherent;
2011 };
2012 qcom,msm_fastrpc_compute_cb3 {
2013 compatible = "qcom,msm-fastrpc-compute-cb";
2014 label = "cdsprpc-smd";
2015 iommus = <&apps_smmu 0x1423 0x30>;
2016 dma-coherent;
2017 };
2018 qcom,msm_fastrpc_compute_cb4 {
2019 compatible = "qcom,msm-fastrpc-compute-cb";
2020 label = "cdsprpc-smd";
2021 iommus = <&apps_smmu 0x1424 0x30>;
2022 dma-coherent;
2023 };
2024 qcom,msm_fastrpc_compute_cb5 {
2025 compatible = "qcom,msm-fastrpc-compute-cb";
2026 label = "cdsprpc-smd";
2027 iommus = <&apps_smmu 0x1425 0x30>;
2028 dma-coherent;
2029 };
2030 qcom,msm_fastrpc_compute_cb6 {
2031 compatible = "qcom,msm-fastrpc-compute-cb";
2032 label = "cdsprpc-smd";
2033 iommus = <&apps_smmu 0x1426 0x30>;
2034 dma-coherent;
2035 };
2036 qcom,msm_fastrpc_compute_cb7 {
2037 compatible = "qcom,msm-fastrpc-compute-cb";
2038 label = "cdsprpc-smd";
2039 qcom,secure-context-bank;
2040 iommus = <&apps_smmu 0x1429 0x30>;
2041 dma-coherent;
2042 };
2043 qcom,msm_fastrpc_compute_cb8 {
2044 compatible = "qcom,msm-fastrpc-compute-cb";
2045 label = "cdsprpc-smd";
2046 qcom,secure-context-bank;
2047 iommus = <&apps_smmu 0x142A 0x30>;
2048 dma-coherent;
2049 };
2050 qcom,msm_fastrpc_compute_cb9 {
2051 compatible = "qcom,msm-fastrpc-compute-cb";
2052 label = "adsprpc-smd";
2053 iommus = <&apps_smmu 0x1803 0x0>;
2054 dma-coherent;
2055 };
2056 qcom,msm_fastrpc_compute_cb10 {
2057 compatible = "qcom,msm-fastrpc-compute-cb";
2058 label = "adsprpc-smd";
2059 iommus = <&apps_smmu 0x1804 0x0>;
2060 dma-coherent;
2061 };
2062 qcom,msm_fastrpc_compute_cb11 {
2063 compatible = "qcom,msm-fastrpc-compute-cb";
2064 label = "adsprpc-smd";
2065 iommus = <&apps_smmu 0x1805 0x0>;
2066 dma-coherent;
2067 };
2068 };
Imran Khan04f08312017-03-30 15:07:43 +05302069};
2070
2071#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302072#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302073#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302074#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302075
2076&usb30_prim_gdsc {
2077 status = "ok";
2078};
2079
2080&ufs_phy_gdsc {
2081 status = "ok";
2082};
2083
2084&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2085 status = "ok";
2086};
2087
2088&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2089 status = "ok";
2090};
2091
2092&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2093 status = "ok";
2094};
2095
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302096&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2097 status = "ok";
2098};
2099
2100&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2101 status = "ok";
2102};
2103
2104&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2105 status = "ok";
2106};
2107
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302108&bps_gdsc {
2109 status = "ok";
2110};
2111
2112&ife_0_gdsc {
2113 status = "ok";
2114};
2115
2116&ife_1_gdsc {
2117 status = "ok";
2118};
2119
2120&ipe_0_gdsc {
2121 status = "ok";
2122};
2123
2124&ipe_1_gdsc {
2125 status = "ok";
2126};
2127
2128&titan_top_gdsc {
2129 status = "ok";
2130};
2131
2132&mdss_core_gdsc {
2133 status = "ok";
2134};
2135
2136&gpu_cx_gdsc {
2137 status = "ok";
2138};
2139
2140&gpu_gx_gdsc {
2141 clock-names = "core_root_clk";
2142 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2143 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302144 parent-supply = <&pm660l_s2_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302145 status = "ok";
2146};
2147
2148&vcodec0_gdsc {
2149 qcom,support-hw-trigger;
2150 status = "ok";
2151};
2152
2153&vcodec1_gdsc {
2154 qcom,support-hw-trigger;
2155 status = "ok";
2156};
2157
2158&venus_gdsc {
2159 status = "ok";
2160};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302161
Tirupathi Reddy242bd802017-06-09 11:31:05 +05302162#include "pm660.dtsi"
2163#include "pm660l.dtsi"
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302164#include "sdm670-regulator.dtsi"
Rohit Kumar14051282017-07-12 11:18:48 +05302165#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05302166#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05302167#include "sdm670-gpu.dtsi"