blob: b9b247f344cfda3c342e9f6a0576331a609e6069 [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
589 /* global autoconfigured region for contiguous allocations */
590 linux,cma {
591 compatible = "shared-dma-pool";
592 alloc-ranges = <0 0x00000000 0 0xffffffff>;
593 reusable;
594 alignment = <0 0x400000>;
595 size = <0 0x2000000>;
596 linux,cma-default;
597 };
Imran Khan04f08312017-03-30 15:07:43 +0530598 };
599};
600
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530601#include "sdm670-ion.dtsi"
602
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530603#include "sdm670-smp2p.dtsi"
604
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530605#include "sdm670-qupv3.dtsi"
606
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530607#include "sdm670-coresight.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +0530608&soc {
609 #address-cells = <1>;
610 #size-cells = <1>;
611 ranges = <0 0 0 0xffffffff>;
612 compatible = "simple-bus";
613
614 intc: interrupt-controller@17a00000 {
615 compatible = "arm,gic-v3";
616 #interrupt-cells = <3>;
617 interrupt-controller;
618 #redistributor-regions = <1>;
619 redistributor-stride = <0x0 0x20000>;
620 reg = <0x17a00000 0x10000>, /* GICD */
621 <0x17a60000 0x100000>; /* GICR * 8 */
622 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530623 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530624 };
625
626 timer {
627 compatible = "arm,armv8-timer";
628 interrupts = <1 1 0xf08>,
629 <1 2 0xf08>,
630 <1 3 0xf08>,
631 <1 0 0xf08>;
632 clock-frequency = <19200000>;
633 };
634
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530635 qcom,sps {
636 compatible = "qcom,msm_sps_4k";
637 qcom,pipe-attr-ee;
638 };
639
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +0530640 thermal_zones: thermal-zones {};
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530641
642 tsens0: tsens@c222000 {
643 compatible = "qcom,tsens24xx";
644 reg = <0xc222000 0x4>,
645 <0xc263000 0x1ff>;
646 reg-names = "tsens_srot_physical",
647 "tsens_tm_physical";
648 interrupts = <0 506 0>, <0 508 0>;
649 interrupt-names = "tsens-upper-lower", "tsens-critical";
650 #thermal-sensor-cells = <1>;
651 };
652
653 tsens1: tsens@c223000 {
654 compatible = "qcom,tsens24xx";
655 reg = <0xc223000 0x4>,
656 <0xc265000 0x1ff>;
657 reg-names = "tsens_srot_physical",
658 "tsens_tm_physical";
659 interrupts = <0 507 0>, <0 509 0>;
660 interrupt-names = "tsens-upper-lower", "tsens-critical";
661 #thermal-sensor-cells = <1>;
662 };
663
Imran Khan04f08312017-03-30 15:07:43 +0530664 timer@0x17c90000{
665 #address-cells = <1>;
666 #size-cells = <1>;
667 ranges;
668 compatible = "arm,armv7-timer-mem";
669 reg = <0x17c90000 0x1000>;
670 clock-frequency = <19200000>;
671
672 frame@0x17ca0000 {
673 frame-number = <0>;
674 interrupts = <0 7 0x4>,
675 <0 6 0x4>;
676 reg = <0x17ca0000 0x1000>,
677 <0x17cb0000 0x1000>;
678 };
679
680 frame@17cc0000 {
681 frame-number = <1>;
682 interrupts = <0 8 0x4>;
683 reg = <0x17cc0000 0x1000>;
684 status = "disabled";
685 };
686
687 frame@17cd0000 {
688 frame-number = <2>;
689 interrupts = <0 9 0x4>;
690 reg = <0x17cd0000 0x1000>;
691 status = "disabled";
692 };
693
694 frame@17ce0000 {
695 frame-number = <3>;
696 interrupts = <0 10 0x4>;
697 reg = <0x17ce0000 0x1000>;
698 status = "disabled";
699 };
700
701 frame@17cf0000 {
702 frame-number = <4>;
703 interrupts = <0 11 0x4>;
704 reg = <0x17cf0000 0x1000>;
705 status = "disabled";
706 };
707
708 frame@17d00000 {
709 frame-number = <5>;
710 interrupts = <0 12 0x4>;
711 reg = <0x17d00000 0x1000>;
712 status = "disabled";
713 };
714
715 frame@17d10000 {
716 frame-number = <6>;
717 interrupts = <0 13 0x4>;
718 reg = <0x17d10000 0x1000>;
719 status = "disabled";
720 };
721 };
722
723 restart@10ac000 {
724 compatible = "qcom,pshold";
725 reg = <0xC264000 0x4>,
726 <0x1fd3000 0x4>;
727 reg-names = "pshold-base", "tcsr-boot-misc-detect";
728 };
729
Maulik Shah6bf7d5d2017-07-27 09:48:42 +0530730 aop-msg-client {
731 compatible = "qcom,debugfs-qmp-client";
732 mboxes = <&qmp_aop 0>;
733 mbox-names = "aop";
734 };
735
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530736 clock_rpmh: qcom,rpmhclk {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530737 compatible = "qcom,rpmh-clk-sdm670";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530738 #clock-cells = <1>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530739 mboxes = <&apps_rsc 0>;
740 mbox-names = "apps";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530741 };
742
743 clock_gcc: qcom,gcc@100000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530744 compatible = "qcom,gcc-sdm670", "syscon";
745 reg = <0x100000 0x1f0000>;
746 reg-names = "cc_base";
747 vdd_cx-supply = <&pm660l_s3_level>;
748 vdd_cx_ao-supply = <&pm660l_s3_level_ao>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530749 #clock-cells = <1>;
750 #reset-cells = <1>;
751 };
752
753 clock_videocc: qcom,videocc@ab00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530754 compatible = "qcom,video_cc-sdm670", "syscon";
755 reg = <0xab00000 0x10000>;
756 reg-names = "cc_base";
757 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530758 #clock-cells = <1>;
759 #reset-cells = <1>;
760 };
761
762 clock_camcc: qcom,camcc@ad00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530763 compatible = "qcom,cam_cc-sdm670", "syscon";
764 reg = <0xad00000 0x10000>;
765 reg-names = "cc_base";
766 vdd_cx-supply = <&pm660l_s3_level>;
767 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530768 #clock-cells = <1>;
769 #reset-cells = <1>;
770 };
771
772 clock_dispcc: qcom,dispcc@af00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530773 compatible = "qcom,dispcc-sdm670", "syscon";
774 reg = <0xaf00000 0x10000>;
775 reg-names = "cc_base";
776 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530777 #clock-cells = <1>;
778 #reset-cells = <1>;
779 };
780
781 clock_gpucc: qcom,gpucc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530782 compatible = "qcom,gpucc-sdm670", "syscon";
783 reg = <0x5090000 0x9000>;
784 reg-names = "cc_base";
785 vdd_cx-supply = <&pm660l_s3_level>;
786 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530787 #clock-cells = <1>;
788 #reset-cells = <1>;
789 };
790
791 clock_gfx: qcom,gfxcc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530792 compatible = "qcom,gfxcc-sdm670";
793 reg = <0x5090000 0x9000>;
794 reg-names = "cc_base";
795 vdd_gfx-supply = <&pm660l_s2_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530796 #clock-cells = <1>;
797 #reset-cells = <1>;
798 };
799
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530800 cpucc_debug: syscon@17970018 {
801 compatible = "syscon";
802 reg = <0x17970018 0x4>;
803 };
804
805 clock_debug: qcom,cc-debug {
806 compatible = "qcom,debugcc-sdm845";
807 qcom,cc-count = <5>;
808 qcom,gcc = <&clock_gcc>;
809 qcom,videocc = <&clock_videocc>;
810 qcom,camcc = <&clock_camcc>;
811 qcom,dispcc = <&clock_dispcc>;
812 qcom,gpucc = <&clock_gpucc>;
813 qcom,cpucc = <&cpucc_debug>;
814 clock-names = "xo_clk_src";
815 clocks = <&clock_rpmh RPMH_CXO_CLK>;
816 #clock-cells = <1>;
817 };
818
Imran Khan04f08312017-03-30 15:07:43 +0530819 clock_cpucc: qcom,cpucc {
820 compatible = "qcom,dummycc";
821 clock-output-names = "cpucc_clocks";
822 #clock-cells = <1>;
823 #reset-cells = <1>;
824 };
825
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +0530826 clock_aop: qcom,aopclk {
827 compatible = "qcom,aop-qmp-clk-v2";
828 #clock-cells = <1>;
829 mboxes = <&qmp_aop 0>;
830 mbox-names = "qdss_clk";
831 };
832
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530833 slim_aud: slim@62dc0000 {
834 cell-index = <1>;
835 compatible = "qcom,slim-ngd";
836 reg = <0x62dc0000 0x2c000>,
837 <0x62d84000 0x2a000>;
838 reg-names = "slimbus_physical", "slimbus_bam_physical";
839 interrupts = <0 163 0>, <0 164 0>;
840 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
841 qcom,apps-ch-pipes = <0x780000>;
842 qcom,ea-pc = <0x290>;
843 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +0530844 qcom,iommu-s1-bypass;
845
846 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
847 compatible = "qcom,iommu-slim-ctrl-cb";
848 iommus = <&apps_smmu 0x1826 0x0>,
849 <&apps_smmu 0x182d 0x0>,
850 <&apps_smmu 0x182e 0x1>,
851 <&apps_smmu 0x1830 0x1>;
852 };
853
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530854 };
855
856 slim_qca: slim@62e40000 {
857 cell-index = <3>;
858 compatible = "qcom,slim-ngd";
859 reg = <0x62e40000 0x2c000>,
860 <0x62e04000 0x20000>;
861 reg-names = "slimbus_physical", "slimbus_bam_physical";
862 interrupts = <0 291 0>, <0 292 0>;
863 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
864 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +0530865 qcom,iommu-s1-bypass;
866
867 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
868 compatible = "qcom,iommu-slim-ctrl-cb";
869 iommus = <&apps_smmu 0x1833 0x0>;
870 };
871
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530872 };
873
Imran Khan04f08312017-03-30 15:07:43 +0530874 wdog: qcom,wdt@17980000{
875 compatible = "qcom,msm-watchdog";
876 reg = <0x17980000 0x1000>;
877 reg-names = "wdt-base";
878 interrupts = <0 3 0>, <0 4 0>;
879 qcom,bark-time = <11000>;
880 qcom,pet-time = <10000>;
881 qcom,ipi-ping;
882 qcom,wakeup-enable;
883 };
884
885 qcom,msm-rtb {
886 compatible = "qcom,msm-rtb";
887 qcom,rtb-size = <0x100000>;
888 };
889
890 qcom,msm-imem@146bf000 {
891 compatible = "qcom,msm-imem";
892 reg = <0x146bf000 0x1000>;
893 ranges = <0x0 0x146bf000 0x1000>;
894 #address-cells = <1>;
895 #size-cells = <1>;
896
897 mem_dump_table@10 {
898 compatible = "qcom,msm-imem-mem_dump_table";
899 reg = <0x10 8>;
900 };
901
902 restart_reason@65c {
903 compatible = "qcom,msm-imem-restart_reason";
904 reg = <0x65c 4>;
905 };
906
907 pil@94c {
908 compatible = "qcom,msm-imem-pil";
909 reg = <0x94c 200>;
910 };
911
912 kaslr_offset@6d0 {
913 compatible = "qcom,msm-imem-kaslr_offset";
914 reg = <0x6d0 12>;
915 };
Lingutla Chandrasekhar3c51f0b2017-09-12 14:21:21 +0530916
917 boot_stats@6b0 {
918 compatible = "qcom,msm-imem-boot_stats";
919 reg = <0x6b0 0x20>;
920 };
921
922 diag_dload@c8 {
923 compatible = "qcom,msm-imem-diag-dload";
924 reg = <0xc8 0xc8>;
925 };
Imran Khan04f08312017-03-30 15:07:43 +0530926 };
927
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +0530928 gpi_dma0: qcom,gpi-dma@0x800000 {
929 #dma-cells = <6>;
930 compatible = "qcom,gpi-dma";
931 reg = <0x800000 0x60000>;
932 reg-names = "gpi-top";
933 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
934 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
935 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
936 <0 256 0>;
937 qcom,max-num-gpii = <13>;
938 qcom,gpii-mask = <0xfa>;
939 qcom,ev-factor = <2>;
940 iommus = <&apps_smmu 0x0016 0x0>;
941 status = "ok";
942 };
943
944 gpi_dma1: qcom,gpi-dma@0xa00000 {
945 #dma-cells = <6>;
946 compatible = "qcom,gpi-dma";
947 reg = <0xa00000 0x60000>;
948 reg-names = "gpi-top";
949 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
950 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
951 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
952 <0 299 0>;
953 qcom,max-num-gpii = <13>;
954 qcom,gpii-mask = <0xfa>;
955 qcom,ev-factor = <2>;
956 iommus = <&apps_smmu 0x06d6 0x0>;
957 status = "ok";
958 };
959
Imran Khan04f08312017-03-30 15:07:43 +0530960 cpuss_dump {
961 compatible = "qcom,cpuss-dump";
962 qcom,l1_i_cache0 {
963 qcom,dump-node = <&L1_I_0>;
964 qcom,dump-id = <0x60>;
965 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530966 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +0530967 qcom,dump-node = <&L1_I_100>;
968 qcom,dump-id = <0x61>;
969 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530970 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +0530971 qcom,dump-node = <&L1_I_200>;
972 qcom,dump-id = <0x62>;
973 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530974 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +0530975 qcom,dump-node = <&L1_I_300>;
976 qcom,dump-id = <0x63>;
977 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530978 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +0530979 qcom,dump-node = <&L1_I_400>;
980 qcom,dump-id = <0x64>;
981 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530982 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +0530983 qcom,dump-node = <&L1_I_500>;
984 qcom,dump-id = <0x65>;
985 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530986 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +0530987 qcom,dump-node = <&L1_I_600>;
988 qcom,dump-id = <0x66>;
989 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530990 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +0530991 qcom,dump-node = <&L1_I_700>;
992 qcom,dump-id = <0x67>;
993 };
994 qcom,l1_d_cache0 {
995 qcom,dump-node = <&L1_D_0>;
996 qcom,dump-id = <0x80>;
997 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530998 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +0530999 qcom,dump-node = <&L1_D_100>;
1000 qcom,dump-id = <0x81>;
1001 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301002 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301003 qcom,dump-node = <&L1_D_200>;
1004 qcom,dump-id = <0x82>;
1005 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301006 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301007 qcom,dump-node = <&L1_D_300>;
1008 qcom,dump-id = <0x83>;
1009 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301010 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301011 qcom,dump-node = <&L1_D_400>;
1012 qcom,dump-id = <0x84>;
1013 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301014 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301015 qcom,dump-node = <&L1_D_500>;
1016 qcom,dump-id = <0x85>;
1017 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301018 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301019 qcom,dump-node = <&L1_D_600>;
1020 qcom,dump-id = <0x86>;
1021 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301022 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301023 qcom,dump-node = <&L1_D_700>;
1024 qcom,dump-id = <0x87>;
1025 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301026 qcom,llcc1_d_cache {
1027 qcom,dump-node = <&LLCC_1>;
1028 qcom,dump-id = <0x140>;
1029 };
1030 qcom,llcc2_d_cache {
1031 qcom,dump-node = <&LLCC_2>;
1032 qcom,dump-id = <0x141>;
1033 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301034 qcom,l1_tlb_dump0 {
1035 qcom,dump-node = <&L1_TLB_0>;
1036 qcom,dump-id = <0x20>;
1037 };
1038 qcom,l1_tlb_dump100 {
1039 qcom,dump-node = <&L1_TLB_100>;
1040 qcom,dump-id = <0x21>;
1041 };
1042 qcom,l1_tlb_dump200 {
1043 qcom,dump-node = <&L1_TLB_200>;
1044 qcom,dump-id = <0x22>;
1045 };
1046 qcom,l1_tlb_dump300 {
1047 qcom,dump-node = <&L1_TLB_300>;
1048 qcom,dump-id = <0x23>;
1049 };
1050 qcom,l1_tlb_dump400 {
1051 qcom,dump-node = <&L1_TLB_400>;
1052 qcom,dump-id = <0x24>;
1053 };
1054 qcom,l1_tlb_dump500 {
1055 qcom,dump-node = <&L1_TLB_500>;
1056 qcom,dump-id = <0x25>;
1057 };
1058 qcom,l1_tlb_dump600 {
1059 qcom,dump-node = <&L1_TLB_600>;
1060 qcom,dump-id = <0x26>;
1061 };
1062 qcom,l1_tlb_dump700 {
1063 qcom,dump-node = <&L1_TLB_700>;
1064 qcom,dump-id = <0x27>;
1065 };
Imran Khan04f08312017-03-30 15:07:43 +05301066 };
1067
1068 kryo3xx-erp {
1069 compatible = "arm,arm64-kryo3xx-cpu-erp";
1070 interrupts = <1 6 4>,
1071 <1 7 4>,
1072 <0 34 4>,
1073 <0 35 4>;
1074
1075 interrupt-names = "l1-l2-faultirq",
1076 "l1-l2-errirq",
1077 "l3-scu-errirq",
1078 "l3-scu-faultirq";
1079 };
1080
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301081 qcom,ipc-spinlock@1f40000 {
1082 compatible = "qcom,ipc-spinlock-sfpb";
1083 reg = <0x1f40000 0x8000>;
1084 qcom,num-locks = <8>;
1085 };
1086
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301087 qcom,smem@86000000 {
1088 compatible = "qcom,smem";
1089 reg = <0x86000000 0x200000>,
1090 <0x17911008 0x4>,
1091 <0x778000 0x7000>,
1092 <0x1fd4000 0x8>;
1093 reg-names = "smem", "irq-reg-base", "aux-mem1",
1094 "smem_targ_info_reg";
1095 qcom,mpu-enabled;
1096 };
1097
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301098 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301099 compatible = "qcom,qmp-mbox";
1100 label = "aop";
1101 reg = <0xc300000 0x100000>,
1102 <0x1799000c 0x4>;
1103 reg-names = "msgram", "irq-reg-base";
1104 qcom,irq-mask = <0x1>;
1105 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301106 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301107 mbox-desc-offset = <0x0>;
1108 #mbox-cells = <1>;
1109 };
1110
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301111 qcom,glink-smem-native-xprt-modem@86000000 {
1112 compatible = "qcom,glink-smem-native-xprt";
1113 reg = <0x86000000 0x200000>,
1114 <0x1799000c 0x4>;
1115 reg-names = "smem", "irq-reg-base";
1116 qcom,irq-mask = <0x1000>;
1117 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1118 label = "mpss";
1119 };
1120
1121 qcom,glink-smem-native-xprt-adsp@86000000 {
1122 compatible = "qcom,glink-smem-native-xprt";
1123 reg = <0x86000000 0x200000>,
1124 <0x1799000c 0x4>;
1125 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301126 qcom,irq-mask = <0x1000000>;
1127 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301128 label = "lpass";
1129 qcom,qos-config = <&glink_qos_adsp>;
1130 qcom,ramp-time = <0xaf>;
1131 };
1132
1133 glink_qos_adsp: qcom,glink-qos-config-adsp {
1134 compatible = "qcom,glink-qos-config";
1135 qcom,flow-info = <0x3c 0x0>,
1136 <0x3c 0x0>,
1137 <0x3c 0x0>,
1138 <0x3c 0x0>;
1139 qcom,mtu-size = <0x800>;
1140 qcom,tput-stats-cycle = <0xa>;
1141 };
1142
1143 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1144 compatible = "qcom,glink-spi-xprt";
1145 label = "wdsp";
1146 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1147 qcom,qos-config = <&glink_qos_wdsp>;
1148 qcom,ramp-time = <0x10>,
1149 <0x20>,
1150 <0x30>,
1151 <0x40>;
1152 };
1153
1154 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1155 compatible = "qcom,glink-fifo-config";
1156 qcom,out-read-idx-reg = <0x12000>;
1157 qcom,out-write-idx-reg = <0x12004>;
1158 qcom,in-read-idx-reg = <0x1200C>;
1159 qcom,in-write-idx-reg = <0x12010>;
1160 };
1161
1162 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1163 compatible = "qcom,glink-qos-config";
1164 qcom,flow-info = <0x80 0x0>,
1165 <0x70 0x1>,
1166 <0x60 0x2>,
1167 <0x50 0x3>;
1168 qcom,mtu-size = <0x800>;
1169 qcom,tput-stats-cycle = <0xa>;
1170 };
1171
1172 qcom,glink-smem-native-xprt-cdsp@86000000 {
1173 compatible = "qcom,glink-smem-native-xprt";
1174 reg = <0x86000000 0x200000>,
1175 <0x1799000c 0x4>;
1176 reg-names = "smem", "irq-reg-base";
1177 qcom,irq-mask = <0x10>;
1178 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1179 label = "cdsp";
1180 };
1181
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301182 glink_mpss: qcom,glink-ssr-modem {
1183 compatible = "qcom,glink_ssr";
1184 label = "modem";
1185 qcom,edge = "mpss";
1186 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1187 qcom,xprt = "smem";
1188 };
1189
1190 glink_lpass: qcom,glink-ssr-adsp {
1191 compatible = "qcom,glink_ssr";
1192 label = "adsp";
1193 qcom,edge = "lpass";
1194 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1195 qcom,xprt = "smem";
1196 };
1197
1198 glink_cdsp: qcom,glink-ssr-cdsp {
1199 compatible = "qcom,glink_ssr";
1200 label = "cdsp";
1201 qcom,edge = "cdsp";
1202 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1203 qcom,xprt = "smem";
1204 };
1205
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301206 qcom,ipc_router {
1207 compatible = "qcom,ipc_router";
1208 qcom,node-id = <1>;
1209 };
1210
1211 qcom,ipc_router_modem_xprt {
1212 compatible = "qcom,ipc_router_glink_xprt";
1213 qcom,ch-name = "IPCRTR";
1214 qcom,xprt-remote = "mpss";
1215 qcom,glink-xprt = "smem";
1216 qcom,xprt-linkid = <1>;
1217 qcom,xprt-version = <1>;
1218 qcom,fragmented-data;
1219 };
1220
1221 qcom,ipc_router_q6_xprt {
1222 compatible = "qcom,ipc_router_glink_xprt";
1223 qcom,ch-name = "IPCRTR";
1224 qcom,xprt-remote = "lpass";
1225 qcom,glink-xprt = "smem";
1226 qcom,xprt-linkid = <1>;
1227 qcom,xprt-version = <1>;
1228 qcom,fragmented-data;
1229 };
1230
1231 qcom,ipc_router_cdsp_xprt {
1232 compatible = "qcom,ipc_router_glink_xprt";
1233 qcom,ch-name = "IPCRTR";
1234 qcom,xprt-remote = "cdsp";
1235 qcom,glink-xprt = "smem";
1236 qcom,xprt-linkid = <1>;
1237 qcom,xprt-version = <1>;
1238 qcom,fragmented-data;
1239 };
1240
Dhoat Harpal11d34482017-06-06 21:00:14 +05301241 qcom,glink_pkt {
1242 compatible = "qcom,glinkpkt";
1243
1244 qcom,glinkpkt-at-mdm0 {
1245 qcom,glinkpkt-transport = "smem";
1246 qcom,glinkpkt-edge = "mpss";
1247 qcom,glinkpkt-ch-name = "DS";
1248 qcom,glinkpkt-dev-name = "at_mdm0";
1249 };
1250
1251 qcom,glinkpkt-loopback_cntl {
1252 qcom,glinkpkt-transport = "lloop";
1253 qcom,glinkpkt-edge = "local";
1254 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1255 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1256 };
1257
1258 qcom,glinkpkt-loopback_data {
1259 qcom,glinkpkt-transport = "lloop";
1260 qcom,glinkpkt-edge = "local";
1261 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1262 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1263 };
1264
1265 qcom,glinkpkt-apr-apps2 {
1266 qcom,glinkpkt-transport = "smem";
1267 qcom,glinkpkt-edge = "adsp";
1268 qcom,glinkpkt-ch-name = "apr_apps2";
1269 qcom,glinkpkt-dev-name = "apr_apps2";
1270 };
1271
1272 qcom,glinkpkt-data40-cntl {
1273 qcom,glinkpkt-transport = "smem";
1274 qcom,glinkpkt-edge = "mpss";
1275 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1276 qcom,glinkpkt-dev-name = "smdcntl8";
1277 };
1278
1279 qcom,glinkpkt-data1 {
1280 qcom,glinkpkt-transport = "smem";
1281 qcom,glinkpkt-edge = "mpss";
1282 qcom,glinkpkt-ch-name = "DATA1";
1283 qcom,glinkpkt-dev-name = "smd7";
1284 };
1285
1286 qcom,glinkpkt-data4 {
1287 qcom,glinkpkt-transport = "smem";
1288 qcom,glinkpkt-edge = "mpss";
1289 qcom,glinkpkt-ch-name = "DATA4";
1290 qcom,glinkpkt-dev-name = "smd8";
1291 };
1292
1293 qcom,glinkpkt-data11 {
1294 qcom,glinkpkt-transport = "smem";
1295 qcom,glinkpkt-edge = "mpss";
1296 qcom,glinkpkt-ch-name = "DATA11";
1297 qcom,glinkpkt-dev-name = "smd11";
1298 };
1299 };
1300
Imran Khan04f08312017-03-30 15:07:43 +05301301 qcom,chd_sliver {
1302 compatible = "qcom,core-hang-detect";
1303 label = "silver";
1304 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1305 0x17e30058 0x17e40058 0x17e50058>;
1306 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1307 0x17e30060 0x17e40060 0x17e50060>;
1308 };
1309
1310 qcom,chd_gold {
1311 compatible = "qcom,core-hang-detect";
1312 label = "gold";
1313 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1314 qcom,config-arr = <0x17e60060 0x17e70060>;
1315 };
1316
1317 qcom,ghd {
1318 compatible = "qcom,gladiator-hang-detect-v2";
1319 qcom,threshold-arr = <0x1799041c 0x17990420>;
1320 qcom,config-reg = <0x17990434>;
1321 };
1322
1323 qcom,msm-gladiator-v3@17900000 {
1324 compatible = "qcom,msm-gladiator-v3";
1325 reg = <0x17900000 0xd080>;
1326 reg-names = "gladiator_base";
1327 interrupts = <0 17 0>;
1328 };
1329
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301330 qcom,llcc@1100000 {
1331 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1332 reg = <0x1100000 0x250000>;
1333 reg-names = "llcc_base";
1334 qcom,llcc-banks-off = <0x0 0x80000 >;
1335 qcom,llcc-broadcast-off = <0x200000>;
1336
1337 llcc: qcom,sdm670-llcc {
1338 compatible = "qcom,sdm670-llcc";
1339 #cache-cells = <1>;
1340 max-slices = <32>;
1341 qcom,dump-size = <0x80000>;
1342 };
1343
1344 qcom,llcc-erp {
1345 compatible = "qcom,llcc-erp";
1346 interrupt-names = "ecc_irq";
1347 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1348 };
1349
1350 qcom,llcc-amon {
1351 compatible = "qcom,llcc-amon";
1352 };
1353
1354 LLCC_1: llcc_1_dcache {
1355 qcom,dump-size = <0xd8000>;
1356 };
1357
1358 LLCC_2: llcc_2_dcache {
1359 qcom,dump-size = <0xd8000>;
1360 };
1361 };
1362
Maulik Shah210773d2017-06-15 09:49:12 +05301363 cmd_db: qcom,cmd-db@c3f000c {
1364 compatible = "qcom,cmd-db";
1365 reg = <0xc3f000c 0x8>;
1366 };
1367
Maulik Shahc77d1d22017-06-15 14:04:50 +05301368 apps_rsc: mailbox@179e0000 {
1369 compatible = "qcom,tcs-drv";
1370 label = "apps_rsc";
1371 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1372 interrupts = <0 5 0>;
1373 #mbox-cells = <1>;
1374 qcom,drv-id = <2>;
1375 qcom,tcs-config = <ACTIVE_TCS 2>,
1376 <SLEEP_TCS 3>,
1377 <WAKE_TCS 3>,
1378 <CONTROL_TCS 1>;
1379 };
1380
Maulik Shahda3941f2017-06-15 09:41:38 +05301381 disp_rsc: mailbox@af20000 {
1382 compatible = "qcom,tcs-drv";
1383 label = "display_rsc";
1384 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1385 interrupts = <0 129 0>;
1386 #mbox-cells = <1>;
1387 qcom,drv-id = <0>;
1388 qcom,tcs-config = <SLEEP_TCS 1>,
1389 <WAKE_TCS 1>,
1390 <ACTIVE_TCS 0>,
1391 <CONTROL_TCS 1>;
1392 };
1393
Maulik Shah0dd203f2017-06-15 09:44:59 +05301394 system_pm {
1395 compatible = "qcom,system-pm";
1396 mboxes = <&apps_rsc 0>;
1397 };
1398
Imran Khan04f08312017-03-30 15:07:43 +05301399 dcc: dcc_v2@10a2000 {
1400 compatible = "qcom,dcc_v2";
1401 reg = <0x10a2000 0x1000>,
1402 <0x10ae000 0x2000>;
1403 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301404
1405 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301406 };
1407
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301408 spmi_bus: qcom,spmi@c440000 {
1409 compatible = "qcom,spmi-pmic-arb";
1410 reg = <0xc440000 0x1100>,
1411 <0xc600000 0x2000000>,
1412 <0xe600000 0x100000>,
1413 <0xe700000 0xa0000>,
1414 <0xc40a000 0x26000>;
1415 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1416 interrupt-names = "periph_irq";
1417 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1418 qcom,ee = <0>;
1419 qcom,channel = <0>;
1420 #address-cells = <2>;
1421 #size-cells = <0>;
1422 interrupt-controller;
1423 #interrupt-cells = <4>;
1424 cell-index = <0>;
1425 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301426
1427 ufsphy_mem: ufsphy_mem@1d87000 {
1428 reg = <0x1d87000 0xe00>; /* PHY regs */
1429 reg-names = "phy_mem";
1430 #phy-cells = <0>;
1431
1432 lanes-per-direction = <1>;
1433
1434 clock-names = "ref_clk_src",
1435 "ref_clk",
1436 "ref_aux_clk";
1437 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1438 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1439 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1440
1441 status = "disabled";
1442 };
1443
1444 ufshc_mem: ufshc@1d84000 {
1445 compatible = "qcom,ufshc";
1446 reg = <0x1d84000 0x3000>;
1447 interrupts = <0 265 0>;
1448 phys = <&ufsphy_mem>;
1449 phy-names = "ufsphy";
1450
1451 lanes-per-direction = <1>;
1452 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1453
1454 clock-names =
1455 "core_clk",
1456 "bus_aggr_clk",
1457 "iface_clk",
1458 "core_clk_unipro",
1459 "core_clk_ice",
1460 "ref_clk",
1461 "tx_lane0_sync_clk",
1462 "rx_lane0_sync_clk";
1463 clocks =
1464 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1465 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1466 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1467 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1468 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1469 <&clock_rpmh RPMH_CXO_CLK>,
1470 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1471 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1472 freq-table-hz =
1473 <50000000 200000000>,
1474 <0 0>,
1475 <0 0>,
1476 <37500000 150000000>,
1477 <75000000 300000000>,
1478 <0 0>,
1479 <0 0>,
1480 <0 0>;
1481
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301482 qcom,msm-bus,name = "ufshc_mem";
1483 qcom,msm-bus,num-cases = <12>;
1484 qcom,msm-bus,num-paths = <2>;
1485 qcom,msm-bus,vectors-KBps =
1486 /*
1487 * During HS G3 UFS runs at nominal voltage corner, vote
1488 * higher bandwidth to push other buses in the data path
1489 * to run at nominal to achieve max throughput.
1490 * 4GBps pushes BIMC to run at nominal.
1491 * 200MBps pushes CNOC to run at nominal.
1492 * Vote for half of this bandwidth for HS G3 1-lane.
1493 * For max bandwidth, vote high enough to push the buses
1494 * to run in turbo voltage corner.
1495 */
1496 <123 512 0 0>, <1 757 0 0>, /* No vote */
1497 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1498 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1499 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1500 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1501 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1502 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1503 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1504 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1505 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1506 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1507 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1508
1509 qcom,bus-vector-names = "MIN",
1510 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1511 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1512 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1513 "MAX";
1514
1515 /* PM QoS */
1516 qcom,pm-qos-cpu-groups = <0x3f 0xC0>;
1517 qcom,pm-qos-cpu-group-latency-us = <70 70>;
1518 qcom,pm-qos-default-cpu = <0>;
1519
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301520 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1521 reset-names = "core_reset";
1522
1523 status = "disabled";
1524 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301525
1526 qcom,lpass@62400000 {
1527 compatible = "qcom,pil-tz-generic";
1528 reg = <0x62400000 0x00100>;
1529 interrupts = <0 162 1>;
1530
1531 vdd_cx-supply = <&pm660l_l9_level>;
1532 qcom,proxy-reg-names = "vdd_cx";
1533 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1534
1535 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1536 clock-names = "xo";
1537 qcom,proxy-clock-names = "xo";
1538
1539 qcom,pas-id = <1>;
1540 qcom,proxy-timeout-ms = <10000>;
1541 qcom,smem-id = <423>;
1542 qcom,sysmon-id = <1>;
1543 qcom,ssctl-instance-id = <0x14>;
1544 qcom,firmware-name = "adsp";
1545 memory-region = <&pil_adsp_mem>;
1546
1547 /* GPIO inputs from lpass */
1548 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1549 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1550 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1551 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1552
1553 /* GPIO output to lpass */
1554 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
1555 status = "ok";
1556 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301557
1558 qcom,rmnet-ipa {
1559 compatible = "qcom,rmnet-ipa3";
1560 qcom,rmnet-ipa-ssr;
1561 qcom,ipa-loaduC;
1562 qcom,ipa-advertise-sg-support;
1563 qcom,ipa-napi-enable;
1564 };
1565
1566 ipa_hw: qcom,ipa@01e00000 {
1567 compatible = "qcom,ipa";
1568 reg = <0x1e00000 0x34000>,
1569 <0x1e04000 0x2c000>;
1570 reg-names = "ipa-base", "gsi-base";
1571 interrupts =
1572 <0 311 0>,
1573 <0 432 0>;
1574 interrupt-names = "ipa-irq", "gsi-irq";
1575 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1576 qcom,ipa-hw-mode = <1>;
1577 qcom,ee = <0>;
1578 qcom,use-ipa-tethering-bridge;
1579 qcom,modem-cfg-emb-pipe-flt;
1580 qcom,ipa-wdi2;
1581 qcom,use-64-bit-dma-mask;
1582 qcom,arm-smmu;
1583 qcom,smmu-s1-bypass;
1584 qcom,bandwidth-vote-for-ipa;
1585 qcom,msm-bus,name = "ipa";
1586 qcom,msm-bus,num-cases = <4>;
1587 qcom,msm-bus,num-paths = <4>;
1588 qcom,msm-bus,vectors-KBps =
1589 /* No vote */
1590 <90 512 0 0>,
1591 <90 585 0 0>,
1592 <1 676 0 0>,
1593 <143 777 0 0>,
1594 /* SVS */
1595 <90 512 80000 640000>,
1596 <90 585 80000 640000>,
1597 <1 676 80000 80000>,
1598 <143 777 0 150000>,
1599 /* NOMINAL */
1600 <90 512 206000 960000>,
1601 <90 585 206000 960000>,
1602 <1 676 206000 160000>,
1603 <143 777 0 300000>,
1604 /* TURBO */
1605 <90 512 206000 3600000>,
1606 <90 585 206000 3600000>,
1607 <1 676 206000 300000>,
1608 <143 777 0 355333>;
1609 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1610
1611 /* IPA RAM mmap */
1612 qcom,ipa-ram-mmap = <
1613 0x280 /* ofst_start; */
1614 0x0 /* nat_ofst; */
1615 0x0 /* nat_size; */
1616 0x288 /* v4_flt_hash_ofst; */
1617 0x78 /* v4_flt_hash_size; */
1618 0x4000 /* v4_flt_hash_size_ddr; */
1619 0x308 /* v4_flt_nhash_ofst; */
1620 0x78 /* v4_flt_nhash_size; */
1621 0x4000 /* v4_flt_nhash_size_ddr; */
1622 0x388 /* v6_flt_hash_ofst; */
1623 0x78 /* v6_flt_hash_size; */
1624 0x4000 /* v6_flt_hash_size_ddr; */
1625 0x408 /* v6_flt_nhash_ofst; */
1626 0x78 /* v6_flt_nhash_size; */
1627 0x4000 /* v6_flt_nhash_size_ddr; */
1628 0xf /* v4_rt_num_index; */
1629 0x0 /* v4_modem_rt_index_lo; */
1630 0x7 /* v4_modem_rt_index_hi; */
1631 0x8 /* v4_apps_rt_index_lo; */
1632 0xe /* v4_apps_rt_index_hi; */
1633 0x488 /* v4_rt_hash_ofst; */
1634 0x78 /* v4_rt_hash_size; */
1635 0x4000 /* v4_rt_hash_size_ddr; */
1636 0x508 /* v4_rt_nhash_ofst; */
1637 0x78 /* v4_rt_nhash_size; */
1638 0x4000 /* v4_rt_nhash_size_ddr; */
1639 0xf /* v6_rt_num_index; */
1640 0x0 /* v6_modem_rt_index_lo; */
1641 0x7 /* v6_modem_rt_index_hi; */
1642 0x8 /* v6_apps_rt_index_lo; */
1643 0xe /* v6_apps_rt_index_hi; */
1644 0x588 /* v6_rt_hash_ofst; */
1645 0x78 /* v6_rt_hash_size; */
1646 0x4000 /* v6_rt_hash_size_ddr; */
1647 0x608 /* v6_rt_nhash_ofst; */
1648 0x78 /* v6_rt_nhash_size; */
1649 0x4000 /* v6_rt_nhash_size_ddr; */
1650 0x688 /* modem_hdr_ofst; */
1651 0x140 /* modem_hdr_size; */
1652 0x7c8 /* apps_hdr_ofst; */
1653 0x0 /* apps_hdr_size; */
1654 0x800 /* apps_hdr_size_ddr; */
1655 0x7d0 /* modem_hdr_proc_ctx_ofst; */
1656 0x200 /* modem_hdr_proc_ctx_size; */
1657 0x9d0 /* apps_hdr_proc_ctx_ofst; */
1658 0x200 /* apps_hdr_proc_ctx_size; */
1659 0x0 /* apps_hdr_proc_ctx_size_ddr; */
1660 0x0 /* modem_comp_decomp_ofst; diff */
1661 0x0 /* modem_comp_decomp_size; diff */
1662 0xbd8 /* modem_ofst; */
1663 0x1024 /* modem_size; */
1664 0x2000 /* apps_v4_flt_hash_ofst; */
1665 0x0 /* apps_v4_flt_hash_size; */
1666 0x2000 /* apps_v4_flt_nhash_ofst; */
1667 0x0 /* apps_v4_flt_nhash_size; */
1668 0x2000 /* apps_v6_flt_hash_ofst; */
1669 0x0 /* apps_v6_flt_hash_size; */
1670 0x2000 /* apps_v6_flt_nhash_ofst; */
1671 0x0 /* apps_v6_flt_nhash_size; */
1672 0x80 /* uc_info_ofst; */
1673 0x200 /* uc_info_size; */
1674 0x2000 /* end_ofst; */
1675 0x2000 /* apps_v4_rt_hash_ofst; */
1676 0x0 /* apps_v4_rt_hash_size; */
1677 0x2000 /* apps_v4_rt_nhash_ofst; */
1678 0x0 /* apps_v4_rt_nhash_size; */
1679 0x2000 /* apps_v6_rt_hash_ofst; */
1680 0x0 /* apps_v6_rt_hash_size; */
1681 0x2000 /* apps_v6_rt_nhash_ofst; */
1682 0x0 /* apps_v6_rt_nhash_size; */
1683 0x1c00 /* uc_event_ring_ofst; */
1684 0x400 /* uc_event_ring_size; */
1685 >;
1686
1687 /* smp2p gpio information */
1688 qcom,smp2pgpio_map_ipa_1_out {
1689 compatible = "qcom,smp2pgpio-map-ipa-1-out";
1690 gpios = <&smp2pgpio_ipa_1_out 0 0>;
1691 };
1692
1693 qcom,smp2pgpio_map_ipa_1_in {
1694 compatible = "qcom,smp2pgpio-map-ipa-1-in";
1695 gpios = <&smp2pgpio_ipa_1_in 0 0>;
1696 };
1697
1698 ipa_smmu_ap: ipa_smmu_ap {
1699 compatible = "qcom,ipa-smmu-ap-cb";
1700 iommus = <&apps_smmu 0x720 0x0>;
1701 qcom,iova-mapping = <0x20000000 0x40000000>;
1702 };
1703
1704 ipa_smmu_wlan: ipa_smmu_wlan {
1705 compatible = "qcom,ipa-smmu-wlan-cb";
1706 iommus = <&apps_smmu 0x721 0x0>;
1707 };
1708
1709 ipa_smmu_uc: ipa_smmu_uc {
1710 compatible = "qcom,ipa-smmu-uc-cb";
1711 iommus = <&apps_smmu 0x722 0x0>;
1712 qcom,iova-mapping = <0x40000000 0x20000000>;
1713 };
1714 };
1715
1716 qcom,ipa_fws {
1717 compatible = "qcom,pil-tz-generic";
1718 qcom,pas-id = <0xf>;
1719 qcom,firmware-name = "ipa_fws";
1720 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301721
1722 pil_modem: qcom,mss@4080000 {
1723 compatible = "qcom,pil-q6v55-mss";
1724 reg = <0x4080000 0x100>,
1725 <0x1f63000 0x008>,
1726 <0x1f65000 0x008>,
1727 <0x1f64000 0x008>,
1728 <0x4180000 0x020>,
1729 <0xc2b0000 0x004>,
1730 <0xb2e0100 0x004>,
1731 <0x4180044 0x004>;
1732 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
1733 "halt_nc", "rmb_base", "restart_reg",
1734 "pdc_sync", "alt_reset";
1735
1736 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1737 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
1738 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
1739 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
1740 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
1741 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
1742 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
1743 <&clock_gcc GCC_PRNG_AHB_CLK>;
1744 clock-names = "xo", "iface_clk", "bus_clk",
1745 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
1746 "mnoc_axi_clk", "prng_clk";
1747 qcom,proxy-clock-names = "xo", "prng_clk";
1748 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
1749 "gpll0_mss_clk", "snoc_axi_clk",
1750 "mnoc_axi_clk";
1751
1752 interrupts = <0 266 1>;
1753 vdd_cx-supply = <&pm660l_s3_level>;
1754 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
1755 vdd_mx-supply = <&pm660l_s1_level>;
1756 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
1757 qcom,firmware-name = "modem";
1758 qcom,pil-self-auth;
1759 qcom,sysmon-id = <0>;
1760 qcom,ssctl-instance-id = <0x12>;
1761 qcom,override-acc;
1762 qcom,qdsp6v65-1-0;
1763 status = "ok";
1764 memory-region = <&pil_modem_mem>;
1765 qcom,mem-protect-id = <0xF>;
1766
1767 /* GPIO inputs from mss */
1768 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
1769 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
1770 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
1771 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
1772 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
1773
1774 /* GPIO output to mss */
1775 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
1776 qcom,mba-mem@0 {
1777 compatible = "qcom,pil-mba-mem";
1778 memory-region = <&pil_mba_mem>;
1779 };
1780 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05301781
1782 qcom,venus@aae0000 {
1783 compatible = "qcom,pil-tz-generic";
1784 reg = <0xaae0000 0x4000>;
1785
1786 vdd-supply = <&venus_gdsc>;
1787 qcom,proxy-reg-names = "vdd";
1788
1789 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
1790 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
1791 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
1792 clock-names = "core_clk", "iface_clk", "bus_clk";
1793 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
1794
1795 qcom,pas-id = <9>;
1796 qcom,msm-bus,name = "pil-venus";
1797 qcom,msm-bus,num-cases = <2>;
1798 qcom,msm-bus,num-paths = <1>;
1799 qcom,msm-bus,vectors-KBps =
1800 <63 512 0 0>,
1801 <63 512 0 304000>;
1802 qcom,proxy-timeout-ms = <100>;
1803 qcom,firmware-name = "venus";
1804 memory-region = <&pil_video_mem>;
1805 status = "ok";
1806 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05301807
1808 qcom,turing@8300000 {
1809 compatible = "qcom,pil-tz-generic";
1810 reg = <0x8300000 0x100000>;
1811 interrupts = <0 578 1>;
1812
1813 vdd_cx-supply = <&pm660l_s3_level>;
1814 qcom,proxy-reg-names = "vdd_cx";
1815 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1816
1817 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1818 clock-names = "xo";
1819 qcom,proxy-clock-names = "xo";
1820
1821 qcom,pas-id = <18>;
1822 qcom,proxy-timeout-ms = <10000>;
1823 qcom,smem-id = <601>;
1824 qcom,sysmon-id = <7>;
1825 qcom,ssctl-instance-id = <0x17>;
1826 qcom,firmware-name = "cdsp";
1827 memory-region = <&pil_cdsp_mem>;
1828
1829 /* GPIO inputs from turing */
1830 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
1831 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
1832 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
1833 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
1834
1835 /* GPIO output to turing*/
1836 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
1837 status = "ok";
1838 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05301839
1840 sdhc_1: sdhci@7c4000 {
1841 compatible = "qcom,sdhci-msm-v5";
1842 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
1843 reg-names = "hc_mem", "cmdq_mem";
1844
1845 interrupts = <0 641 0>, <0 644 0>;
1846 interrupt-names = "hc_irq", "pwr_irq";
1847
1848 qcom,bus-width = <8>;
1849 qcom,large-address-bus;
1850
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05301851 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
1852 192000000 384000000>;
1853 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
1854
1855 qcom,devfreq,freq-table = <50000000 200000000>;
1856
Vijay Viswanatheac72722017-06-05 11:01:38 +05301857 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
1858 <&clock_gcc GCC_SDCC1_APPS_CLK>;
1859 clock-names = "iface_clk", "core_clk";
1860
1861 qcom,nonremovable;
1862
1863 qcom,scaling-lower-bus-speed-mode = "DDR52";
1864 status = "disabled";
1865 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05301866
Vijay Viswanathee4340d2017-08-28 09:50:18 +05301867 sdhc_2: sdhci@8804000 {
1868 compatible = "qcom,sdhci-msm-v5";
1869 reg = <0x8804000 0x1000>;
1870 reg-names = "hc_mem";
1871
1872 interrupts = <0 204 0>, <0 222 0>;
1873 interrupt-names = "hc_irq", "pwr_irq";
1874
1875 qcom,bus-width = <4>;
1876 qcom,large-address-bus;
1877
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05301878 qcom,clk-rates = <400000 20000000 25000000
1879 50000000 100000000 201500000>;
1880 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
1881 "SDR104";
1882
1883 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanathee4340d2017-08-28 09:50:18 +05301884 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
1885 <&clock_gcc GCC_SDCC2_APPS_CLK>;
1886 clock-names = "iface_clk", "core_clk";
1887
1888 status = "disabled";
1889 };
1890
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05301891 qcom,msm-cdsp-loader {
1892 compatible = "qcom,cdsp-loader";
1893 qcom,proc-img-to-load = "cdsp";
1894 };
1895
1896 qcom,msm-adsprpc-mem {
1897 compatible = "qcom,msm-adsprpc-mem-region";
1898 memory-region = <&adsp_mem>;
1899 };
1900
1901 qcom,msm_fastrpc {
1902 compatible = "qcom,msm-fastrpc-compute";
1903
1904 qcom,msm_fastrpc_compute_cb1 {
1905 compatible = "qcom,msm-fastrpc-compute-cb";
1906 label = "cdsprpc-smd";
1907 iommus = <&apps_smmu 0x1421 0x30>;
1908 dma-coherent;
1909 };
1910 qcom,msm_fastrpc_compute_cb2 {
1911 compatible = "qcom,msm-fastrpc-compute-cb";
1912 label = "cdsprpc-smd";
1913 iommus = <&apps_smmu 0x1422 0x30>;
1914 dma-coherent;
1915 };
1916 qcom,msm_fastrpc_compute_cb3 {
1917 compatible = "qcom,msm-fastrpc-compute-cb";
1918 label = "cdsprpc-smd";
1919 iommus = <&apps_smmu 0x1423 0x30>;
1920 dma-coherent;
1921 };
1922 qcom,msm_fastrpc_compute_cb4 {
1923 compatible = "qcom,msm-fastrpc-compute-cb";
1924 label = "cdsprpc-smd";
1925 iommus = <&apps_smmu 0x1424 0x30>;
1926 dma-coherent;
1927 };
1928 qcom,msm_fastrpc_compute_cb5 {
1929 compatible = "qcom,msm-fastrpc-compute-cb";
1930 label = "cdsprpc-smd";
1931 iommus = <&apps_smmu 0x1425 0x30>;
1932 dma-coherent;
1933 };
1934 qcom,msm_fastrpc_compute_cb6 {
1935 compatible = "qcom,msm-fastrpc-compute-cb";
1936 label = "cdsprpc-smd";
1937 iommus = <&apps_smmu 0x1426 0x30>;
1938 dma-coherent;
1939 };
1940 qcom,msm_fastrpc_compute_cb7 {
1941 compatible = "qcom,msm-fastrpc-compute-cb";
1942 label = "cdsprpc-smd";
1943 qcom,secure-context-bank;
1944 iommus = <&apps_smmu 0x1429 0x30>;
1945 dma-coherent;
1946 };
1947 qcom,msm_fastrpc_compute_cb8 {
1948 compatible = "qcom,msm-fastrpc-compute-cb";
1949 label = "cdsprpc-smd";
1950 qcom,secure-context-bank;
1951 iommus = <&apps_smmu 0x142A 0x30>;
1952 dma-coherent;
1953 };
1954 qcom,msm_fastrpc_compute_cb9 {
1955 compatible = "qcom,msm-fastrpc-compute-cb";
1956 label = "adsprpc-smd";
1957 iommus = <&apps_smmu 0x1803 0x0>;
1958 dma-coherent;
1959 };
1960 qcom,msm_fastrpc_compute_cb10 {
1961 compatible = "qcom,msm-fastrpc-compute-cb";
1962 label = "adsprpc-smd";
1963 iommus = <&apps_smmu 0x1804 0x0>;
1964 dma-coherent;
1965 };
1966 qcom,msm_fastrpc_compute_cb11 {
1967 compatible = "qcom,msm-fastrpc-compute-cb";
1968 label = "adsprpc-smd";
1969 iommus = <&apps_smmu 0x1805 0x0>;
1970 dma-coherent;
1971 };
1972 };
Imran Khan04f08312017-03-30 15:07:43 +05301973};
1974
1975#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05301976#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301977#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05301978#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301979
1980&usb30_prim_gdsc {
1981 status = "ok";
1982};
1983
1984&ufs_phy_gdsc {
1985 status = "ok";
1986};
1987
1988&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
1989 status = "ok";
1990};
1991
1992&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
1993 status = "ok";
1994};
1995
1996&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
1997 status = "ok";
1998};
1999
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302000&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2001 status = "ok";
2002};
2003
2004&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2005 status = "ok";
2006};
2007
2008&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2009 status = "ok";
2010};
2011
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302012&bps_gdsc {
2013 status = "ok";
2014};
2015
2016&ife_0_gdsc {
2017 status = "ok";
2018};
2019
2020&ife_1_gdsc {
2021 status = "ok";
2022};
2023
2024&ipe_0_gdsc {
2025 status = "ok";
2026};
2027
2028&ipe_1_gdsc {
2029 status = "ok";
2030};
2031
2032&titan_top_gdsc {
2033 status = "ok";
2034};
2035
2036&mdss_core_gdsc {
2037 status = "ok";
2038};
2039
2040&gpu_cx_gdsc {
2041 status = "ok";
2042};
2043
2044&gpu_gx_gdsc {
2045 clock-names = "core_root_clk";
2046 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2047 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302048 parent-supply = <&pm660l_s2_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302049 status = "ok";
2050};
2051
2052&vcodec0_gdsc {
2053 qcom,support-hw-trigger;
2054 status = "ok";
2055};
2056
2057&vcodec1_gdsc {
2058 qcom,support-hw-trigger;
2059 status = "ok";
2060};
2061
2062&venus_gdsc {
2063 status = "ok";
2064};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302065
Tirupathi Reddy242bd802017-06-09 11:31:05 +05302066#include "pm660.dtsi"
2067#include "pm660l.dtsi"
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302068#include "sdm670-regulator.dtsi"
Rohit Kumar14051282017-07-12 11:18:48 +05302069#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05302070#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05302071#include "sdm670-gpu.dtsi"
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +05302072#include "sdm670-thermal.dtsi"