blob: b6f9342bb65247af9d644b5fdeb1ec5086bb7a7d [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
Santosh Mardi903c95d2017-09-25 10:36:29 +053026#define MHZ_TO_MBPS(mhz, w) ((mhz * 1000000 * w) / (1024 * 1024))
27
Imran Khan04f08312017-03-30 15:07:43 +053028/ {
29 model = "Qualcomm Technologies, Inc. SDM670";
30 compatible = "qcom,sdm670";
31 qcom,msm-id = <336 0x0>;
Maulik Shah30ebbde2017-06-15 10:02:54 +053032 interrupt-parent = <&pdc>;
Imran Khan04f08312017-03-30 15:07:43 +053033
Sayali Lokhande099af9c2017-06-08 10:18:29 +053034 aliases {
35 ufshc1 = &ufshc_mem; /* Embedded UFS slot */
Vijay Viswanatheac72722017-06-05 11:01:38 +053036 sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
Vijay Viswanathee4340d2017-08-28 09:50:18 +053037 sdhc2 = &sdhc_2; /* SDC2 SD Card slot */
Mukesh Kumar Savaliya7b272542017-07-10 19:35:29 +053038 serial0 = &qupv3_se12_2uart;
39 spi0 = &qupv3_se8_spi;
40 i2c0 = &qupv3_se10_i2c;
41 i2c1 = &qupv3_se3_i2c;
42 hsuart0 = &qupv3_se6_4uart;
43 };
44
Lingutla Chandrasekhard9eb37a2017-10-03 19:53:36 +053045 chosen {
Pavankumar Kondeti2c218d72017-10-03 19:31:31 +053046 bootargs = "rcupdate.rcu_expedited=1 core_ctl_disable_cpumask=6-7";
Lingutla Chandrasekhard9eb37a2017-10-03 19:53:36 +053047 };
48
Imran Khan04f08312017-03-30 15:07:43 +053049 cpus {
50 #address-cells = <2>;
51 #size-cells = <0>;
52
53 CPU0: cpu@0 {
54 device_type = "cpu";
55 compatible = "arm,armv8";
56 reg = <0x0 0x0>;
57 enable-method = "psci";
58 efficiency = <1024>;
59 cache-size = <0x8000>;
60 cpu-release-addr = <0x0 0x90000000>;
61 next-level-cache = <&L2_0>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +053062 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +053063 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +053064 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +053065 L2_0: l2-cache {
66 compatible = "arm,arch-cache";
67 cache-size = <0x20000>;
68 cache-level = <2>;
69 next-level-cache = <&L3_0>;
70 L3_0: l3-cache {
71 compatible = "arm,arch-cache";
72 cache-size = <0x100000>;
73 cache-level = <3>;
74 };
75 };
76 L1_I_0: l1-icache {
77 compatible = "arm,arch-cache";
78 qcom,dump-size = <0x9000>;
79 };
80 L1_D_0: l1-dcache {
81 compatible = "arm,arch-cache";
82 qcom,dump-size = <0x9000>;
83 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +053084 L1_TLB_0: l1-tlb {
85 qcom,dump-size = <0x3000>;
86 };
Imran Khan04f08312017-03-30 15:07:43 +053087 };
88
89 CPU1: cpu@100 {
90 device_type = "cpu";
91 compatible = "arm,armv8";
92 reg = <0x0 0x100>;
93 enable-method = "psci";
94 efficiency = <1024>;
95 cache-size = <0x8000>;
96 cpu-release-addr = <0x0 0x90000000>;
97 next-level-cache = <&L2_100>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +053098 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +053099 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530100 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530101 L2_100: l2-cache {
102 compatible = "arm,arch-cache";
103 cache-size = <0x20000>;
104 cache-level = <2>;
105 next-level-cache = <&L3_0>;
106 };
107 L1_I_100: l1-icache {
108 compatible = "arm,arch-cache";
109 qcom,dump-size = <0x9000>;
110 };
111 L1_D_100: l1-dcache {
112 compatible = "arm,arch-cache";
113 qcom,dump-size = <0x9000>;
114 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530115 L1_TLB_100: l1-tlb {
116 qcom,dump-size = <0x3000>;
117 };
Imran Khan04f08312017-03-30 15:07:43 +0530118 };
119
120 CPU2: cpu@200 {
121 device_type = "cpu";
122 compatible = "arm,armv8";
123 reg = <0x0 0x200>;
124 enable-method = "psci";
125 efficiency = <1024>;
126 cache-size = <0x8000>;
127 cpu-release-addr = <0x0 0x90000000>;
128 next-level-cache = <&L2_200>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530129 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530130 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530131 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530132 L2_200: l2-cache {
133 compatible = "arm,arch-cache";
134 cache-size = <0x20000>;
135 cache-level = <2>;
136 next-level-cache = <&L3_0>;
137 };
138 L1_I_200: l1-icache {
139 compatible = "arm,arch-cache";
140 qcom,dump-size = <0x9000>;
141 };
142 L1_D_200: l1-dcache {
143 compatible = "arm,arch-cache";
144 qcom,dump-size = <0x9000>;
145 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530146 L1_TLB_200: l1-tlb {
147 qcom,dump-size = <0x3000>;
148 };
Imran Khan04f08312017-03-30 15:07:43 +0530149 };
150
151 CPU3: cpu@300 {
152 device_type = "cpu";
153 compatible = "arm,armv8";
154 reg = <0x0 0x300>;
155 enable-method = "psci";
156 efficiency = <1024>;
157 cache-size = <0x8000>;
158 cpu-release-addr = <0x0 0x90000000>;
159 next-level-cache = <&L2_300>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530160 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530161 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530162 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530163 L2_300: l2-cache {
164 compatible = "arm,arch-cache";
165 cache-size = <0x20000>;
166 cache-level = <2>;
167 next-level-cache = <&L3_0>;
168 };
169 L1_I_300: l1-icache {
170 compatible = "arm,arch-cache";
171 qcom,dump-size = <0x9000>;
172 };
173 L1_D_300: l1-dcache {
174 compatible = "arm,arch-cache";
175 qcom,dump-size = <0x9000>;
176 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530177 L1_TLB_300: l1-tlb {
178 qcom,dump-size = <0x3000>;
179 };
Imran Khan04f08312017-03-30 15:07:43 +0530180 };
181
182 CPU4: cpu@400 {
183 device_type = "cpu";
184 compatible = "arm,armv8";
185 reg = <0x0 0x400>;
186 enable-method = "psci";
187 efficiency = <1024>;
188 cache-size = <0x8000>;
189 cpu-release-addr = <0x0 0x90000000>;
190 next-level-cache = <&L2_400>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530191 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530192 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530193 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530194 L2_400: l2-cache {
195 compatible = "arm,arch-cache";
196 cache-size = <0x20000>;
197 cache-level = <2>;
198 next-level-cache = <&L3_0>;
199 };
200 L1_I_400: l1-icache {
201 compatible = "arm,arch-cache";
202 qcom,dump-size = <0x9000>;
203 };
204 L1_D_400: l1-dcache {
205 compatible = "arm,arch-cache";
206 qcom,dump-size = <0x9000>;
207 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530208 L1_TLB_400: l1-tlb {
209 qcom,dump-size = <0x3000>;
210 };
Imran Khan04f08312017-03-30 15:07:43 +0530211 };
212
213 CPU5: cpu@500 {
214 device_type = "cpu";
215 compatible = "arm,armv8";
216 reg = <0x0 0x500>;
217 enable-method = "psci";
218 efficiency = <1024>;
219 cache-size = <0x8000>;
220 cpu-release-addr = <0x0 0x90000000>;
221 next-level-cache = <&L2_500>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530222 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530223 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530224 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530225 L2_500: l2-cache {
226 compatible = "arm,arch-cache";
227 cache-size = <0x20000>;
228 cache-level = <2>;
229 next-level-cache = <&L3_0>;
230 };
231 L1_I_500: l1-icache {
232 compatible = "arm,arch-cache";
233 qcom,dump-size = <0x9000>;
234 };
235 L1_D_500: l1-dcache {
236 compatible = "arm,arch-cache";
237 qcom,dump-size = <0x9000>;
238 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530239 L1_TLB_500: l1-tlb {
240 qcom,dump-size = <0x3000>;
241 };
Imran Khan04f08312017-03-30 15:07:43 +0530242 };
243
244 CPU6: cpu@600 {
245 device_type = "cpu";
246 compatible = "arm,armv8";
247 reg = <0x0 0x600>;
248 enable-method = "psci";
249 efficiency = <1740>;
250 cache-size = <0x10000>;
251 cpu-release-addr = <0x0 0x90000000>;
252 next-level-cache = <&L2_600>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530253 sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530254 qcom,lmh-dcvs = <&lmh_dcvs1>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530255 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530256 L2_600: l2-cache {
257 compatible = "arm,arch-cache";
258 cache-size = <0x40000>;
259 cache-level = <2>;
260 next-level-cache = <&L3_0>;
261 };
262 L1_I_600: l1-icache {
263 compatible = "arm,arch-cache";
264 qcom,dump-size = <0x12000>;
265 };
266 L1_D_600: l1-dcache {
267 compatible = "arm,arch-cache";
268 qcom,dump-size = <0x12000>;
269 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530270 L1_TLB_600: l1-tlb {
271 qcom,dump-size = <0x3c000>;
272 };
Imran Khan04f08312017-03-30 15:07:43 +0530273 };
274
275 CPU7: cpu@700 {
276 device_type = "cpu";
277 compatible = "arm,armv8";
278 reg = <0x0 0x700>;
279 enable-method = "psci";
280 efficiency = <1740>;
281 cache-size = <0x10000>;
282 cpu-release-addr = <0x0 0x90000000>;
283 next-level-cache = <&L2_700>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530284 sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530285 qcom,lmh-dcvs = <&lmh_dcvs1>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530286 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530287 L2_700: l2-cache {
288 compatible = "arm,arch-cache";
289 cache-size = <0x40000>;
290 cache-level = <2>;
291 next-level-cache = <&L3_0>;
292 };
293 L1_I_700: l1-icache {
294 compatible = "arm,arch-cache";
295 qcom,dump-size = <0x12000>;
296 };
297 L1_D_700: l1-dcache {
298 compatible = "arm,arch-cache";
299 qcom,dump-size = <0x12000>;
300 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530301 L1_TLB_700: l1-tlb {
302 qcom,dump-size = <0x3c000>;
303 };
Imran Khan04f08312017-03-30 15:07:43 +0530304 };
305
306 cpu-map {
307 cluster0 {
308 core0 {
309 cpu = <&CPU0>;
310 };
311
312 core1 {
313 cpu = <&CPU1>;
314 };
315
316 core2 {
317 cpu = <&CPU2>;
318 };
319
320 core3 {
321 cpu = <&CPU3>;
322 };
323
324 core4 {
325 cpu = <&CPU4>;
326 };
327
328 core5 {
329 cpu = <&CPU5>;
330 };
331 };
332 cluster1 {
333 core0 {
334 cpu = <&CPU6>;
335 };
336
337 core1 {
338 cpu = <&CPU7>;
339 };
340 };
341 };
342 };
343
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530344 energy_costs: energy-costs {
345 compatible = "sched-energy";
346
347 CPU_COST_0: core-cost0 {
348 busy-cost-data = <
349 300000 14
350 403200 18
351 480000 21
352 576000 25
353 652800 27
354 748800 31
355 825600 40
356 902400 43
357 979200 46
358 1056000 50
359 1132800 53
360 1228800 57
361 1324800 84
362 1420800 90
363 1516800 96
364 1612800 114
365 1689600 135
366 1766400 141
367 >;
368 idle-cost-data = <
369 12 10 8 6
370 >;
371 };
372 CPU_COST_1: core-cost1 {
373 busy-cost-data = <
374 300000 256
375 403200 271
376 480000 282
377 576000 296
378 652800 307
379 748800 321
380 825600 332
381 902400 369
382 979200 382
383 1056000 395
384 1132800 408
385 1209600 421
386 1286400 434
387 1363200 448
388 1459200 567
389 1536000 586
390 1612800 604
391 1689600 622
392 1766400 641
393 1843200 659
394 1920000 678
395 1996800 696
396 2092800 876
397 2169600 900
398 2246400 924
399 2323200 948
400 2400000 1170
401 >;
402 idle-cost-data = <
403 100 80 60 40
404 >;
405 };
406 CLUSTER_COST_0: cluster-cost0 {
407 busy-cost-data = <
408 300000 5
409 403200 7
410 480000 7
411 576000 7
412 652800 8
413 748800 8
414 825600 9
415 902400 9
416 979200 9
417 1056000 10
418 1132800 10
419 1228800 10
420 1324800 13
421 1420800 14
422 1516800 15
423 1612800 16
424 1689600 19
425 1766400 19
426 >;
427 idle-cost-data = <
428 4 3 2 1
429 >;
430 };
431 CLUSTER_COST_1: cluster-cost1 {
432 busy-cost-data = <
433 300000 25
434 403200 27
435 480000 28
436 576000 29
437 652800 30
438 748800 32
439 825600 33
440 902400 36
441 979200 38
442 1056000 39
443 1132800 40
444 1209600 42
445 1286400 43
446 1363200 44
447 1459200 56
448 1536000 58
449 1612800 60
450 1689600 62
451 1766400 64
452 1843200 65
453 1920000 67
454 1996800 69
455 2092800 87
456 2169600 90
457 2246400 92
458 2323200 94
459 2400000 117
460 >;
461 idle-cost-data = <
462 4 3 2 1
463 >;
464 };
465 };
466
Imran Khan04f08312017-03-30 15:07:43 +0530467 psci {
468 compatible = "arm,psci-1.0";
469 method = "smc";
470 };
471
472 soc: soc { };
473
Imran Khanb1066fa2017-08-01 17:20:22 +0530474 vendor: vendor {
475 #address-cells = <1>;
476 #size-cells = <1>;
477 ranges = <0 0 0 0xffffffff>;
478 compatible = "simple-bus";
479 };
480
Imran Khan5381c932017-08-02 11:27:07 +0530481 firmware: firmware {
482 android {
483 compatible = "android,firmware";
484
485 fstab {
486 compatible = "android,fstab";
487 vendor {
488 compatible = "android,vendor";
489 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
490 type = "ext4";
491 mnt_flags = "ro,barrier=1,discard";
492 fsmgr_flags = "wait,slotselect";
493 };
494 };
495 };
496 };
497
Imran Khan04f08312017-03-30 15:07:43 +0530498 reserved-memory {
499 #address-cells = <2>;
500 #size-cells = <2>;
501 ranges;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530502
503 removed_regions: removed_regions@85700000 {
504 compatible = "removed-dma-pool";
505 no-map;
506 reg = <0 0x85700000 0 0x3800000>;
507 };
508
509 pil_camera_mem: camera_region@8ab00000 {
510 compatible = "removed-dma-pool";
511 no-map;
512 reg = <0 0x8ab00000 0 0x500000>;
513 };
514
515 pil_modem_mem: modem_region@8b000000 {
516 compatible = "removed-dma-pool";
517 no-map;
518 reg = <0 0x8b000000 0 0x7e00000>;
519 };
520
521 pil_video_mem: pil_video_region@92e00000 {
522 compatible = "removed-dma-pool";
523 no-map;
524 reg = <0 0x92e00000 0 0x500000>;
525 };
526
527 pil_cdsp_mem: cdsp_regions@93300000 {
528 compatible = "removed-dma-pool";
529 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530530 reg = <0 0x93300000 0 0x800000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530531 };
532
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530533 pil_mba_mem: pil_mba_region@0x93b00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530534 compatible = "removed-dma-pool";
535 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530536 reg = <0 0x93b00000 0 0x200000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530537 };
538
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530539 pil_adsp_mem: pil_adsp_region@93d00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530540 compatible = "removed-dma-pool";
541 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530542 reg = <0 0x93d00000 0 0x1e00000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530543 };
544
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530545 adsp_mem: adsp_region {
546 compatible = "shared-dma-pool";
547 alloc-ranges = <0 0x00000000 0 0xffffffff>;
548 reusable;
549 alignment = <0 0x400000>;
550 size = <0 0xc00000>;
551 };
552
553 qseecom_mem: qseecom_region {
554 compatible = "shared-dma-pool";
555 alloc-ranges = <0 0x00000000 0 0xffffffff>;
556 reusable;
557 alignment = <0 0x400000>;
558 size = <0 0x1400000>;
559 };
560
561 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
562 compatible = "shared-dma-pool";
563 alloc-ranges = <0 0x00000000 0 0xffffffff>; /* 32-bit */
564 reusable;
565 alignment = <0 0x400000>;
566 size = <0 0x800000>;
567 };
568
569 secure_display_memory: secure_display_region {
570 compatible = "shared-dma-pool";
571 alloc-ranges = <0 0x00000000 0 0xffffffff>;
572 reusable;
573 alignment = <0 0x400000>;
574 size = <0 0x5c00000>;
575 };
576
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +0530577 dump_mem: mem_dump_region {
578 compatible = "shared-dma-pool";
579 reusable;
580 size = <0 0x2400000>;
581 };
582
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530583 /* global autoconfigured region for contiguous allocations */
584 linux,cma {
585 compatible = "shared-dma-pool";
586 alloc-ranges = <0 0x00000000 0 0xffffffff>;
587 reusable;
588 alignment = <0 0x400000>;
589 size = <0 0x2000000>;
590 linux,cma-default;
591 };
Imran Khan04f08312017-03-30 15:07:43 +0530592 };
593};
594
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530595#include "sdm670-ion.dtsi"
596
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530597#include "sdm670-smp2p.dtsi"
598
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530599#include "sdm670-qupv3.dtsi"
600
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530601#include "sdm670-coresight.dtsi"
Manikanta Kanamarlapudid4abc602017-08-28 19:23:41 +0530602
603#include "sdm670-vidc.dtsi"
604
Raviteja Tamatame97849a2017-09-12 20:25:50 +0530605#include "sdm670-sde-pll.dtsi"
606
607#include "sdm670-sde.dtsi"
608
Imran Khan04f08312017-03-30 15:07:43 +0530609&soc {
610 #address-cells = <1>;
611 #size-cells = <1>;
612 ranges = <0 0 0 0xffffffff>;
613 compatible = "simple-bus";
614
Saranya Chidura0e8b4262017-10-04 13:06:26 +0530615 jtag_mm0: jtagmm@7040000 {
616 compatible = "qcom,jtagv8-mm";
617 reg = <0x7040000 0x1000>;
618 reg-names = "etm-base";
619
620 clocks = <&clock_aop QDSS_CLK>;
621 clock-names = "core_clk";
622
623 qcom,coresight-jtagmm-cpu = <&CPU0>;
624 };
625
626 jtag_mm1: jtagmm@7140000 {
627 compatible = "qcom,jtagv8-mm";
628 reg = <0x7140000 0x1000>;
629 reg-names = "etm-base";
630
631 clocks = <&clock_aop QDSS_CLK>;
632 clock-names = "core_clk";
633
634 qom,coresight-jtagmm-cpu = <&CPU1>;
635 };
636
637 jtag_mm2: jtagmm@7240000 {
638 compatible = "qcom,jtagv8-mm";
639 reg = <0x7240000 0x1000>;
640 reg-names = "etm-base";
641
642 clocks = <&clock_aop QDSS_CLK>;
643 clock-names = "core_clk";
644
645 qcom,coresight-jtagmm-cpu = <&CPU2>;
646 };
647
648 jtag_mm3: jtagmm@7340000 {
649 compatible = "qcom,jtagv8-mm";
650 reg = <0x7340000 0x1000>;
651 reg-names = "etm-base";
652
653 clocks = <&clock_aop QDSS_CLK>;
654 clock-names = "core_clk";
655
656 qcom,coresight-jtagmm-cpu = <&CPU3>;
657 };
658
659 jtag_mm4: jtagmm@7440000 {
660 compatible = "qcom,jtagv8-mm";
661 reg = <0x7440000 0x1000>;
662 reg-names = "etm-base";
663
664 clocks = <&clock_aop QDSS_CLK>;
665 clock-names = "core_clk";
666
667 qcom,coresight-jtagmm-cpu = <&CPU4>;
668 };
669
670 jtag_mm5: jtagmm@7540000 {
671 compatible = "qcom,jtagv8-mm";
672 reg = <0x7540000 0x1000>;
673 reg-names = "etm-base";
674
675 clocks = <&clock_aop QDSS_CLK>;
676 clock-names = "core_clk";
677
678 qcom,coresight-jtagmm-cpu = <&CPU5>;
679 };
680
681 jtag_mm6: jtagmm@7640000 {
682 compatible = "qcom,jtagv8-mm";
683 reg = <0x7640000 0x1000>;
684 reg-names = "etm-base";
685
686 clocks = <&clock_aop QDSS_CLK>;
687 clock-names = "core_clk";
688
689 qcom,coresight-jtagmm-cpu = <&CPU6>;
690 };
691
692 jtag_mm7: jtagmm@7740000 {
693 compatible = "qcom,jtagv8-mm";
694 reg = <0x7740000 0x1000>;
695 reg-names = "etm-base";
696
697 clocks = <&clock_aop QDSS_CLK>;
698 clock-names = "core_clk";
699
700 qcom,coresight-jtagmm-cpu = <&CPU7>;
701 };
702
Imran Khan04f08312017-03-30 15:07:43 +0530703 intc: interrupt-controller@17a00000 {
704 compatible = "arm,gic-v3";
705 #interrupt-cells = <3>;
706 interrupt-controller;
707 #redistributor-regions = <1>;
708 redistributor-stride = <0x0 0x20000>;
709 reg = <0x17a00000 0x10000>, /* GICD */
710 <0x17a60000 0x100000>; /* GICR * 8 */
711 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530712 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530713 };
714
715 timer {
716 compatible = "arm,armv8-timer";
717 interrupts = <1 1 0xf08>,
718 <1 2 0xf08>,
719 <1 3 0xf08>,
720 <1 0 0xf08>;
721 clock-frequency = <19200000>;
722 };
723
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530724 qcom,sps {
725 compatible = "qcom,msm_sps_4k";
726 qcom,pipe-attr-ee;
727 };
728
Abir Ghoshb849ab22017-09-19 13:03:11 +0530729 qcom,qbt1000 {
730 compatible = "qcom,qbt1000";
731 clock-names = "core", "iface";
732 clock-frequency = <25000000>;
733 qcom,ipc-gpio = <&tlmm 121 0>;
734 qcom,finger-detect-gpio = <&tlmm 122 0>;
735 };
736
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +0530737 thermal_zones: thermal-zones {};
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530738
739 tsens0: tsens@c222000 {
740 compatible = "qcom,tsens24xx";
741 reg = <0xc222000 0x4>,
742 <0xc263000 0x1ff>;
743 reg-names = "tsens_srot_physical",
744 "tsens_tm_physical";
745 interrupts = <0 506 0>, <0 508 0>;
746 interrupt-names = "tsens-upper-lower", "tsens-critical";
747 #thermal-sensor-cells = <1>;
748 };
749
750 tsens1: tsens@c223000 {
751 compatible = "qcom,tsens24xx";
752 reg = <0xc223000 0x4>,
753 <0xc265000 0x1ff>;
754 reg-names = "tsens_srot_physical",
755 "tsens_tm_physical";
756 interrupts = <0 507 0>, <0 509 0>;
757 interrupt-names = "tsens-upper-lower", "tsens-critical";
758 #thermal-sensor-cells = <1>;
759 };
760
Imran Khan04f08312017-03-30 15:07:43 +0530761 timer@0x17c90000{
762 #address-cells = <1>;
763 #size-cells = <1>;
764 ranges;
765 compatible = "arm,armv7-timer-mem";
766 reg = <0x17c90000 0x1000>;
767 clock-frequency = <19200000>;
768
769 frame@0x17ca0000 {
770 frame-number = <0>;
771 interrupts = <0 7 0x4>,
772 <0 6 0x4>;
773 reg = <0x17ca0000 0x1000>,
774 <0x17cb0000 0x1000>;
775 };
776
777 frame@17cc0000 {
778 frame-number = <1>;
779 interrupts = <0 8 0x4>;
780 reg = <0x17cc0000 0x1000>;
781 status = "disabled";
782 };
783
784 frame@17cd0000 {
785 frame-number = <2>;
786 interrupts = <0 9 0x4>;
787 reg = <0x17cd0000 0x1000>;
788 status = "disabled";
789 };
790
791 frame@17ce0000 {
792 frame-number = <3>;
793 interrupts = <0 10 0x4>;
794 reg = <0x17ce0000 0x1000>;
795 status = "disabled";
796 };
797
798 frame@17cf0000 {
799 frame-number = <4>;
800 interrupts = <0 11 0x4>;
801 reg = <0x17cf0000 0x1000>;
802 status = "disabled";
803 };
804
805 frame@17d00000 {
806 frame-number = <5>;
807 interrupts = <0 12 0x4>;
808 reg = <0x17d00000 0x1000>;
809 status = "disabled";
810 };
811
812 frame@17d10000 {
813 frame-number = <6>;
814 interrupts = <0 13 0x4>;
815 reg = <0x17d10000 0x1000>;
816 status = "disabled";
817 };
818 };
819
820 restart@10ac000 {
821 compatible = "qcom,pshold";
822 reg = <0xC264000 0x4>,
823 <0x1fd3000 0x4>;
824 reg-names = "pshold-base", "tcsr-boot-misc-detect";
825 };
826
Maulik Shah6bf7d5d2017-07-27 09:48:42 +0530827 aop-msg-client {
828 compatible = "qcom,debugfs-qmp-client";
829 mboxes = <&qmp_aop 0>;
830 mbox-names = "aop";
831 };
832
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530833 clock_rpmh: qcom,rpmhclk {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530834 compatible = "qcom,rpmh-clk-sdm670";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530835 #clock-cells = <1>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530836 mboxes = <&apps_rsc 0>;
837 mbox-names = "apps";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530838 };
839
840 clock_gcc: qcom,gcc@100000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530841 compatible = "qcom,gcc-sdm670", "syscon";
842 reg = <0x100000 0x1f0000>;
843 reg-names = "cc_base";
844 vdd_cx-supply = <&pm660l_s3_level>;
845 vdd_cx_ao-supply = <&pm660l_s3_level_ao>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530846 #clock-cells = <1>;
847 #reset-cells = <1>;
848 };
849
850 clock_videocc: qcom,videocc@ab00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530851 compatible = "qcom,video_cc-sdm670", "syscon";
852 reg = <0xab00000 0x10000>;
853 reg-names = "cc_base";
854 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530855 #clock-cells = <1>;
856 #reset-cells = <1>;
857 };
858
859 clock_camcc: qcom,camcc@ad00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530860 compatible = "qcom,cam_cc-sdm670", "syscon";
861 reg = <0xad00000 0x10000>;
862 reg-names = "cc_base";
863 vdd_cx-supply = <&pm660l_s3_level>;
864 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530865 #clock-cells = <1>;
866 #reset-cells = <1>;
867 };
868
869 clock_dispcc: qcom,dispcc@af00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530870 compatible = "qcom,dispcc-sdm670", "syscon";
871 reg = <0xaf00000 0x10000>;
872 reg-names = "cc_base";
873 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530874 #clock-cells = <1>;
875 #reset-cells = <1>;
876 };
877
878 clock_gpucc: qcom,gpucc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530879 compatible = "qcom,gpucc-sdm670", "syscon";
880 reg = <0x5090000 0x9000>;
881 reg-names = "cc_base";
882 vdd_cx-supply = <&pm660l_s3_level>;
883 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +0530884 qcom,gpu_cc_gmu_clk_src-opp-handle = <&gmu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530885 #clock-cells = <1>;
886 #reset-cells = <1>;
887 };
888
889 clock_gfx: qcom,gfxcc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530890 compatible = "qcom,gfxcc-sdm670";
891 reg = <0x5090000 0x9000>;
892 reg-names = "cc_base";
893 vdd_gfx-supply = <&pm660l_s2_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +0530894 qcom,gpu_cc_gx_gfx3d_clk_src-opp-handle = <&msm_gpu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530895 #clock-cells = <1>;
896 #reset-cells = <1>;
897 };
898
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530899 cpucc_debug: syscon@17970018 {
900 compatible = "syscon";
901 reg = <0x17970018 0x4>;
902 };
903
904 clock_debug: qcom,cc-debug {
905 compatible = "qcom,debugcc-sdm845";
906 qcom,cc-count = <5>;
907 qcom,gcc = <&clock_gcc>;
908 qcom,videocc = <&clock_videocc>;
909 qcom,camcc = <&clock_camcc>;
910 qcom,dispcc = <&clock_dispcc>;
911 qcom,gpucc = <&clock_gpucc>;
912 qcom,cpucc = <&cpucc_debug>;
913 clock-names = "xo_clk_src";
914 clocks = <&clock_rpmh RPMH_CXO_CLK>;
915 #clock-cells = <1>;
916 };
917
Imran Khan04f08312017-03-30 15:07:43 +0530918 clock_cpucc: qcom,cpucc {
919 compatible = "qcom,dummycc";
920 clock-output-names = "cpucc_clocks";
921 #clock-cells = <1>;
922 #reset-cells = <1>;
923 };
924
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +0530925 clock_aop: qcom,aopclk {
Odelu Kukatla80f617f2017-09-15 19:30:25 +0530926 compatible = "qcom,aop-qmp-clk-v1";
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +0530927 #clock-cells = <1>;
928 mboxes = <&qmp_aop 0>;
929 mbox-names = "qdss_clk";
930 };
931
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530932 slim_aud: slim@62dc0000 {
933 cell-index = <1>;
934 compatible = "qcom,slim-ngd";
935 reg = <0x62dc0000 0x2c000>,
936 <0x62d84000 0x2a000>;
937 reg-names = "slimbus_physical", "slimbus_bam_physical";
938 interrupts = <0 163 0>, <0 164 0>;
939 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
940 qcom,apps-ch-pipes = <0x780000>;
941 qcom,ea-pc = <0x290>;
942 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +0530943 qcom,iommu-s1-bypass;
944
945 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
946 compatible = "qcom,iommu-slim-ctrl-cb";
947 iommus = <&apps_smmu 0x1826 0x0>,
948 <&apps_smmu 0x182d 0x0>,
949 <&apps_smmu 0x182e 0x1>,
950 <&apps_smmu 0x1830 0x1>;
951 };
952
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530953 };
954
955 slim_qca: slim@62e40000 {
956 cell-index = <3>;
957 compatible = "qcom,slim-ngd";
958 reg = <0x62e40000 0x2c000>,
959 <0x62e04000 0x20000>;
960 reg-names = "slimbus_physical", "slimbus_bam_physical";
961 interrupts = <0 291 0>, <0 292 0>;
962 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
963 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +0530964 qcom,iommu-s1-bypass;
965
966 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
967 compatible = "qcom,iommu-slim-ctrl-cb";
968 iommus = <&apps_smmu 0x1833 0x0>;
969 };
970
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530971 };
972
Imran Khan04f08312017-03-30 15:07:43 +0530973 wdog: qcom,wdt@17980000{
974 compatible = "qcom,msm-watchdog";
975 reg = <0x17980000 0x1000>;
976 reg-names = "wdt-base";
Lingutla Chandrasekhar9fb9ba92017-10-08 21:59:19 +0530977 interrupts = <0 0 0>, <0 1 0>;
Imran Khan04f08312017-03-30 15:07:43 +0530978 qcom,bark-time = <11000>;
979 qcom,pet-time = <10000>;
980 qcom,ipi-ping;
981 qcom,wakeup-enable;
982 };
983
984 qcom,msm-rtb {
985 compatible = "qcom,msm-rtb";
986 qcom,rtb-size = <0x100000>;
987 };
988
989 qcom,msm-imem@146bf000 {
990 compatible = "qcom,msm-imem";
991 reg = <0x146bf000 0x1000>;
992 ranges = <0x0 0x146bf000 0x1000>;
993 #address-cells = <1>;
994 #size-cells = <1>;
995
996 mem_dump_table@10 {
997 compatible = "qcom,msm-imem-mem_dump_table";
998 reg = <0x10 8>;
999 };
1000
1001 restart_reason@65c {
1002 compatible = "qcom,msm-imem-restart_reason";
1003 reg = <0x65c 4>;
1004 };
1005
1006 pil@94c {
1007 compatible = "qcom,msm-imem-pil";
1008 reg = <0x94c 200>;
1009 };
1010
1011 kaslr_offset@6d0 {
1012 compatible = "qcom,msm-imem-kaslr_offset";
1013 reg = <0x6d0 12>;
1014 };
Lingutla Chandrasekhar3c51f0b2017-09-12 14:21:21 +05301015
1016 boot_stats@6b0 {
1017 compatible = "qcom,msm-imem-boot_stats";
1018 reg = <0x6b0 0x20>;
1019 };
1020
1021 diag_dload@c8 {
1022 compatible = "qcom,msm-imem-diag-dload";
1023 reg = <0xc8 0xc8>;
1024 };
Imran Khan04f08312017-03-30 15:07:43 +05301025 };
1026
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301027 gpi_dma0: qcom,gpi-dma@0x800000 {
1028 #dma-cells = <6>;
1029 compatible = "qcom,gpi-dma";
1030 reg = <0x800000 0x60000>;
1031 reg-names = "gpi-top";
1032 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
1033 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
1034 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
1035 <0 256 0>;
1036 qcom,max-num-gpii = <13>;
1037 qcom,gpii-mask = <0xfa>;
1038 qcom,ev-factor = <2>;
1039 iommus = <&apps_smmu 0x0016 0x0>;
1040 status = "ok";
1041 };
1042
1043 gpi_dma1: qcom,gpi-dma@0xa00000 {
1044 #dma-cells = <6>;
1045 compatible = "qcom,gpi-dma";
1046 reg = <0xa00000 0x60000>;
1047 reg-names = "gpi-top";
1048 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
1049 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
1050 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
1051 <0 299 0>;
1052 qcom,max-num-gpii = <13>;
1053 qcom,gpii-mask = <0xfa>;
1054 qcom,ev-factor = <2>;
1055 iommus = <&apps_smmu 0x06d6 0x0>;
1056 status = "ok";
1057 };
1058
Imran Khan04f08312017-03-30 15:07:43 +05301059 cpuss_dump {
1060 compatible = "qcom,cpuss-dump";
1061 qcom,l1_i_cache0 {
1062 qcom,dump-node = <&L1_I_0>;
1063 qcom,dump-id = <0x60>;
1064 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301065 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301066 qcom,dump-node = <&L1_I_100>;
1067 qcom,dump-id = <0x61>;
1068 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301069 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301070 qcom,dump-node = <&L1_I_200>;
1071 qcom,dump-id = <0x62>;
1072 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301073 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301074 qcom,dump-node = <&L1_I_300>;
1075 qcom,dump-id = <0x63>;
1076 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301077 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301078 qcom,dump-node = <&L1_I_400>;
1079 qcom,dump-id = <0x64>;
1080 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301081 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301082 qcom,dump-node = <&L1_I_500>;
1083 qcom,dump-id = <0x65>;
1084 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301085 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301086 qcom,dump-node = <&L1_I_600>;
1087 qcom,dump-id = <0x66>;
1088 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301089 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301090 qcom,dump-node = <&L1_I_700>;
1091 qcom,dump-id = <0x67>;
1092 };
1093 qcom,l1_d_cache0 {
1094 qcom,dump-node = <&L1_D_0>;
1095 qcom,dump-id = <0x80>;
1096 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301097 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301098 qcom,dump-node = <&L1_D_100>;
1099 qcom,dump-id = <0x81>;
1100 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301101 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301102 qcom,dump-node = <&L1_D_200>;
1103 qcom,dump-id = <0x82>;
1104 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301105 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301106 qcom,dump-node = <&L1_D_300>;
1107 qcom,dump-id = <0x83>;
1108 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301109 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301110 qcom,dump-node = <&L1_D_400>;
1111 qcom,dump-id = <0x84>;
1112 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301113 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301114 qcom,dump-node = <&L1_D_500>;
1115 qcom,dump-id = <0x85>;
1116 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301117 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301118 qcom,dump-node = <&L1_D_600>;
1119 qcom,dump-id = <0x86>;
1120 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301121 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301122 qcom,dump-node = <&L1_D_700>;
1123 qcom,dump-id = <0x87>;
1124 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301125 qcom,llcc1_d_cache {
1126 qcom,dump-node = <&LLCC_1>;
1127 qcom,dump-id = <0x140>;
1128 };
1129 qcom,llcc2_d_cache {
1130 qcom,dump-node = <&LLCC_2>;
1131 qcom,dump-id = <0x141>;
1132 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301133 qcom,l1_tlb_dump0 {
1134 qcom,dump-node = <&L1_TLB_0>;
1135 qcom,dump-id = <0x20>;
1136 };
1137 qcom,l1_tlb_dump100 {
1138 qcom,dump-node = <&L1_TLB_100>;
1139 qcom,dump-id = <0x21>;
1140 };
1141 qcom,l1_tlb_dump200 {
1142 qcom,dump-node = <&L1_TLB_200>;
1143 qcom,dump-id = <0x22>;
1144 };
1145 qcom,l1_tlb_dump300 {
1146 qcom,dump-node = <&L1_TLB_300>;
1147 qcom,dump-id = <0x23>;
1148 };
1149 qcom,l1_tlb_dump400 {
1150 qcom,dump-node = <&L1_TLB_400>;
1151 qcom,dump-id = <0x24>;
1152 };
1153 qcom,l1_tlb_dump500 {
1154 qcom,dump-node = <&L1_TLB_500>;
1155 qcom,dump-id = <0x25>;
1156 };
1157 qcom,l1_tlb_dump600 {
1158 qcom,dump-node = <&L1_TLB_600>;
1159 qcom,dump-id = <0x26>;
1160 };
1161 qcom,l1_tlb_dump700 {
1162 qcom,dump-node = <&L1_TLB_700>;
1163 qcom,dump-id = <0x27>;
1164 };
Imran Khan04f08312017-03-30 15:07:43 +05301165 };
1166
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301167 mem_dump {
1168 compatible = "qcom,mem-dump";
1169 memory-region = <&dump_mem>;
1170
1171 rpmh_dump {
1172 qcom,dump-size = <0x2000000>;
1173 qcom,dump-id = <0xec>;
1174 };
1175
1176 rpm_sw_dump {
1177 qcom,dump-size = <0x28000>;
1178 qcom,dump-id = <0xea>;
1179 };
1180
1181 pmic_dump {
1182 qcom,dump-size = <0x10000>;
1183 qcom,dump-id = <0xe4>;
1184 };
1185
1186 tmc_etf_dump {
1187 qcom,dump-size = <0x10000>;
1188 qcom,dump-id = <0xf0>;
1189 };
1190
1191 tmc_etf_swao_dump {
1192 qcom,dump-size = <0x8400>;
1193 qcom,dump-id = <0xf1>;
1194 };
1195
1196 tmc_etr_reg_dump {
1197 qcom,dump-size = <0x1000>;
1198 qcom,dump-id = <0x100>;
1199 };
1200
1201 tmc_etf_reg_dump {
1202 qcom,dump-size = <0x1000>;
1203 qcom,dump-id = <0x101>;
1204 };
1205
1206 tmc_etf_swao_reg_dump {
1207 qcom,dump-size = <0x1000>;
1208 qcom,dump-id = <0x102>;
1209 };
1210
1211 misc_data_dump {
1212 qcom,dump-size = <0x1000>;
1213 qcom,dump-id = <0xe8>;
1214 };
1215
1216 power_regs_data_dump {
1217 qcom,dump-size = <0x100000>;
1218 qcom,dump-id = <0xed>;
1219 };
1220 };
1221
Imran Khan04f08312017-03-30 15:07:43 +05301222 kryo3xx-erp {
1223 compatible = "arm,arm64-kryo3xx-cpu-erp";
1224 interrupts = <1 6 4>,
1225 <1 7 4>,
1226 <0 34 4>,
1227 <0 35 4>;
1228
1229 interrupt-names = "l1-l2-faultirq",
1230 "l1-l2-errirq",
1231 "l3-scu-errirq",
1232 "l3-scu-faultirq";
1233 };
1234
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301235 qcom,ipc-spinlock@1f40000 {
1236 compatible = "qcom,ipc-spinlock-sfpb";
1237 reg = <0x1f40000 0x8000>;
1238 qcom,num-locks = <8>;
1239 };
1240
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301241 qcom,smem@86000000 {
1242 compatible = "qcom,smem";
1243 reg = <0x86000000 0x200000>,
1244 <0x17911008 0x4>,
1245 <0x778000 0x7000>,
1246 <0x1fd4000 0x8>;
1247 reg-names = "smem", "irq-reg-base", "aux-mem1",
1248 "smem_targ_info_reg";
1249 qcom,mpu-enabled;
1250 };
1251
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301252 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301253 compatible = "qcom,qmp-mbox";
1254 label = "aop";
1255 reg = <0xc300000 0x100000>,
1256 <0x1799000c 0x4>;
1257 reg-names = "msgram", "irq-reg-base";
1258 qcom,irq-mask = <0x1>;
1259 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301260 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301261 mbox-desc-offset = <0x0>;
1262 #mbox-cells = <1>;
1263 };
1264
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301265 qcom,glink-smem-native-xprt-modem@86000000 {
1266 compatible = "qcom,glink-smem-native-xprt";
1267 reg = <0x86000000 0x200000>,
1268 <0x1799000c 0x4>;
1269 reg-names = "smem", "irq-reg-base";
1270 qcom,irq-mask = <0x1000>;
1271 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1272 label = "mpss";
1273 };
1274
1275 qcom,glink-smem-native-xprt-adsp@86000000 {
1276 compatible = "qcom,glink-smem-native-xprt";
1277 reg = <0x86000000 0x200000>,
1278 <0x1799000c 0x4>;
1279 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301280 qcom,irq-mask = <0x1000000>;
1281 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301282 label = "lpass";
1283 qcom,qos-config = <&glink_qos_adsp>;
1284 qcom,ramp-time = <0xaf>;
1285 };
1286
1287 glink_qos_adsp: qcom,glink-qos-config-adsp {
1288 compatible = "qcom,glink-qos-config";
1289 qcom,flow-info = <0x3c 0x0>,
1290 <0x3c 0x0>,
1291 <0x3c 0x0>,
1292 <0x3c 0x0>;
1293 qcom,mtu-size = <0x800>;
1294 qcom,tput-stats-cycle = <0xa>;
1295 };
1296
1297 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1298 compatible = "qcom,glink-spi-xprt";
1299 label = "wdsp";
1300 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1301 qcom,qos-config = <&glink_qos_wdsp>;
1302 qcom,ramp-time = <0x10>,
1303 <0x20>,
1304 <0x30>,
1305 <0x40>;
1306 };
1307
1308 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1309 compatible = "qcom,glink-fifo-config";
1310 qcom,out-read-idx-reg = <0x12000>;
1311 qcom,out-write-idx-reg = <0x12004>;
1312 qcom,in-read-idx-reg = <0x1200C>;
1313 qcom,in-write-idx-reg = <0x12010>;
1314 };
1315
1316 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1317 compatible = "qcom,glink-qos-config";
1318 qcom,flow-info = <0x80 0x0>,
1319 <0x70 0x1>,
1320 <0x60 0x2>,
1321 <0x50 0x3>;
1322 qcom,mtu-size = <0x800>;
1323 qcom,tput-stats-cycle = <0xa>;
1324 };
1325
1326 qcom,glink-smem-native-xprt-cdsp@86000000 {
1327 compatible = "qcom,glink-smem-native-xprt";
1328 reg = <0x86000000 0x200000>,
1329 <0x1799000c 0x4>;
1330 reg-names = "smem", "irq-reg-base";
1331 qcom,irq-mask = <0x10>;
1332 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1333 label = "cdsp";
1334 };
1335
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301336 glink_mpss: qcom,glink-ssr-modem {
1337 compatible = "qcom,glink_ssr";
1338 label = "modem";
1339 qcom,edge = "mpss";
1340 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1341 qcom,xprt = "smem";
1342 };
1343
1344 glink_lpass: qcom,glink-ssr-adsp {
1345 compatible = "qcom,glink_ssr";
1346 label = "adsp";
1347 qcom,edge = "lpass";
1348 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1349 qcom,xprt = "smem";
1350 };
1351
1352 glink_cdsp: qcom,glink-ssr-cdsp {
1353 compatible = "qcom,glink_ssr";
1354 label = "cdsp";
1355 qcom,edge = "cdsp";
1356 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1357 qcom,xprt = "smem";
1358 };
1359
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301360 qcom,ipc_router {
1361 compatible = "qcom,ipc_router";
1362 qcom,node-id = <1>;
1363 };
1364
1365 qcom,ipc_router_modem_xprt {
1366 compatible = "qcom,ipc_router_glink_xprt";
1367 qcom,ch-name = "IPCRTR";
1368 qcom,xprt-remote = "mpss";
1369 qcom,glink-xprt = "smem";
1370 qcom,xprt-linkid = <1>;
1371 qcom,xprt-version = <1>;
1372 qcom,fragmented-data;
1373 };
1374
1375 qcom,ipc_router_q6_xprt {
1376 compatible = "qcom,ipc_router_glink_xprt";
1377 qcom,ch-name = "IPCRTR";
1378 qcom,xprt-remote = "lpass";
1379 qcom,glink-xprt = "smem";
1380 qcom,xprt-linkid = <1>;
1381 qcom,xprt-version = <1>;
1382 qcom,fragmented-data;
1383 };
1384
1385 qcom,ipc_router_cdsp_xprt {
1386 compatible = "qcom,ipc_router_glink_xprt";
1387 qcom,ch-name = "IPCRTR";
1388 qcom,xprt-remote = "cdsp";
1389 qcom,glink-xprt = "smem";
1390 qcom,xprt-linkid = <1>;
1391 qcom,xprt-version = <1>;
1392 qcom,fragmented-data;
1393 };
1394
Dhoat Harpal11d34482017-06-06 21:00:14 +05301395 qcom,glink_pkt {
1396 compatible = "qcom,glinkpkt";
1397
1398 qcom,glinkpkt-at-mdm0 {
1399 qcom,glinkpkt-transport = "smem";
1400 qcom,glinkpkt-edge = "mpss";
1401 qcom,glinkpkt-ch-name = "DS";
1402 qcom,glinkpkt-dev-name = "at_mdm0";
1403 };
1404
1405 qcom,glinkpkt-loopback_cntl {
1406 qcom,glinkpkt-transport = "lloop";
1407 qcom,glinkpkt-edge = "local";
1408 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1409 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1410 };
1411
1412 qcom,glinkpkt-loopback_data {
1413 qcom,glinkpkt-transport = "lloop";
1414 qcom,glinkpkt-edge = "local";
1415 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1416 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1417 };
1418
1419 qcom,glinkpkt-apr-apps2 {
1420 qcom,glinkpkt-transport = "smem";
1421 qcom,glinkpkt-edge = "adsp";
1422 qcom,glinkpkt-ch-name = "apr_apps2";
1423 qcom,glinkpkt-dev-name = "apr_apps2";
1424 };
1425
1426 qcom,glinkpkt-data40-cntl {
1427 qcom,glinkpkt-transport = "smem";
1428 qcom,glinkpkt-edge = "mpss";
1429 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1430 qcom,glinkpkt-dev-name = "smdcntl8";
1431 };
1432
1433 qcom,glinkpkt-data1 {
1434 qcom,glinkpkt-transport = "smem";
1435 qcom,glinkpkt-edge = "mpss";
1436 qcom,glinkpkt-ch-name = "DATA1";
1437 qcom,glinkpkt-dev-name = "smd7";
1438 };
1439
1440 qcom,glinkpkt-data4 {
1441 qcom,glinkpkt-transport = "smem";
1442 qcom,glinkpkt-edge = "mpss";
1443 qcom,glinkpkt-ch-name = "DATA4";
1444 qcom,glinkpkt-dev-name = "smd8";
1445 };
1446
1447 qcom,glinkpkt-data11 {
1448 qcom,glinkpkt-transport = "smem";
1449 qcom,glinkpkt-edge = "mpss";
1450 qcom,glinkpkt-ch-name = "DATA11";
1451 qcom,glinkpkt-dev-name = "smd11";
1452 };
1453 };
1454
Imran Khan04f08312017-03-30 15:07:43 +05301455 qcom,chd_sliver {
1456 compatible = "qcom,core-hang-detect";
1457 label = "silver";
1458 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1459 0x17e30058 0x17e40058 0x17e50058>;
1460 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1461 0x17e30060 0x17e40060 0x17e50060>;
1462 };
1463
1464 qcom,chd_gold {
1465 compatible = "qcom,core-hang-detect";
1466 label = "gold";
1467 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1468 qcom,config-arr = <0x17e60060 0x17e70060>;
1469 };
1470
1471 qcom,ghd {
1472 compatible = "qcom,gladiator-hang-detect-v2";
1473 qcom,threshold-arr = <0x1799041c 0x17990420>;
1474 qcom,config-reg = <0x17990434>;
1475 };
1476
1477 qcom,msm-gladiator-v3@17900000 {
1478 compatible = "qcom,msm-gladiator-v3";
1479 reg = <0x17900000 0xd080>;
1480 reg-names = "gladiator_base";
1481 interrupts = <0 17 0>;
1482 };
1483
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301484 eud: qcom,msm-eud@88e0000 {
1485 compatible = "qcom,msm-eud";
1486 interrupt-names = "eud_irq";
1487 interrupts = <GIC_SPI 492 IRQ_TYPE_LEVEL_HIGH>;
1488 reg = <0x88e0000 0x2000>;
1489 reg-names = "eud_base";
1490 status = "disabled";
1491 };
1492
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301493 qcom,llcc@1100000 {
1494 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1495 reg = <0x1100000 0x250000>;
1496 reg-names = "llcc_base";
1497 qcom,llcc-banks-off = <0x0 0x80000 >;
1498 qcom,llcc-broadcast-off = <0x200000>;
1499
1500 llcc: qcom,sdm670-llcc {
1501 compatible = "qcom,sdm670-llcc";
1502 #cache-cells = <1>;
1503 max-slices = <32>;
1504 qcom,dump-size = <0x80000>;
1505 };
1506
1507 qcom,llcc-erp {
1508 compatible = "qcom,llcc-erp";
1509 interrupt-names = "ecc_irq";
1510 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1511 };
1512
1513 qcom,llcc-amon {
1514 compatible = "qcom,llcc-amon";
1515 };
1516
1517 LLCC_1: llcc_1_dcache {
1518 qcom,dump-size = <0xd8000>;
1519 };
1520
1521 LLCC_2: llcc_2_dcache {
1522 qcom,dump-size = <0xd8000>;
1523 };
1524 };
1525
Maulik Shah210773d2017-06-15 09:49:12 +05301526 cmd_db: qcom,cmd-db@c3f000c {
1527 compatible = "qcom,cmd-db";
1528 reg = <0xc3f000c 0x8>;
1529 };
1530
Maulik Shahc77d1d22017-06-15 14:04:50 +05301531 apps_rsc: mailbox@179e0000 {
1532 compatible = "qcom,tcs-drv";
1533 label = "apps_rsc";
1534 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1535 interrupts = <0 5 0>;
1536 #mbox-cells = <1>;
1537 qcom,drv-id = <2>;
1538 qcom,tcs-config = <ACTIVE_TCS 2>,
1539 <SLEEP_TCS 3>,
1540 <WAKE_TCS 3>,
1541 <CONTROL_TCS 1>;
1542 };
1543
Maulik Shahda3941f2017-06-15 09:41:38 +05301544 disp_rsc: mailbox@af20000 {
1545 compatible = "qcom,tcs-drv";
1546 label = "display_rsc";
1547 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1548 interrupts = <0 129 0>;
1549 #mbox-cells = <1>;
1550 qcom,drv-id = <0>;
1551 qcom,tcs-config = <SLEEP_TCS 1>,
1552 <WAKE_TCS 1>,
1553 <ACTIVE_TCS 0>,
1554 <CONTROL_TCS 1>;
1555 };
1556
Maulik Shah0dd203f2017-06-15 09:44:59 +05301557 system_pm {
1558 compatible = "qcom,system-pm";
1559 mboxes = <&apps_rsc 0>;
1560 };
1561
Imran Khan04f08312017-03-30 15:07:43 +05301562 dcc: dcc_v2@10a2000 {
1563 compatible = "qcom,dcc_v2";
1564 reg = <0x10a2000 0x1000>,
1565 <0x10ae000 0x2000>;
1566 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301567
1568 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301569 };
1570
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301571 spmi_bus: qcom,spmi@c440000 {
1572 compatible = "qcom,spmi-pmic-arb";
1573 reg = <0xc440000 0x1100>,
1574 <0xc600000 0x2000000>,
1575 <0xe600000 0x100000>,
1576 <0xe700000 0xa0000>,
1577 <0xc40a000 0x26000>;
1578 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1579 interrupt-names = "periph_irq";
1580 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1581 qcom,ee = <0>;
1582 qcom,channel = <0>;
1583 #address-cells = <2>;
1584 #size-cells = <0>;
1585 interrupt-controller;
1586 #interrupt-cells = <4>;
1587 cell-index = <0>;
1588 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301589
1590 ufsphy_mem: ufsphy_mem@1d87000 {
1591 reg = <0x1d87000 0xe00>; /* PHY regs */
1592 reg-names = "phy_mem";
1593 #phy-cells = <0>;
1594
1595 lanes-per-direction = <1>;
1596
1597 clock-names = "ref_clk_src",
1598 "ref_clk",
1599 "ref_aux_clk";
1600 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1601 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1602 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1603
1604 status = "disabled";
1605 };
1606
1607 ufshc_mem: ufshc@1d84000 {
1608 compatible = "qcom,ufshc";
1609 reg = <0x1d84000 0x3000>;
1610 interrupts = <0 265 0>;
1611 phys = <&ufsphy_mem>;
1612 phy-names = "ufsphy";
1613
1614 lanes-per-direction = <1>;
1615 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1616
1617 clock-names =
1618 "core_clk",
1619 "bus_aggr_clk",
1620 "iface_clk",
1621 "core_clk_unipro",
1622 "core_clk_ice",
1623 "ref_clk",
1624 "tx_lane0_sync_clk",
1625 "rx_lane0_sync_clk";
1626 clocks =
1627 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1628 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1629 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1630 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1631 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1632 <&clock_rpmh RPMH_CXO_CLK>,
1633 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1634 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1635 freq-table-hz =
1636 <50000000 200000000>,
1637 <0 0>,
1638 <0 0>,
1639 <37500000 150000000>,
1640 <75000000 300000000>,
1641 <0 0>,
1642 <0 0>,
1643 <0 0>;
1644
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301645 qcom,msm-bus,name = "ufshc_mem";
1646 qcom,msm-bus,num-cases = <12>;
1647 qcom,msm-bus,num-paths = <2>;
1648 qcom,msm-bus,vectors-KBps =
1649 /*
1650 * During HS G3 UFS runs at nominal voltage corner, vote
1651 * higher bandwidth to push other buses in the data path
1652 * to run at nominal to achieve max throughput.
1653 * 4GBps pushes BIMC to run at nominal.
1654 * 200MBps pushes CNOC to run at nominal.
1655 * Vote for half of this bandwidth for HS G3 1-lane.
1656 * For max bandwidth, vote high enough to push the buses
1657 * to run in turbo voltage corner.
1658 */
1659 <123 512 0 0>, <1 757 0 0>, /* No vote */
1660 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1661 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1662 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1663 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1664 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1665 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1666 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1667 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1668 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1669 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1670 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1671
1672 qcom,bus-vector-names = "MIN",
1673 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1674 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1675 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1676 "MAX";
1677
1678 /* PM QoS */
1679 qcom,pm-qos-cpu-groups = <0x3f 0xC0>;
1680 qcom,pm-qos-cpu-group-latency-us = <70 70>;
1681 qcom,pm-qos-default-cpu = <0>;
1682
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301683 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1684 reset-names = "core_reset";
1685
1686 status = "disabled";
1687 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301688
1689 qcom,lpass@62400000 {
1690 compatible = "qcom,pil-tz-generic";
1691 reg = <0x62400000 0x00100>;
1692 interrupts = <0 162 1>;
1693
1694 vdd_cx-supply = <&pm660l_l9_level>;
1695 qcom,proxy-reg-names = "vdd_cx";
1696 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1697
1698 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1699 clock-names = "xo";
1700 qcom,proxy-clock-names = "xo";
1701
1702 qcom,pas-id = <1>;
1703 qcom,proxy-timeout-ms = <10000>;
1704 qcom,smem-id = <423>;
1705 qcom,sysmon-id = <1>;
1706 qcom,ssctl-instance-id = <0x14>;
1707 qcom,firmware-name = "adsp";
1708 memory-region = <&pil_adsp_mem>;
1709
1710 /* GPIO inputs from lpass */
1711 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1712 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1713 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1714 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1715
1716 /* GPIO output to lpass */
1717 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
1718 status = "ok";
1719 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301720
Sahitya Tummala02e49182017-09-19 10:54:42 +05301721 qcom,rmtfs_sharedmem@0 {
1722 compatible = "qcom,sharedmem-uio";
1723 reg = <0x0 0x200000>;
1724 reg-names = "rmtfs";
1725 qcom,client-id = <0x00000001>;
1726 };
1727
Mohammed Javid736c25c2017-06-19 13:23:18 +05301728 qcom,rmnet-ipa {
1729 compatible = "qcom,rmnet-ipa3";
1730 qcom,rmnet-ipa-ssr;
1731 qcom,ipa-loaduC;
1732 qcom,ipa-advertise-sg-support;
1733 qcom,ipa-napi-enable;
1734 };
1735
1736 ipa_hw: qcom,ipa@01e00000 {
1737 compatible = "qcom,ipa";
1738 reg = <0x1e00000 0x34000>,
1739 <0x1e04000 0x2c000>;
1740 reg-names = "ipa-base", "gsi-base";
1741 interrupts =
1742 <0 311 0>,
1743 <0 432 0>;
1744 interrupt-names = "ipa-irq", "gsi-irq";
1745 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1746 qcom,ipa-hw-mode = <1>;
1747 qcom,ee = <0>;
1748 qcom,use-ipa-tethering-bridge;
1749 qcom,modem-cfg-emb-pipe-flt;
1750 qcom,ipa-wdi2;
1751 qcom,use-64-bit-dma-mask;
1752 qcom,arm-smmu;
1753 qcom,smmu-s1-bypass;
1754 qcom,bandwidth-vote-for-ipa;
1755 qcom,msm-bus,name = "ipa";
1756 qcom,msm-bus,num-cases = <4>;
1757 qcom,msm-bus,num-paths = <4>;
1758 qcom,msm-bus,vectors-KBps =
1759 /* No vote */
1760 <90 512 0 0>,
1761 <90 585 0 0>,
1762 <1 676 0 0>,
1763 <143 777 0 0>,
1764 /* SVS */
1765 <90 512 80000 640000>,
1766 <90 585 80000 640000>,
1767 <1 676 80000 80000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301768 <143 777 0 150>, /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301769 /* NOMINAL */
1770 <90 512 206000 960000>,
1771 <90 585 206000 960000>,
1772 <1 676 206000 160000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301773 <143 777 0 300>, /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301774 /* TURBO */
1775 <90 512 206000 3600000>,
1776 <90 585 206000 3600000>,
1777 <1 676 206000 300000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301778 <143 777 0 355>; /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301779 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1780
1781 /* IPA RAM mmap */
1782 qcom,ipa-ram-mmap = <
1783 0x280 /* ofst_start; */
1784 0x0 /* nat_ofst; */
1785 0x0 /* nat_size; */
1786 0x288 /* v4_flt_hash_ofst; */
1787 0x78 /* v4_flt_hash_size; */
1788 0x4000 /* v4_flt_hash_size_ddr; */
1789 0x308 /* v4_flt_nhash_ofst; */
1790 0x78 /* v4_flt_nhash_size; */
1791 0x4000 /* v4_flt_nhash_size_ddr; */
1792 0x388 /* v6_flt_hash_ofst; */
1793 0x78 /* v6_flt_hash_size; */
1794 0x4000 /* v6_flt_hash_size_ddr; */
1795 0x408 /* v6_flt_nhash_ofst; */
1796 0x78 /* v6_flt_nhash_size; */
1797 0x4000 /* v6_flt_nhash_size_ddr; */
1798 0xf /* v4_rt_num_index; */
1799 0x0 /* v4_modem_rt_index_lo; */
1800 0x7 /* v4_modem_rt_index_hi; */
1801 0x8 /* v4_apps_rt_index_lo; */
1802 0xe /* v4_apps_rt_index_hi; */
1803 0x488 /* v4_rt_hash_ofst; */
1804 0x78 /* v4_rt_hash_size; */
1805 0x4000 /* v4_rt_hash_size_ddr; */
1806 0x508 /* v4_rt_nhash_ofst; */
1807 0x78 /* v4_rt_nhash_size; */
1808 0x4000 /* v4_rt_nhash_size_ddr; */
1809 0xf /* v6_rt_num_index; */
1810 0x0 /* v6_modem_rt_index_lo; */
1811 0x7 /* v6_modem_rt_index_hi; */
1812 0x8 /* v6_apps_rt_index_lo; */
1813 0xe /* v6_apps_rt_index_hi; */
1814 0x588 /* v6_rt_hash_ofst; */
1815 0x78 /* v6_rt_hash_size; */
1816 0x4000 /* v6_rt_hash_size_ddr; */
1817 0x608 /* v6_rt_nhash_ofst; */
1818 0x78 /* v6_rt_nhash_size; */
1819 0x4000 /* v6_rt_nhash_size_ddr; */
1820 0x688 /* modem_hdr_ofst; */
1821 0x140 /* modem_hdr_size; */
1822 0x7c8 /* apps_hdr_ofst; */
1823 0x0 /* apps_hdr_size; */
1824 0x800 /* apps_hdr_size_ddr; */
1825 0x7d0 /* modem_hdr_proc_ctx_ofst; */
1826 0x200 /* modem_hdr_proc_ctx_size; */
1827 0x9d0 /* apps_hdr_proc_ctx_ofst; */
1828 0x200 /* apps_hdr_proc_ctx_size; */
1829 0x0 /* apps_hdr_proc_ctx_size_ddr; */
1830 0x0 /* modem_comp_decomp_ofst; diff */
1831 0x0 /* modem_comp_decomp_size; diff */
1832 0xbd8 /* modem_ofst; */
1833 0x1024 /* modem_size; */
1834 0x2000 /* apps_v4_flt_hash_ofst; */
1835 0x0 /* apps_v4_flt_hash_size; */
1836 0x2000 /* apps_v4_flt_nhash_ofst; */
1837 0x0 /* apps_v4_flt_nhash_size; */
1838 0x2000 /* apps_v6_flt_hash_ofst; */
1839 0x0 /* apps_v6_flt_hash_size; */
1840 0x2000 /* apps_v6_flt_nhash_ofst; */
1841 0x0 /* apps_v6_flt_nhash_size; */
1842 0x80 /* uc_info_ofst; */
1843 0x200 /* uc_info_size; */
1844 0x2000 /* end_ofst; */
1845 0x2000 /* apps_v4_rt_hash_ofst; */
1846 0x0 /* apps_v4_rt_hash_size; */
1847 0x2000 /* apps_v4_rt_nhash_ofst; */
1848 0x0 /* apps_v4_rt_nhash_size; */
1849 0x2000 /* apps_v6_rt_hash_ofst; */
1850 0x0 /* apps_v6_rt_hash_size; */
1851 0x2000 /* apps_v6_rt_nhash_ofst; */
1852 0x0 /* apps_v6_rt_nhash_size; */
1853 0x1c00 /* uc_event_ring_ofst; */
1854 0x400 /* uc_event_ring_size; */
1855 >;
1856
1857 /* smp2p gpio information */
1858 qcom,smp2pgpio_map_ipa_1_out {
1859 compatible = "qcom,smp2pgpio-map-ipa-1-out";
1860 gpios = <&smp2pgpio_ipa_1_out 0 0>;
1861 };
1862
1863 qcom,smp2pgpio_map_ipa_1_in {
1864 compatible = "qcom,smp2pgpio-map-ipa-1-in";
1865 gpios = <&smp2pgpio_ipa_1_in 0 0>;
1866 };
1867
1868 ipa_smmu_ap: ipa_smmu_ap {
1869 compatible = "qcom,ipa-smmu-ap-cb";
1870 iommus = <&apps_smmu 0x720 0x0>;
1871 qcom,iova-mapping = <0x20000000 0x40000000>;
1872 };
1873
1874 ipa_smmu_wlan: ipa_smmu_wlan {
1875 compatible = "qcom,ipa-smmu-wlan-cb";
1876 iommus = <&apps_smmu 0x721 0x0>;
1877 };
1878
1879 ipa_smmu_uc: ipa_smmu_uc {
1880 compatible = "qcom,ipa-smmu-uc-cb";
1881 iommus = <&apps_smmu 0x722 0x0>;
1882 qcom,iova-mapping = <0x40000000 0x20000000>;
1883 };
1884 };
1885
1886 qcom,ipa_fws {
1887 compatible = "qcom,pil-tz-generic";
1888 qcom,pas-id = <0xf>;
1889 qcom,firmware-name = "ipa_fws";
1890 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301891
1892 pil_modem: qcom,mss@4080000 {
1893 compatible = "qcom,pil-q6v55-mss";
1894 reg = <0x4080000 0x100>,
1895 <0x1f63000 0x008>,
1896 <0x1f65000 0x008>,
1897 <0x1f64000 0x008>,
1898 <0x4180000 0x020>,
1899 <0xc2b0000 0x004>,
1900 <0xb2e0100 0x004>,
1901 <0x4180044 0x004>;
1902 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
1903 "halt_nc", "rmb_base", "restart_reg",
1904 "pdc_sync", "alt_reset";
1905
1906 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1907 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
1908 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
1909 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
1910 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
1911 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
1912 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
1913 <&clock_gcc GCC_PRNG_AHB_CLK>;
1914 clock-names = "xo", "iface_clk", "bus_clk",
1915 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
1916 "mnoc_axi_clk", "prng_clk";
1917 qcom,proxy-clock-names = "xo", "prng_clk";
1918 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
1919 "gpll0_mss_clk", "snoc_axi_clk",
1920 "mnoc_axi_clk";
1921
1922 interrupts = <0 266 1>;
1923 vdd_cx-supply = <&pm660l_s3_level>;
1924 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
1925 vdd_mx-supply = <&pm660l_s1_level>;
1926 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
1927 qcom,firmware-name = "modem";
1928 qcom,pil-self-auth;
1929 qcom,sysmon-id = <0>;
1930 qcom,ssctl-instance-id = <0x12>;
1931 qcom,override-acc;
1932 qcom,qdsp6v65-1-0;
Kyle Yanf248e352017-09-14 11:15:58 -07001933 qcom,mss_pdc_offset = <8>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301934 status = "ok";
1935 memory-region = <&pil_modem_mem>;
1936 qcom,mem-protect-id = <0xF>;
1937
1938 /* GPIO inputs from mss */
1939 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
1940 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
1941 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
1942 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
1943 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
1944
1945 /* GPIO output to mss */
1946 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
1947 qcom,mba-mem@0 {
1948 compatible = "qcom,pil-mba-mem";
1949 memory-region = <&pil_mba_mem>;
1950 };
1951 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05301952
1953 qcom,venus@aae0000 {
1954 compatible = "qcom,pil-tz-generic";
1955 reg = <0xaae0000 0x4000>;
1956
1957 vdd-supply = <&venus_gdsc>;
1958 qcom,proxy-reg-names = "vdd";
1959
1960 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
1961 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
1962 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
1963 clock-names = "core_clk", "iface_clk", "bus_clk";
1964 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
1965
1966 qcom,pas-id = <9>;
1967 qcom,msm-bus,name = "pil-venus";
1968 qcom,msm-bus,num-cases = <2>;
1969 qcom,msm-bus,num-paths = <1>;
1970 qcom,msm-bus,vectors-KBps =
1971 <63 512 0 0>,
1972 <63 512 0 304000>;
1973 qcom,proxy-timeout-ms = <100>;
1974 qcom,firmware-name = "venus";
1975 memory-region = <&pil_video_mem>;
1976 status = "ok";
1977 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05301978
1979 qcom,turing@8300000 {
1980 compatible = "qcom,pil-tz-generic";
1981 reg = <0x8300000 0x100000>;
1982 interrupts = <0 578 1>;
1983
1984 vdd_cx-supply = <&pm660l_s3_level>;
1985 qcom,proxy-reg-names = "vdd_cx";
1986 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1987
1988 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1989 clock-names = "xo";
1990 qcom,proxy-clock-names = "xo";
1991
1992 qcom,pas-id = <18>;
1993 qcom,proxy-timeout-ms = <10000>;
1994 qcom,smem-id = <601>;
1995 qcom,sysmon-id = <7>;
1996 qcom,ssctl-instance-id = <0x17>;
1997 qcom,firmware-name = "cdsp";
1998 memory-region = <&pil_cdsp_mem>;
1999
2000 /* GPIO inputs from turing */
2001 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
2002 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
2003 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
2004 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
2005
2006 /* GPIO output to turing*/
2007 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
2008 status = "ok";
2009 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05302010
2011 sdhc_1: sdhci@7c4000 {
2012 compatible = "qcom,sdhci-msm-v5";
2013 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
2014 reg-names = "hc_mem", "cmdq_mem";
2015
2016 interrupts = <0 641 0>, <0 644 0>;
2017 interrupt-names = "hc_irq", "pwr_irq";
2018
2019 qcom,bus-width = <8>;
2020 qcom,large-address-bus;
2021
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302022 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
2023 192000000 384000000>;
2024 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
2025
2026 qcom,devfreq,freq-table = <50000000 200000000>;
2027
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302028 qcom,msm-bus,name = "sdhc1";
2029 qcom,msm-bus,num-cases = <9>;
2030 qcom,msm-bus,num-paths = <2>;
2031 qcom,msm-bus,vectors-KBps =
2032 /* No vote */
2033 <78 512 0 0>, <1 606 0 0>,
2034 /* 400 KB/s*/
2035 <78 512 1046 1600>,
2036 <1 606 1600 1600>,
2037 /* 20 MB/s */
2038 <78 512 52286 80000>,
2039 <1 606 80000 80000>,
2040 /* 25 MB/s */
2041 <78 512 65360 100000>,
2042 <1 606 100000 100000>,
2043 /* 50 MB/s */
2044 <78 512 130718 200000>,
2045 <1 606 133320 133320>,
2046 /* 100 MB/s */
2047 <78 512 130718 200000>,
2048 <1 606 150000 150000>,
2049 /* 200 MB/s */
2050 <78 512 261438 400000>,
2051 <1 606 300000 300000>,
2052 /* 400 MB/s */
2053 <78 512 261438 400000>,
2054 <1 606 300000 300000>,
2055 /* Max. bandwidth */
2056 <78 512 1338562 4096000>,
2057 <1 606 1338562 4096000>;
2058 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2059 100000000 200000000 400000000 4294967295>;
2060
2061 /* PM QoS */
2062 qcom,pm-qos-irq-type = "affine_irq";
2063 qcom,pm-qos-irq-latency = <70 70>;
2064 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2065 qcom,pm-qos-cmdq-latency-us = <70 70>, <70 70>;
2066 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2067
Vijay Viswanatheac72722017-06-05 11:01:38 +05302068 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302069 <&clock_gcc GCC_SDCC1_APPS_CLK>,
2070 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>;
2071 clock-names = "iface_clk", "core_clk", "ice_core_clk";
2072
2073 qcom,ice-clk-rates = <300000000 75000000>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302074
2075 qcom,nonremovable;
2076
2077 qcom,scaling-lower-bus-speed-mode = "DDR52";
2078 status = "disabled";
2079 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302080
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302081 sdhc_2: sdhci@8804000 {
2082 compatible = "qcom,sdhci-msm-v5";
2083 reg = <0x8804000 0x1000>;
2084 reg-names = "hc_mem";
2085
2086 interrupts = <0 204 0>, <0 222 0>;
2087 interrupt-names = "hc_irq", "pwr_irq";
2088
2089 qcom,bus-width = <4>;
2090 qcom,large-address-bus;
2091
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302092 qcom,clk-rates = <400000 20000000 25000000
2093 50000000 100000000 201500000>;
2094 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
2095 "SDR104";
2096
2097 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302098
2099 qcom,msm-bus,name = "sdhc2";
2100 qcom,msm-bus,num-cases = <8>;
2101 qcom,msm-bus,num-paths = <2>;
2102 qcom,msm-bus,vectors-KBps =
2103 /* No vote */
2104 <81 512 0 0>, <1 608 0 0>,
2105 /* 400 KB/s*/
2106 <81 512 1046 1600>,
2107 <1 608 1600 1600>,
2108 /* 20 MB/s */
2109 <81 512 52286 80000>,
2110 <1 608 80000 80000>,
2111 /* 25 MB/s */
2112 <81 512 65360 100000>,
2113 <1 608 100000 100000>,
2114 /* 50 MB/s */
2115 <81 512 130718 200000>,
2116 <1 608 133320 133320>,
2117 /* 100 MB/s */
2118 <81 512 261438 200000>,
2119 <1 608 150000 150000>,
2120 /* 200 MB/s */
2121 <81 512 261438 400000>,
2122 <1 608 300000 300000>,
2123 /* Max. bandwidth */
2124 <81 512 1338562 4096000>,
2125 <1 608 1338562 4096000>;
2126 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2127 100000000 200000000 4294967295>;
2128
2129 /* PM QoS */
2130 qcom,pm-qos-irq-type = "affine_irq";
2131 qcom,pm-qos-irq-latency = <70 70>;
2132 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2133 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2134
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302135 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
2136 <&clock_gcc GCC_SDCC2_APPS_CLK>;
2137 clock-names = "iface_clk", "core_clk";
2138
2139 status = "disabled";
2140 };
2141
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302142 qcom,msm-cdsp-loader {
2143 compatible = "qcom,cdsp-loader";
2144 qcom,proc-img-to-load = "cdsp";
2145 };
2146
2147 qcom,msm-adsprpc-mem {
2148 compatible = "qcom,msm-adsprpc-mem-region";
2149 memory-region = <&adsp_mem>;
2150 };
2151
2152 qcom,msm_fastrpc {
2153 compatible = "qcom,msm-fastrpc-compute";
2154
2155 qcom,msm_fastrpc_compute_cb1 {
2156 compatible = "qcom,msm-fastrpc-compute-cb";
2157 label = "cdsprpc-smd";
2158 iommus = <&apps_smmu 0x1421 0x30>;
2159 dma-coherent;
2160 };
2161 qcom,msm_fastrpc_compute_cb2 {
2162 compatible = "qcom,msm-fastrpc-compute-cb";
2163 label = "cdsprpc-smd";
2164 iommus = <&apps_smmu 0x1422 0x30>;
2165 dma-coherent;
2166 };
2167 qcom,msm_fastrpc_compute_cb3 {
2168 compatible = "qcom,msm-fastrpc-compute-cb";
2169 label = "cdsprpc-smd";
2170 iommus = <&apps_smmu 0x1423 0x30>;
2171 dma-coherent;
2172 };
2173 qcom,msm_fastrpc_compute_cb4 {
2174 compatible = "qcom,msm-fastrpc-compute-cb";
2175 label = "cdsprpc-smd";
2176 iommus = <&apps_smmu 0x1424 0x30>;
2177 dma-coherent;
2178 };
2179 qcom,msm_fastrpc_compute_cb5 {
2180 compatible = "qcom,msm-fastrpc-compute-cb";
2181 label = "cdsprpc-smd";
2182 iommus = <&apps_smmu 0x1425 0x30>;
2183 dma-coherent;
2184 };
2185 qcom,msm_fastrpc_compute_cb6 {
2186 compatible = "qcom,msm-fastrpc-compute-cb";
2187 label = "cdsprpc-smd";
2188 iommus = <&apps_smmu 0x1426 0x30>;
2189 dma-coherent;
2190 };
2191 qcom,msm_fastrpc_compute_cb7 {
2192 compatible = "qcom,msm-fastrpc-compute-cb";
2193 label = "cdsprpc-smd";
2194 qcom,secure-context-bank;
2195 iommus = <&apps_smmu 0x1429 0x30>;
2196 dma-coherent;
2197 };
2198 qcom,msm_fastrpc_compute_cb8 {
2199 compatible = "qcom,msm-fastrpc-compute-cb";
2200 label = "cdsprpc-smd";
2201 qcom,secure-context-bank;
2202 iommus = <&apps_smmu 0x142A 0x30>;
2203 dma-coherent;
2204 };
2205 qcom,msm_fastrpc_compute_cb9 {
2206 compatible = "qcom,msm-fastrpc-compute-cb";
2207 label = "adsprpc-smd";
2208 iommus = <&apps_smmu 0x1803 0x0>;
2209 dma-coherent;
2210 };
2211 qcom,msm_fastrpc_compute_cb10 {
2212 compatible = "qcom,msm-fastrpc-compute-cb";
2213 label = "adsprpc-smd";
2214 iommus = <&apps_smmu 0x1804 0x0>;
2215 dma-coherent;
2216 };
2217 qcom,msm_fastrpc_compute_cb11 {
2218 compatible = "qcom,msm-fastrpc-compute-cb";
2219 label = "adsprpc-smd";
2220 iommus = <&apps_smmu 0x1805 0x0>;
2221 dma-coherent;
2222 };
2223 };
Anurag Chouhan7563b532017-09-12 15:49:16 +05302224
2225 qcom,icnss@18800000 {
2226 status = "disabled";
2227 compatible = "qcom,icnss";
2228 reg = <0x18800000 0x800000>;
2229 interrupts = <0 414 0 /* CE0 */ >,
2230 <0 415 0 /* CE1 */ >,
2231 <0 416 0 /* CE2 */ >,
2232 <0 417 0 /* CE3 */ >,
2233 <0 418 0 /* CE4 */ >,
2234 <0 419 0 /* CE5 */ >,
2235 <0 420 0 /* CE6 */ >,
2236 <0 421 0 /* CE7 */ >,
2237 <0 422 0 /* CE8 */ >,
2238 <0 423 0 /* CE9 */ >,
2239 <0 424 0 /* CE10 */ >,
2240 <0 425 0 /* CE11 */ >;
2241 qcom,wlan-msa-memory = <0x100000>;
2242 qcom,smmu-s1-bypass;
2243 };
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302244
2245 cpubw: qcom,cpubw {
2246 compatible = "qcom,devbw";
2247 governor = "performance";
2248 qcom,src-dst-ports =
Santosh Mardidfc78812017-10-05 13:15:20 +05302249 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_EBI_CH0>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302250 qcom,active-only;
2251 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302252 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2253 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2254 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2255 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2256 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2257 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2258 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2259 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2260 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2261 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2262 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302263 };
2264
Santosh Mardidfc78812017-10-05 13:15:20 +05302265 bwmon: qcom,cpu-bwmon {
2266 compatible = "qcom,bimc-bwmon4";
2267 reg = <0x1436400 0x300>, <0x1436300 0x200>;
2268 reg-names = "base", "global_base";
2269 interrupts = <0 581 4>;
2270 qcom,mport = <0>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302271 qcom,hw-timer-hz = <19200000>;
Santosh Mardidfc78812017-10-05 13:15:20 +05302272 qcom,target-dev = <&cpubw>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302273 };
2274
2275 memlat_cpu0: qcom,memlat-cpu0 {
2276 compatible = "qcom,devbw";
2277 governor = "powersave";
2278 qcom,src-dst-ports = <1 512>;
2279 qcom,active-only;
2280 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302281 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2282 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2283 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2284 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2285 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2286 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2287 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2288 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2289 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2290 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2291 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302292 };
2293
2294 memlat_cpu4: qcom,memlat-cpu4 {
2295 compatible = "qcom,devbw";
2296 governor = "powersave";
2297 qcom,src-dst-ports = <1 512>;
2298 qcom,active-only;
2299 status = "ok";
2300 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302301 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2302 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2303 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2304 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2305 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2306 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2307 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2308 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2309 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2310 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2311 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302312 };
2313
2314 devfreq_memlat_0: qcom,cpu0-memlat-mon {
2315 compatible = "qcom,arm-memlat-mon";
2316 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3>;
2317 qcom,target-dev = <&memlat_cpu0>;
2318 qcom,cachemiss-ev = <0x24>;
2319 qcom,core-dev-table =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302320 < 748800 MHZ_TO_MBPS( 300, 4) >,
2321 < 998400 MHZ_TO_MBPS( 451, 4) >,
2322 < 1209600 MHZ_TO_MBPS( 547, 4) >,
2323 < 1497600 MHZ_TO_MBPS( 768, 4) >,
2324 < 1728000 MHZ_TO_MBPS(1017, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302325 };
2326
2327 devfreq_memlat_4: qcom,cpu4-memlat-mon {
2328 compatible = "qcom,arm-memlat-mon";
2329 qcom,cpulist = <&CPU4 &CPU5 &CPU6 &CPU7>;
2330 qcom,target-dev = <&memlat_cpu4>;
2331 qcom,cachemiss-ev = <0x24>;
2332 qcom,core-dev-table =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302333 < 787200 MHZ_TO_MBPS( 300, 4) >,
2334 < 1113600 MHZ_TO_MBPS( 547, 4) >,
2335 < 1344000 MHZ_TO_MBPS(1017, 4) >,
2336 < 1900800 MHZ_TO_MBPS(1555, 4) >,
2337 < 2438400 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302338 };
2339
2340 l3_cpu0: qcom,l3-cpu0 {
2341 compatible = "devfreq-simple-dev";
2342 clock-names = "devfreq_clk";
2343 clocks = <&clock_cpucc L3_CLUSTER0_VOTE_CLK>;
2344 governor = "performance";
2345 };
2346
2347 l3_cpu4: qcom,l3-cpu4 {
2348 compatible = "devfreq-simple-dev";
2349 clock-names = "devfreq_clk";
2350 clocks = <&clock_cpucc L3_CLUSTER1_VOTE_CLK>;
2351 governor = "performance";
2352 };
2353
2354 devfreq_l3lat_0: qcom,cpu0-l3lat-mon {
2355 compatible = "qcom,arm-memlat-mon";
2356 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3>;
2357 qcom,target-dev = <&l3_cpu0>;
2358 qcom,cachemiss-ev = <0x17>;
2359 qcom,core-dev-table =
2360 < 748800 566400000 >,
2361 < 998400 787200000 >,
2362 < 1209660 940800000 >,
2363 < 1497600 1190400000 >,
2364 < 1612800 1382400000 >,
2365 < 1728000 1440000000 >;
2366 };
2367
2368 devfreq_l3lat_4: qcom,cpu4-l3lat-mon {
2369 compatible = "qcom,arm-memlat-mon";
2370 qcom,cpulist = <&CPU4 &CPU5 &CPU6 &CPU7>;
2371 qcom,target-dev = <&l3_cpu4>;
2372 qcom,cachemiss-ev = <0x17>;
2373 qcom,core-dev-table =
2374 < 1113600 566400000 >,
2375 < 1344000 787200000 >,
2376 < 1728000 940800000 >,
2377 < 1900800 1190400000 >,
2378 < 2438400 1440000000 >;
2379 };
2380
2381 mincpubw: qcom,mincpubw {
2382 compatible = "qcom,devbw";
2383 governor = "powersave";
2384 qcom,src-dst-ports = <1 512>;
2385 qcom,active-only;
2386 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302387 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2388 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2389 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2390 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2391 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2392 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2393 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2394 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2395 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2396 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2397 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302398 };
2399
2400 devfreq-cpufreq {
2401 mincpubw-cpufreq {
2402 target-dev = <&mincpubw>;
2403 cpu-to-dev-map-0 =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302404 < 748800 MHZ_TO_MBPS( 300, 4) >,
2405 < 1209600 MHZ_TO_MBPS( 451, 4) >,
2406 < 1612000 MHZ_TO_MBPS( 547, 4) >,
2407 < 1728000 MHZ_TO_MBPS( 768, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302408 cpu-to-dev-map-4 =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302409 < 1113600 MHZ_TO_MBPS( 300, 4) >,
2410 < 1344000 MHZ_TO_MBPS( 547, 4) >,
2411 < 1728000 MHZ_TO_MBPS( 768, 4) >,
2412 < 1900800 MHZ_TO_MBPS(1017, 4) >,
2413 < 2438400 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302414 };
2415 };
Amit Nischal199f15d2017-09-12 10:58:51 +05302416
2417 gpu_gx_domain_addr: syscon@0x5091508 {
2418 compatible = "syscon";
2419 reg = <0x5091508 0x4>;
2420 };
2421
2422 gpu_gx_sw_reset: syscon@0x5091008 {
2423 compatible = "syscon";
2424 reg = <0x5091008 0x4>;
2425 };
Imran Khan04f08312017-03-30 15:07:43 +05302426};
2427
Ashay Jaiswal81940302017-09-20 15:17:58 +05302428#include "pm660.dtsi"
2429#include "pm660l.dtsi"
2430#include "sdm670-regulator.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +05302431#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302432#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302433#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302434#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302435
2436&usb30_prim_gdsc {
2437 status = "ok";
2438};
2439
2440&ufs_phy_gdsc {
2441 status = "ok";
2442};
2443
2444&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2445 status = "ok";
2446};
2447
2448&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2449 status = "ok";
2450};
2451
2452&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2453 status = "ok";
2454};
2455
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302456&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2457 status = "ok";
2458};
2459
2460&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2461 status = "ok";
2462};
2463
2464&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2465 status = "ok";
2466};
2467
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302468&bps_gdsc {
2469 status = "ok";
2470};
2471
2472&ife_0_gdsc {
2473 status = "ok";
2474};
2475
2476&ife_1_gdsc {
2477 status = "ok";
2478};
2479
2480&ipe_0_gdsc {
2481 status = "ok";
2482};
2483
2484&ipe_1_gdsc {
2485 status = "ok";
2486};
2487
2488&titan_top_gdsc {
2489 status = "ok";
2490};
2491
2492&mdss_core_gdsc {
2493 status = "ok";
2494};
2495
2496&gpu_cx_gdsc {
2497 status = "ok";
2498};
2499
2500&gpu_gx_gdsc {
2501 clock-names = "core_root_clk";
2502 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2503 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302504 parent-supply = <&pm660l_s2_level>;
Amit Nischal199f15d2017-09-12 10:58:51 +05302505 domain-addr = <&gpu_gx_domain_addr>;
2506 sw-reset = <&gpu_gx_sw_reset>;
2507 qcom,reset-aon-logic;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302508 status = "ok";
2509};
2510
2511&vcodec0_gdsc {
2512 qcom,support-hw-trigger;
2513 status = "ok";
2514};
2515
2516&vcodec1_gdsc {
2517 qcom,support-hw-trigger;
2518 status = "ok";
2519};
2520
2521&venus_gdsc {
2522 status = "ok";
2523};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302524
Sandeep Panda229db242017-10-03 11:32:29 +05302525&mdss_dsi0 {
2526 qcom,core-supply-entries {
2527 #address-cells = <1>;
2528 #size-cells = <0>;
2529
2530 qcom,core-supply-entry@0 {
2531 reg = <0>;
2532 qcom,supply-name = "refgen";
2533 qcom,supply-min-voltage = <0>;
2534 qcom,supply-max-voltage = <0>;
2535 qcom,supply-enable-load = <0>;
2536 qcom,supply-disable-load = <0>;
2537 };
2538 };
2539};
2540
2541&mdss_dsi1 {
2542 qcom,core-supply-entries {
2543 #address-cells = <1>;
2544 #size-cells = <0>;
2545
2546 qcom,core-supply-entry@0 {
2547 reg = <0>;
2548 qcom,supply-name = "refgen";
2549 qcom,supply-min-voltage = <0>;
2550 qcom,supply-max-voltage = <0>;
2551 qcom,supply-enable-load = <0>;
2552 qcom,supply-disable-load = <0>;
2553 };
2554 };
2555};
2556
Rohit Kumar14051282017-07-12 11:18:48 +05302557#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05302558#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05302559#include "sdm670-gpu.dtsi"
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +05302560#include "sdm670-thermal.dtsi"
Odelu Kukatlaf197e382017-07-04 19:47:35 +05302561#include "sdm670-bus.dtsi"
Tirupathi Reddyf805ac72017-10-12 14:22:17 +05302562
2563&pm660_div_clk {
2564 status = "ok";
2565};