blob: ccca632aa6c5caf4729ad138e3811234672fb7b7 [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>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +053056 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +053057 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +053058 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +053059 L2_0: l2-cache {
60 compatible = "arm,arch-cache";
61 cache-size = <0x20000>;
62 cache-level = <2>;
63 next-level-cache = <&L3_0>;
64 L3_0: l3-cache {
65 compatible = "arm,arch-cache";
66 cache-size = <0x100000>;
67 cache-level = <3>;
68 };
69 };
70 L1_I_0: l1-icache {
71 compatible = "arm,arch-cache";
72 qcom,dump-size = <0x9000>;
73 };
74 L1_D_0: l1-dcache {
75 compatible = "arm,arch-cache";
76 qcom,dump-size = <0x9000>;
77 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +053078 L1_TLB_0: l1-tlb {
79 qcom,dump-size = <0x3000>;
80 };
Imran Khan04f08312017-03-30 15:07:43 +053081 };
82
83 CPU1: cpu@100 {
84 device_type = "cpu";
85 compatible = "arm,armv8";
86 reg = <0x0 0x100>;
87 enable-method = "psci";
88 efficiency = <1024>;
89 cache-size = <0x8000>;
90 cpu-release-addr = <0x0 0x90000000>;
91 next-level-cache = <&L2_100>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +053092 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +053093 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +053094 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +053095 L2_100: l2-cache {
96 compatible = "arm,arch-cache";
97 cache-size = <0x20000>;
98 cache-level = <2>;
99 next-level-cache = <&L3_0>;
100 };
101 L1_I_100: l1-icache {
102 compatible = "arm,arch-cache";
103 qcom,dump-size = <0x9000>;
104 };
105 L1_D_100: l1-dcache {
106 compatible = "arm,arch-cache";
107 qcom,dump-size = <0x9000>;
108 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530109 L1_TLB_100: l1-tlb {
110 qcom,dump-size = <0x3000>;
111 };
Imran Khan04f08312017-03-30 15:07:43 +0530112 };
113
114 CPU2: cpu@200 {
115 device_type = "cpu";
116 compatible = "arm,armv8";
117 reg = <0x0 0x200>;
118 enable-method = "psci";
119 efficiency = <1024>;
120 cache-size = <0x8000>;
121 cpu-release-addr = <0x0 0x90000000>;
122 next-level-cache = <&L2_200>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530123 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530124 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530125 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530126 L2_200: l2-cache {
127 compatible = "arm,arch-cache";
128 cache-size = <0x20000>;
129 cache-level = <2>;
130 next-level-cache = <&L3_0>;
131 };
132 L1_I_200: l1-icache {
133 compatible = "arm,arch-cache";
134 qcom,dump-size = <0x9000>;
135 };
136 L1_D_200: l1-dcache {
137 compatible = "arm,arch-cache";
138 qcom,dump-size = <0x9000>;
139 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530140 L1_TLB_200: l1-tlb {
141 qcom,dump-size = <0x3000>;
142 };
Imran Khan04f08312017-03-30 15:07:43 +0530143 };
144
145 CPU3: cpu@300 {
146 device_type = "cpu";
147 compatible = "arm,armv8";
148 reg = <0x0 0x300>;
149 enable-method = "psci";
150 efficiency = <1024>;
151 cache-size = <0x8000>;
152 cpu-release-addr = <0x0 0x90000000>;
153 next-level-cache = <&L2_300>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530154 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530155 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530156 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530157 L2_300: l2-cache {
158 compatible = "arm,arch-cache";
159 cache-size = <0x20000>;
160 cache-level = <2>;
161 next-level-cache = <&L3_0>;
162 };
163 L1_I_300: l1-icache {
164 compatible = "arm,arch-cache";
165 qcom,dump-size = <0x9000>;
166 };
167 L1_D_300: l1-dcache {
168 compatible = "arm,arch-cache";
169 qcom,dump-size = <0x9000>;
170 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530171 L1_TLB_300: l1-tlb {
172 qcom,dump-size = <0x3000>;
173 };
Imran Khan04f08312017-03-30 15:07:43 +0530174 };
175
176 CPU4: cpu@400 {
177 device_type = "cpu";
178 compatible = "arm,armv8";
179 reg = <0x0 0x400>;
180 enable-method = "psci";
181 efficiency = <1024>;
182 cache-size = <0x8000>;
183 cpu-release-addr = <0x0 0x90000000>;
184 next-level-cache = <&L2_400>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530185 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530186 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530187 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530188 L2_400: l2-cache {
189 compatible = "arm,arch-cache";
190 cache-size = <0x20000>;
191 cache-level = <2>;
192 next-level-cache = <&L3_0>;
193 };
194 L1_I_400: l1-icache {
195 compatible = "arm,arch-cache";
196 qcom,dump-size = <0x9000>;
197 };
198 L1_D_400: l1-dcache {
199 compatible = "arm,arch-cache";
200 qcom,dump-size = <0x9000>;
201 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530202 L1_TLB_400: l1-tlb {
203 qcom,dump-size = <0x3000>;
204 };
Imran Khan04f08312017-03-30 15:07:43 +0530205 };
206
207 CPU5: cpu@500 {
208 device_type = "cpu";
209 compatible = "arm,armv8";
210 reg = <0x0 0x500>;
211 enable-method = "psci";
212 efficiency = <1024>;
213 cache-size = <0x8000>;
214 cpu-release-addr = <0x0 0x90000000>;
215 next-level-cache = <&L2_500>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530216 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530217 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530218 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530219 L2_500: l2-cache {
220 compatible = "arm,arch-cache";
221 cache-size = <0x20000>;
222 cache-level = <2>;
223 next-level-cache = <&L3_0>;
224 };
225 L1_I_500: l1-icache {
226 compatible = "arm,arch-cache";
227 qcom,dump-size = <0x9000>;
228 };
229 L1_D_500: l1-dcache {
230 compatible = "arm,arch-cache";
231 qcom,dump-size = <0x9000>;
232 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530233 L1_TLB_500: l1-tlb {
234 qcom,dump-size = <0x3000>;
235 };
Imran Khan04f08312017-03-30 15:07:43 +0530236 };
237
238 CPU6: cpu@600 {
239 device_type = "cpu";
240 compatible = "arm,armv8";
241 reg = <0x0 0x600>;
242 enable-method = "psci";
243 efficiency = <1740>;
244 cache-size = <0x10000>;
245 cpu-release-addr = <0x0 0x90000000>;
246 next-level-cache = <&L2_600>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530247 sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530248 qcom,lmh-dcvs = <&lmh_dcvs1>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530249 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530250 L2_600: l2-cache {
251 compatible = "arm,arch-cache";
252 cache-size = <0x40000>;
253 cache-level = <2>;
254 next-level-cache = <&L3_0>;
255 };
256 L1_I_600: l1-icache {
257 compatible = "arm,arch-cache";
258 qcom,dump-size = <0x12000>;
259 };
260 L1_D_600: l1-dcache {
261 compatible = "arm,arch-cache";
262 qcom,dump-size = <0x12000>;
263 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530264 L1_TLB_600: l1-tlb {
265 qcom,dump-size = <0x3c000>;
266 };
Imran Khan04f08312017-03-30 15:07:43 +0530267 };
268
269 CPU7: cpu@700 {
270 device_type = "cpu";
271 compatible = "arm,armv8";
272 reg = <0x0 0x700>;
273 enable-method = "psci";
274 efficiency = <1740>;
275 cache-size = <0x10000>;
276 cpu-release-addr = <0x0 0x90000000>;
277 next-level-cache = <&L2_700>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530278 sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530279 qcom,lmh-dcvs = <&lmh_dcvs1>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530280 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530281 L2_700: l2-cache {
282 compatible = "arm,arch-cache";
283 cache-size = <0x40000>;
284 cache-level = <2>;
285 next-level-cache = <&L3_0>;
286 };
287 L1_I_700: l1-icache {
288 compatible = "arm,arch-cache";
289 qcom,dump-size = <0x12000>;
290 };
291 L1_D_700: l1-dcache {
292 compatible = "arm,arch-cache";
293 qcom,dump-size = <0x12000>;
294 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530295 L1_TLB_700: l1-tlb {
296 qcom,dump-size = <0x3c000>;
297 };
Imran Khan04f08312017-03-30 15:07:43 +0530298 };
299
300 cpu-map {
301 cluster0 {
302 core0 {
303 cpu = <&CPU0>;
304 };
305
306 core1 {
307 cpu = <&CPU1>;
308 };
309
310 core2 {
311 cpu = <&CPU2>;
312 };
313
314 core3 {
315 cpu = <&CPU3>;
316 };
317
318 core4 {
319 cpu = <&CPU4>;
320 };
321
322 core5 {
323 cpu = <&CPU5>;
324 };
325 };
326 cluster1 {
327 core0 {
328 cpu = <&CPU6>;
329 };
330
331 core1 {
332 cpu = <&CPU7>;
333 };
334 };
335 };
336 };
337
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530338 energy_costs: energy-costs {
339 compatible = "sched-energy";
340
341 CPU_COST_0: core-cost0 {
342 busy-cost-data = <
343 300000 14
344 403200 18
345 480000 21
346 576000 25
347 652800 27
348 748800 31
349 825600 40
350 902400 43
351 979200 46
352 1056000 50
353 1132800 53
354 1228800 57
355 1324800 84
356 1420800 90
357 1516800 96
358 1612800 114
359 1689600 135
360 1766400 141
361 >;
362 idle-cost-data = <
363 12 10 8 6
364 >;
365 };
366 CPU_COST_1: core-cost1 {
367 busy-cost-data = <
368 300000 256
369 403200 271
370 480000 282
371 576000 296
372 652800 307
373 748800 321
374 825600 332
375 902400 369
376 979200 382
377 1056000 395
378 1132800 408
379 1209600 421
380 1286400 434
381 1363200 448
382 1459200 567
383 1536000 586
384 1612800 604
385 1689600 622
386 1766400 641
387 1843200 659
388 1920000 678
389 1996800 696
390 2092800 876
391 2169600 900
392 2246400 924
393 2323200 948
394 2400000 1170
395 >;
396 idle-cost-data = <
397 100 80 60 40
398 >;
399 };
400 CLUSTER_COST_0: cluster-cost0 {
401 busy-cost-data = <
402 300000 5
403 403200 7
404 480000 7
405 576000 7
406 652800 8
407 748800 8
408 825600 9
409 902400 9
410 979200 9
411 1056000 10
412 1132800 10
413 1228800 10
414 1324800 13
415 1420800 14
416 1516800 15
417 1612800 16
418 1689600 19
419 1766400 19
420 >;
421 idle-cost-data = <
422 4 3 2 1
423 >;
424 };
425 CLUSTER_COST_1: cluster-cost1 {
426 busy-cost-data = <
427 300000 25
428 403200 27
429 480000 28
430 576000 29
431 652800 30
432 748800 32
433 825600 33
434 902400 36
435 979200 38
436 1056000 39
437 1132800 40
438 1209600 42
439 1286400 43
440 1363200 44
441 1459200 56
442 1536000 58
443 1612800 60
444 1689600 62
445 1766400 64
446 1843200 65
447 1920000 67
448 1996800 69
449 2092800 87
450 2169600 90
451 2246400 92
452 2323200 94
453 2400000 117
454 >;
455 idle-cost-data = <
456 4 3 2 1
457 >;
458 };
459 };
460
Imran Khan04f08312017-03-30 15:07:43 +0530461 psci {
462 compatible = "arm,psci-1.0";
463 method = "smc";
464 };
465
466 soc: soc { };
467
Imran Khanb1066fa2017-08-01 17:20:22 +0530468 vendor: vendor {
469 #address-cells = <1>;
470 #size-cells = <1>;
471 ranges = <0 0 0 0xffffffff>;
472 compatible = "simple-bus";
473 };
474
Imran Khan5381c932017-08-02 11:27:07 +0530475 firmware: firmware {
476 android {
477 compatible = "android,firmware";
478
479 fstab {
480 compatible = "android,fstab";
481 vendor {
482 compatible = "android,vendor";
483 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
484 type = "ext4";
485 mnt_flags = "ro,barrier=1,discard";
486 fsmgr_flags = "wait,slotselect";
487 };
488 };
489 };
490 };
491
Imran Khan04f08312017-03-30 15:07:43 +0530492 reserved-memory {
493 #address-cells = <2>;
494 #size-cells = <2>;
495 ranges;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530496
497 removed_regions: removed_regions@85700000 {
498 compatible = "removed-dma-pool";
499 no-map;
500 reg = <0 0x85700000 0 0x3800000>;
501 };
502
503 pil_camera_mem: camera_region@8ab00000 {
504 compatible = "removed-dma-pool";
505 no-map;
506 reg = <0 0x8ab00000 0 0x500000>;
507 };
508
509 pil_modem_mem: modem_region@8b000000 {
510 compatible = "removed-dma-pool";
511 no-map;
512 reg = <0 0x8b000000 0 0x7e00000>;
513 };
514
515 pil_video_mem: pil_video_region@92e00000 {
516 compatible = "removed-dma-pool";
517 no-map;
518 reg = <0 0x92e00000 0 0x500000>;
519 };
520
521 pil_cdsp_mem: cdsp_regions@93300000 {
522 compatible = "removed-dma-pool";
523 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530524 reg = <0 0x93300000 0 0x800000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530525 };
526
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530527 pil_mba_mem: pil_mba_region@0x93b00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530528 compatible = "removed-dma-pool";
529 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530530 reg = <0 0x93b00000 0 0x200000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530531 };
532
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530533 pil_adsp_mem: pil_adsp_region@93d00000 {
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 0x93d00000 0 0x1e00000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530537 };
538
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530539 pil_ipa_fw_mem: pil_ipa_fw_region@95b00000 {
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 0x95b00000 0 0x10000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530543 };
544
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530545 pil_ipa_gsi_mem: pil_ipa_gsi_region@95b10000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530546 compatible = "removed-dma-pool";
547 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530548 reg = <0 0x95b10000 0 0x5000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530549 };
550
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530551 pil_gpu_mem: pil_gpu_region@95b15000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530552 compatible = "removed-dma-pool";
553 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530554 reg = <0 0x95b15000 0 0x1000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530555 };
556
557 adsp_mem: adsp_region {
558 compatible = "shared-dma-pool";
559 alloc-ranges = <0 0x00000000 0 0xffffffff>;
560 reusable;
561 alignment = <0 0x400000>;
562 size = <0 0xc00000>;
563 };
564
565 qseecom_mem: qseecom_region {
566 compatible = "shared-dma-pool";
567 alloc-ranges = <0 0x00000000 0 0xffffffff>;
568 reusable;
569 alignment = <0 0x400000>;
570 size = <0 0x1400000>;
571 };
572
573 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
574 compatible = "shared-dma-pool";
575 alloc-ranges = <0 0x00000000 0 0xffffffff>; /* 32-bit */
576 reusable;
577 alignment = <0 0x400000>;
578 size = <0 0x800000>;
579 };
580
581 secure_display_memory: secure_display_region {
582 compatible = "shared-dma-pool";
583 alloc-ranges = <0 0x00000000 0 0xffffffff>;
584 reusable;
585 alignment = <0 0x400000>;
586 size = <0 0x5c00000>;
587 };
588
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +0530589 dump_mem: mem_dump_region {
590 compatible = "shared-dma-pool";
591 reusable;
592 size = <0 0x2400000>;
593 };
594
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530595 /* global autoconfigured region for contiguous allocations */
596 linux,cma {
597 compatible = "shared-dma-pool";
598 alloc-ranges = <0 0x00000000 0 0xffffffff>;
599 reusable;
600 alignment = <0 0x400000>;
601 size = <0 0x2000000>;
602 linux,cma-default;
603 };
Imran Khan04f08312017-03-30 15:07:43 +0530604 };
605};
606
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530607#include "sdm670-ion.dtsi"
608
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530609#include "sdm670-smp2p.dtsi"
610
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530611#include "sdm670-qupv3.dtsi"
612
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530613#include "sdm670-coresight.dtsi"
Manikanta Kanamarlapudid4abc602017-08-28 19:23:41 +0530614
615#include "sdm670-vidc.dtsi"
616
Imran Khan04f08312017-03-30 15:07:43 +0530617&soc {
618 #address-cells = <1>;
619 #size-cells = <1>;
620 ranges = <0 0 0 0xffffffff>;
621 compatible = "simple-bus";
622
623 intc: interrupt-controller@17a00000 {
624 compatible = "arm,gic-v3";
625 #interrupt-cells = <3>;
626 interrupt-controller;
627 #redistributor-regions = <1>;
628 redistributor-stride = <0x0 0x20000>;
629 reg = <0x17a00000 0x10000>, /* GICD */
630 <0x17a60000 0x100000>; /* GICR * 8 */
631 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530632 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530633 };
634
635 timer {
636 compatible = "arm,armv8-timer";
637 interrupts = <1 1 0xf08>,
638 <1 2 0xf08>,
639 <1 3 0xf08>,
640 <1 0 0xf08>;
641 clock-frequency = <19200000>;
642 };
643
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530644 qcom,sps {
645 compatible = "qcom,msm_sps_4k";
646 qcom,pipe-attr-ee;
647 };
648
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +0530649 thermal_zones: thermal-zones {};
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530650
651 tsens0: tsens@c222000 {
652 compatible = "qcom,tsens24xx";
653 reg = <0xc222000 0x4>,
654 <0xc263000 0x1ff>;
655 reg-names = "tsens_srot_physical",
656 "tsens_tm_physical";
657 interrupts = <0 506 0>, <0 508 0>;
658 interrupt-names = "tsens-upper-lower", "tsens-critical";
659 #thermal-sensor-cells = <1>;
660 };
661
662 tsens1: tsens@c223000 {
663 compatible = "qcom,tsens24xx";
664 reg = <0xc223000 0x4>,
665 <0xc265000 0x1ff>;
666 reg-names = "tsens_srot_physical",
667 "tsens_tm_physical";
668 interrupts = <0 507 0>, <0 509 0>;
669 interrupt-names = "tsens-upper-lower", "tsens-critical";
670 #thermal-sensor-cells = <1>;
671 };
672
Imran Khan04f08312017-03-30 15:07:43 +0530673 timer@0x17c90000{
674 #address-cells = <1>;
675 #size-cells = <1>;
676 ranges;
677 compatible = "arm,armv7-timer-mem";
678 reg = <0x17c90000 0x1000>;
679 clock-frequency = <19200000>;
680
681 frame@0x17ca0000 {
682 frame-number = <0>;
683 interrupts = <0 7 0x4>,
684 <0 6 0x4>;
685 reg = <0x17ca0000 0x1000>,
686 <0x17cb0000 0x1000>;
687 };
688
689 frame@17cc0000 {
690 frame-number = <1>;
691 interrupts = <0 8 0x4>;
692 reg = <0x17cc0000 0x1000>;
693 status = "disabled";
694 };
695
696 frame@17cd0000 {
697 frame-number = <2>;
698 interrupts = <0 9 0x4>;
699 reg = <0x17cd0000 0x1000>;
700 status = "disabled";
701 };
702
703 frame@17ce0000 {
704 frame-number = <3>;
705 interrupts = <0 10 0x4>;
706 reg = <0x17ce0000 0x1000>;
707 status = "disabled";
708 };
709
710 frame@17cf0000 {
711 frame-number = <4>;
712 interrupts = <0 11 0x4>;
713 reg = <0x17cf0000 0x1000>;
714 status = "disabled";
715 };
716
717 frame@17d00000 {
718 frame-number = <5>;
719 interrupts = <0 12 0x4>;
720 reg = <0x17d00000 0x1000>;
721 status = "disabled";
722 };
723
724 frame@17d10000 {
725 frame-number = <6>;
726 interrupts = <0 13 0x4>;
727 reg = <0x17d10000 0x1000>;
728 status = "disabled";
729 };
730 };
731
732 restart@10ac000 {
733 compatible = "qcom,pshold";
734 reg = <0xC264000 0x4>,
735 <0x1fd3000 0x4>;
736 reg-names = "pshold-base", "tcsr-boot-misc-detect";
737 };
738
Maulik Shah6bf7d5d2017-07-27 09:48:42 +0530739 aop-msg-client {
740 compatible = "qcom,debugfs-qmp-client";
741 mboxes = <&qmp_aop 0>;
742 mbox-names = "aop";
743 };
744
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530745 clock_rpmh: qcom,rpmhclk {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530746 compatible = "qcom,rpmh-clk-sdm670";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530747 #clock-cells = <1>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530748 mboxes = <&apps_rsc 0>;
749 mbox-names = "apps";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530750 };
751
752 clock_gcc: qcom,gcc@100000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530753 compatible = "qcom,gcc-sdm670", "syscon";
754 reg = <0x100000 0x1f0000>;
755 reg-names = "cc_base";
756 vdd_cx-supply = <&pm660l_s3_level>;
757 vdd_cx_ao-supply = <&pm660l_s3_level_ao>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530758 #clock-cells = <1>;
759 #reset-cells = <1>;
760 };
761
762 clock_videocc: qcom,videocc@ab00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530763 compatible = "qcom,video_cc-sdm670", "syscon";
764 reg = <0xab00000 0x10000>;
765 reg-names = "cc_base";
766 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530767 #clock-cells = <1>;
768 #reset-cells = <1>;
769 };
770
771 clock_camcc: qcom,camcc@ad00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530772 compatible = "qcom,cam_cc-sdm670", "syscon";
773 reg = <0xad00000 0x10000>;
774 reg-names = "cc_base";
775 vdd_cx-supply = <&pm660l_s3_level>;
776 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530777 #clock-cells = <1>;
778 #reset-cells = <1>;
779 };
780
781 clock_dispcc: qcom,dispcc@af00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530782 compatible = "qcom,dispcc-sdm670", "syscon";
783 reg = <0xaf00000 0x10000>;
784 reg-names = "cc_base";
785 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530786 #clock-cells = <1>;
787 #reset-cells = <1>;
788 };
789
790 clock_gpucc: qcom,gpucc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530791 compatible = "qcom,gpucc-sdm670", "syscon";
792 reg = <0x5090000 0x9000>;
793 reg-names = "cc_base";
794 vdd_cx-supply = <&pm660l_s3_level>;
795 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530796 #clock-cells = <1>;
797 #reset-cells = <1>;
798 };
799
800 clock_gfx: qcom,gfxcc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530801 compatible = "qcom,gfxcc-sdm670";
802 reg = <0x5090000 0x9000>;
803 reg-names = "cc_base";
804 vdd_gfx-supply = <&pm660l_s2_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530805 #clock-cells = <1>;
806 #reset-cells = <1>;
807 };
808
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530809 cpucc_debug: syscon@17970018 {
810 compatible = "syscon";
811 reg = <0x17970018 0x4>;
812 };
813
814 clock_debug: qcom,cc-debug {
815 compatible = "qcom,debugcc-sdm845";
816 qcom,cc-count = <5>;
817 qcom,gcc = <&clock_gcc>;
818 qcom,videocc = <&clock_videocc>;
819 qcom,camcc = <&clock_camcc>;
820 qcom,dispcc = <&clock_dispcc>;
821 qcom,gpucc = <&clock_gpucc>;
822 qcom,cpucc = <&cpucc_debug>;
823 clock-names = "xo_clk_src";
824 clocks = <&clock_rpmh RPMH_CXO_CLK>;
825 #clock-cells = <1>;
826 };
827
Imran Khan04f08312017-03-30 15:07:43 +0530828 clock_cpucc: qcom,cpucc {
829 compatible = "qcom,dummycc";
830 clock-output-names = "cpucc_clocks";
831 #clock-cells = <1>;
832 #reset-cells = <1>;
833 };
834
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +0530835 clock_aop: qcom,aopclk {
836 compatible = "qcom,aop-qmp-clk-v2";
837 #clock-cells = <1>;
838 mboxes = <&qmp_aop 0>;
839 mbox-names = "qdss_clk";
840 };
841
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530842 slim_aud: slim@62dc0000 {
843 cell-index = <1>;
844 compatible = "qcom,slim-ngd";
845 reg = <0x62dc0000 0x2c000>,
846 <0x62d84000 0x2a000>;
847 reg-names = "slimbus_physical", "slimbus_bam_physical";
848 interrupts = <0 163 0>, <0 164 0>;
849 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
850 qcom,apps-ch-pipes = <0x780000>;
851 qcom,ea-pc = <0x290>;
852 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +0530853 qcom,iommu-s1-bypass;
854
855 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
856 compatible = "qcom,iommu-slim-ctrl-cb";
857 iommus = <&apps_smmu 0x1826 0x0>,
858 <&apps_smmu 0x182d 0x0>,
859 <&apps_smmu 0x182e 0x1>,
860 <&apps_smmu 0x1830 0x1>;
861 };
862
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530863 };
864
865 slim_qca: slim@62e40000 {
866 cell-index = <3>;
867 compatible = "qcom,slim-ngd";
868 reg = <0x62e40000 0x2c000>,
869 <0x62e04000 0x20000>;
870 reg-names = "slimbus_physical", "slimbus_bam_physical";
871 interrupts = <0 291 0>, <0 292 0>;
872 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
873 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +0530874 qcom,iommu-s1-bypass;
875
876 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
877 compatible = "qcom,iommu-slim-ctrl-cb";
878 iommus = <&apps_smmu 0x1833 0x0>;
879 };
880
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530881 };
882
Imran Khan04f08312017-03-30 15:07:43 +0530883 wdog: qcom,wdt@17980000{
884 compatible = "qcom,msm-watchdog";
885 reg = <0x17980000 0x1000>;
886 reg-names = "wdt-base";
887 interrupts = <0 3 0>, <0 4 0>;
888 qcom,bark-time = <11000>;
889 qcom,pet-time = <10000>;
890 qcom,ipi-ping;
891 qcom,wakeup-enable;
892 };
893
894 qcom,msm-rtb {
895 compatible = "qcom,msm-rtb";
896 qcom,rtb-size = <0x100000>;
897 };
898
899 qcom,msm-imem@146bf000 {
900 compatible = "qcom,msm-imem";
901 reg = <0x146bf000 0x1000>;
902 ranges = <0x0 0x146bf000 0x1000>;
903 #address-cells = <1>;
904 #size-cells = <1>;
905
906 mem_dump_table@10 {
907 compatible = "qcom,msm-imem-mem_dump_table";
908 reg = <0x10 8>;
909 };
910
911 restart_reason@65c {
912 compatible = "qcom,msm-imem-restart_reason";
913 reg = <0x65c 4>;
914 };
915
916 pil@94c {
917 compatible = "qcom,msm-imem-pil";
918 reg = <0x94c 200>;
919 };
920
921 kaslr_offset@6d0 {
922 compatible = "qcom,msm-imem-kaslr_offset";
923 reg = <0x6d0 12>;
924 };
Lingutla Chandrasekhar3c51f0b2017-09-12 14:21:21 +0530925
926 boot_stats@6b0 {
927 compatible = "qcom,msm-imem-boot_stats";
928 reg = <0x6b0 0x20>;
929 };
930
931 diag_dload@c8 {
932 compatible = "qcom,msm-imem-diag-dload";
933 reg = <0xc8 0xc8>;
934 };
Imran Khan04f08312017-03-30 15:07:43 +0530935 };
936
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +0530937 gpi_dma0: qcom,gpi-dma@0x800000 {
938 #dma-cells = <6>;
939 compatible = "qcom,gpi-dma";
940 reg = <0x800000 0x60000>;
941 reg-names = "gpi-top";
942 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
943 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
944 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
945 <0 256 0>;
946 qcom,max-num-gpii = <13>;
947 qcom,gpii-mask = <0xfa>;
948 qcom,ev-factor = <2>;
949 iommus = <&apps_smmu 0x0016 0x0>;
950 status = "ok";
951 };
952
953 gpi_dma1: qcom,gpi-dma@0xa00000 {
954 #dma-cells = <6>;
955 compatible = "qcom,gpi-dma";
956 reg = <0xa00000 0x60000>;
957 reg-names = "gpi-top";
958 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
959 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
960 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
961 <0 299 0>;
962 qcom,max-num-gpii = <13>;
963 qcom,gpii-mask = <0xfa>;
964 qcom,ev-factor = <2>;
965 iommus = <&apps_smmu 0x06d6 0x0>;
966 status = "ok";
967 };
968
Imran Khan04f08312017-03-30 15:07:43 +0530969 cpuss_dump {
970 compatible = "qcom,cpuss-dump";
971 qcom,l1_i_cache0 {
972 qcom,dump-node = <&L1_I_0>;
973 qcom,dump-id = <0x60>;
974 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530975 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +0530976 qcom,dump-node = <&L1_I_100>;
977 qcom,dump-id = <0x61>;
978 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530979 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +0530980 qcom,dump-node = <&L1_I_200>;
981 qcom,dump-id = <0x62>;
982 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530983 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +0530984 qcom,dump-node = <&L1_I_300>;
985 qcom,dump-id = <0x63>;
986 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530987 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +0530988 qcom,dump-node = <&L1_I_400>;
989 qcom,dump-id = <0x64>;
990 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530991 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +0530992 qcom,dump-node = <&L1_I_500>;
993 qcom,dump-id = <0x65>;
994 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530995 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +0530996 qcom,dump-node = <&L1_I_600>;
997 qcom,dump-id = <0x66>;
998 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530999 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301000 qcom,dump-node = <&L1_I_700>;
1001 qcom,dump-id = <0x67>;
1002 };
1003 qcom,l1_d_cache0 {
1004 qcom,dump-node = <&L1_D_0>;
1005 qcom,dump-id = <0x80>;
1006 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301007 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301008 qcom,dump-node = <&L1_D_100>;
1009 qcom,dump-id = <0x81>;
1010 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301011 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301012 qcom,dump-node = <&L1_D_200>;
1013 qcom,dump-id = <0x82>;
1014 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301015 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301016 qcom,dump-node = <&L1_D_300>;
1017 qcom,dump-id = <0x83>;
1018 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301019 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301020 qcom,dump-node = <&L1_D_400>;
1021 qcom,dump-id = <0x84>;
1022 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301023 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301024 qcom,dump-node = <&L1_D_500>;
1025 qcom,dump-id = <0x85>;
1026 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301027 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301028 qcom,dump-node = <&L1_D_600>;
1029 qcom,dump-id = <0x86>;
1030 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301031 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301032 qcom,dump-node = <&L1_D_700>;
1033 qcom,dump-id = <0x87>;
1034 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301035 qcom,llcc1_d_cache {
1036 qcom,dump-node = <&LLCC_1>;
1037 qcom,dump-id = <0x140>;
1038 };
1039 qcom,llcc2_d_cache {
1040 qcom,dump-node = <&LLCC_2>;
1041 qcom,dump-id = <0x141>;
1042 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301043 qcom,l1_tlb_dump0 {
1044 qcom,dump-node = <&L1_TLB_0>;
1045 qcom,dump-id = <0x20>;
1046 };
1047 qcom,l1_tlb_dump100 {
1048 qcom,dump-node = <&L1_TLB_100>;
1049 qcom,dump-id = <0x21>;
1050 };
1051 qcom,l1_tlb_dump200 {
1052 qcom,dump-node = <&L1_TLB_200>;
1053 qcom,dump-id = <0x22>;
1054 };
1055 qcom,l1_tlb_dump300 {
1056 qcom,dump-node = <&L1_TLB_300>;
1057 qcom,dump-id = <0x23>;
1058 };
1059 qcom,l1_tlb_dump400 {
1060 qcom,dump-node = <&L1_TLB_400>;
1061 qcom,dump-id = <0x24>;
1062 };
1063 qcom,l1_tlb_dump500 {
1064 qcom,dump-node = <&L1_TLB_500>;
1065 qcom,dump-id = <0x25>;
1066 };
1067 qcom,l1_tlb_dump600 {
1068 qcom,dump-node = <&L1_TLB_600>;
1069 qcom,dump-id = <0x26>;
1070 };
1071 qcom,l1_tlb_dump700 {
1072 qcom,dump-node = <&L1_TLB_700>;
1073 qcom,dump-id = <0x27>;
1074 };
Imran Khan04f08312017-03-30 15:07:43 +05301075 };
1076
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301077 mem_dump {
1078 compatible = "qcom,mem-dump";
1079 memory-region = <&dump_mem>;
1080
1081 rpmh_dump {
1082 qcom,dump-size = <0x2000000>;
1083 qcom,dump-id = <0xec>;
1084 };
1085
1086 rpm_sw_dump {
1087 qcom,dump-size = <0x28000>;
1088 qcom,dump-id = <0xea>;
1089 };
1090
1091 pmic_dump {
1092 qcom,dump-size = <0x10000>;
1093 qcom,dump-id = <0xe4>;
1094 };
1095
1096 tmc_etf_dump {
1097 qcom,dump-size = <0x10000>;
1098 qcom,dump-id = <0xf0>;
1099 };
1100
1101 tmc_etf_swao_dump {
1102 qcom,dump-size = <0x8400>;
1103 qcom,dump-id = <0xf1>;
1104 };
1105
1106 tmc_etr_reg_dump {
1107 qcom,dump-size = <0x1000>;
1108 qcom,dump-id = <0x100>;
1109 };
1110
1111 tmc_etf_reg_dump {
1112 qcom,dump-size = <0x1000>;
1113 qcom,dump-id = <0x101>;
1114 };
1115
1116 tmc_etf_swao_reg_dump {
1117 qcom,dump-size = <0x1000>;
1118 qcom,dump-id = <0x102>;
1119 };
1120
1121 misc_data_dump {
1122 qcom,dump-size = <0x1000>;
1123 qcom,dump-id = <0xe8>;
1124 };
1125
1126 power_regs_data_dump {
1127 qcom,dump-size = <0x100000>;
1128 qcom,dump-id = <0xed>;
1129 };
1130 };
1131
Imran Khan04f08312017-03-30 15:07:43 +05301132 kryo3xx-erp {
1133 compatible = "arm,arm64-kryo3xx-cpu-erp";
1134 interrupts = <1 6 4>,
1135 <1 7 4>,
1136 <0 34 4>,
1137 <0 35 4>;
1138
1139 interrupt-names = "l1-l2-faultirq",
1140 "l1-l2-errirq",
1141 "l3-scu-errirq",
1142 "l3-scu-faultirq";
1143 };
1144
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301145 qcom,ipc-spinlock@1f40000 {
1146 compatible = "qcom,ipc-spinlock-sfpb";
1147 reg = <0x1f40000 0x8000>;
1148 qcom,num-locks = <8>;
1149 };
1150
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301151 qcom,smem@86000000 {
1152 compatible = "qcom,smem";
1153 reg = <0x86000000 0x200000>,
1154 <0x17911008 0x4>,
1155 <0x778000 0x7000>,
1156 <0x1fd4000 0x8>;
1157 reg-names = "smem", "irq-reg-base", "aux-mem1",
1158 "smem_targ_info_reg";
1159 qcom,mpu-enabled;
1160 };
1161
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301162 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301163 compatible = "qcom,qmp-mbox";
1164 label = "aop";
1165 reg = <0xc300000 0x100000>,
1166 <0x1799000c 0x4>;
1167 reg-names = "msgram", "irq-reg-base";
1168 qcom,irq-mask = <0x1>;
1169 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301170 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301171 mbox-desc-offset = <0x0>;
1172 #mbox-cells = <1>;
1173 };
1174
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301175 qcom,glink-smem-native-xprt-modem@86000000 {
1176 compatible = "qcom,glink-smem-native-xprt";
1177 reg = <0x86000000 0x200000>,
1178 <0x1799000c 0x4>;
1179 reg-names = "smem", "irq-reg-base";
1180 qcom,irq-mask = <0x1000>;
1181 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1182 label = "mpss";
1183 };
1184
1185 qcom,glink-smem-native-xprt-adsp@86000000 {
1186 compatible = "qcom,glink-smem-native-xprt";
1187 reg = <0x86000000 0x200000>,
1188 <0x1799000c 0x4>;
1189 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301190 qcom,irq-mask = <0x1000000>;
1191 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301192 label = "lpass";
1193 qcom,qos-config = <&glink_qos_adsp>;
1194 qcom,ramp-time = <0xaf>;
1195 };
1196
1197 glink_qos_adsp: qcom,glink-qos-config-adsp {
1198 compatible = "qcom,glink-qos-config";
1199 qcom,flow-info = <0x3c 0x0>,
1200 <0x3c 0x0>,
1201 <0x3c 0x0>,
1202 <0x3c 0x0>;
1203 qcom,mtu-size = <0x800>;
1204 qcom,tput-stats-cycle = <0xa>;
1205 };
1206
1207 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1208 compatible = "qcom,glink-spi-xprt";
1209 label = "wdsp";
1210 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1211 qcom,qos-config = <&glink_qos_wdsp>;
1212 qcom,ramp-time = <0x10>,
1213 <0x20>,
1214 <0x30>,
1215 <0x40>;
1216 };
1217
1218 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1219 compatible = "qcom,glink-fifo-config";
1220 qcom,out-read-idx-reg = <0x12000>;
1221 qcom,out-write-idx-reg = <0x12004>;
1222 qcom,in-read-idx-reg = <0x1200C>;
1223 qcom,in-write-idx-reg = <0x12010>;
1224 };
1225
1226 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1227 compatible = "qcom,glink-qos-config";
1228 qcom,flow-info = <0x80 0x0>,
1229 <0x70 0x1>,
1230 <0x60 0x2>,
1231 <0x50 0x3>;
1232 qcom,mtu-size = <0x800>;
1233 qcom,tput-stats-cycle = <0xa>;
1234 };
1235
1236 qcom,glink-smem-native-xprt-cdsp@86000000 {
1237 compatible = "qcom,glink-smem-native-xprt";
1238 reg = <0x86000000 0x200000>,
1239 <0x1799000c 0x4>;
1240 reg-names = "smem", "irq-reg-base";
1241 qcom,irq-mask = <0x10>;
1242 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1243 label = "cdsp";
1244 };
1245
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301246 glink_mpss: qcom,glink-ssr-modem {
1247 compatible = "qcom,glink_ssr";
1248 label = "modem";
1249 qcom,edge = "mpss";
1250 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1251 qcom,xprt = "smem";
1252 };
1253
1254 glink_lpass: qcom,glink-ssr-adsp {
1255 compatible = "qcom,glink_ssr";
1256 label = "adsp";
1257 qcom,edge = "lpass";
1258 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1259 qcom,xprt = "smem";
1260 };
1261
1262 glink_cdsp: qcom,glink-ssr-cdsp {
1263 compatible = "qcom,glink_ssr";
1264 label = "cdsp";
1265 qcom,edge = "cdsp";
1266 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1267 qcom,xprt = "smem";
1268 };
1269
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301270 qcom,ipc_router {
1271 compatible = "qcom,ipc_router";
1272 qcom,node-id = <1>;
1273 };
1274
1275 qcom,ipc_router_modem_xprt {
1276 compatible = "qcom,ipc_router_glink_xprt";
1277 qcom,ch-name = "IPCRTR";
1278 qcom,xprt-remote = "mpss";
1279 qcom,glink-xprt = "smem";
1280 qcom,xprt-linkid = <1>;
1281 qcom,xprt-version = <1>;
1282 qcom,fragmented-data;
1283 };
1284
1285 qcom,ipc_router_q6_xprt {
1286 compatible = "qcom,ipc_router_glink_xprt";
1287 qcom,ch-name = "IPCRTR";
1288 qcom,xprt-remote = "lpass";
1289 qcom,glink-xprt = "smem";
1290 qcom,xprt-linkid = <1>;
1291 qcom,xprt-version = <1>;
1292 qcom,fragmented-data;
1293 };
1294
1295 qcom,ipc_router_cdsp_xprt {
1296 compatible = "qcom,ipc_router_glink_xprt";
1297 qcom,ch-name = "IPCRTR";
1298 qcom,xprt-remote = "cdsp";
1299 qcom,glink-xprt = "smem";
1300 qcom,xprt-linkid = <1>;
1301 qcom,xprt-version = <1>;
1302 qcom,fragmented-data;
1303 };
1304
Dhoat Harpal11d34482017-06-06 21:00:14 +05301305 qcom,glink_pkt {
1306 compatible = "qcom,glinkpkt";
1307
1308 qcom,glinkpkt-at-mdm0 {
1309 qcom,glinkpkt-transport = "smem";
1310 qcom,glinkpkt-edge = "mpss";
1311 qcom,glinkpkt-ch-name = "DS";
1312 qcom,glinkpkt-dev-name = "at_mdm0";
1313 };
1314
1315 qcom,glinkpkt-loopback_cntl {
1316 qcom,glinkpkt-transport = "lloop";
1317 qcom,glinkpkt-edge = "local";
1318 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1319 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1320 };
1321
1322 qcom,glinkpkt-loopback_data {
1323 qcom,glinkpkt-transport = "lloop";
1324 qcom,glinkpkt-edge = "local";
1325 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1326 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1327 };
1328
1329 qcom,glinkpkt-apr-apps2 {
1330 qcom,glinkpkt-transport = "smem";
1331 qcom,glinkpkt-edge = "adsp";
1332 qcom,glinkpkt-ch-name = "apr_apps2";
1333 qcom,glinkpkt-dev-name = "apr_apps2";
1334 };
1335
1336 qcom,glinkpkt-data40-cntl {
1337 qcom,glinkpkt-transport = "smem";
1338 qcom,glinkpkt-edge = "mpss";
1339 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1340 qcom,glinkpkt-dev-name = "smdcntl8";
1341 };
1342
1343 qcom,glinkpkt-data1 {
1344 qcom,glinkpkt-transport = "smem";
1345 qcom,glinkpkt-edge = "mpss";
1346 qcom,glinkpkt-ch-name = "DATA1";
1347 qcom,glinkpkt-dev-name = "smd7";
1348 };
1349
1350 qcom,glinkpkt-data4 {
1351 qcom,glinkpkt-transport = "smem";
1352 qcom,glinkpkt-edge = "mpss";
1353 qcom,glinkpkt-ch-name = "DATA4";
1354 qcom,glinkpkt-dev-name = "smd8";
1355 };
1356
1357 qcom,glinkpkt-data11 {
1358 qcom,glinkpkt-transport = "smem";
1359 qcom,glinkpkt-edge = "mpss";
1360 qcom,glinkpkt-ch-name = "DATA11";
1361 qcom,glinkpkt-dev-name = "smd11";
1362 };
1363 };
1364
Imran Khan04f08312017-03-30 15:07:43 +05301365 qcom,chd_sliver {
1366 compatible = "qcom,core-hang-detect";
1367 label = "silver";
1368 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1369 0x17e30058 0x17e40058 0x17e50058>;
1370 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1371 0x17e30060 0x17e40060 0x17e50060>;
1372 };
1373
1374 qcom,chd_gold {
1375 compatible = "qcom,core-hang-detect";
1376 label = "gold";
1377 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1378 qcom,config-arr = <0x17e60060 0x17e70060>;
1379 };
1380
1381 qcom,ghd {
1382 compatible = "qcom,gladiator-hang-detect-v2";
1383 qcom,threshold-arr = <0x1799041c 0x17990420>;
1384 qcom,config-reg = <0x17990434>;
1385 };
1386
1387 qcom,msm-gladiator-v3@17900000 {
1388 compatible = "qcom,msm-gladiator-v3";
1389 reg = <0x17900000 0xd080>;
1390 reg-names = "gladiator_base";
1391 interrupts = <0 17 0>;
1392 };
1393
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301394 qcom,llcc@1100000 {
1395 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1396 reg = <0x1100000 0x250000>;
1397 reg-names = "llcc_base";
1398 qcom,llcc-banks-off = <0x0 0x80000 >;
1399 qcom,llcc-broadcast-off = <0x200000>;
1400
1401 llcc: qcom,sdm670-llcc {
1402 compatible = "qcom,sdm670-llcc";
1403 #cache-cells = <1>;
1404 max-slices = <32>;
1405 qcom,dump-size = <0x80000>;
1406 };
1407
1408 qcom,llcc-erp {
1409 compatible = "qcom,llcc-erp";
1410 interrupt-names = "ecc_irq";
1411 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1412 };
1413
1414 qcom,llcc-amon {
1415 compatible = "qcom,llcc-amon";
1416 };
1417
1418 LLCC_1: llcc_1_dcache {
1419 qcom,dump-size = <0xd8000>;
1420 };
1421
1422 LLCC_2: llcc_2_dcache {
1423 qcom,dump-size = <0xd8000>;
1424 };
1425 };
1426
Maulik Shah210773d2017-06-15 09:49:12 +05301427 cmd_db: qcom,cmd-db@c3f000c {
1428 compatible = "qcom,cmd-db";
1429 reg = <0xc3f000c 0x8>;
1430 };
1431
Maulik Shahc77d1d22017-06-15 14:04:50 +05301432 apps_rsc: mailbox@179e0000 {
1433 compatible = "qcom,tcs-drv";
1434 label = "apps_rsc";
1435 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1436 interrupts = <0 5 0>;
1437 #mbox-cells = <1>;
1438 qcom,drv-id = <2>;
1439 qcom,tcs-config = <ACTIVE_TCS 2>,
1440 <SLEEP_TCS 3>,
1441 <WAKE_TCS 3>,
1442 <CONTROL_TCS 1>;
1443 };
1444
Maulik Shahda3941f2017-06-15 09:41:38 +05301445 disp_rsc: mailbox@af20000 {
1446 compatible = "qcom,tcs-drv";
1447 label = "display_rsc";
1448 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1449 interrupts = <0 129 0>;
1450 #mbox-cells = <1>;
1451 qcom,drv-id = <0>;
1452 qcom,tcs-config = <SLEEP_TCS 1>,
1453 <WAKE_TCS 1>,
1454 <ACTIVE_TCS 0>,
1455 <CONTROL_TCS 1>;
1456 };
1457
Maulik Shah0dd203f2017-06-15 09:44:59 +05301458 system_pm {
1459 compatible = "qcom,system-pm";
1460 mboxes = <&apps_rsc 0>;
1461 };
1462
Imran Khan04f08312017-03-30 15:07:43 +05301463 dcc: dcc_v2@10a2000 {
1464 compatible = "qcom,dcc_v2";
1465 reg = <0x10a2000 0x1000>,
1466 <0x10ae000 0x2000>;
1467 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301468
1469 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301470 };
1471
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301472 spmi_bus: qcom,spmi@c440000 {
1473 compatible = "qcom,spmi-pmic-arb";
1474 reg = <0xc440000 0x1100>,
1475 <0xc600000 0x2000000>,
1476 <0xe600000 0x100000>,
1477 <0xe700000 0xa0000>,
1478 <0xc40a000 0x26000>;
1479 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1480 interrupt-names = "periph_irq";
1481 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1482 qcom,ee = <0>;
1483 qcom,channel = <0>;
1484 #address-cells = <2>;
1485 #size-cells = <0>;
1486 interrupt-controller;
1487 #interrupt-cells = <4>;
1488 cell-index = <0>;
1489 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301490
1491 ufsphy_mem: ufsphy_mem@1d87000 {
1492 reg = <0x1d87000 0xe00>; /* PHY regs */
1493 reg-names = "phy_mem";
1494 #phy-cells = <0>;
1495
1496 lanes-per-direction = <1>;
1497
1498 clock-names = "ref_clk_src",
1499 "ref_clk",
1500 "ref_aux_clk";
1501 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1502 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1503 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1504
1505 status = "disabled";
1506 };
1507
1508 ufshc_mem: ufshc@1d84000 {
1509 compatible = "qcom,ufshc";
1510 reg = <0x1d84000 0x3000>;
1511 interrupts = <0 265 0>;
1512 phys = <&ufsphy_mem>;
1513 phy-names = "ufsphy";
1514
1515 lanes-per-direction = <1>;
1516 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1517
1518 clock-names =
1519 "core_clk",
1520 "bus_aggr_clk",
1521 "iface_clk",
1522 "core_clk_unipro",
1523 "core_clk_ice",
1524 "ref_clk",
1525 "tx_lane0_sync_clk",
1526 "rx_lane0_sync_clk";
1527 clocks =
1528 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1529 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1530 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1531 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1532 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1533 <&clock_rpmh RPMH_CXO_CLK>,
1534 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1535 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1536 freq-table-hz =
1537 <50000000 200000000>,
1538 <0 0>,
1539 <0 0>,
1540 <37500000 150000000>,
1541 <75000000 300000000>,
1542 <0 0>,
1543 <0 0>,
1544 <0 0>;
1545
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301546 qcom,msm-bus,name = "ufshc_mem";
1547 qcom,msm-bus,num-cases = <12>;
1548 qcom,msm-bus,num-paths = <2>;
1549 qcom,msm-bus,vectors-KBps =
1550 /*
1551 * During HS G3 UFS runs at nominal voltage corner, vote
1552 * higher bandwidth to push other buses in the data path
1553 * to run at nominal to achieve max throughput.
1554 * 4GBps pushes BIMC to run at nominal.
1555 * 200MBps pushes CNOC to run at nominal.
1556 * Vote for half of this bandwidth for HS G3 1-lane.
1557 * For max bandwidth, vote high enough to push the buses
1558 * to run in turbo voltage corner.
1559 */
1560 <123 512 0 0>, <1 757 0 0>, /* No vote */
1561 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1562 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1563 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1564 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1565 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1566 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1567 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1568 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1569 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1570 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1571 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1572
1573 qcom,bus-vector-names = "MIN",
1574 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1575 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1576 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1577 "MAX";
1578
1579 /* PM QoS */
1580 qcom,pm-qos-cpu-groups = <0x3f 0xC0>;
1581 qcom,pm-qos-cpu-group-latency-us = <70 70>;
1582 qcom,pm-qos-default-cpu = <0>;
1583
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301584 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1585 reset-names = "core_reset";
1586
1587 status = "disabled";
1588 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301589
1590 qcom,lpass@62400000 {
1591 compatible = "qcom,pil-tz-generic";
1592 reg = <0x62400000 0x00100>;
1593 interrupts = <0 162 1>;
1594
1595 vdd_cx-supply = <&pm660l_l9_level>;
1596 qcom,proxy-reg-names = "vdd_cx";
1597 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1598
1599 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1600 clock-names = "xo";
1601 qcom,proxy-clock-names = "xo";
1602
1603 qcom,pas-id = <1>;
1604 qcom,proxy-timeout-ms = <10000>;
1605 qcom,smem-id = <423>;
1606 qcom,sysmon-id = <1>;
1607 qcom,ssctl-instance-id = <0x14>;
1608 qcom,firmware-name = "adsp";
1609 memory-region = <&pil_adsp_mem>;
1610
1611 /* GPIO inputs from lpass */
1612 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1613 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1614 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1615 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1616
1617 /* GPIO output to lpass */
1618 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
1619 status = "ok";
1620 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301621
1622 qcom,rmnet-ipa {
1623 compatible = "qcom,rmnet-ipa3";
1624 qcom,rmnet-ipa-ssr;
1625 qcom,ipa-loaduC;
1626 qcom,ipa-advertise-sg-support;
1627 qcom,ipa-napi-enable;
1628 };
1629
1630 ipa_hw: qcom,ipa@01e00000 {
1631 compatible = "qcom,ipa";
1632 reg = <0x1e00000 0x34000>,
1633 <0x1e04000 0x2c000>;
1634 reg-names = "ipa-base", "gsi-base";
1635 interrupts =
1636 <0 311 0>,
1637 <0 432 0>;
1638 interrupt-names = "ipa-irq", "gsi-irq";
1639 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1640 qcom,ipa-hw-mode = <1>;
1641 qcom,ee = <0>;
1642 qcom,use-ipa-tethering-bridge;
1643 qcom,modem-cfg-emb-pipe-flt;
1644 qcom,ipa-wdi2;
1645 qcom,use-64-bit-dma-mask;
1646 qcom,arm-smmu;
1647 qcom,smmu-s1-bypass;
1648 qcom,bandwidth-vote-for-ipa;
1649 qcom,msm-bus,name = "ipa";
1650 qcom,msm-bus,num-cases = <4>;
1651 qcom,msm-bus,num-paths = <4>;
1652 qcom,msm-bus,vectors-KBps =
1653 /* No vote */
1654 <90 512 0 0>,
1655 <90 585 0 0>,
1656 <1 676 0 0>,
1657 <143 777 0 0>,
1658 /* SVS */
1659 <90 512 80000 640000>,
1660 <90 585 80000 640000>,
1661 <1 676 80000 80000>,
1662 <143 777 0 150000>,
1663 /* NOMINAL */
1664 <90 512 206000 960000>,
1665 <90 585 206000 960000>,
1666 <1 676 206000 160000>,
1667 <143 777 0 300000>,
1668 /* TURBO */
1669 <90 512 206000 3600000>,
1670 <90 585 206000 3600000>,
1671 <1 676 206000 300000>,
1672 <143 777 0 355333>;
1673 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1674
1675 /* IPA RAM mmap */
1676 qcom,ipa-ram-mmap = <
1677 0x280 /* ofst_start; */
1678 0x0 /* nat_ofst; */
1679 0x0 /* nat_size; */
1680 0x288 /* v4_flt_hash_ofst; */
1681 0x78 /* v4_flt_hash_size; */
1682 0x4000 /* v4_flt_hash_size_ddr; */
1683 0x308 /* v4_flt_nhash_ofst; */
1684 0x78 /* v4_flt_nhash_size; */
1685 0x4000 /* v4_flt_nhash_size_ddr; */
1686 0x388 /* v6_flt_hash_ofst; */
1687 0x78 /* v6_flt_hash_size; */
1688 0x4000 /* v6_flt_hash_size_ddr; */
1689 0x408 /* v6_flt_nhash_ofst; */
1690 0x78 /* v6_flt_nhash_size; */
1691 0x4000 /* v6_flt_nhash_size_ddr; */
1692 0xf /* v4_rt_num_index; */
1693 0x0 /* v4_modem_rt_index_lo; */
1694 0x7 /* v4_modem_rt_index_hi; */
1695 0x8 /* v4_apps_rt_index_lo; */
1696 0xe /* v4_apps_rt_index_hi; */
1697 0x488 /* v4_rt_hash_ofst; */
1698 0x78 /* v4_rt_hash_size; */
1699 0x4000 /* v4_rt_hash_size_ddr; */
1700 0x508 /* v4_rt_nhash_ofst; */
1701 0x78 /* v4_rt_nhash_size; */
1702 0x4000 /* v4_rt_nhash_size_ddr; */
1703 0xf /* v6_rt_num_index; */
1704 0x0 /* v6_modem_rt_index_lo; */
1705 0x7 /* v6_modem_rt_index_hi; */
1706 0x8 /* v6_apps_rt_index_lo; */
1707 0xe /* v6_apps_rt_index_hi; */
1708 0x588 /* v6_rt_hash_ofst; */
1709 0x78 /* v6_rt_hash_size; */
1710 0x4000 /* v6_rt_hash_size_ddr; */
1711 0x608 /* v6_rt_nhash_ofst; */
1712 0x78 /* v6_rt_nhash_size; */
1713 0x4000 /* v6_rt_nhash_size_ddr; */
1714 0x688 /* modem_hdr_ofst; */
1715 0x140 /* modem_hdr_size; */
1716 0x7c8 /* apps_hdr_ofst; */
1717 0x0 /* apps_hdr_size; */
1718 0x800 /* apps_hdr_size_ddr; */
1719 0x7d0 /* modem_hdr_proc_ctx_ofst; */
1720 0x200 /* modem_hdr_proc_ctx_size; */
1721 0x9d0 /* apps_hdr_proc_ctx_ofst; */
1722 0x200 /* apps_hdr_proc_ctx_size; */
1723 0x0 /* apps_hdr_proc_ctx_size_ddr; */
1724 0x0 /* modem_comp_decomp_ofst; diff */
1725 0x0 /* modem_comp_decomp_size; diff */
1726 0xbd8 /* modem_ofst; */
1727 0x1024 /* modem_size; */
1728 0x2000 /* apps_v4_flt_hash_ofst; */
1729 0x0 /* apps_v4_flt_hash_size; */
1730 0x2000 /* apps_v4_flt_nhash_ofst; */
1731 0x0 /* apps_v4_flt_nhash_size; */
1732 0x2000 /* apps_v6_flt_hash_ofst; */
1733 0x0 /* apps_v6_flt_hash_size; */
1734 0x2000 /* apps_v6_flt_nhash_ofst; */
1735 0x0 /* apps_v6_flt_nhash_size; */
1736 0x80 /* uc_info_ofst; */
1737 0x200 /* uc_info_size; */
1738 0x2000 /* end_ofst; */
1739 0x2000 /* apps_v4_rt_hash_ofst; */
1740 0x0 /* apps_v4_rt_hash_size; */
1741 0x2000 /* apps_v4_rt_nhash_ofst; */
1742 0x0 /* apps_v4_rt_nhash_size; */
1743 0x2000 /* apps_v6_rt_hash_ofst; */
1744 0x0 /* apps_v6_rt_hash_size; */
1745 0x2000 /* apps_v6_rt_nhash_ofst; */
1746 0x0 /* apps_v6_rt_nhash_size; */
1747 0x1c00 /* uc_event_ring_ofst; */
1748 0x400 /* uc_event_ring_size; */
1749 >;
1750
1751 /* smp2p gpio information */
1752 qcom,smp2pgpio_map_ipa_1_out {
1753 compatible = "qcom,smp2pgpio-map-ipa-1-out";
1754 gpios = <&smp2pgpio_ipa_1_out 0 0>;
1755 };
1756
1757 qcom,smp2pgpio_map_ipa_1_in {
1758 compatible = "qcom,smp2pgpio-map-ipa-1-in";
1759 gpios = <&smp2pgpio_ipa_1_in 0 0>;
1760 };
1761
1762 ipa_smmu_ap: ipa_smmu_ap {
1763 compatible = "qcom,ipa-smmu-ap-cb";
1764 iommus = <&apps_smmu 0x720 0x0>;
1765 qcom,iova-mapping = <0x20000000 0x40000000>;
1766 };
1767
1768 ipa_smmu_wlan: ipa_smmu_wlan {
1769 compatible = "qcom,ipa-smmu-wlan-cb";
1770 iommus = <&apps_smmu 0x721 0x0>;
1771 };
1772
1773 ipa_smmu_uc: ipa_smmu_uc {
1774 compatible = "qcom,ipa-smmu-uc-cb";
1775 iommus = <&apps_smmu 0x722 0x0>;
1776 qcom,iova-mapping = <0x40000000 0x20000000>;
1777 };
1778 };
1779
1780 qcom,ipa_fws {
1781 compatible = "qcom,pil-tz-generic";
1782 qcom,pas-id = <0xf>;
1783 qcom,firmware-name = "ipa_fws";
1784 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301785
1786 pil_modem: qcom,mss@4080000 {
1787 compatible = "qcom,pil-q6v55-mss";
1788 reg = <0x4080000 0x100>,
1789 <0x1f63000 0x008>,
1790 <0x1f65000 0x008>,
1791 <0x1f64000 0x008>,
1792 <0x4180000 0x020>,
1793 <0xc2b0000 0x004>,
1794 <0xb2e0100 0x004>,
1795 <0x4180044 0x004>;
1796 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
1797 "halt_nc", "rmb_base", "restart_reg",
1798 "pdc_sync", "alt_reset";
1799
1800 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1801 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
1802 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
1803 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
1804 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
1805 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
1806 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
1807 <&clock_gcc GCC_PRNG_AHB_CLK>;
1808 clock-names = "xo", "iface_clk", "bus_clk",
1809 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
1810 "mnoc_axi_clk", "prng_clk";
1811 qcom,proxy-clock-names = "xo", "prng_clk";
1812 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
1813 "gpll0_mss_clk", "snoc_axi_clk",
1814 "mnoc_axi_clk";
1815
1816 interrupts = <0 266 1>;
1817 vdd_cx-supply = <&pm660l_s3_level>;
1818 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
1819 vdd_mx-supply = <&pm660l_s1_level>;
1820 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
1821 qcom,firmware-name = "modem";
1822 qcom,pil-self-auth;
1823 qcom,sysmon-id = <0>;
1824 qcom,ssctl-instance-id = <0x12>;
1825 qcom,override-acc;
1826 qcom,qdsp6v65-1-0;
Kyle Yanf248e352017-09-14 11:15:58 -07001827 qcom,mss_pdc_offset = <8>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301828 status = "ok";
1829 memory-region = <&pil_modem_mem>;
1830 qcom,mem-protect-id = <0xF>;
1831
1832 /* GPIO inputs from mss */
1833 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
1834 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
1835 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
1836 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
1837 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
1838
1839 /* GPIO output to mss */
1840 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
1841 qcom,mba-mem@0 {
1842 compatible = "qcom,pil-mba-mem";
1843 memory-region = <&pil_mba_mem>;
1844 };
1845 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05301846
1847 qcom,venus@aae0000 {
1848 compatible = "qcom,pil-tz-generic";
1849 reg = <0xaae0000 0x4000>;
1850
1851 vdd-supply = <&venus_gdsc>;
1852 qcom,proxy-reg-names = "vdd";
1853
1854 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
1855 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
1856 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
1857 clock-names = "core_clk", "iface_clk", "bus_clk";
1858 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
1859
1860 qcom,pas-id = <9>;
1861 qcom,msm-bus,name = "pil-venus";
1862 qcom,msm-bus,num-cases = <2>;
1863 qcom,msm-bus,num-paths = <1>;
1864 qcom,msm-bus,vectors-KBps =
1865 <63 512 0 0>,
1866 <63 512 0 304000>;
1867 qcom,proxy-timeout-ms = <100>;
1868 qcom,firmware-name = "venus";
1869 memory-region = <&pil_video_mem>;
1870 status = "ok";
1871 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05301872
1873 qcom,turing@8300000 {
1874 compatible = "qcom,pil-tz-generic";
1875 reg = <0x8300000 0x100000>;
1876 interrupts = <0 578 1>;
1877
1878 vdd_cx-supply = <&pm660l_s3_level>;
1879 qcom,proxy-reg-names = "vdd_cx";
1880 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1881
1882 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1883 clock-names = "xo";
1884 qcom,proxy-clock-names = "xo";
1885
1886 qcom,pas-id = <18>;
1887 qcom,proxy-timeout-ms = <10000>;
1888 qcom,smem-id = <601>;
1889 qcom,sysmon-id = <7>;
1890 qcom,ssctl-instance-id = <0x17>;
1891 qcom,firmware-name = "cdsp";
1892 memory-region = <&pil_cdsp_mem>;
1893
1894 /* GPIO inputs from turing */
1895 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
1896 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
1897 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
1898 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
1899
1900 /* GPIO output to turing*/
1901 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
1902 status = "ok";
1903 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05301904
1905 sdhc_1: sdhci@7c4000 {
1906 compatible = "qcom,sdhci-msm-v5";
1907 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
1908 reg-names = "hc_mem", "cmdq_mem";
1909
1910 interrupts = <0 641 0>, <0 644 0>;
1911 interrupt-names = "hc_irq", "pwr_irq";
1912
1913 qcom,bus-width = <8>;
1914 qcom,large-address-bus;
1915
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05301916 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
1917 192000000 384000000>;
1918 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
1919
1920 qcom,devfreq,freq-table = <50000000 200000000>;
1921
Vijay Viswanatheac72722017-06-05 11:01:38 +05301922 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
1923 <&clock_gcc GCC_SDCC1_APPS_CLK>;
1924 clock-names = "iface_clk", "core_clk";
1925
1926 qcom,nonremovable;
1927
1928 qcom,scaling-lower-bus-speed-mode = "DDR52";
1929 status = "disabled";
1930 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05301931
Vijay Viswanathee4340d2017-08-28 09:50:18 +05301932 sdhc_2: sdhci@8804000 {
1933 compatible = "qcom,sdhci-msm-v5";
1934 reg = <0x8804000 0x1000>;
1935 reg-names = "hc_mem";
1936
1937 interrupts = <0 204 0>, <0 222 0>;
1938 interrupt-names = "hc_irq", "pwr_irq";
1939
1940 qcom,bus-width = <4>;
1941 qcom,large-address-bus;
1942
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05301943 qcom,clk-rates = <400000 20000000 25000000
1944 50000000 100000000 201500000>;
1945 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
1946 "SDR104";
1947
1948 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanathee4340d2017-08-28 09:50:18 +05301949 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
1950 <&clock_gcc GCC_SDCC2_APPS_CLK>;
1951 clock-names = "iface_clk", "core_clk";
1952
1953 status = "disabled";
1954 };
1955
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05301956 qcom,msm-cdsp-loader {
1957 compatible = "qcom,cdsp-loader";
1958 qcom,proc-img-to-load = "cdsp";
1959 };
1960
1961 qcom,msm-adsprpc-mem {
1962 compatible = "qcom,msm-adsprpc-mem-region";
1963 memory-region = <&adsp_mem>;
1964 };
1965
1966 qcom,msm_fastrpc {
1967 compatible = "qcom,msm-fastrpc-compute";
1968
1969 qcom,msm_fastrpc_compute_cb1 {
1970 compatible = "qcom,msm-fastrpc-compute-cb";
1971 label = "cdsprpc-smd";
1972 iommus = <&apps_smmu 0x1421 0x30>;
1973 dma-coherent;
1974 };
1975 qcom,msm_fastrpc_compute_cb2 {
1976 compatible = "qcom,msm-fastrpc-compute-cb";
1977 label = "cdsprpc-smd";
1978 iommus = <&apps_smmu 0x1422 0x30>;
1979 dma-coherent;
1980 };
1981 qcom,msm_fastrpc_compute_cb3 {
1982 compatible = "qcom,msm-fastrpc-compute-cb";
1983 label = "cdsprpc-smd";
1984 iommus = <&apps_smmu 0x1423 0x30>;
1985 dma-coherent;
1986 };
1987 qcom,msm_fastrpc_compute_cb4 {
1988 compatible = "qcom,msm-fastrpc-compute-cb";
1989 label = "cdsprpc-smd";
1990 iommus = <&apps_smmu 0x1424 0x30>;
1991 dma-coherent;
1992 };
1993 qcom,msm_fastrpc_compute_cb5 {
1994 compatible = "qcom,msm-fastrpc-compute-cb";
1995 label = "cdsprpc-smd";
1996 iommus = <&apps_smmu 0x1425 0x30>;
1997 dma-coherent;
1998 };
1999 qcom,msm_fastrpc_compute_cb6 {
2000 compatible = "qcom,msm-fastrpc-compute-cb";
2001 label = "cdsprpc-smd";
2002 iommus = <&apps_smmu 0x1426 0x30>;
2003 dma-coherent;
2004 };
2005 qcom,msm_fastrpc_compute_cb7 {
2006 compatible = "qcom,msm-fastrpc-compute-cb";
2007 label = "cdsprpc-smd";
2008 qcom,secure-context-bank;
2009 iommus = <&apps_smmu 0x1429 0x30>;
2010 dma-coherent;
2011 };
2012 qcom,msm_fastrpc_compute_cb8 {
2013 compatible = "qcom,msm-fastrpc-compute-cb";
2014 label = "cdsprpc-smd";
2015 qcom,secure-context-bank;
2016 iommus = <&apps_smmu 0x142A 0x30>;
2017 dma-coherent;
2018 };
2019 qcom,msm_fastrpc_compute_cb9 {
2020 compatible = "qcom,msm-fastrpc-compute-cb";
2021 label = "adsprpc-smd";
2022 iommus = <&apps_smmu 0x1803 0x0>;
2023 dma-coherent;
2024 };
2025 qcom,msm_fastrpc_compute_cb10 {
2026 compatible = "qcom,msm-fastrpc-compute-cb";
2027 label = "adsprpc-smd";
2028 iommus = <&apps_smmu 0x1804 0x0>;
2029 dma-coherent;
2030 };
2031 qcom,msm_fastrpc_compute_cb11 {
2032 compatible = "qcom,msm-fastrpc-compute-cb";
2033 label = "adsprpc-smd";
2034 iommus = <&apps_smmu 0x1805 0x0>;
2035 dma-coherent;
2036 };
2037 };
Anurag Chouhan7563b532017-09-12 15:49:16 +05302038
2039 qcom,icnss@18800000 {
2040 status = "disabled";
2041 compatible = "qcom,icnss";
2042 reg = <0x18800000 0x800000>;
2043 interrupts = <0 414 0 /* CE0 */ >,
2044 <0 415 0 /* CE1 */ >,
2045 <0 416 0 /* CE2 */ >,
2046 <0 417 0 /* CE3 */ >,
2047 <0 418 0 /* CE4 */ >,
2048 <0 419 0 /* CE5 */ >,
2049 <0 420 0 /* CE6 */ >,
2050 <0 421 0 /* CE7 */ >,
2051 <0 422 0 /* CE8 */ >,
2052 <0 423 0 /* CE9 */ >,
2053 <0 424 0 /* CE10 */ >,
2054 <0 425 0 /* CE11 */ >;
2055 qcom,wlan-msa-memory = <0x100000>;
2056 qcom,smmu-s1-bypass;
2057 };
Imran Khan04f08312017-03-30 15:07:43 +05302058};
2059
Ashay Jaiswal81940302017-09-20 15:17:58 +05302060#include "pm660.dtsi"
2061#include "pm660l.dtsi"
2062#include "sdm670-regulator.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +05302063#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302064#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302065#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302066#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302067
2068&usb30_prim_gdsc {
2069 status = "ok";
2070};
2071
2072&ufs_phy_gdsc {
2073 status = "ok";
2074};
2075
2076&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2077 status = "ok";
2078};
2079
2080&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2081 status = "ok";
2082};
2083
2084&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2085 status = "ok";
2086};
2087
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302088&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2089 status = "ok";
2090};
2091
2092&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2093 status = "ok";
2094};
2095
2096&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2097 status = "ok";
2098};
2099
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302100&bps_gdsc {
2101 status = "ok";
2102};
2103
2104&ife_0_gdsc {
2105 status = "ok";
2106};
2107
2108&ife_1_gdsc {
2109 status = "ok";
2110};
2111
2112&ipe_0_gdsc {
2113 status = "ok";
2114};
2115
2116&ipe_1_gdsc {
2117 status = "ok";
2118};
2119
2120&titan_top_gdsc {
2121 status = "ok";
2122};
2123
2124&mdss_core_gdsc {
2125 status = "ok";
2126};
2127
2128&gpu_cx_gdsc {
2129 status = "ok";
2130};
2131
2132&gpu_gx_gdsc {
2133 clock-names = "core_root_clk";
2134 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2135 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302136 parent-supply = <&pm660l_s2_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302137 status = "ok";
2138};
2139
2140&vcodec0_gdsc {
2141 qcom,support-hw-trigger;
2142 status = "ok";
2143};
2144
2145&vcodec1_gdsc {
2146 qcom,support-hw-trigger;
2147 status = "ok";
2148};
2149
2150&venus_gdsc {
2151 status = "ok";
2152};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302153
Rohit Kumar14051282017-07-12 11:18:48 +05302154#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05302155#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05302156#include "sdm670-gpu.dtsi"
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +05302157#include "sdm670-thermal.dtsi"