blob: 4a937fdc58b5c5224c82715fb6b8cc46efb78cfd [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
Raviteja Tamatame97849a2017-09-12 20:25:50 +0530617#include "sdm670-sde-pll.dtsi"
618
619#include "sdm670-sde.dtsi"
620
Imran Khan04f08312017-03-30 15:07:43 +0530621&soc {
622 #address-cells = <1>;
623 #size-cells = <1>;
624 ranges = <0 0 0 0xffffffff>;
625 compatible = "simple-bus";
626
627 intc: interrupt-controller@17a00000 {
628 compatible = "arm,gic-v3";
629 #interrupt-cells = <3>;
630 interrupt-controller;
631 #redistributor-regions = <1>;
632 redistributor-stride = <0x0 0x20000>;
633 reg = <0x17a00000 0x10000>, /* GICD */
634 <0x17a60000 0x100000>; /* GICR * 8 */
635 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530636 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530637 };
638
639 timer {
640 compatible = "arm,armv8-timer";
641 interrupts = <1 1 0xf08>,
642 <1 2 0xf08>,
643 <1 3 0xf08>,
644 <1 0 0xf08>;
645 clock-frequency = <19200000>;
646 };
647
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530648 qcom,sps {
649 compatible = "qcom,msm_sps_4k";
650 qcom,pipe-attr-ee;
651 };
652
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +0530653 thermal_zones: thermal-zones {};
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530654
655 tsens0: tsens@c222000 {
656 compatible = "qcom,tsens24xx";
657 reg = <0xc222000 0x4>,
658 <0xc263000 0x1ff>;
659 reg-names = "tsens_srot_physical",
660 "tsens_tm_physical";
661 interrupts = <0 506 0>, <0 508 0>;
662 interrupt-names = "tsens-upper-lower", "tsens-critical";
663 #thermal-sensor-cells = <1>;
664 };
665
666 tsens1: tsens@c223000 {
667 compatible = "qcom,tsens24xx";
668 reg = <0xc223000 0x4>,
669 <0xc265000 0x1ff>;
670 reg-names = "tsens_srot_physical",
671 "tsens_tm_physical";
672 interrupts = <0 507 0>, <0 509 0>;
673 interrupt-names = "tsens-upper-lower", "tsens-critical";
674 #thermal-sensor-cells = <1>;
675 };
676
Imran Khan04f08312017-03-30 15:07:43 +0530677 timer@0x17c90000{
678 #address-cells = <1>;
679 #size-cells = <1>;
680 ranges;
681 compatible = "arm,armv7-timer-mem";
682 reg = <0x17c90000 0x1000>;
683 clock-frequency = <19200000>;
684
685 frame@0x17ca0000 {
686 frame-number = <0>;
687 interrupts = <0 7 0x4>,
688 <0 6 0x4>;
689 reg = <0x17ca0000 0x1000>,
690 <0x17cb0000 0x1000>;
691 };
692
693 frame@17cc0000 {
694 frame-number = <1>;
695 interrupts = <0 8 0x4>;
696 reg = <0x17cc0000 0x1000>;
697 status = "disabled";
698 };
699
700 frame@17cd0000 {
701 frame-number = <2>;
702 interrupts = <0 9 0x4>;
703 reg = <0x17cd0000 0x1000>;
704 status = "disabled";
705 };
706
707 frame@17ce0000 {
708 frame-number = <3>;
709 interrupts = <0 10 0x4>;
710 reg = <0x17ce0000 0x1000>;
711 status = "disabled";
712 };
713
714 frame@17cf0000 {
715 frame-number = <4>;
716 interrupts = <0 11 0x4>;
717 reg = <0x17cf0000 0x1000>;
718 status = "disabled";
719 };
720
721 frame@17d00000 {
722 frame-number = <5>;
723 interrupts = <0 12 0x4>;
724 reg = <0x17d00000 0x1000>;
725 status = "disabled";
726 };
727
728 frame@17d10000 {
729 frame-number = <6>;
730 interrupts = <0 13 0x4>;
731 reg = <0x17d10000 0x1000>;
732 status = "disabled";
733 };
734 };
735
736 restart@10ac000 {
737 compatible = "qcom,pshold";
738 reg = <0xC264000 0x4>,
739 <0x1fd3000 0x4>;
740 reg-names = "pshold-base", "tcsr-boot-misc-detect";
741 };
742
Maulik Shah6bf7d5d2017-07-27 09:48:42 +0530743 aop-msg-client {
744 compatible = "qcom,debugfs-qmp-client";
745 mboxes = <&qmp_aop 0>;
746 mbox-names = "aop";
747 };
748
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530749 clock_rpmh: qcom,rpmhclk {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530750 compatible = "qcom,rpmh-clk-sdm670";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530751 #clock-cells = <1>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530752 mboxes = <&apps_rsc 0>;
753 mbox-names = "apps";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530754 };
755
756 clock_gcc: qcom,gcc@100000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530757 compatible = "qcom,gcc-sdm670", "syscon";
758 reg = <0x100000 0x1f0000>;
759 reg-names = "cc_base";
760 vdd_cx-supply = <&pm660l_s3_level>;
761 vdd_cx_ao-supply = <&pm660l_s3_level_ao>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530762 #clock-cells = <1>;
763 #reset-cells = <1>;
764 };
765
766 clock_videocc: qcom,videocc@ab00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530767 compatible = "qcom,video_cc-sdm670", "syscon";
768 reg = <0xab00000 0x10000>;
769 reg-names = "cc_base";
770 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530771 #clock-cells = <1>;
772 #reset-cells = <1>;
773 };
774
775 clock_camcc: qcom,camcc@ad00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530776 compatible = "qcom,cam_cc-sdm670", "syscon";
777 reg = <0xad00000 0x10000>;
778 reg-names = "cc_base";
779 vdd_cx-supply = <&pm660l_s3_level>;
780 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530781 #clock-cells = <1>;
782 #reset-cells = <1>;
783 };
784
785 clock_dispcc: qcom,dispcc@af00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530786 compatible = "qcom,dispcc-sdm670", "syscon";
787 reg = <0xaf00000 0x10000>;
788 reg-names = "cc_base";
789 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530790 #clock-cells = <1>;
791 #reset-cells = <1>;
792 };
793
794 clock_gpucc: qcom,gpucc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530795 compatible = "qcom,gpucc-sdm670", "syscon";
796 reg = <0x5090000 0x9000>;
797 reg-names = "cc_base";
798 vdd_cx-supply = <&pm660l_s3_level>;
799 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530800 #clock-cells = <1>;
801 #reset-cells = <1>;
802 };
803
804 clock_gfx: qcom,gfxcc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530805 compatible = "qcom,gfxcc-sdm670";
806 reg = <0x5090000 0x9000>;
807 reg-names = "cc_base";
808 vdd_gfx-supply = <&pm660l_s2_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530809 #clock-cells = <1>;
810 #reset-cells = <1>;
811 };
812
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530813 cpucc_debug: syscon@17970018 {
814 compatible = "syscon";
815 reg = <0x17970018 0x4>;
816 };
817
818 clock_debug: qcom,cc-debug {
819 compatible = "qcom,debugcc-sdm845";
820 qcom,cc-count = <5>;
821 qcom,gcc = <&clock_gcc>;
822 qcom,videocc = <&clock_videocc>;
823 qcom,camcc = <&clock_camcc>;
824 qcom,dispcc = <&clock_dispcc>;
825 qcom,gpucc = <&clock_gpucc>;
826 qcom,cpucc = <&cpucc_debug>;
827 clock-names = "xo_clk_src";
828 clocks = <&clock_rpmh RPMH_CXO_CLK>;
829 #clock-cells = <1>;
830 };
831
Imran Khan04f08312017-03-30 15:07:43 +0530832 clock_cpucc: qcom,cpucc {
833 compatible = "qcom,dummycc";
834 clock-output-names = "cpucc_clocks";
835 #clock-cells = <1>;
836 #reset-cells = <1>;
837 };
838
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +0530839 clock_aop: qcom,aopclk {
840 compatible = "qcom,aop-qmp-clk-v2";
841 #clock-cells = <1>;
842 mboxes = <&qmp_aop 0>;
843 mbox-names = "qdss_clk";
844 };
845
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530846 slim_aud: slim@62dc0000 {
847 cell-index = <1>;
848 compatible = "qcom,slim-ngd";
849 reg = <0x62dc0000 0x2c000>,
850 <0x62d84000 0x2a000>;
851 reg-names = "slimbus_physical", "slimbus_bam_physical";
852 interrupts = <0 163 0>, <0 164 0>;
853 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
854 qcom,apps-ch-pipes = <0x780000>;
855 qcom,ea-pc = <0x290>;
856 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +0530857 qcom,iommu-s1-bypass;
858
859 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
860 compatible = "qcom,iommu-slim-ctrl-cb";
861 iommus = <&apps_smmu 0x1826 0x0>,
862 <&apps_smmu 0x182d 0x0>,
863 <&apps_smmu 0x182e 0x1>,
864 <&apps_smmu 0x1830 0x1>;
865 };
866
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530867 };
868
869 slim_qca: slim@62e40000 {
870 cell-index = <3>;
871 compatible = "qcom,slim-ngd";
872 reg = <0x62e40000 0x2c000>,
873 <0x62e04000 0x20000>;
874 reg-names = "slimbus_physical", "slimbus_bam_physical";
875 interrupts = <0 291 0>, <0 292 0>;
876 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
877 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +0530878 qcom,iommu-s1-bypass;
879
880 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
881 compatible = "qcom,iommu-slim-ctrl-cb";
882 iommus = <&apps_smmu 0x1833 0x0>;
883 };
884
Shrey Vijay6b6b3a52017-06-21 15:06:03 +0530885 };
886
Imran Khan04f08312017-03-30 15:07:43 +0530887 wdog: qcom,wdt@17980000{
888 compatible = "qcom,msm-watchdog";
889 reg = <0x17980000 0x1000>;
890 reg-names = "wdt-base";
891 interrupts = <0 3 0>, <0 4 0>;
892 qcom,bark-time = <11000>;
893 qcom,pet-time = <10000>;
894 qcom,ipi-ping;
895 qcom,wakeup-enable;
896 };
897
898 qcom,msm-rtb {
899 compatible = "qcom,msm-rtb";
900 qcom,rtb-size = <0x100000>;
901 };
902
903 qcom,msm-imem@146bf000 {
904 compatible = "qcom,msm-imem";
905 reg = <0x146bf000 0x1000>;
906 ranges = <0x0 0x146bf000 0x1000>;
907 #address-cells = <1>;
908 #size-cells = <1>;
909
910 mem_dump_table@10 {
911 compatible = "qcom,msm-imem-mem_dump_table";
912 reg = <0x10 8>;
913 };
914
915 restart_reason@65c {
916 compatible = "qcom,msm-imem-restart_reason";
917 reg = <0x65c 4>;
918 };
919
920 pil@94c {
921 compatible = "qcom,msm-imem-pil";
922 reg = <0x94c 200>;
923 };
924
925 kaslr_offset@6d0 {
926 compatible = "qcom,msm-imem-kaslr_offset";
927 reg = <0x6d0 12>;
928 };
Lingutla Chandrasekhar3c51f0b2017-09-12 14:21:21 +0530929
930 boot_stats@6b0 {
931 compatible = "qcom,msm-imem-boot_stats";
932 reg = <0x6b0 0x20>;
933 };
934
935 diag_dload@c8 {
936 compatible = "qcom,msm-imem-diag-dload";
937 reg = <0xc8 0xc8>;
938 };
Imran Khan04f08312017-03-30 15:07:43 +0530939 };
940
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +0530941 gpi_dma0: qcom,gpi-dma@0x800000 {
942 #dma-cells = <6>;
943 compatible = "qcom,gpi-dma";
944 reg = <0x800000 0x60000>;
945 reg-names = "gpi-top";
946 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
947 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
948 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
949 <0 256 0>;
950 qcom,max-num-gpii = <13>;
951 qcom,gpii-mask = <0xfa>;
952 qcom,ev-factor = <2>;
953 iommus = <&apps_smmu 0x0016 0x0>;
954 status = "ok";
955 };
956
957 gpi_dma1: qcom,gpi-dma@0xa00000 {
958 #dma-cells = <6>;
959 compatible = "qcom,gpi-dma";
960 reg = <0xa00000 0x60000>;
961 reg-names = "gpi-top";
962 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
963 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
964 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
965 <0 299 0>;
966 qcom,max-num-gpii = <13>;
967 qcom,gpii-mask = <0xfa>;
968 qcom,ev-factor = <2>;
969 iommus = <&apps_smmu 0x06d6 0x0>;
970 status = "ok";
971 };
972
Imran Khan04f08312017-03-30 15:07:43 +0530973 cpuss_dump {
974 compatible = "qcom,cpuss-dump";
975 qcom,l1_i_cache0 {
976 qcom,dump-node = <&L1_I_0>;
977 qcom,dump-id = <0x60>;
978 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530979 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +0530980 qcom,dump-node = <&L1_I_100>;
981 qcom,dump-id = <0x61>;
982 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530983 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +0530984 qcom,dump-node = <&L1_I_200>;
985 qcom,dump-id = <0x62>;
986 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530987 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +0530988 qcom,dump-node = <&L1_I_300>;
989 qcom,dump-id = <0x63>;
990 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530991 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +0530992 qcom,dump-node = <&L1_I_400>;
993 qcom,dump-id = <0x64>;
994 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530995 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +0530996 qcom,dump-node = <&L1_I_500>;
997 qcom,dump-id = <0x65>;
998 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530999 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301000 qcom,dump-node = <&L1_I_600>;
1001 qcom,dump-id = <0x66>;
1002 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301003 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301004 qcom,dump-node = <&L1_I_700>;
1005 qcom,dump-id = <0x67>;
1006 };
1007 qcom,l1_d_cache0 {
1008 qcom,dump-node = <&L1_D_0>;
1009 qcom,dump-id = <0x80>;
1010 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301011 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301012 qcom,dump-node = <&L1_D_100>;
1013 qcom,dump-id = <0x81>;
1014 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301015 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301016 qcom,dump-node = <&L1_D_200>;
1017 qcom,dump-id = <0x82>;
1018 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301019 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301020 qcom,dump-node = <&L1_D_300>;
1021 qcom,dump-id = <0x83>;
1022 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301023 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301024 qcom,dump-node = <&L1_D_400>;
1025 qcom,dump-id = <0x84>;
1026 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301027 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301028 qcom,dump-node = <&L1_D_500>;
1029 qcom,dump-id = <0x85>;
1030 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301031 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301032 qcom,dump-node = <&L1_D_600>;
1033 qcom,dump-id = <0x86>;
1034 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301035 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301036 qcom,dump-node = <&L1_D_700>;
1037 qcom,dump-id = <0x87>;
1038 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301039 qcom,llcc1_d_cache {
1040 qcom,dump-node = <&LLCC_1>;
1041 qcom,dump-id = <0x140>;
1042 };
1043 qcom,llcc2_d_cache {
1044 qcom,dump-node = <&LLCC_2>;
1045 qcom,dump-id = <0x141>;
1046 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301047 qcom,l1_tlb_dump0 {
1048 qcom,dump-node = <&L1_TLB_0>;
1049 qcom,dump-id = <0x20>;
1050 };
1051 qcom,l1_tlb_dump100 {
1052 qcom,dump-node = <&L1_TLB_100>;
1053 qcom,dump-id = <0x21>;
1054 };
1055 qcom,l1_tlb_dump200 {
1056 qcom,dump-node = <&L1_TLB_200>;
1057 qcom,dump-id = <0x22>;
1058 };
1059 qcom,l1_tlb_dump300 {
1060 qcom,dump-node = <&L1_TLB_300>;
1061 qcom,dump-id = <0x23>;
1062 };
1063 qcom,l1_tlb_dump400 {
1064 qcom,dump-node = <&L1_TLB_400>;
1065 qcom,dump-id = <0x24>;
1066 };
1067 qcom,l1_tlb_dump500 {
1068 qcom,dump-node = <&L1_TLB_500>;
1069 qcom,dump-id = <0x25>;
1070 };
1071 qcom,l1_tlb_dump600 {
1072 qcom,dump-node = <&L1_TLB_600>;
1073 qcom,dump-id = <0x26>;
1074 };
1075 qcom,l1_tlb_dump700 {
1076 qcom,dump-node = <&L1_TLB_700>;
1077 qcom,dump-id = <0x27>;
1078 };
Imran Khan04f08312017-03-30 15:07:43 +05301079 };
1080
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301081 mem_dump {
1082 compatible = "qcom,mem-dump";
1083 memory-region = <&dump_mem>;
1084
1085 rpmh_dump {
1086 qcom,dump-size = <0x2000000>;
1087 qcom,dump-id = <0xec>;
1088 };
1089
1090 rpm_sw_dump {
1091 qcom,dump-size = <0x28000>;
1092 qcom,dump-id = <0xea>;
1093 };
1094
1095 pmic_dump {
1096 qcom,dump-size = <0x10000>;
1097 qcom,dump-id = <0xe4>;
1098 };
1099
1100 tmc_etf_dump {
1101 qcom,dump-size = <0x10000>;
1102 qcom,dump-id = <0xf0>;
1103 };
1104
1105 tmc_etf_swao_dump {
1106 qcom,dump-size = <0x8400>;
1107 qcom,dump-id = <0xf1>;
1108 };
1109
1110 tmc_etr_reg_dump {
1111 qcom,dump-size = <0x1000>;
1112 qcom,dump-id = <0x100>;
1113 };
1114
1115 tmc_etf_reg_dump {
1116 qcom,dump-size = <0x1000>;
1117 qcom,dump-id = <0x101>;
1118 };
1119
1120 tmc_etf_swao_reg_dump {
1121 qcom,dump-size = <0x1000>;
1122 qcom,dump-id = <0x102>;
1123 };
1124
1125 misc_data_dump {
1126 qcom,dump-size = <0x1000>;
1127 qcom,dump-id = <0xe8>;
1128 };
1129
1130 power_regs_data_dump {
1131 qcom,dump-size = <0x100000>;
1132 qcom,dump-id = <0xed>;
1133 };
1134 };
1135
Imran Khan04f08312017-03-30 15:07:43 +05301136 kryo3xx-erp {
1137 compatible = "arm,arm64-kryo3xx-cpu-erp";
1138 interrupts = <1 6 4>,
1139 <1 7 4>,
1140 <0 34 4>,
1141 <0 35 4>;
1142
1143 interrupt-names = "l1-l2-faultirq",
1144 "l1-l2-errirq",
1145 "l3-scu-errirq",
1146 "l3-scu-faultirq";
1147 };
1148
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301149 qcom,ipc-spinlock@1f40000 {
1150 compatible = "qcom,ipc-spinlock-sfpb";
1151 reg = <0x1f40000 0x8000>;
1152 qcom,num-locks = <8>;
1153 };
1154
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301155 qcom,smem@86000000 {
1156 compatible = "qcom,smem";
1157 reg = <0x86000000 0x200000>,
1158 <0x17911008 0x4>,
1159 <0x778000 0x7000>,
1160 <0x1fd4000 0x8>;
1161 reg-names = "smem", "irq-reg-base", "aux-mem1",
1162 "smem_targ_info_reg";
1163 qcom,mpu-enabled;
1164 };
1165
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301166 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301167 compatible = "qcom,qmp-mbox";
1168 label = "aop";
1169 reg = <0xc300000 0x100000>,
1170 <0x1799000c 0x4>;
1171 reg-names = "msgram", "irq-reg-base";
1172 qcom,irq-mask = <0x1>;
1173 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301174 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301175 mbox-desc-offset = <0x0>;
1176 #mbox-cells = <1>;
1177 };
1178
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301179 qcom,glink-smem-native-xprt-modem@86000000 {
1180 compatible = "qcom,glink-smem-native-xprt";
1181 reg = <0x86000000 0x200000>,
1182 <0x1799000c 0x4>;
1183 reg-names = "smem", "irq-reg-base";
1184 qcom,irq-mask = <0x1000>;
1185 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1186 label = "mpss";
1187 };
1188
1189 qcom,glink-smem-native-xprt-adsp@86000000 {
1190 compatible = "qcom,glink-smem-native-xprt";
1191 reg = <0x86000000 0x200000>,
1192 <0x1799000c 0x4>;
1193 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301194 qcom,irq-mask = <0x1000000>;
1195 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301196 label = "lpass";
1197 qcom,qos-config = <&glink_qos_adsp>;
1198 qcom,ramp-time = <0xaf>;
1199 };
1200
1201 glink_qos_adsp: qcom,glink-qos-config-adsp {
1202 compatible = "qcom,glink-qos-config";
1203 qcom,flow-info = <0x3c 0x0>,
1204 <0x3c 0x0>,
1205 <0x3c 0x0>,
1206 <0x3c 0x0>;
1207 qcom,mtu-size = <0x800>;
1208 qcom,tput-stats-cycle = <0xa>;
1209 };
1210
1211 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1212 compatible = "qcom,glink-spi-xprt";
1213 label = "wdsp";
1214 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1215 qcom,qos-config = <&glink_qos_wdsp>;
1216 qcom,ramp-time = <0x10>,
1217 <0x20>,
1218 <0x30>,
1219 <0x40>;
1220 };
1221
1222 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1223 compatible = "qcom,glink-fifo-config";
1224 qcom,out-read-idx-reg = <0x12000>;
1225 qcom,out-write-idx-reg = <0x12004>;
1226 qcom,in-read-idx-reg = <0x1200C>;
1227 qcom,in-write-idx-reg = <0x12010>;
1228 };
1229
1230 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1231 compatible = "qcom,glink-qos-config";
1232 qcom,flow-info = <0x80 0x0>,
1233 <0x70 0x1>,
1234 <0x60 0x2>,
1235 <0x50 0x3>;
1236 qcom,mtu-size = <0x800>;
1237 qcom,tput-stats-cycle = <0xa>;
1238 };
1239
1240 qcom,glink-smem-native-xprt-cdsp@86000000 {
1241 compatible = "qcom,glink-smem-native-xprt";
1242 reg = <0x86000000 0x200000>,
1243 <0x1799000c 0x4>;
1244 reg-names = "smem", "irq-reg-base";
1245 qcom,irq-mask = <0x10>;
1246 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1247 label = "cdsp";
1248 };
1249
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301250 glink_mpss: qcom,glink-ssr-modem {
1251 compatible = "qcom,glink_ssr";
1252 label = "modem";
1253 qcom,edge = "mpss";
1254 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1255 qcom,xprt = "smem";
1256 };
1257
1258 glink_lpass: qcom,glink-ssr-adsp {
1259 compatible = "qcom,glink_ssr";
1260 label = "adsp";
1261 qcom,edge = "lpass";
1262 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1263 qcom,xprt = "smem";
1264 };
1265
1266 glink_cdsp: qcom,glink-ssr-cdsp {
1267 compatible = "qcom,glink_ssr";
1268 label = "cdsp";
1269 qcom,edge = "cdsp";
1270 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1271 qcom,xprt = "smem";
1272 };
1273
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301274 qcom,ipc_router {
1275 compatible = "qcom,ipc_router";
1276 qcom,node-id = <1>;
1277 };
1278
1279 qcom,ipc_router_modem_xprt {
1280 compatible = "qcom,ipc_router_glink_xprt";
1281 qcom,ch-name = "IPCRTR";
1282 qcom,xprt-remote = "mpss";
1283 qcom,glink-xprt = "smem";
1284 qcom,xprt-linkid = <1>;
1285 qcom,xprt-version = <1>;
1286 qcom,fragmented-data;
1287 };
1288
1289 qcom,ipc_router_q6_xprt {
1290 compatible = "qcom,ipc_router_glink_xprt";
1291 qcom,ch-name = "IPCRTR";
1292 qcom,xprt-remote = "lpass";
1293 qcom,glink-xprt = "smem";
1294 qcom,xprt-linkid = <1>;
1295 qcom,xprt-version = <1>;
1296 qcom,fragmented-data;
1297 };
1298
1299 qcom,ipc_router_cdsp_xprt {
1300 compatible = "qcom,ipc_router_glink_xprt";
1301 qcom,ch-name = "IPCRTR";
1302 qcom,xprt-remote = "cdsp";
1303 qcom,glink-xprt = "smem";
1304 qcom,xprt-linkid = <1>;
1305 qcom,xprt-version = <1>;
1306 qcom,fragmented-data;
1307 };
1308
Dhoat Harpal11d34482017-06-06 21:00:14 +05301309 qcom,glink_pkt {
1310 compatible = "qcom,glinkpkt";
1311
1312 qcom,glinkpkt-at-mdm0 {
1313 qcom,glinkpkt-transport = "smem";
1314 qcom,glinkpkt-edge = "mpss";
1315 qcom,glinkpkt-ch-name = "DS";
1316 qcom,glinkpkt-dev-name = "at_mdm0";
1317 };
1318
1319 qcom,glinkpkt-loopback_cntl {
1320 qcom,glinkpkt-transport = "lloop";
1321 qcom,glinkpkt-edge = "local";
1322 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1323 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1324 };
1325
1326 qcom,glinkpkt-loopback_data {
1327 qcom,glinkpkt-transport = "lloop";
1328 qcom,glinkpkt-edge = "local";
1329 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1330 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1331 };
1332
1333 qcom,glinkpkt-apr-apps2 {
1334 qcom,glinkpkt-transport = "smem";
1335 qcom,glinkpkt-edge = "adsp";
1336 qcom,glinkpkt-ch-name = "apr_apps2";
1337 qcom,glinkpkt-dev-name = "apr_apps2";
1338 };
1339
1340 qcom,glinkpkt-data40-cntl {
1341 qcom,glinkpkt-transport = "smem";
1342 qcom,glinkpkt-edge = "mpss";
1343 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1344 qcom,glinkpkt-dev-name = "smdcntl8";
1345 };
1346
1347 qcom,glinkpkt-data1 {
1348 qcom,glinkpkt-transport = "smem";
1349 qcom,glinkpkt-edge = "mpss";
1350 qcom,glinkpkt-ch-name = "DATA1";
1351 qcom,glinkpkt-dev-name = "smd7";
1352 };
1353
1354 qcom,glinkpkt-data4 {
1355 qcom,glinkpkt-transport = "smem";
1356 qcom,glinkpkt-edge = "mpss";
1357 qcom,glinkpkt-ch-name = "DATA4";
1358 qcom,glinkpkt-dev-name = "smd8";
1359 };
1360
1361 qcom,glinkpkt-data11 {
1362 qcom,glinkpkt-transport = "smem";
1363 qcom,glinkpkt-edge = "mpss";
1364 qcom,glinkpkt-ch-name = "DATA11";
1365 qcom,glinkpkt-dev-name = "smd11";
1366 };
1367 };
1368
Imran Khan04f08312017-03-30 15:07:43 +05301369 qcom,chd_sliver {
1370 compatible = "qcom,core-hang-detect";
1371 label = "silver";
1372 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1373 0x17e30058 0x17e40058 0x17e50058>;
1374 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1375 0x17e30060 0x17e40060 0x17e50060>;
1376 };
1377
1378 qcom,chd_gold {
1379 compatible = "qcom,core-hang-detect";
1380 label = "gold";
1381 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1382 qcom,config-arr = <0x17e60060 0x17e70060>;
1383 };
1384
1385 qcom,ghd {
1386 compatible = "qcom,gladiator-hang-detect-v2";
1387 qcom,threshold-arr = <0x1799041c 0x17990420>;
1388 qcom,config-reg = <0x17990434>;
1389 };
1390
1391 qcom,msm-gladiator-v3@17900000 {
1392 compatible = "qcom,msm-gladiator-v3";
1393 reg = <0x17900000 0xd080>;
1394 reg-names = "gladiator_base";
1395 interrupts = <0 17 0>;
1396 };
1397
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301398 eud: qcom,msm-eud@88e0000 {
1399 compatible = "qcom,msm-eud";
1400 interrupt-names = "eud_irq";
1401 interrupts = <GIC_SPI 492 IRQ_TYPE_LEVEL_HIGH>;
1402 reg = <0x88e0000 0x2000>;
1403 reg-names = "eud_base";
1404 status = "disabled";
1405 };
1406
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301407 qcom,llcc@1100000 {
1408 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1409 reg = <0x1100000 0x250000>;
1410 reg-names = "llcc_base";
1411 qcom,llcc-banks-off = <0x0 0x80000 >;
1412 qcom,llcc-broadcast-off = <0x200000>;
1413
1414 llcc: qcom,sdm670-llcc {
1415 compatible = "qcom,sdm670-llcc";
1416 #cache-cells = <1>;
1417 max-slices = <32>;
1418 qcom,dump-size = <0x80000>;
1419 };
1420
1421 qcom,llcc-erp {
1422 compatible = "qcom,llcc-erp";
1423 interrupt-names = "ecc_irq";
1424 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1425 };
1426
1427 qcom,llcc-amon {
1428 compatible = "qcom,llcc-amon";
1429 };
1430
1431 LLCC_1: llcc_1_dcache {
1432 qcom,dump-size = <0xd8000>;
1433 };
1434
1435 LLCC_2: llcc_2_dcache {
1436 qcom,dump-size = <0xd8000>;
1437 };
1438 };
1439
Maulik Shah210773d2017-06-15 09:49:12 +05301440 cmd_db: qcom,cmd-db@c3f000c {
1441 compatible = "qcom,cmd-db";
1442 reg = <0xc3f000c 0x8>;
1443 };
1444
Maulik Shahc77d1d22017-06-15 14:04:50 +05301445 apps_rsc: mailbox@179e0000 {
1446 compatible = "qcom,tcs-drv";
1447 label = "apps_rsc";
1448 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1449 interrupts = <0 5 0>;
1450 #mbox-cells = <1>;
1451 qcom,drv-id = <2>;
1452 qcom,tcs-config = <ACTIVE_TCS 2>,
1453 <SLEEP_TCS 3>,
1454 <WAKE_TCS 3>,
1455 <CONTROL_TCS 1>;
1456 };
1457
Maulik Shahda3941f2017-06-15 09:41:38 +05301458 disp_rsc: mailbox@af20000 {
1459 compatible = "qcom,tcs-drv";
1460 label = "display_rsc";
1461 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1462 interrupts = <0 129 0>;
1463 #mbox-cells = <1>;
1464 qcom,drv-id = <0>;
1465 qcom,tcs-config = <SLEEP_TCS 1>,
1466 <WAKE_TCS 1>,
1467 <ACTIVE_TCS 0>,
1468 <CONTROL_TCS 1>;
1469 };
1470
Maulik Shah0dd203f2017-06-15 09:44:59 +05301471 system_pm {
1472 compatible = "qcom,system-pm";
1473 mboxes = <&apps_rsc 0>;
1474 };
1475
Imran Khan04f08312017-03-30 15:07:43 +05301476 dcc: dcc_v2@10a2000 {
1477 compatible = "qcom,dcc_v2";
1478 reg = <0x10a2000 0x1000>,
1479 <0x10ae000 0x2000>;
1480 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301481
1482 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301483 };
1484
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301485 spmi_bus: qcom,spmi@c440000 {
1486 compatible = "qcom,spmi-pmic-arb";
1487 reg = <0xc440000 0x1100>,
1488 <0xc600000 0x2000000>,
1489 <0xe600000 0x100000>,
1490 <0xe700000 0xa0000>,
1491 <0xc40a000 0x26000>;
1492 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1493 interrupt-names = "periph_irq";
1494 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1495 qcom,ee = <0>;
1496 qcom,channel = <0>;
1497 #address-cells = <2>;
1498 #size-cells = <0>;
1499 interrupt-controller;
1500 #interrupt-cells = <4>;
1501 cell-index = <0>;
1502 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301503
1504 ufsphy_mem: ufsphy_mem@1d87000 {
1505 reg = <0x1d87000 0xe00>; /* PHY regs */
1506 reg-names = "phy_mem";
1507 #phy-cells = <0>;
1508
1509 lanes-per-direction = <1>;
1510
1511 clock-names = "ref_clk_src",
1512 "ref_clk",
1513 "ref_aux_clk";
1514 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1515 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1516 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1517
1518 status = "disabled";
1519 };
1520
1521 ufshc_mem: ufshc@1d84000 {
1522 compatible = "qcom,ufshc";
1523 reg = <0x1d84000 0x3000>;
1524 interrupts = <0 265 0>;
1525 phys = <&ufsphy_mem>;
1526 phy-names = "ufsphy";
1527
1528 lanes-per-direction = <1>;
1529 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1530
1531 clock-names =
1532 "core_clk",
1533 "bus_aggr_clk",
1534 "iface_clk",
1535 "core_clk_unipro",
1536 "core_clk_ice",
1537 "ref_clk",
1538 "tx_lane0_sync_clk",
1539 "rx_lane0_sync_clk";
1540 clocks =
1541 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1542 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1543 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1544 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1545 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1546 <&clock_rpmh RPMH_CXO_CLK>,
1547 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1548 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1549 freq-table-hz =
1550 <50000000 200000000>,
1551 <0 0>,
1552 <0 0>,
1553 <37500000 150000000>,
1554 <75000000 300000000>,
1555 <0 0>,
1556 <0 0>,
1557 <0 0>;
1558
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301559 qcom,msm-bus,name = "ufshc_mem";
1560 qcom,msm-bus,num-cases = <12>;
1561 qcom,msm-bus,num-paths = <2>;
1562 qcom,msm-bus,vectors-KBps =
1563 /*
1564 * During HS G3 UFS runs at nominal voltage corner, vote
1565 * higher bandwidth to push other buses in the data path
1566 * to run at nominal to achieve max throughput.
1567 * 4GBps pushes BIMC to run at nominal.
1568 * 200MBps pushes CNOC to run at nominal.
1569 * Vote for half of this bandwidth for HS G3 1-lane.
1570 * For max bandwidth, vote high enough to push the buses
1571 * to run in turbo voltage corner.
1572 */
1573 <123 512 0 0>, <1 757 0 0>, /* No vote */
1574 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1575 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1576 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1577 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1578 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1579 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1580 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1581 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1582 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1583 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1584 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1585
1586 qcom,bus-vector-names = "MIN",
1587 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1588 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1589 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1590 "MAX";
1591
1592 /* PM QoS */
1593 qcom,pm-qos-cpu-groups = <0x3f 0xC0>;
1594 qcom,pm-qos-cpu-group-latency-us = <70 70>;
1595 qcom,pm-qos-default-cpu = <0>;
1596
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301597 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1598 reset-names = "core_reset";
1599
1600 status = "disabled";
1601 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301602
1603 qcom,lpass@62400000 {
1604 compatible = "qcom,pil-tz-generic";
1605 reg = <0x62400000 0x00100>;
1606 interrupts = <0 162 1>;
1607
1608 vdd_cx-supply = <&pm660l_l9_level>;
1609 qcom,proxy-reg-names = "vdd_cx";
1610 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1611
1612 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1613 clock-names = "xo";
1614 qcom,proxy-clock-names = "xo";
1615
1616 qcom,pas-id = <1>;
1617 qcom,proxy-timeout-ms = <10000>;
1618 qcom,smem-id = <423>;
1619 qcom,sysmon-id = <1>;
1620 qcom,ssctl-instance-id = <0x14>;
1621 qcom,firmware-name = "adsp";
1622 memory-region = <&pil_adsp_mem>;
1623
1624 /* GPIO inputs from lpass */
1625 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1626 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1627 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1628 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1629
1630 /* GPIO output to lpass */
1631 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
1632 status = "ok";
1633 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301634
Sahitya Tummala02e49182017-09-19 10:54:42 +05301635 qcom,rmtfs_sharedmem@0 {
1636 compatible = "qcom,sharedmem-uio";
1637 reg = <0x0 0x200000>;
1638 reg-names = "rmtfs";
1639 qcom,client-id = <0x00000001>;
1640 };
1641
Mohammed Javid736c25c2017-06-19 13:23:18 +05301642 qcom,rmnet-ipa {
1643 compatible = "qcom,rmnet-ipa3";
1644 qcom,rmnet-ipa-ssr;
1645 qcom,ipa-loaduC;
1646 qcom,ipa-advertise-sg-support;
1647 qcom,ipa-napi-enable;
1648 };
1649
1650 ipa_hw: qcom,ipa@01e00000 {
1651 compatible = "qcom,ipa";
1652 reg = <0x1e00000 0x34000>,
1653 <0x1e04000 0x2c000>;
1654 reg-names = "ipa-base", "gsi-base";
1655 interrupts =
1656 <0 311 0>,
1657 <0 432 0>;
1658 interrupt-names = "ipa-irq", "gsi-irq";
1659 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1660 qcom,ipa-hw-mode = <1>;
1661 qcom,ee = <0>;
1662 qcom,use-ipa-tethering-bridge;
1663 qcom,modem-cfg-emb-pipe-flt;
1664 qcom,ipa-wdi2;
1665 qcom,use-64-bit-dma-mask;
1666 qcom,arm-smmu;
1667 qcom,smmu-s1-bypass;
1668 qcom,bandwidth-vote-for-ipa;
1669 qcom,msm-bus,name = "ipa";
1670 qcom,msm-bus,num-cases = <4>;
1671 qcom,msm-bus,num-paths = <4>;
1672 qcom,msm-bus,vectors-KBps =
1673 /* No vote */
1674 <90 512 0 0>,
1675 <90 585 0 0>,
1676 <1 676 0 0>,
1677 <143 777 0 0>,
1678 /* SVS */
1679 <90 512 80000 640000>,
1680 <90 585 80000 640000>,
1681 <1 676 80000 80000>,
1682 <143 777 0 150000>,
1683 /* NOMINAL */
1684 <90 512 206000 960000>,
1685 <90 585 206000 960000>,
1686 <1 676 206000 160000>,
1687 <143 777 0 300000>,
1688 /* TURBO */
1689 <90 512 206000 3600000>,
1690 <90 585 206000 3600000>,
1691 <1 676 206000 300000>,
1692 <143 777 0 355333>;
1693 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1694
1695 /* IPA RAM mmap */
1696 qcom,ipa-ram-mmap = <
1697 0x280 /* ofst_start; */
1698 0x0 /* nat_ofst; */
1699 0x0 /* nat_size; */
1700 0x288 /* v4_flt_hash_ofst; */
1701 0x78 /* v4_flt_hash_size; */
1702 0x4000 /* v4_flt_hash_size_ddr; */
1703 0x308 /* v4_flt_nhash_ofst; */
1704 0x78 /* v4_flt_nhash_size; */
1705 0x4000 /* v4_flt_nhash_size_ddr; */
1706 0x388 /* v6_flt_hash_ofst; */
1707 0x78 /* v6_flt_hash_size; */
1708 0x4000 /* v6_flt_hash_size_ddr; */
1709 0x408 /* v6_flt_nhash_ofst; */
1710 0x78 /* v6_flt_nhash_size; */
1711 0x4000 /* v6_flt_nhash_size_ddr; */
1712 0xf /* v4_rt_num_index; */
1713 0x0 /* v4_modem_rt_index_lo; */
1714 0x7 /* v4_modem_rt_index_hi; */
1715 0x8 /* v4_apps_rt_index_lo; */
1716 0xe /* v4_apps_rt_index_hi; */
1717 0x488 /* v4_rt_hash_ofst; */
1718 0x78 /* v4_rt_hash_size; */
1719 0x4000 /* v4_rt_hash_size_ddr; */
1720 0x508 /* v4_rt_nhash_ofst; */
1721 0x78 /* v4_rt_nhash_size; */
1722 0x4000 /* v4_rt_nhash_size_ddr; */
1723 0xf /* v6_rt_num_index; */
1724 0x0 /* v6_modem_rt_index_lo; */
1725 0x7 /* v6_modem_rt_index_hi; */
1726 0x8 /* v6_apps_rt_index_lo; */
1727 0xe /* v6_apps_rt_index_hi; */
1728 0x588 /* v6_rt_hash_ofst; */
1729 0x78 /* v6_rt_hash_size; */
1730 0x4000 /* v6_rt_hash_size_ddr; */
1731 0x608 /* v6_rt_nhash_ofst; */
1732 0x78 /* v6_rt_nhash_size; */
1733 0x4000 /* v6_rt_nhash_size_ddr; */
1734 0x688 /* modem_hdr_ofst; */
1735 0x140 /* modem_hdr_size; */
1736 0x7c8 /* apps_hdr_ofst; */
1737 0x0 /* apps_hdr_size; */
1738 0x800 /* apps_hdr_size_ddr; */
1739 0x7d0 /* modem_hdr_proc_ctx_ofst; */
1740 0x200 /* modem_hdr_proc_ctx_size; */
1741 0x9d0 /* apps_hdr_proc_ctx_ofst; */
1742 0x200 /* apps_hdr_proc_ctx_size; */
1743 0x0 /* apps_hdr_proc_ctx_size_ddr; */
1744 0x0 /* modem_comp_decomp_ofst; diff */
1745 0x0 /* modem_comp_decomp_size; diff */
1746 0xbd8 /* modem_ofst; */
1747 0x1024 /* modem_size; */
1748 0x2000 /* apps_v4_flt_hash_ofst; */
1749 0x0 /* apps_v4_flt_hash_size; */
1750 0x2000 /* apps_v4_flt_nhash_ofst; */
1751 0x0 /* apps_v4_flt_nhash_size; */
1752 0x2000 /* apps_v6_flt_hash_ofst; */
1753 0x0 /* apps_v6_flt_hash_size; */
1754 0x2000 /* apps_v6_flt_nhash_ofst; */
1755 0x0 /* apps_v6_flt_nhash_size; */
1756 0x80 /* uc_info_ofst; */
1757 0x200 /* uc_info_size; */
1758 0x2000 /* end_ofst; */
1759 0x2000 /* apps_v4_rt_hash_ofst; */
1760 0x0 /* apps_v4_rt_hash_size; */
1761 0x2000 /* apps_v4_rt_nhash_ofst; */
1762 0x0 /* apps_v4_rt_nhash_size; */
1763 0x2000 /* apps_v6_rt_hash_ofst; */
1764 0x0 /* apps_v6_rt_hash_size; */
1765 0x2000 /* apps_v6_rt_nhash_ofst; */
1766 0x0 /* apps_v6_rt_nhash_size; */
1767 0x1c00 /* uc_event_ring_ofst; */
1768 0x400 /* uc_event_ring_size; */
1769 >;
1770
1771 /* smp2p gpio information */
1772 qcom,smp2pgpio_map_ipa_1_out {
1773 compatible = "qcom,smp2pgpio-map-ipa-1-out";
1774 gpios = <&smp2pgpio_ipa_1_out 0 0>;
1775 };
1776
1777 qcom,smp2pgpio_map_ipa_1_in {
1778 compatible = "qcom,smp2pgpio-map-ipa-1-in";
1779 gpios = <&smp2pgpio_ipa_1_in 0 0>;
1780 };
1781
1782 ipa_smmu_ap: ipa_smmu_ap {
1783 compatible = "qcom,ipa-smmu-ap-cb";
1784 iommus = <&apps_smmu 0x720 0x0>;
1785 qcom,iova-mapping = <0x20000000 0x40000000>;
1786 };
1787
1788 ipa_smmu_wlan: ipa_smmu_wlan {
1789 compatible = "qcom,ipa-smmu-wlan-cb";
1790 iommus = <&apps_smmu 0x721 0x0>;
1791 };
1792
1793 ipa_smmu_uc: ipa_smmu_uc {
1794 compatible = "qcom,ipa-smmu-uc-cb";
1795 iommus = <&apps_smmu 0x722 0x0>;
1796 qcom,iova-mapping = <0x40000000 0x20000000>;
1797 };
1798 };
1799
1800 qcom,ipa_fws {
1801 compatible = "qcom,pil-tz-generic";
1802 qcom,pas-id = <0xf>;
1803 qcom,firmware-name = "ipa_fws";
1804 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301805
1806 pil_modem: qcom,mss@4080000 {
1807 compatible = "qcom,pil-q6v55-mss";
1808 reg = <0x4080000 0x100>,
1809 <0x1f63000 0x008>,
1810 <0x1f65000 0x008>,
1811 <0x1f64000 0x008>,
1812 <0x4180000 0x020>,
1813 <0xc2b0000 0x004>,
1814 <0xb2e0100 0x004>,
1815 <0x4180044 0x004>;
1816 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
1817 "halt_nc", "rmb_base", "restart_reg",
1818 "pdc_sync", "alt_reset";
1819
1820 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1821 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
1822 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
1823 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
1824 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
1825 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
1826 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
1827 <&clock_gcc GCC_PRNG_AHB_CLK>;
1828 clock-names = "xo", "iface_clk", "bus_clk",
1829 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
1830 "mnoc_axi_clk", "prng_clk";
1831 qcom,proxy-clock-names = "xo", "prng_clk";
1832 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
1833 "gpll0_mss_clk", "snoc_axi_clk",
1834 "mnoc_axi_clk";
1835
1836 interrupts = <0 266 1>;
1837 vdd_cx-supply = <&pm660l_s3_level>;
1838 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
1839 vdd_mx-supply = <&pm660l_s1_level>;
1840 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
1841 qcom,firmware-name = "modem";
1842 qcom,pil-self-auth;
1843 qcom,sysmon-id = <0>;
1844 qcom,ssctl-instance-id = <0x12>;
1845 qcom,override-acc;
1846 qcom,qdsp6v65-1-0;
Kyle Yanf248e352017-09-14 11:15:58 -07001847 qcom,mss_pdc_offset = <8>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301848 status = "ok";
1849 memory-region = <&pil_modem_mem>;
1850 qcom,mem-protect-id = <0xF>;
1851
1852 /* GPIO inputs from mss */
1853 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
1854 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
1855 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
1856 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
1857 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
1858
1859 /* GPIO output to mss */
1860 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
1861 qcom,mba-mem@0 {
1862 compatible = "qcom,pil-mba-mem";
1863 memory-region = <&pil_mba_mem>;
1864 };
1865 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05301866
1867 qcom,venus@aae0000 {
1868 compatible = "qcom,pil-tz-generic";
1869 reg = <0xaae0000 0x4000>;
1870
1871 vdd-supply = <&venus_gdsc>;
1872 qcom,proxy-reg-names = "vdd";
1873
1874 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
1875 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
1876 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
1877 clock-names = "core_clk", "iface_clk", "bus_clk";
1878 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
1879
1880 qcom,pas-id = <9>;
1881 qcom,msm-bus,name = "pil-venus";
1882 qcom,msm-bus,num-cases = <2>;
1883 qcom,msm-bus,num-paths = <1>;
1884 qcom,msm-bus,vectors-KBps =
1885 <63 512 0 0>,
1886 <63 512 0 304000>;
1887 qcom,proxy-timeout-ms = <100>;
1888 qcom,firmware-name = "venus";
1889 memory-region = <&pil_video_mem>;
1890 status = "ok";
1891 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05301892
1893 qcom,turing@8300000 {
1894 compatible = "qcom,pil-tz-generic";
1895 reg = <0x8300000 0x100000>;
1896 interrupts = <0 578 1>;
1897
1898 vdd_cx-supply = <&pm660l_s3_level>;
1899 qcom,proxy-reg-names = "vdd_cx";
1900 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1901
1902 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1903 clock-names = "xo";
1904 qcom,proxy-clock-names = "xo";
1905
1906 qcom,pas-id = <18>;
1907 qcom,proxy-timeout-ms = <10000>;
1908 qcom,smem-id = <601>;
1909 qcom,sysmon-id = <7>;
1910 qcom,ssctl-instance-id = <0x17>;
1911 qcom,firmware-name = "cdsp";
1912 memory-region = <&pil_cdsp_mem>;
1913
1914 /* GPIO inputs from turing */
1915 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
1916 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
1917 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
1918 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
1919
1920 /* GPIO output to turing*/
1921 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
1922 status = "ok";
1923 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05301924
1925 sdhc_1: sdhci@7c4000 {
1926 compatible = "qcom,sdhci-msm-v5";
1927 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
1928 reg-names = "hc_mem", "cmdq_mem";
1929
1930 interrupts = <0 641 0>, <0 644 0>;
1931 interrupt-names = "hc_irq", "pwr_irq";
1932
1933 qcom,bus-width = <8>;
1934 qcom,large-address-bus;
1935
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05301936 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
1937 192000000 384000000>;
1938 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
1939
1940 qcom,devfreq,freq-table = <50000000 200000000>;
1941
Vijay Viswanatheac72722017-06-05 11:01:38 +05301942 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
1943 <&clock_gcc GCC_SDCC1_APPS_CLK>;
1944 clock-names = "iface_clk", "core_clk";
1945
1946 qcom,nonremovable;
1947
1948 qcom,scaling-lower-bus-speed-mode = "DDR52";
1949 status = "disabled";
1950 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05301951
Vijay Viswanathee4340d2017-08-28 09:50:18 +05301952 sdhc_2: sdhci@8804000 {
1953 compatible = "qcom,sdhci-msm-v5";
1954 reg = <0x8804000 0x1000>;
1955 reg-names = "hc_mem";
1956
1957 interrupts = <0 204 0>, <0 222 0>;
1958 interrupt-names = "hc_irq", "pwr_irq";
1959
1960 qcom,bus-width = <4>;
1961 qcom,large-address-bus;
1962
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05301963 qcom,clk-rates = <400000 20000000 25000000
1964 50000000 100000000 201500000>;
1965 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
1966 "SDR104";
1967
1968 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanathee4340d2017-08-28 09:50:18 +05301969 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
1970 <&clock_gcc GCC_SDCC2_APPS_CLK>;
1971 clock-names = "iface_clk", "core_clk";
1972
1973 status = "disabled";
1974 };
1975
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05301976 qcom,msm-cdsp-loader {
1977 compatible = "qcom,cdsp-loader";
1978 qcom,proc-img-to-load = "cdsp";
1979 };
1980
1981 qcom,msm-adsprpc-mem {
1982 compatible = "qcom,msm-adsprpc-mem-region";
1983 memory-region = <&adsp_mem>;
1984 };
1985
1986 qcom,msm_fastrpc {
1987 compatible = "qcom,msm-fastrpc-compute";
1988
1989 qcom,msm_fastrpc_compute_cb1 {
1990 compatible = "qcom,msm-fastrpc-compute-cb";
1991 label = "cdsprpc-smd";
1992 iommus = <&apps_smmu 0x1421 0x30>;
1993 dma-coherent;
1994 };
1995 qcom,msm_fastrpc_compute_cb2 {
1996 compatible = "qcom,msm-fastrpc-compute-cb";
1997 label = "cdsprpc-smd";
1998 iommus = <&apps_smmu 0x1422 0x30>;
1999 dma-coherent;
2000 };
2001 qcom,msm_fastrpc_compute_cb3 {
2002 compatible = "qcom,msm-fastrpc-compute-cb";
2003 label = "cdsprpc-smd";
2004 iommus = <&apps_smmu 0x1423 0x30>;
2005 dma-coherent;
2006 };
2007 qcom,msm_fastrpc_compute_cb4 {
2008 compatible = "qcom,msm-fastrpc-compute-cb";
2009 label = "cdsprpc-smd";
2010 iommus = <&apps_smmu 0x1424 0x30>;
2011 dma-coherent;
2012 };
2013 qcom,msm_fastrpc_compute_cb5 {
2014 compatible = "qcom,msm-fastrpc-compute-cb";
2015 label = "cdsprpc-smd";
2016 iommus = <&apps_smmu 0x1425 0x30>;
2017 dma-coherent;
2018 };
2019 qcom,msm_fastrpc_compute_cb6 {
2020 compatible = "qcom,msm-fastrpc-compute-cb";
2021 label = "cdsprpc-smd";
2022 iommus = <&apps_smmu 0x1426 0x30>;
2023 dma-coherent;
2024 };
2025 qcom,msm_fastrpc_compute_cb7 {
2026 compatible = "qcom,msm-fastrpc-compute-cb";
2027 label = "cdsprpc-smd";
2028 qcom,secure-context-bank;
2029 iommus = <&apps_smmu 0x1429 0x30>;
2030 dma-coherent;
2031 };
2032 qcom,msm_fastrpc_compute_cb8 {
2033 compatible = "qcom,msm-fastrpc-compute-cb";
2034 label = "cdsprpc-smd";
2035 qcom,secure-context-bank;
2036 iommus = <&apps_smmu 0x142A 0x30>;
2037 dma-coherent;
2038 };
2039 qcom,msm_fastrpc_compute_cb9 {
2040 compatible = "qcom,msm-fastrpc-compute-cb";
2041 label = "adsprpc-smd";
2042 iommus = <&apps_smmu 0x1803 0x0>;
2043 dma-coherent;
2044 };
2045 qcom,msm_fastrpc_compute_cb10 {
2046 compatible = "qcom,msm-fastrpc-compute-cb";
2047 label = "adsprpc-smd";
2048 iommus = <&apps_smmu 0x1804 0x0>;
2049 dma-coherent;
2050 };
2051 qcom,msm_fastrpc_compute_cb11 {
2052 compatible = "qcom,msm-fastrpc-compute-cb";
2053 label = "adsprpc-smd";
2054 iommus = <&apps_smmu 0x1805 0x0>;
2055 dma-coherent;
2056 };
2057 };
Anurag Chouhan7563b532017-09-12 15:49:16 +05302058
2059 qcom,icnss@18800000 {
2060 status = "disabled";
2061 compatible = "qcom,icnss";
2062 reg = <0x18800000 0x800000>;
2063 interrupts = <0 414 0 /* CE0 */ >,
2064 <0 415 0 /* CE1 */ >,
2065 <0 416 0 /* CE2 */ >,
2066 <0 417 0 /* CE3 */ >,
2067 <0 418 0 /* CE4 */ >,
2068 <0 419 0 /* CE5 */ >,
2069 <0 420 0 /* CE6 */ >,
2070 <0 421 0 /* CE7 */ >,
2071 <0 422 0 /* CE8 */ >,
2072 <0 423 0 /* CE9 */ >,
2073 <0 424 0 /* CE10 */ >,
2074 <0 425 0 /* CE11 */ >;
2075 qcom,wlan-msa-memory = <0x100000>;
2076 qcom,smmu-s1-bypass;
2077 };
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302078
2079 cpubw: qcom,cpubw {
2080 compatible = "qcom,devbw";
2081 governor = "performance";
2082 qcom,src-dst-ports =
2083 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_LLCC>;
2084 qcom,active-only;
2085 qcom,bw-tbl =
2086 < 1144 /* 150 MHz */ >,
2087 < 2288 /* 300 MHz */ >,
2088 < 3555 /* 466 MHz */ >,
2089 < 4577 /* 600 MHz */ >,
2090 < 6149 /* 806 MHz */ >,
2091 < 7118 /* 933 MHz */ >;
2092 };
2093
2094 bwmon: qcom,cpu-bwmon {
2095 compatible = "qcom,bimc-bwmon4";
2096 reg = <0x1436400 0x300>, <0x1436300 0x200>;
2097 reg-names = "base", "global_base";
2098 interrupts = <0 581 4>;
2099 qcom,mport = <0>;
2100 qcom,hw-timer-hz = <19200000>;
2101 qcom,target-dev = <&cpubw>;
2102 };
2103
2104 llccbw: qcom,llccbw {
2105 compatible = "qcom,devbw";
2106 governor = "powersave";
2107 qcom,src-dst-ports =
2108 <MSM_BUS_MASTER_LLCC MSM_BUS_SLAVE_EBI_CH0>;
2109 qcom,active-only;
2110 qcom,bw-tbl =
2111 < 381 /* 100 MHz */ >,
2112 < 762 /* 200 MHz */ >,
2113 < 1144 /* 300 MHz */ >,
2114 < 1720 /* 451 MHz */ >,
2115 < 2086 /* 547 MHz */ >,
2116 < 2597 /* 681 MHz */ >,
2117 < 2929 /* 768 MHz */ >,
2118 < 3879 /* 1017 MHz */ >,
2119 < 5161 /* 1353 MHz */ >,
2120 < 5931 /* 1555 MHz */ >,
2121 < 6881 /* 1804 MHz */ >;
2122 };
2123
2124 llcc_bwmon: qcom,llcc-bwmon {
2125 compatible = "qcom,bimc-bwmon5";
2126 reg = <0x0114a000 0x1000>;
2127 reg-names = "base";
2128 interrupts = <GIC_SPI 580 IRQ_TYPE_LEVEL_HIGH>;
2129 qcom,hw-timer-hz = <19200000>;
2130 qcom,target-dev = <&llccbw>;
2131 qcom,count-unit = <0x200000>;
2132 qcom,byte-mid-mask = <0xe000>;
2133 qcom,byte-mid-match = <0xe000>;
2134 };
2135
2136 memlat_cpu0: qcom,memlat-cpu0 {
2137 compatible = "qcom,devbw";
2138 governor = "powersave";
2139 qcom,src-dst-ports = <1 512>;
2140 qcom,active-only;
2141 qcom,bw-tbl =
2142 < 381 /* 100 MHz */ >,
2143 < 762 /* 200 MHz */ >,
2144 < 1144 /* 300 MHz */ >,
2145 < 1720 /* 451 MHz */ >,
2146 < 2086 /* 547 MHz */ >,
2147 < 2597 /* 681 MHz */ >,
2148 < 2929 /* 768 MHz */ >,
2149 < 3879 /* 1017 MHz */ >,
2150 < 5161 /* 1353 MHz */ >,
2151 < 5931 /* 1555 MHz */ >,
2152 < 6881 /* 1804 MHz */ >;
2153 };
2154
2155 memlat_cpu4: qcom,memlat-cpu4 {
2156 compatible = "qcom,devbw";
2157 governor = "powersave";
2158 qcom,src-dst-ports = <1 512>;
2159 qcom,active-only;
2160 status = "ok";
2161 qcom,bw-tbl =
2162 < 381 /* 100 MHz */ >,
2163 < 762 /* 200 MHz */ >,
2164 < 1144 /* 300 MHz */ >,
2165 < 1720 /* 451 MHz */ >,
2166 < 2086 /* 547 MHz */ >,
2167 < 2597 /* 681 MHz */ >,
2168 < 2929 /* 768 MHz */ >,
2169 < 3879 /* 1017 MHz */ >,
2170 < 5161 /* 1353 MHz */ >,
2171 < 5931 /* 1555 MHz */ >,
2172 < 6881 /* 1804 MHz */ >;
2173 };
2174
2175 devfreq_memlat_0: qcom,cpu0-memlat-mon {
2176 compatible = "qcom,arm-memlat-mon";
2177 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3>;
2178 qcom,target-dev = <&memlat_cpu0>;
2179 qcom,cachemiss-ev = <0x24>;
2180 qcom,core-dev-table =
2181 < 748800 1144 >,
2182 < 998400 1720 >,
2183 < 1209600 2086 >,
2184 < 1497600 2929 >,
2185 < 1728000 3879 >;
2186 };
2187
2188 devfreq_memlat_4: qcom,cpu4-memlat-mon {
2189 compatible = "qcom,arm-memlat-mon";
2190 qcom,cpulist = <&CPU4 &CPU5 &CPU6 &CPU7>;
2191 qcom,target-dev = <&memlat_cpu4>;
2192 qcom,cachemiss-ev = <0x24>;
2193 qcom,core-dev-table =
2194 < 787200 1144 >,
2195 < 1113600 2086 >,
2196 < 1344000 3879 >,
2197 < 1900800 5931 >,
2198 < 2438400 6881 >;
2199 };
2200
2201 l3_cpu0: qcom,l3-cpu0 {
2202 compatible = "devfreq-simple-dev";
2203 clock-names = "devfreq_clk";
2204 clocks = <&clock_cpucc L3_CLUSTER0_VOTE_CLK>;
2205 governor = "performance";
2206 };
2207
2208 l3_cpu4: qcom,l3-cpu4 {
2209 compatible = "devfreq-simple-dev";
2210 clock-names = "devfreq_clk";
2211 clocks = <&clock_cpucc L3_CLUSTER1_VOTE_CLK>;
2212 governor = "performance";
2213 };
2214
2215 devfreq_l3lat_0: qcom,cpu0-l3lat-mon {
2216 compatible = "qcom,arm-memlat-mon";
2217 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3>;
2218 qcom,target-dev = <&l3_cpu0>;
2219 qcom,cachemiss-ev = <0x17>;
2220 qcom,core-dev-table =
2221 < 748800 566400000 >,
2222 < 998400 787200000 >,
2223 < 1209660 940800000 >,
2224 < 1497600 1190400000 >,
2225 < 1612800 1382400000 >,
2226 < 1728000 1440000000 >;
2227 };
2228
2229 devfreq_l3lat_4: qcom,cpu4-l3lat-mon {
2230 compatible = "qcom,arm-memlat-mon";
2231 qcom,cpulist = <&CPU4 &CPU5 &CPU6 &CPU7>;
2232 qcom,target-dev = <&l3_cpu4>;
2233 qcom,cachemiss-ev = <0x17>;
2234 qcom,core-dev-table =
2235 < 1113600 566400000 >,
2236 < 1344000 787200000 >,
2237 < 1728000 940800000 >,
2238 < 1900800 1190400000 >,
2239 < 2438400 1440000000 >;
2240 };
2241
2242 mincpubw: qcom,mincpubw {
2243 compatible = "qcom,devbw";
2244 governor = "powersave";
2245 qcom,src-dst-ports = <1 512>;
2246 qcom,active-only;
2247 qcom,bw-tbl =
2248 < 381 /* 100 MHz */ >,
2249 < 762 /* 200 MHz */ >,
2250 < 1144 /* 300 MHz */ >,
2251 < 1720 /* 451 MHz */ >,
2252 < 2086 /* 547 MHz */ >,
2253 < 2597 /* 681 MHz */ >,
2254 < 2929 /* 768 MHz */ >,
2255 < 3879 /* 1017 MHz */ >,
2256 < 5161 /* 1353 MHz */ >,
2257 < 5931 /* 1555 MHz */ >,
2258 < 6881 /* 1804 MHz */ >;
2259 };
2260
2261 devfreq-cpufreq {
2262 mincpubw-cpufreq {
2263 target-dev = <&mincpubw>;
2264 cpu-to-dev-map-0 =
2265 < 748800 1144 >,
2266 < 1209600 1720 >,
2267 < 1612000 2086 >,
2268 < 1728000 2929 >;
2269 cpu-to-dev-map-4 =
2270 < 1113600 1144 >,
2271 < 1344000 2086 >,
2272 < 1728000 2929 >,
2273 < 1900800 3879 >,
2274 < 2438400 6881 >;
2275 };
2276 };
Imran Khan04f08312017-03-30 15:07:43 +05302277};
2278
2279#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302280#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302281#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302282#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302283
2284&usb30_prim_gdsc {
2285 status = "ok";
2286};
2287
2288&ufs_phy_gdsc {
2289 status = "ok";
2290};
2291
2292&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2293 status = "ok";
2294};
2295
2296&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2297 status = "ok";
2298};
2299
2300&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2301 status = "ok";
2302};
2303
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302304&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2305 status = "ok";
2306};
2307
2308&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2309 status = "ok";
2310};
2311
2312&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2313 status = "ok";
2314};
2315
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302316&bps_gdsc {
2317 status = "ok";
2318};
2319
2320&ife_0_gdsc {
2321 status = "ok";
2322};
2323
2324&ife_1_gdsc {
2325 status = "ok";
2326};
2327
2328&ipe_0_gdsc {
2329 status = "ok";
2330};
2331
2332&ipe_1_gdsc {
2333 status = "ok";
2334};
2335
2336&titan_top_gdsc {
2337 status = "ok";
2338};
2339
2340&mdss_core_gdsc {
2341 status = "ok";
2342};
2343
2344&gpu_cx_gdsc {
2345 status = "ok";
2346};
2347
2348&gpu_gx_gdsc {
2349 clock-names = "core_root_clk";
2350 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2351 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302352 parent-supply = <&pm660l_s2_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302353 status = "ok";
2354};
2355
2356&vcodec0_gdsc {
2357 qcom,support-hw-trigger;
2358 status = "ok";
2359};
2360
2361&vcodec1_gdsc {
2362 qcom,support-hw-trigger;
2363 status = "ok";
2364};
2365
2366&venus_gdsc {
2367 status = "ok";
2368};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302369
Tirupathi Reddy242bd802017-06-09 11:31:05 +05302370#include "pm660.dtsi"
2371#include "pm660l.dtsi"
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302372#include "sdm670-regulator.dtsi"
Rohit Kumar14051282017-07-12 11:18:48 +05302373#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05302374#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05302375#include "sdm670-gpu.dtsi"
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +05302376#include "sdm670-thermal.dtsi"