blob: 5f6ce48146ffe0f1c852063a79dadb2d67992591 [file] [log] [blame]
Rishabh Bhatnagare9a05bb2018-12-10 11:09:45 -08001// SPDX-License-Identifier: GPL-2.0-only
Runmin Wang4f5985b2017-04-19 15:55:12 -07002/*
Amir Samuelovf52db412019-01-08 09:30:58 +02003 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
Runmin Wang4f5985b2017-04-19 15:55:12 -07004 */
5
6#include "skeleton64.dtsi"
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07007
8#include <dt-bindings/clock/qcom,aop-qmp.h>
9#include <dt-bindings/clock/qcom,camcc-kona.h>
10#include <dt-bindings/clock/qcom,cpucc-kona.h>
11#include <dt-bindings/clock/qcom,dispcc-kona.h>
12#include <dt-bindings/clock/qcom,gcc-kona.h>
13#include <dt-bindings/clock/qcom,gpucc-kona.h>
14#include <dt-bindings/clock/qcom,npucc-kona.h>
15#include <dt-bindings/clock/qcom,rpmh.h>
16#include <dt-bindings/clock/qcom,videocc-kona.h>
Runmin Wang4f5985b2017-04-19 15:55:12 -070017#include <dt-bindings/interrupt-controller/arm-gic.h>
David Daib1d68482018-10-01 19:40:35 -070018#include <dt-bindings/msm/msm-bus-ids.h>
David Collins61d237d2019-01-03 16:01:15 -080019#include <dt-bindings/regulator/qcom,rpmh-regulator-levels.h>
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -070020#include <dt-bindings/soc/qcom,ipcc.h>
Lina Iyerea91c722018-06-20 14:58:05 -060021#include <dt-bindings/soc/qcom,rpmh-rsc.h>
Rishabh Bhatnagar2b66dc12018-10-18 10:36:27 -070022#include <dt-bindings/gpio/gpio.h>
Deepak Katragadda5bbf8142018-06-20 16:12:13 -070023
Rama Aparna Mallavarapu5a7daf42019-01-14 22:08:20 -080024#define MHZ_TO_MBPS(mhz, w) ((mhz * 1000000 * w) / (1024 * 1024))
25#define BW_OPP_ENTRY(mhz, w) opp-mhz {opp-hz = /bits/ 64 <MHZ_TO_MBPS(mhz, w)>;}
26
27
Runmin Wang4f5985b2017-04-19 15:55:12 -070028/ {
29 model = "Qualcomm Technologies, Inc. kona";
30 compatible = "qcom,kona";
31 qcom,msm-id = <356 0x10000>;
32 interrupt-parent = <&intc>;
33
Can Guob04bed52018-07-10 19:27:32 -070034 aliases {
35 ufshc1 = &ufshc_mem; /* Embedded UFS slot */
Bao D. Nguyenbd2335b2019-01-17 13:32:42 -080036 sdhc2 = &sdhc_2; /* SDC2 SD card slot */
Tony Truongc972c642018-09-12 10:03:51 -070037 pci-domain2 = &pcie2; /* PCIe2 domain */
Vipin Deep Kaur9a2c13d2018-12-19 18:38:46 +053038 serial0 = &qupv3_se2_2uart; /* RUMI */
Can Guob04bed52018-07-10 19:27:32 -070039 };
40
Runmin Wang4f5985b2017-04-19 15:55:12 -070041 cpus {
42 #address-cells = <2>;
43 #size-cells = <0>;
44
45 CPU0: cpu@0 {
46 device_type = "cpu";
47 compatible = "qcom,kryo";
48 reg = <0x0 0x0>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -070049 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -070050 cache-size = <0x8000>;
51 cpu-release-addr = <0x0 0x90000000>;
52 next-level-cache = <&L2_0>;
David Daia4635e62018-10-11 13:39:44 -070053 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -080054 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -080055 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -070056 L2_0: l2-cache {
57 compatible = "arm,arch-cache";
58 cache-size = <0x20000>;
59 cache-level = <2>;
60 next-level-cache = <&L3_0>;
61
62 L3_0: l3-cache {
63 compatible = "arm,arch-cache";
64 cache-size = <0x400000>;
65 cache-level = <3>;
66 };
67 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -070068
69 L1_I_0: l1-icache {
70 compatible = "arm,arch-cache";
71 qcom,dump-size = <0x8800>;
72 };
73
74 L1_D_0: l1-dcache {
75 compatible = "arm,arch-cache";
76 qcom,dump-size = <0x9000>;
77 };
78
79 L2_TLB_0: l2-tlb {
80 qcom,dump-size = <0x5000>;
81 };
Runmin Wang4f5985b2017-04-19 15:55:12 -070082 };
83
84 CPU1: cpu@100 {
85 device_type = "cpu";
86 compatible = "qcom,kryo";
87 reg = <0x0 0x100>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -070088 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -070089 cache-size = <0x8000>;
90 cpu-release-addr = <0x0 0x90000000>;
91 next-level-cache = <&L2_1>;
David Daia4635e62018-10-11 13:39:44 -070092 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -080093 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -080094 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -070095 L2_1: l2-cache {
96 compatible = "arm,arch-cache";
97 cache-size = <0x20000>;
98 cache-level = <2>;
99 next-level-cache = <&L3_0>;
100 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700101
102 L1_I_100: l1-icache {
103 compatible = "arm,arch-cache";
104 qcom,dump-size = <0x8800>;
105 };
106
107 L1_D_100: l1-dcache {
108 compatible = "arm,arch-cache";
109 qcom,dump-size = <0x9000>;
110 };
111
112 L2_TLB_100: l2-tlb {
113 qcom,dump-size = <0x5000>;
114 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700115 };
116
117 CPU2: cpu@200 {
118 device_type = "cpu";
119 compatible = "qcom,kryo";
120 reg = <0x0 0x200>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700121 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700122 cache-size = <0x8000>;
123 cpu-release-addr = <0x0 0x90000000>;
124 next-level-cache = <&L2_2>;
David Daia4635e62018-10-11 13:39:44 -0700125 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800126 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -0800127 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700128 L2_2: l2-cache {
129 compatible = "arm,arch-cache";
130 cache-size = <0x20000>;
131 cache-level = <2>;
132 next-level-cache = <&L3_0>;
133 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700134
135 L1_I_200: l1-icache {
136 compatible = "arm,arch-cache";
137 qcom,dump-size = <0x8800>;
138 };
139
140 L1_D_200: l1-dcache {
141 compatible = "arm,arch-cache";
142 qcom,dump-size = <0x9000>;
143 };
144
145 L2_TLB_200: l2-tlb {
146 qcom,dump-size = <0x5000>;
147 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700148 };
149
150 CPU3: cpu@300 {
151 device_type = "cpu";
152 compatible = "qcom,kryo";
153 reg = <0x0 0x300>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700154 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700155 cache-size = <0x8000>;
156 cpu-release-addr = <0x0 0x90000000>;
157 next-level-cache = <&L2_3>;
David Daia4635e62018-10-11 13:39:44 -0700158 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800159 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -0800160 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700161 L2_3: l2-cache {
162 compatible = "arm,arch-cache";
163 cache-size = <0x20000>;
164 cache-level = <2>;
165 next-level-cache = <&L3_0>;
166 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700167
168 L1_I_300: l1-icache {
169 compatible = "arm,arch-cache";
170 qcom,dump-size = <0x8800>;
171 };
172
173 L1_D_300: l1-dcache {
174 compatible = "arm,arch-cache";
175 qcom,dump-size = <0x9000>;
176 };
177
178 L2_TLB_300: l2-tlb {
179 qcom,dump-size = <0x5000>;
180 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700181 };
182
183 CPU4: cpu@400 {
184 device_type = "cpu";
185 compatible = "qcom,kryo";
186 reg = <0x0 0x400>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700187 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700188 cache-size = <0x10000>;
189 cpu-release-addr = <0x0 0x90000000>;
190 next-level-cache = <&L2_4>;
David Daia4635e62018-10-11 13:39:44 -0700191 qcom,freq-domain = <&cpufreq_hw 1 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800192 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhaladb98c3e2019-01-25 10:26:46 -0800193 dynamic-power-coefficient = <514>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700194 L2_4: l2-cache {
195 compatible = "arm,arch-cache";
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700196 cache-size = <0x40000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700197 cache-level = <2>;
198 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700199 qcom,dump-size = <0x48000>;
200 };
201
202 L1_I_400: l1-icache {
203 compatible = "arm,arch-cache";
204 qcom,dump-size = <0x11000>;
205 };
206
207 L1_D_400: l1-dcache {
208 compatible = "arm,arch-cache";
209 qcom,dump-size = <0x12000>;
210 };
211
212 L1_ITLB_400: l1-itlb {
213 qcom,dump-size = <0x300>;
214 };
215
216 L1_DTLB_400: l1-dtlb {
217 qcom,dump-size = <0x480>;
218 };
219
220 L2_TLB_400: l2-tlb {
221 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700222 };
223 };
224
225 CPU5: cpu@500 {
226 device_type = "cpu";
227 compatible = "qcom,kryo";
228 reg = <0x0 0x500>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700229 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700230 cache-size = <0x10000>;
231 cpu-release-addr = <0x0 0x90000000>;
232 next-level-cache = <&L2_5>;
David Daia4635e62018-10-11 13:39:44 -0700233 qcom,freq-domain = <&cpufreq_hw 1 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800234 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhaladb98c3e2019-01-25 10:26:46 -0800235 dynamic-power-coefficient = <514>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700236 L2_5: l2-cache {
237 compatible = "arm,arch-cache";
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700238 cache-size = <0x40000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700239 cache-level = <2>;
240 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700241 qcom,dump-size = <0x48000>;
242 };
243
244 L1_I_500: l1-icache {
245 compatible = "arm,arch-cache";
246 qcom,dump-size = <0x11000>;
247 };
248
249 L1_D_500: l1-dcache {
250 compatible = "arm,arch-cache";
251 qcom,dump-size = <0x12000>;
252 };
253
254 L1_ITLB_500: l1-itlb {
255 qcom,dump-size = <0x300>;
256 };
257
258 L1_DTLB_500: l1-dtlb {
259 qcom,dump-size = <0x480>;
260 };
261
262 L2_TLB_500: l2-tlb {
263 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700264 };
265 };
266
267 CPU6: cpu@600 {
268 device_type = "cpu";
269 compatible = "qcom,kryo";
270 reg = <0x0 0x600>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700271 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700272 cache-size = <0x10000>;
273 cpu-release-addr = <0x0 0x90000000>;
274 next-level-cache = <&L2_6>;
David Daia4635e62018-10-11 13:39:44 -0700275 qcom,freq-domain = <&cpufreq_hw 1 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800276 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhaladb98c3e2019-01-25 10:26:46 -0800277 dynamic-power-coefficient = <514>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700278 L2_6: l2-cache {
279 compatible = "arm,arch-cache";
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700280 cache-size = <0x40000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700281 cache-level = <2>;
282 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700283 qcom,dump-size = <0x48000>;
284 };
285
286 L1_I_600: l1-icache {
287 compatible = "arm,arch-cache";
288 qcom,dump-size = <0x11000>;
289 };
290
291 L1_D_600: l1-dcache {
292 compatible = "arm,arch-cache";
293 qcom,dump-size = <0x12000>;
294 };
295
296 L1_ITLB_600: l1-itlb {
297 qcom,dump-size = <0x300>;
298 };
299
300 L1_DTLB_600: l1-dtlb {
301 qcom,dump-size = <0x480>;
302 };
303
304 L2_TLB_600: l2-tlb {
305 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700306 };
307 };
308
309 CPU7: cpu@700 {
310 device_type = "cpu";
311 compatible = "qcom,kryo";
312 reg = <0x0 0x700>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700313 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700314 cache-size = <0x10000>;
315 cpu-release-addr = <0x0 0x90000000>;
316 next-level-cache = <&L2_7>;
David Daia4635e62018-10-11 13:39:44 -0700317 qcom,freq-domain = <&cpufreq_hw 2 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800318 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhaladb98c3e2019-01-25 10:26:46 -0800319 dynamic-power-coefficient = <598>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700320 L2_7: l2-cache {
321 compatible = "arm,arch-cache";
322 cache-size = <0x80000>;
323 cache-level = <2>;
324 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700325 qcom,dump-size = <0x90000>;
326 };
327
328 L1_I_700: l1-icache {
329 compatible = "arm,arch-cache";
330 qcom,dump-size = <0x11000>;
331 };
332
333 L1_D_700: l1-dcache {
334 compatible = "arm,arch-cache";
335 qcom,dump-size = <0x12000>;
336 };
337
338 L1_ITLB_700: l1-itlb {
339 qcom,dump-size = <0x300>;
340 };
341
342 L1_DTLB_700: l1-dtlb {
343 qcom,dump-size = <0x480>;
344 };
345
346 L2_TLB_700: l2-tlb {
347 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700348 };
349 };
350
351 cpu-map {
352 cluster0 {
353 core0 {
354 cpu = <&CPU0>;
355 };
356
357 core1 {
358 cpu = <&CPU1>;
359 };
360
361 core2 {
362 cpu = <&CPU2>;
363 };
364
365 core3 {
366 cpu = <&CPU3>;
367 };
368 };
369
370 cluster1 {
371 core0 {
372 cpu = <&CPU4>;
373 };
374
375 core1 {
376 cpu = <&CPU5>;
377 };
378
379 core2 {
380 cpu = <&CPU6>;
381 };
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800382 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700383
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800384 cluster2 {
385 core0 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700386 cpu = <&CPU7>;
387 };
388 };
389 };
390 };
391
David Daia4635e62018-10-11 13:39:44 -0700392
Channagoud Kadabicdd72a02018-09-21 14:46:21 -0700393 cpu_pmu: cpu-pmu {
394 compatible = "arm,armv8-pmuv3";
395 qcom,irq-is-percpu;
396 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
397 };
398
David Daia4635e62018-10-11 13:39:44 -0700399 soc: soc {
400 cpufreq_hw: qcom,cpufreq-hw {
401 compatible = "qcom,cpufreq-hw";
402 reg = <0x18591000 0x1000>, <0x18592000 0x1000>,
403 <0x18593000 0x1000>;
404 reg-names = "freq-domain0", "freq-domain1",
405 "freq-domain2";
406
David Daiee6a9d62019-01-10 17:14:04 -0800407 clocks = <&clock_rpmh RPMH_CXO_CLK>, <&clock_gcc GPLL0>;
David Daia4635e62018-10-11 13:39:44 -0700408 clock-names = "xo", "cpu_clk";
409
410 #freq-domain-cells = <2>;
411 };
412 };
413
Arjun Bagla76f02ef2018-09-19 10:00:29 -0700414 psci {
415 compatible = "arm,psci-1.0";
416 method = "smc";
417 };
418
Bruce Levy3bd8d1b2018-09-11 11:31:13 -0700419 firmware: firmware {
420 android {
421 compatible = "android,firmware";
422 fstab {
423 compatible = "android,fstab";
424 vendor {
425 compatible = "android,vendor";
426 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
427 type = "ext4";
428 mnt_flags = "ro,barrier=1,discard";
429 fsmgr_flags = "wait,slotselect,avb";
430 status = "ok";
431 };
432 };
433 };
434 };
435
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700436 psci {
437 compatible = "arm,psci-1.0";
438 method = "smc";
439 };
440
Swathi Sridhara79a9542018-06-21 11:40:44 -0700441 reserved-memory {
442 #address-cells = <2>;
443 #size-cells = <2>;
444 ranges;
445
446 hyp_mem: hyp_region@80000000 {
447 no-map;
448 reg = <0x0 0x80000000 0x0 0x600000>;
449 };
450
451 xbl_aop_mem: xbl_aop_region@80700000 {
452 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700453 reg = <0x0 0x80700000 0x0 0x120000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700454 };
455
Lina Iyer5d609fa2018-10-03 14:26:55 -0600456 cmd_db: reserved-memory@80820000 {
457 reg = <0x0 0x80820000 0x0 0x20000>;
458 compatible = "qcom,cmd-db";
459 no-map;
460 };
461
Swathi Sridhara79a9542018-06-21 11:40:44 -0700462 smem_mem: smem_region@80900000 {
463 no-map;
464 reg = <0x0 0x80900000 0x0 0x200000>;
465 };
466
467 removed_mem: removed_region@80b00000 {
468 no-map;
Swathi Sridhar67f2e9c2019-01-14 11:04:05 -0800469 reg = <0x0 0x80b00000 0x0 0x1300000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700470 };
471
472 qtee_apps_mem: qtee_apps_region@81e00000 {
473 no-map;
474 reg = <0x0 0x81e00000 0x0 0x2600000>;
475 };
476
477 pil_camera_mem: pil_camera_region@86000000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700478 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700479 no-map;
480 reg = <0x0 0x86000000 0x0 0x500000>;
481 };
482
483 pil_wlan_fw_mem: pil_wlan_fw_region@86500000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700484 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700485 no-map;
486 reg = <0x0 0x86500000 0x0 0x100000>;
487 };
488
489 pil_ipa_fw_mem: pil_ipa_fw_region@86600000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700490 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700491 no-map;
492 reg = <0x0 0x86600000 0x0 0x10000>;
493 };
494
495 pil_ipa_gsi_mem: pil_ipa_gsi_region@86610000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700496 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700497 no-map;
Swathi Sridhar67f2e9c2019-01-14 11:04:05 -0800498 reg = <0x0 0x86610000 0x0 0xa000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700499 };
500
Swathi Sridhar67f2e9c2019-01-14 11:04:05 -0800501 pil_gpu_mem: pil_gpu_region@8661a000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700502 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700503 no-map;
Swathi Sridhar67f2e9c2019-01-14 11:04:05 -0800504 reg = <0x0 0x8661a000 0x0 0x2000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700505 };
506
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700507 pil_npu_mem: pil_npu_region@86700000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700508 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700509 no-map;
510 reg = <0x0 0x86700000 0x0 0x500000>;
511 };
512
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700513 pil_video_mem: pil_video_region@86c00000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700514 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700515 no-map;
516 reg = <0x0 0x86c00000 0x0 0x500000>;
517 };
518
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700519 pil_cvp_mem: pil_cvp_region@87100000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700520 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700521 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700522 reg = <0x0 0x87100000 0x0 0x500000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700523 };
524
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700525 pil_cdsp_mem: pil_cdsp_region@87600000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700526 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700527 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700528 reg = <0x0 0x87600000 0x0 0x800000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700529 };
530
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700531 pil_slpi_mem: pil_slpi_region@87e00000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700532 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700533 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700534 reg = <0x0 0x87e00000 0x0 0x1500000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700535 };
536
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700537 pil_adsp_mem: pil_adsp_region@89300000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700538 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700539 no-map;
Swathi Sridhar19db3ed2018-11-29 11:01:42 -0800540 reg = <0x0 0x89300000 0x0 0x1a00000>;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700541 };
542
Swathi Sridhar19db3ed2018-11-29 11:01:42 -0800543 pil_spss_mem: pil_spss_region@8ad00000 {
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700544 compatible = "removed-dma-pool";
545 no-map;
Swathi Sridhar19db3ed2018-11-29 11:01:42 -0800546 reg = <0x0 0x8ad00000 0x0 0x100000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700547 };
548
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +0530549 adsp_mem: adsp_region {
550 compatible = "shared-dma-pool";
551 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
552 reusable;
553 alignment = <0x0 0x400000>;
Tharun Kumar Merugu9bf49d72018-12-21 02:33:10 +0530554 size = <0x0 0xC00000>;
555 };
556
557 sdsp_mem: sdsp_region {
558 compatible = "shared-dma-pool";
559 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
560 reusable;
561 alignment = <0x0 0x400000>;
562 size = <0x0 0x800000>;
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +0530563 };
564
George Shen9c54c662018-12-26 15:50:11 -0800565 cdsp_mem: cdsp_region {
566 compatible = "shared-dma-pool";
567 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
568 reusable;
569 alignment = <0x0 0x400000>;
570 size = <0x0 0x400000>;
571 };
572
Tingwei Zhangd9b535f2018-12-03 19:14:06 -0800573 dump_mem: mem_dump_region {
574 compatible = "shared-dma-pool";
Swathi Sridhar08b670b2019-01-16 17:05:24 -0800575 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
Tingwei Zhangd9b535f2018-12-03 19:14:06 -0800576 reusable;
577 size = <0 0x2400000>;
578 };
579
Zhen Kong284c9f02018-11-06 12:00:30 -0800580 qseecom_mem: qseecom_region {
581 compatible = "shared-dma-pool";
582 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
583 reusable;
584 alignment = <0x0 0x400000>;
585 size = <0x0 0x1400000>;
586 };
587
588 qseecom_ta_mem: qseecom_ta_region {
589 compatible = "shared-dma-pool";
590 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
591 reusable;
592 alignment = <0x0 0x400000>;
593 size = <0x0 0x1000000>;
594 };
595
Swathi Sridhara79a9542018-06-21 11:40:44 -0700596 /* global autoconfigured region for contiguous allocations */
597 linux,cma {
598 compatible = "shared-dma-pool";
599 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
600 reusable;
601 alignment = <0x0 0x400000>;
602 size = <0x0 0x2000000>;
603 linux,cma-default;
604 };
Vikram Panduranga5bbf75a2019-01-17 19:26:52 -0800605
606 mailbox_mem: mailbox_region {
607 compatible = "shared-dma-pool";
608 no-map;
609 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
610 alignment = <0x0 0x400000>;
611 size = <0x0 0x20000>;
612 };
Swathi Sridhara79a9542018-06-21 11:40:44 -0700613 };
Bruce Levyc5eb1992019-01-11 12:09:18 -0800614
615 vendor: vendor {
616 #address-cells = <1>;
617 #size-cells = <1>;
618 ranges = <0 0 0 0xffffffff>;
619 compatible = "simple-bus";
620 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700621};
622
623&soc {
624 #address-cells = <1>;
625 #size-cells = <1>;
626 ranges = <0 0 0 0xffffffff>;
627 compatible = "simple-bus";
628
David Collins692dff72018-11-12 17:09:49 -0800629 thermal_zones: thermal-zones {
630 };
631
Dilip Kotaab8bf962018-12-26 12:12:22 +0530632 slim_aud: slim@3ac0000 {
633 cell-index = <1>;
634 compatible = "qcom,slim-ngd";
635 reg = <0x3ac0000 0x2c000>,
636 <0x3a84000 0x2c000>;
637 reg-names = "slimbus_physical", "slimbus_bam_physical";
Rishabh Bhatnagar7ef15882019-01-22 11:02:09 -0800638 interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
639 <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
Dilip Kotaab8bf962018-12-26 12:12:22 +0530640 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
641 qcom,apps-ch-pipes = <0x700000>;
642 qcom,ea-pc = <0x2d0>;
Mahesh Kumar Sharmab8e62662019-01-17 16:16:22 -0800643 status = "ok";
Dilip Kotaab8bf962018-12-26 12:12:22 +0530644 qcom,iommu-s1-bypass;
645
646 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
647 compatible = "qcom,iommu-slim-ctrl-cb";
648 iommus = <&apps_smmu 0x1826 0x0>,
649 <&apps_smmu 0x182f 0x0>,
650 <&apps_smmu 0x1830 0x1>;
651 status = "disabled";
652 };
Mahesh Kumar Sharmab8e62662019-01-17 16:16:22 -0800653
654 /* Slimbus Slave DT for QCA6390 */
655 btfmslim_codec: qca6390 {
656 compatible = "qcom,btfmslim_slave";
657 elemental-addr = [00 01 20 02 17 02];
658 qcom,btfm-slim-ifd = "btfmslim_slave_ifd";
659 qcom,btfm-slim-ifd-elemental-addr = [00 00 20 02 17 02];
660 };
Dilip Kotaab8bf962018-12-26 12:12:22 +0530661 };
662
Runmin Wang4f5985b2017-04-19 15:55:12 -0700663 intc: interrupt-controller@17a00000 {
664 compatible = "arm,gic-v3";
665 #interrupt-cells = <3>;
666 interrupt-controller;
667 #redistributor-regions = <1>;
668 redistributor-stride = <0x0 0x20000>;
669 reg = <0x17a00000 0x10000>, /* GICD */
670 <0x17a60000 0x100000>; /* GICR * 8 */
671 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
672 };
673
Rishabh Bhatnagarfd73eb12018-09-04 15:00:46 -0700674 qcom,chd_silver {
675 compatible = "qcom,core-hang-detect";
676 label = "silver";
677 qcom,threshold-arr = <0x18000058 0x18010058
678 0x18020058 0x18030058>;
679 qcom,config-arr = <0x18000060 0x18010060
680 0x18020060 0x18030060>;
681 };
682
683 qcom,chd_gold {
684 compatible = "qcom,core-hang-detect";
685 label = "gold";
686 qcom,threshold-arr = <0x18040058 0x18050058
687 0x18060058 0x18070058>;
688 qcom,config-arr = <0x18040060 0x18050060
689 0x18060060 0x18070060>;
690 };
691
Rishabh Bhatnagar8f0dd4b2018-08-07 11:07:40 -0700692 cache-controller@9200000 {
693 compatible = "qcom,kona-llcc";
694 reg = <0x9200000 0x1d0000> , <0x9600000 0x50000>;
695 reg-names = "llcc_base", "llcc_broadcast_base";
Channagoud Kadabia13ed0a2018-09-26 16:10:35 -0700696 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
Rishabh Bhatnagar2e49cd3a2019-01-16 12:03:36 -0800697 cap-based-alloc-and-pwr-collapse;
Rishabh Bhatnagar8f0dd4b2018-08-07 11:07:40 -0700698 };
699
Rishabh Bhatnagarc6970a02018-09-04 16:43:43 -0700700 wdog: qcom,wdt@17c10000 {
701 compatible = "qcom,msm-watchdog";
702 reg = <0x17c10000 0x1000>;
703 reg-names = "wdt-base";
704 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
705 <0 1 IRQ_TYPE_LEVEL_HIGH>;
706 qcom,bark-time = <11000>;
707 qcom,pet-time = <9360>;
708 qcom,wakeup-enable;
709 qcom,scandump-sizes = <0x10100 0x10100 0x10100 0x10100
710 0x18100 0x18100 0x18100 0x18100>;
711 status = "disabled";
712 };
713
Maria Neptune5a1428b2018-08-29 13:25:19 -0700714 arch_timer: timer {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700715 compatible = "arm,armv8-timer";
716 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
717 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
718 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
719 <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
720 clock-frequency = <19200000>;
721 };
722
Maria Neptune5a1428b2018-08-29 13:25:19 -0700723 memtimer: timer@17c20000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700724 #address-cells = <1>;
725 #size-cells = <1>;
726 ranges;
727 compatible = "arm,armv7-timer-mem";
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700728 reg = <0x17c20000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700729 clock-frequency = <19200000>;
730
Maria Neptune5a1428b2018-08-29 13:25:19 -0700731 frame@17c21000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700732 frame-number = <0>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700733 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
Runmin Wang4f5985b2017-04-19 15:55:12 -0700734 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700735 reg = <0x17c21000 0x1000>,
736 <0x17c22000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700737 };
738
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700739 frame@17c23000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700740 frame-number = <1>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700741 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
742 reg = <0x17c23000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700743 status = "disabled";
744 };
745
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700746 frame@17c25000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700747 frame-number = <2>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700748 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
749 reg = <0x17c25000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700750 status = "disabled";
751 };
752
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700753 frame@17c27000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700754 frame-number = <3>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700755 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
756 reg = <0x17c27000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700757 status = "disabled";
758 };
759
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700760 frame@17c29000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700761 frame-number = <4>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700762 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
763 reg = <0x17c29000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700764 status = "disabled";
765 };
766
Maria Neptune5a1428b2018-08-29 13:25:19 -0700767 frame@17c2b000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700768 frame-number = <5>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700769 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
770 reg = <0x17c2b000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700771 status = "disabled";
772 };
773
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700774 frame@17c2d000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700775 frame-number = <6>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700776 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
777 reg = <0x17c2d000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700778 status = "disabled";
779 };
780 };
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700781
Tingwei Zhang020594a2018-11-27 21:58:09 -0800782 jtag_mm0: jtagmm@7040000 {
783 compatible = "qcom,jtagv8-mm";
784 reg = <0x7040000 0x1000>;
785 reg-names = "etm-base";
786
787 clocks = <&clock_aop QDSS_CLK>;
788 clock-names = "core_clk";
789
790 qcom,coresight-jtagmm-cpu = <&CPU0>;
791 };
792
793 jtag_mm1: jtagmm@7140000 {
794 compatible = "qcom,jtagv8-mm";
795 reg = <0x7140000 0x1000>;
796 reg-names = "etm-base";
797
798 clocks = <&clock_aop QDSS_CLK>;
799 clock-names = "core_clk";
800
801 qcom,coresight-jtagmm-cpu = <&CPU1>;
802 };
803
804 jtag_mm2: jtagmm@7240000 {
805 compatible = "qcom,jtagv8-mm";
806 reg = <0x7240000 0x1000>;
807 reg-names = "etm-base";
808
809 clocks = <&clock_aop QDSS_CLK>;
810 clock-names = "core_clk";
811
812 qcom,coresight-jtagmm-cpu = <&CPU2>;
813 };
814
815 jtag_mm3: jtagmm@7340000 {
816 compatible = "qcom,jtagv8-mm";
817 reg = <0x7340000 0x1000>;
818 reg-names = "etm-base";
819
820 clocks = <&clock_aop QDSS_CLK>;
821 clock-names = "core_clk";
822
823 qcom,coresight-jtagmm-cpu = <&CPU3>;
824 };
825
826 jtag_mm4: jtagmm@7440000 {
827 compatible = "qcom,jtagv8-mm";
828 reg = <0x7440000 0x1000>;
829 reg-names = "etm-base";
830
831 clocks = <&clock_aop QDSS_CLK>;
832 clock-names = "core_clk";
833
834 qcom,coresight-jtagmm-cpu = <&CPU4>;
835 };
836
837 jtag_mm5: jtagmm@7540000 {
838 compatible = "qcom,jtagv8-mm";
839 reg = <0x7540000 0x1000>;
840 reg-names = "etm-base";
841
842 clocks = <&clock_aop QDSS_CLK>;
843 clock-names = "core_clk";
844
845 qcom,coresight-jtagmm-cpu = <&CPU5>;
846 };
847
848 jtag_mm6: jtagmm@7640000 {
849 compatible = "qcom,jtagv8-mm";
850 reg = <0x7640000 0x1000>;
851 reg-names = "etm-base";
852
853 clocks = <&clock_aop QDSS_CLK>;
854 clock-names = "core_clk";
855
856 qcom,coresight-jtagmm-cpu = <&CPU6>;
857 };
858
859 jtag_mm7: jtagmm@7740000 {
860 compatible = "qcom,jtagv8-mm";
861 reg = <0x7740000 0x1000>;
862 reg-names = "etm-base";
863
864 clocks = <&clock_aop QDSS_CLK>;
865 clock-names = "core_clk";
866
867 qcom,coresight-jtagmm-cpu = <&CPU7>;
868 };
869
David Dai3c427802018-10-17 14:40:08 -0700870 qcom,devfreq-l3 {
871 compatible = "qcom,devfreq-fw";
872 reg = <0x18590000 0x4>, <0x18590100 0xa0>, <0x18590320 0x4>;
873 reg-names = "en-base", "ftbl-base", "perf-base";
874
Rama Aparna Mallavarapude6608e2019-01-07 15:41:32 -0800875 cpu0_l3: qcom,cpu0-cpu-l3-lat {
David Dai3c427802018-10-17 14:40:08 -0700876 compatible = "qcom,devfreq-fw-voter";
877 };
878
Rama Aparna Mallavarapude6608e2019-01-07 15:41:32 -0800879 cpu4_l3: qcom,cpu4-cpu-l3-lat {
880 compatible = "qcom,devfreq-fw-voter";
881 };
882
883 cpu7_l3: qcom,cpu7-cpu-l3-lat {
884 compatible = "qcom,devfreq-fw-voter";
885 };
886
887 cdsp_l3: qcom,cdsp-cdsp-l3-lat {
David Dai3c427802018-10-17 14:40:08 -0700888 compatible = "qcom,devfreq-fw-voter";
889 };
890 };
891
David Dai95d5bfba2019-01-31 13:59:58 -0800892 keepalive_opp_table: keepalive-opp-table {
893 compatible = "operating-points-v2";
894 opp-1 {
895 opp-hz = /bits/ 64 < 1 >;
896 };
897 };
898
899 snoc_cnoc_keepalive: qcom,snoc_cnoc_keepalive {
900 compatible = "qcom,devbw";
901 governor = "powersave";
902 qcom,src-dst-ports = <MSM_BUS_MASTER_AMPSS_M0
903 MSM_BUS_SLAVE_IMEM_CFG>;
904 qcom,active-only;
905 status = "ok";
906 operating-points-v2 = <&keepalive_opp_table>;
907 };
908
Chinmay Sawarkare5d4b862019-01-07 15:54:39 -0800909 venus_bus_cnoc_bw_table: bus-cnoc-bw-table {
910 compatible = "operating-points-v2";
911 BW_OPP_ENTRY( 200, 4);
912 };
913
Rama Aparna Mallavarapu5a7daf42019-01-14 22:08:20 -0800914 llcc_bw_opp_table: llcc-bw-opp-table {
915 compatible = "operating-points-v2";
916 BW_OPP_ENTRY( 150, 16); /* 2288 MB/s */
917 BW_OPP_ENTRY( 300, 16); /* 4577 MB/s */
918 BW_OPP_ENTRY( 466, 16); /* 7110 MB/s */
919 BW_OPP_ENTRY( 600, 16); /* 9155 MB/s */
920 BW_OPP_ENTRY( 806, 16); /* 12298 MB/s */
921 BW_OPP_ENTRY( 933, 16); /* 14236 MB/s */
922 BW_OPP_ENTRY( 1000, 16); /* 15258 MB/s */
923 };
924
925 ddr_bw_opp_table: ddr-bw-opp-table {
926 compatible = "operating-points-v2";
927 BW_OPP_ENTRY( 200, 4); /* 762 MB/s */
928 BW_OPP_ENTRY( 300, 4); /* 1144 MB/s */
929 BW_OPP_ENTRY( 451, 4); /* 1720 MB/s */
930 BW_OPP_ENTRY( 547, 4); /* 2086 MB/s */
931 BW_OPP_ENTRY( 681, 4); /* 2597 MB/s */
932 BW_OPP_ENTRY( 768, 4); /* 2929 MB/s */
933 BW_OPP_ENTRY( 1017, 4); /* 3879 MB/s */
934 BW_OPP_ENTRY( 1353, 4); /* 5161 MB/s */
935 BW_OPP_ENTRY( 1555, 4); /* 5931 MB/s */
Rama Aparna Mallavarapude6608e2019-01-07 15:41:32 -0800936 BW_OPP_ENTRY( 1804, 4); /* 6881 MB/s */
Rama Aparna Mallavarapu5a7daf42019-01-14 22:08:20 -0800937 BW_OPP_ENTRY( 2092, 4); /* 7980 MB/s */
938 BW_OPP_ENTRY( 2736, 4); /* 10437 MB/s */
939 };
940
941 suspendable_ddr_bw_opp_table: suspendable-ddr-bw-opp-table {
942 compatible = "operating-points-v2";
943 BW_OPP_ENTRY( 0, 4); /* 0 MB/s */
944 BW_OPP_ENTRY( 200, 4); /* 762 MB/s */
945 BW_OPP_ENTRY( 300, 4); /* 1144 MB/s */
946 BW_OPP_ENTRY( 451, 4); /* 1720 MB/s */
947 BW_OPP_ENTRY( 547, 4); /* 2086 MB/s */
948 BW_OPP_ENTRY( 681, 4); /* 2597 MB/s */
949 BW_OPP_ENTRY( 768, 4); /* 2929 MB/s */
950 BW_OPP_ENTRY( 1017, 4); /* 3879 MB/s */
951 BW_OPP_ENTRY( 1353, 4); /* 5161 MB/s */
952 BW_OPP_ENTRY( 1555, 4); /* 5931 MB/s */
Rama Aparna Mallavarapude6608e2019-01-07 15:41:32 -0800953 BW_OPP_ENTRY( 1804, 4); /* 6881 MB/s */
Rama Aparna Mallavarapu5a7daf42019-01-14 22:08:20 -0800954 BW_OPP_ENTRY( 2092, 4); /* 7980 MB/s */
955 BW_OPP_ENTRY( 2736, 4); /* 10437 MB/s */
956 };
957
Rama Aparna Mallavarapu230fb2a2019-01-31 12:56:01 -0800958 llcc_pmu: llcc-pmu@9095000 {
959 compatible = "qcom,llcc-pmu-ver2";
960 reg = <0x09095000 0x300>;
Rama Aparna Mallavarapude6608e2019-01-07 15:41:32 -0800961 reg-names = "lagg-base";
962 };
963
964 cpu_cpu_llcc_bw: qcom,cpu-cpu-llcc-bw {
965 compatible = "qcom,devbw";
966 governor = "performance";
967 qcom,src-dst-ports =
968 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_LLCC>;
969 qcom,active-only;
970 operating-points-v2 = <&llcc_bw_opp_table>;
971 };
972
973 cpu_cpu_llcc_bwmon: qcom,cpu-cpu-llcc-bwmon@90b6400 {
974 compatible = "qcom,bimc-bwmon4";
975 reg = <0x90b6400 0x300>, <0x90b6300 0x200>;
976 reg-names = "base", "global_base";
977 interrupts = <GIC_SPI 581 IRQ_TYPE_LEVEL_HIGH>;
978 qcom,mport = <0>;
979 qcom,hw-timer-hz = <19200000>;
980 qcom,target-dev = <&cpu_cpu_llcc_bw>;
981 qcom,count-unit = <0x10000>;
982 };
983
984 cpu_llcc_ddr_bw: qcom,cpu-llcc-ddr-bw {
985 compatible = "qcom,devbw";
986 governor = "performance";
987 qcom,src-dst-ports =
988 <MSM_BUS_MASTER_LLCC MSM_BUS_SLAVE_EBI_CH0>;
989 qcom,active-only;
990 operating-points-v2 = <&ddr_bw_opp_table>;
991 };
992
993 cpu_llcc_ddr_bwmon: qcom,cpu-llcc-ddr-bwmon@9091000 {
994 compatible = "qcom,bimc-bwmon5";
995 reg = <0x9091000 0x1000>;
996 reg-names = "base";
997 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
998 qcom,hw-timer-hz = <19200000>;
999 qcom,target-dev = <&cpu_llcc_ddr_bw>;
1000 qcom,count-unit = <0x10000>;
1001 };
1002
1003 npu_npu_ddr_bw: qcom,npu-npu-ddr-bw {
1004 compatible = "qcom,devbw";
1005 governor = "performance";
1006 qcom,src-dst-ports = <MSM_BUS_MASTER_NPU MSM_BUS_SLAVE_EBI_CH0>;
1007 operating-points-v2 = <&suspendable_ddr_bw_opp_table>;
1008 };
1009
1010 npu_npu_ddr_bwmon: qcom,npu-npu-ddr-bwmon@60300 {
1011 compatible = "qcom,bimc-bwmon4";
1012 reg = <0x00060300 0x300>, <0x00060400 0x200>;
1013 reg-names = "base", "global_base";
1014 interrupts = <GIC_SPI 476 IRQ_TYPE_LEVEL_HIGH>;
1015 qcom,mport = <0>;
1016 qcom,hw-timer-hz = <19200000>;
1017 qcom,target-dev = <&npu_npu_ddr_bw>;
1018 qcom,count-unit = <0x10000>;
1019 };
1020
1021 npu_npu_ddr_bwmon_dsp: qcom,npu-npu-ddr-bwmoni_dsp@70200 {
1022 compatible = "qcom,bimc-bwmon4";
1023 reg = <0x00070200 0x300>, <0x00070300 0x200>;
1024 reg-names = "base", "global_base";
1025 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
1026 qcom,mport = <0>;
1027 qcom,hw-timer-hz = <19200000>;
1028 qcom,target-dev = <&npu_npu_ddr_bw>;
1029 qcom,count-unit = <0x10000>;
1030 };
1031
1032 cpu0_cpu_l3_latmon: qcom,cpu0-cpu-l3-latmon {
1033 compatible = "qcom,arm-memlat-mon";
1034 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3>;
1035 qcom,target-dev = <&cpu0_l3>;
1036 qcom,cachemiss-ev = <0x17>;
1037 qcom,core-dev-table =
1038 < 300000 300000000 >,
1039 < 403200 403200000 >,
1040 < 518400 518400000 >,
1041 < 633600 614400000 >,
1042 < 825600 729600000 >,
1043 < 921600 825600000 >,
1044 < 1036800 921600000 >,
1045 < 1132800 1036800000 >,
1046 < 1228800 1132800000 >,
1047 < 1401600 1228800000 >,
1048 < 1497600 1305600000 >,
1049 < 1670400 1382400000 >;
1050 };
1051
1052 cpu4_cpu_l3_latmon: qcom,cpu4-cpu-l3-latmon {
1053 compatible = "qcom,arm-memlat-mon";
1054 qcom,cpulist = <&CPU4 &CPU5 &CPU6>;
1055 qcom,target-dev = <&cpu4_l3>;
1056 qcom,cachemiss-ev = <0x17>;
1057 qcom,core-dev-table =
1058 < 300000 300000000 >,
1059 < 806400 614400000 >,
1060 < 1017600 729600000 >,
1061 < 1228800 921600000 >,
1062 < 1689600 1228800000 >,
1063 < 1804800 1305600000 >,
1064 < 2227200 1382400000 >;
1065 };
1066
1067 cpu7_cpu_l3_latmon: qcom,cpu7-cpu-l3-latmon {
1068 compatible = "qcom,arm-memlat-mon";
1069 qcom,cpulist = <&CPU7>;
1070 qcom,target-dev = <&cpu7_l3>;
1071 qcom,cachemiss-ev = <0x17>;
1072 qcom,core-dev-table =
1073 < 300000 300000000 >,
1074 < 806400 614400000 >,
1075 < 1017600 729600000 >,
1076 < 1228800 921600000 >,
1077 < 1689600 1228800000 >,
1078 < 1804800 1305600000 >,
1079 < 2227200 1382400000 >;
1080 };
1081
1082 cpu0_cpu_llcc_lat: qcom,cpu0-cpu-llcc-lat {
1083 compatible = "qcom,devbw";
1084 governor = "performance";
1085 qcom,src-dst-ports =
1086 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_LLCC>;
1087 qcom,active-only;
1088 operating-points-v2 = <&llcc_bw_opp_table>;
1089 };
1090
1091 cpu0_cpu_llcc_latmon: qcom,cpu0-cpu-llcc-latmon {
1092 compatible = "qcom,arm-memlat-mon";
1093 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3>;
1094 qcom,target-dev = <&cpu0_cpu_llcc_lat>;
1095 qcom,cachemiss-ev = <0x2A>;
1096 qcom,core-dev-table =
1097 < 300000 MHZ_TO_MBPS( 150, 16) >,
1098 < 729600 MHZ_TO_MBPS( 300, 16) >,
1099 < 1497600 MHZ_TO_MBPS( 466, 16) >,
1100 < 1670400 MHZ_TO_MBPS( 600, 16) >;
1101 };
1102
1103 cpu4_cpu_llcc_lat: qcom,cpu4-cpu-llcc-lat {
1104 compatible = "qcom,devbw";
1105 governor = "performance";
1106 qcom,src-dst-ports =
1107 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_LLCC>;
1108 qcom,active-only;
1109 operating-points-v2 = <&llcc_bw_opp_table>;
1110 };
1111
1112 cpu4_cpu_llcc_latmon: qcom,cpu4-cpu-llcc-latmon {
1113 compatible = "qcom,arm-memlat-mon";
1114 qcom,cpulist = <&CPU4 &CPU5 &CPU6 &CPU7>;
1115 qcom,target-dev = <&cpu4_cpu_llcc_lat>;
1116 qcom,cachemiss-ev = <0x2A>;
1117 qcom,core-dev-table =
1118 < 300000 MHZ_TO_MBPS( 150, 16) >,
1119 < 691200 MHZ_TO_MBPS( 300, 16) >,
1120 < 1017600 MHZ_TO_MBPS( 466, 16) >,
1121 < 1228800 MHZ_TO_MBPS( 600, 16) >,
1122 < 1804800 MHZ_TO_MBPS( 806, 16) >,
1123 < 2227200 MHZ_TO_MBPS( 933, 16) >,
1124 < 2476800 MHZ_TO_MBPS( 1000, 16) >;
1125 };
1126
1127 cpu0_llcc_ddr_lat: qcom,cpu0-llcc-ddr-lat {
1128 compatible = "qcom,devbw";
1129 governor = "performance";
1130 qcom,src-dst-ports =
1131 <MSM_BUS_MASTER_LLCC MSM_BUS_SLAVE_EBI_CH0>;
1132 qcom,active-only;
1133 operating-points-v2 = <&ddr_bw_opp_table>;
1134 };
1135
1136 cpu0_llcc_ddr_latmon: qcom,cpu0-llcc-ddr-latmon {
1137 compatible = "qcom,arm-memlat-mon";
1138 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3>;
1139 qcom,target-dev = <&cpu0_llcc_ddr_lat>;
1140 qcom,cachemiss-ev = <0x1000>;
1141 qcom,core-dev-table =
1142 < 300000 MHZ_TO_MBPS( 200, 4) >,
1143 < 729600 MHZ_TO_MBPS( 451, 4) >,
1144 < 1132800 MHZ_TO_MBPS( 547, 4) >,
1145 < 1497600 MHZ_TO_MBPS( 768, 4) >,
1146 < 1670400 MHZ_TO_MBPS( 1017, 4) >;
1147 };
1148
1149 cpu4_llcc_ddr_lat: qcom,cpu4-llcc-ddr-lat {
1150 compatible = "qcom,devbw";
1151 governor = "performance";
1152 qcom,src-dst-ports =
1153 <MSM_BUS_MASTER_LLCC MSM_BUS_SLAVE_EBI_CH0>;
1154 qcom,active-only;
1155 operating-points-v2 = <&ddr_bw_opp_table>;
1156 };
1157
1158 cpu4_llcc_ddr_latmon: qcom,cpu4-llcc-ddr-latmon {
1159 compatible = "qcom,arm-memlat-mon";
1160 qcom,cpulist = <&CPU4 &CPU5 &CPU6 &CPU7>;
1161 qcom,target-dev = <&cpu4_llcc_ddr_lat>;
1162 qcom,cachemiss-ev = <0x1000>;
1163 qcom,core-dev-table =
1164 < 300000 MHZ_TO_MBPS( 200, 4) >,
1165 < 691200 MHZ_TO_MBPS( 451, 4) >,
1166 < 806400 MHZ_TO_MBPS( 547, 4) >,
1167 < 1017600 MHZ_TO_MBPS( 768, 4) >,
1168 < 1228800 MHZ_TO_MBPS(1017, 4) >,
1169 < 1574400 MHZ_TO_MBPS(1353, 4) >,
1170 < 1804800 MHZ_TO_MBPS(1555, 4) >,
1171 < 2227200 MHZ_TO_MBPS(1804, 4) >,
1172 < 2380800 MHZ_TO_MBPS(2092, 4) >,
1173 < 2476800 MHZ_TO_MBPS(2736, 4) >;
1174 };
1175
1176 cpu4_cpu_ddr_latfloor: qcom,cpu4-cpu-ddr-latfloor {
1177 compatible = "qcom,devbw";
1178 governor = "performance";
1179 qcom,src-dst-ports =
1180 <MSM_BUS_MASTER_LLCC MSM_BUS_SLAVE_EBI_CH0>;
1181 qcom,active-only;
1182 operating-points-v2 = <&ddr_bw_opp_table>;
1183 };
1184
1185 cpu4_computemon: qcom,cpu4-computemon {
1186 compatible = "qcom,arm-cpu-mon";
1187 qcom,cpulist = <&CPU4 &CPU5 &CPU6 &CPU7>;
1188 qcom,target-dev = <&cpu4_cpu_ddr_latfloor>;
1189 qcom,core-dev-table =
1190 < 1804800 MHZ_TO_MBPS( 200, 4) >,
1191 < 2380800 MHZ_TO_MBPS(1017, 4) >,
1192 < 2500000 MHZ_TO_MBPS(2736, 4) >;
1193 };
1194
1195 keepalive_opp_table: keepalive-opp-table {
1196 compatible = "operating-points-v2";
1197 opp-1 {
1198 opp-hz = /bits/ 64 < 1 >;
1199 };
1200 };
1201
1202 snoc_cnoc_keepalive: qcom,snoc_cnoc_keepalive {
1203 compatible = "qcom,devbw";
1204 governor = "powersave";
1205 qcom,src-dst-ports = <1 627>;
1206 qcom,active-only;
1207 status = "ok";
1208 operating-points-v2 = <&keepalive_opp_table>;
1209 };
1210
1211 cdsp_keepalive: qcom,cdsp_keepalive {
1212 compatible = "qcom,devbw";
1213 governor = "powersave";
1214 qcom,src-dst-ports = <154 10070>;
1215 qcom,active-only;
1216 status = "ok";
1217 operating-points-v2 = <&keepalive_opp_table>;
1218 };
1219
Rishabh Bhatnagarf35ba022018-09-18 15:17:22 -07001220 qcom,msm-imem@146bf000 {
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001221 compatible = "qcom,msm-imem";
1222 reg = <0x146bf000 0x1000>;
1223 ranges = <0x0 0x146bf000 0x1000>;
1224 #address-cells = <1>;
1225 #size-cells = <1>;
1226
Tingwei Zhangd9b535f2018-12-03 19:14:06 -08001227 mem_dump_table@10 {
1228 compatible = "qcom,msm-imem-mem_dump_table";
1229 reg = <0x10 0x8>;
1230 };
1231
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001232 restart_reason@65c {
1233 compatible = "qcom,msm-imem-restart_reason";
Maria Neptune5a1428b2018-08-29 13:25:19 -07001234 reg = <0x65c 0x4>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001235 };
1236
1237 dload_type@1c {
1238 compatible = "qcom,msm-imem-dload-type";
1239 reg = <0x1c 0x4>;
1240 };
1241
1242 boot_stats@6b0 {
1243 compatible = "qcom,msm-imem-boot_stats";
Maria Neptune5a1428b2018-08-29 13:25:19 -07001244 reg = <0x6b0 0x20>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001245 };
1246
1247 kaslr_offset@6d0 {
1248 compatible = "qcom,msm-imem-kaslr_offset";
Maria Neptune5a1428b2018-08-29 13:25:19 -07001249 reg = <0x6d0 0xc>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001250 };
1251
1252 pil@94c {
1253 compatible = "qcom,msm-imem-pil";
Maria Neptune5a1428b2018-08-29 13:25:19 -07001254 reg = <0x94c 0xc8>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001255 };
Hemant Kumarca399682019-01-25 14:51:13 -08001256
1257 diag_dload@c8 {
1258 compatible = "qcom,msm-imem-diag-dload";
1259 reg = <0xc8 0xc8>;
1260 };
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001261 };
1262
Rishabh Bhatnagar811170f2018-11-09 13:44:32 -08001263 restart@c264000 {
1264 compatible = "qcom,pshold";
1265 reg = <0xc264000 0x4>,
1266 <0x1fd3000 0x4>;
1267 reg-names = "pshold-base", "tcsr-boot-misc-detect";
1268 };
1269
Zhen Kong284c9f02018-11-06 12:00:30 -08001270 dcc: dcc_v2@1023000 {
1271 compatible = "qcom,dcc-v2";
1272 reg = <0x1023000 0x1000>,
1273 <0x103a000 0x6000>;
1274 reg-names = "dcc-base", "dcc-ram-base";
1275
1276 dcc-ram-offset = <0x1a000>;
1277 };
1278
1279 qcom_seecom: qseecom@82200000 {
1280 compatible = "qcom,qseecom";
1281 reg = <0x82200000 0x2200000>;
1282 reg-names = "secapp-region";
1283 memory-region = <&qseecom_mem>;
1284 qcom,hlos-num-ce-hw-instances = <1>;
1285 qcom,hlos-ce-hw-instance = <0>;
1286 qcom,qsee-ce-hw-instance = <0>;
1287 qcom,disk-encrypt-pipe-pair = <2>;
1288 qcom,support-fde;
1289 qcom,no-clock-support;
1290 qcom,fde-key-size;
Zhen Kong84997022019-01-29 12:52:21 -08001291 qcom,appsbl-qseecom-support;
Zhen Kong284c9f02018-11-06 12:00:30 -08001292 qcom,commonlib64-loaded-by-uefi;
1293 qcom,qsee-reentrancy-support = <2>;
1294 };
1295
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -07001296 mdm0: qcom,mdm0 {
Rishabh Bhatnagar134ede82018-10-16 10:54:12 -07001297 compatible = "qcom,ext-sdx55m";
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -07001298 cell-index = <0>;
1299 #address-cells = <0>;
1300 interrupt-parent = <&mdm0>;
1301 #interrupt-cells = <1>;
1302 interrupt-map-mask = <0xffffffff>;
1303 interrupt-names =
1304 "err_fatal_irq",
1305 "status_irq",
1306 "mdm2ap_vddmin_irq";
1307 /* modem attributes */
1308 qcom,ramdump-delay-ms = <3000>;
1309 qcom,ramdump-timeout-ms = <120000>;
1310 qcom,vddmin-modes = "normal";
1311 qcom,vddmin-drive-strength = <8>;
1312 qcom,sfr-query;
1313 qcom,sysmon-id = <20>;
1314 qcom,ssctl-instance-id = <0x10>;
1315 qcom,support-shutdown;
1316 qcom,pil-force-shutdown;
1317 qcom,esoc-skip-restart-for-mdm-crash;
Rishabh Bhatnagar632f3262019-01-25 10:30:36 -08001318 qcom,esoc-spmi-soft-reset;
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -07001319 pinctrl-names = "default", "mdm_active", "mdm_suspend";
1320 pinctrl-0 = <&ap2mdm_pon_reset_default>;
1321 pinctrl-1 = <&ap2mdm_active &mdm2ap_active>;
1322 pinctrl-2 = <&ap2mdm_sleep &mdm2ap_sleep>;
1323 interrupt-map = <0 &tlmm 1 0x3
1324 1 &tlmm 3 0x3>;
1325 qcom,mdm2ap-errfatal-gpio = <&tlmm 1 0x00>;
1326 qcom,ap2mdm-errfatal-gpio = <&tlmm 57 0x00>;
1327 qcom,mdm2ap-status-gpio = <&tlmm 3 0x00>;
1328 qcom,ap2mdm-status-gpio = <&tlmm 56 0x00>;
Rishabh Bhatnagar2b66dc12018-10-18 10:36:27 -07001329 qcom,ap2mdm-soft-reset-gpio = <&tlmm 145 GPIO_ACTIVE_LOW>;
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -07001330 qcom,mdm-link-info = "0306_02.01.00";
1331 status = "ok";
1332 };
1333
Lina Iyer8551c792018-06-21 16:06:53 -06001334 pdc: interrupt-controller@b220000 {
1335 compatible = "qcom,kona-pdc";
1336 reg = <0xb220000 0x30000>;
1337 qcom,pdc-ranges = <0 480 29>, <42 522 52>, <94 609 30>;
1338 #interrupt-cells = <2>;
1339 interrupt-parent = <&intc>;
1340 interrupt-controller;
1341 };
1342
Vivek Aknurwar65bafd92018-11-01 17:27:53 -07001343 clocks {
David Daiee6a9d62019-01-10 17:14:04 -08001344 xo_board: xo-board {
1345 compatible = "fixed-clock";
1346 #clock-cells = <0>;
1347 clock-frequency = <38400000>;
1348 clock-output-names = "xo_board";
1349 };
1350
Vivek Aknurwar65bafd92018-11-01 17:27:53 -07001351 sleep_clk: sleep-clk {
1352 compatible = "fixed-clock";
1353 clock-frequency = <32000>;
1354 clock-output-names = "chip_sleep_clk";
1355 #clock-cells = <1>;
1356 };
1357 };
1358
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001359 clock_aop: qcom,aopclk {
1360 compatible = "qcom,dummycc";
1361 clock-output-names = "qdss_clocks";
1362 #clock-cells = <1>;
1363 };
1364
Vivek Aknurwar7e9ecb92018-09-07 14:27:58 -07001365 clock_gcc: qcom,gcc@100000 {
David Dai7e431ad2018-12-05 15:37:39 -08001366 compatible = "qcom,gcc-kona", "syscon";
Vivek Aknurwar7e9ecb92018-09-07 14:27:58 -07001367 reg = <0x100000 0x1f0000>;
1368 reg-names = "cc_base";
1369 vdd_cx-supply = <&VDD_CX_LEVEL>;
1370 vdd_cx_ao-supply = <&VDD_CX_LEVEL_AO>;
1371 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001372 #clock-cells = <1>;
1373 #reset-cells = <1>;
1374 };
1375
David Collins4eb34f32018-12-06 11:51:01 -08001376 clock_npucc: qcom,npucc@9980000 {
1377 compatible = "qcom,npucc-kona", "syscon";
1378 reg = <0x9980000 0x10000>,
1379 <0x9800000 0x10000>,
1380 <0x9810000 0x10000>;
1381 reg-names = "cc", "qdsp6ss", "qdsp6ss_pll";
1382 vdd_cx-supply = <&VDD_CX_LEVEL>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001383 #clock-cells = <1>;
1384 #reset-cells = <1>;
1385 };
1386
Vivek Aknurwar65bafd92018-11-01 17:27:53 -07001387 clock_videocc: qcom,videocc@abf0000 {
1388 compatible = "qcom,videocc-kona", "syscon";
1389 reg = <0xabf0000 0x10000>;
1390 reg-names = "cc_base";
1391 vdd_mx-supply = <&VDD_MX_LEVEL>;
1392 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
1393 clock-names = "cfg_ahb_clk";
1394 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001395 #clock-cells = <1>;
1396 #reset-cells = <1>;
1397 };
1398
Vivek Aknurwar86452c02018-11-05 15:20:31 -08001399 clock_camcc: qcom,camcc@ad00000 {
1400 compatible = "qcom,camcc-kona", "syscon";
1401 reg = <0xad00000 0x10000>;
1402 reg-names = "cc_base";
1403 vdd_mx-supply = <&VDD_MX_LEVEL>;
1404 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
1405 clock-names = "cfg_ahb_clk";
1406 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001407 #clock-cells = <1>;
1408 #reset-cells = <1>;
1409 };
1410
David Daidc93e482018-11-27 17:32:50 -08001411 clock_dispcc: qcom,dispcc@af00000 {
David Dai7e431ad2018-12-05 15:37:39 -08001412 compatible = "qcom,kona-dispcc", "syscon";
David Daidc93e482018-11-27 17:32:50 -08001413 reg = <0xaf00000 0x20000>;
1414 reg-names = "cc_base";
1415 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
1416 clock-names = "cfg_ahb_clk";
1417 clocks = <&clock_gcc GCC_DISP_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001418 #clock-cells = <1>;
1419 #reset-cells = <1>;
1420 };
1421
Vivek Aknurwar31c2e0f22018-11-16 17:10:12 -08001422 clock_gpucc: qcom,gpucc@3d90000 {
1423 compatible = "qcom,gpucc-kona", "syscon";
1424 reg = <0x3d90000 0x9000>;
1425 reg-names = "cc_base";
1426 vdd_cx-supply = <&VDD_CX_LEVEL>;
1427 vdd_mx-supply = <&VDD_MX_LEVEL>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001428 #clock-cells = <1>;
1429 #reset-cells = <1>;
1430 };
1431
1432 clock_cpucc: qcom,cpucc {
1433 compatible = "qcom,dummycc";
1434 clock-output-names = "cpucc_clocks";
1435 #clock-cells = <1>;
1436 };
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -07001437
David Dai7e431ad2018-12-05 15:37:39 -08001438 clock_debugcc: qcom,cc-debug {
1439 compatible = "qcom,kona-debugcc";
1440 qcom,gcc = <&clock_gcc>;
1441 qcom,videocc = <&clock_videocc>;
1442 qcom,dispcc = <&clock_dispcc>;
1443 qcom,camcc = <&clock_camcc>;
1444 qcom,gpucc = <&clock_gpucc>;
David Collins4eb34f32018-12-06 11:51:01 -08001445 qcom,npucc = <&clock_npucc>;
David Dai7e431ad2018-12-05 15:37:39 -08001446 clock-names = "xo_clk_src";
David Daiee6a9d62019-01-10 17:14:04 -08001447 clocks = <&clock_rpmh RPMH_CXO_CLK>;
David Dai7e431ad2018-12-05 15:37:39 -08001448 #clock-cells = <1>;
1449 };
1450
David Collinsa86302c2018-09-17 14:16:50 -07001451 /* GCC GDSCs */
1452 pcie_0_gdsc: qcom,gdsc@16b004 {
1453 compatible = "qcom,gdsc";
1454 reg = <0x16b004 0x4>;
1455 regulator-name = "pcie_0_gdsc";
1456 };
1457
1458 pcie_1_gdsc: qcom,gdsc@18d004 {
1459 compatible = "qcom,gdsc";
1460 reg = <0x18d004 0x4>;
1461 regulator-name = "pcie_1_gdsc";
1462 };
1463
1464 pcie_2_gdsc: qcom,gdsc@106004 {
1465 compatible = "qcom,gdsc";
1466 reg = <0x106004 0x4>;
1467 regulator-name = "pcie_2_gdsc";
1468 };
1469
1470 ufs_card_gdsc: qcom,gdsc@175004 {
1471 compatible = "qcom,gdsc";
1472 reg = <0x175004 0x4>;
1473 regulator-name = "ufs_card_gdsc";
1474 };
1475
1476 ufs_phy_gdsc: qcom,gdsc@177004 {
1477 compatible = "qcom,gdsc";
1478 reg = <0x177004 0x4>;
1479 regulator-name = "ufs_phy_gdsc";
1480 };
1481
1482 usb30_prim_gdsc: qcom,gdsc@10f004 {
1483 compatible = "qcom,gdsc";
1484 reg = <0x10f004 0x4>;
1485 regulator-name = "usb30_prim_gdsc";
1486 };
1487
1488 usb30_sec_gdsc: qcom,gdsc@110004 {
1489 compatible = "qcom,gdsc";
1490 reg = <0x110004 0x4>;
1491 regulator-name = "usb30_sec_gdsc";
1492 };
1493
1494 hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc: qcom,gdsc@17d050 {
1495 compatible = "qcom,gdsc";
1496 reg = <0x17d050 0x4>;
1497 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc";
1498 qcom,no-status-check-on-disable;
1499 qcom,gds-timeout = <500>;
1500 };
1501
1502 hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc: qcom,gdsc@17d058 {
1503 compatible = "qcom,gdsc";
1504 reg = <0x17d058 0x4>;
1505 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc";
1506 qcom,no-status-check-on-disable;
1507 qcom,gds-timeout = <500>;
1508 };
1509
1510 hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc: qcom,gdsc@17d054 {
1511 compatible = "qcom,gdsc";
1512 reg = <0x17d054 0x4>;
1513 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc";
1514 qcom,no-status-check-on-disable;
1515 qcom,gds-timeout = <500>;
1516 };
1517
1518 hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc: qcom,gdsc@17d06c {
1519 compatible = "qcom,gdsc";
1520 reg = <0x17d06c 0x4>;
1521 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc";
1522 qcom,no-status-check-on-disable;
1523 qcom,gds-timeout = <500>;
1524 };
1525
1526 /* CAM_CC GDSCs */
1527 bps_gdsc: qcom,gdsc@ad07004 {
1528 compatible = "qcom,gdsc";
1529 reg = <0xad07004 0x4>;
1530 regulator-name = "bps_gdsc";
1531 clock-names = "ahb_clk";
1532 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1533 parent-supply = <&VDD_MMCX_LEVEL>;
1534 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1535 qcom,support-hw-trigger;
1536 };
1537
1538 ife_0_gdsc: qcom,gdsc@ad0a004 {
1539 compatible = "qcom,gdsc";
1540 reg = <0xad0a004 0x4>;
1541 regulator-name = "ife_0_gdsc";
1542 clock-names = "ahb_clk";
1543 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1544 parent-supply = <&VDD_MMCX_LEVEL>;
1545 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1546 };
1547
1548 ife_1_gdsc: qcom,gdsc@ad0b004 {
1549 compatible = "qcom,gdsc";
1550 reg = <0xad0b004 0x4>;
1551 regulator-name = "ife_1_gdsc";
1552 clock-names = "ahb_clk";
1553 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1554 parent-supply = <&VDD_MMCX_LEVEL>;
1555 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1556 };
1557
1558 ipe_0_gdsc: qcom,gdsc@ad08004 {
1559 compatible = "qcom,gdsc";
1560 reg = <0xad08004 0x4>;
1561 regulator-name = "ipe_0_gdsc";
1562 clock-names = "ahb_clk";
1563 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1564 parent-supply = <&VDD_MMCX_LEVEL>;
1565 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1566 qcom,support-hw-trigger;
1567 };
1568
1569 sbi_gdsc: qcom,gdsc@ad09004 {
1570 compatible = "qcom,gdsc";
1571 reg = <0xad09004 0x4>;
1572 regulator-name = "sbi_gdsc";
1573 clock-names = "ahb_clk";
1574 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1575 parent-supply = <&VDD_MMCX_LEVEL>;
1576 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1577 };
1578
1579 titan_top_gdsc: qcom,gdsc@ad0c144 {
1580 compatible = "qcom,gdsc";
1581 reg = <0xad0c144 0x4>;
1582 regulator-name = "titan_top_gdsc";
1583 clock-names = "ahb_clk";
1584 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1585 parent-supply = <&VDD_MMCX_LEVEL>;
1586 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1587 };
1588
1589 /* DISP_CC GDSC */
1590 mdss_core_gdsc: qcom,gdsc@af03000 {
1591 compatible = "qcom,gdsc";
1592 reg = <0xaf03000 0x4>;
1593 regulator-name = "mdss_core_gdsc";
1594 clock-names = "ahb_clk";
1595 clocks = <&clock_gcc GCC_DISP_AHB_CLK>;
1596 parent-supply = <&VDD_MMCX_LEVEL>;
1597 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1598 qcom,support-hw-trigger;
1599 };
1600
1601 /* GPU_CC GDSCs */
1602 gpu_cx_hw_ctrl: syscon@3d91540 {
1603 compatible = "syscon";
1604 reg = <0x3d91540 0x4>;
1605 };
1606
1607 gpu_cx_gdsc: qcom,gdsc@3d9106c {
1608 compatible = "qcom,gdsc";
1609 reg = <0x3d9106c 0x4>;
1610 regulator-name = "gpu_cx_gdsc";
1611 hw-ctrl-addr = <&gpu_cx_hw_ctrl>;
1612 parent-supply = <&VDD_CX_LEVEL>;
1613 qcom,no-status-check-on-disable;
1614 qcom,clk-dis-wait-val = <8>;
1615 qcom,gds-timeout = <500>;
1616 };
1617
David Collinsd7eea142018-10-08 17:32:48 -07001618 gpu_gx_domain_addr: syscon@3d91508 {
David Collinsa86302c2018-09-17 14:16:50 -07001619 compatible = "syscon";
1620 reg = <0x3d91508 0x4>;
1621 };
1622
David Collinsd7eea142018-10-08 17:32:48 -07001623 gpu_gx_sw_reset: syscon@3d91008 {
David Collinsa86302c2018-09-17 14:16:50 -07001624 compatible = "syscon";
1625 reg = <0x3d91008 0x4>;
1626 };
1627
1628 gpu_gx_gdsc: qcom,gdsc@3d9100c {
1629 compatible = "qcom,gdsc";
1630 reg = <0x3d9100c 0x4>;
1631 regulator-name = "gpu_gx_gdsc";
1632 domain-addr = <&gpu_gx_domain_addr>;
1633 sw-reset = <&gpu_gx_sw_reset>;
1634 parent-supply = <&VDD_GFX_LEVEL>;
1635 vdd_parent-supply = <&VDD_GFX_LEVEL>;
1636 qcom,reset-aon-logic;
1637 };
1638
1639 /* NPU GDSC */
1640 npu_core_gdsc: qcom,gdsc@9981004 {
1641 compatible = "qcom,gdsc";
1642 reg = <0x9981004 0x4>;
1643 regulator-name = "npu_core_gdsc";
1644 clock-names = "ahb_clk";
1645 clocks = <&clock_gcc GCC_NPU_CFG_AHB_CLK>;
1646 };
1647
Jishnu Prakash793bf5b2018-11-09 16:28:55 +05301648 qcom,sps {
1649 compatible = "qcom,msm-sps-4k";
1650 qcom,pipe-attr-ee;
1651 };
1652
David Collinsa86302c2018-09-17 14:16:50 -07001653 /* VIDEO_CC GDSCs */
1654 mvs0_gdsc: qcom,gdsc@abf0d18 {
1655 compatible = "qcom,gdsc";
1656 reg = <0xabf0d18 0x4>;
1657 regulator-name = "mvs0_gdsc";
1658 clock-names = "ahb_clk";
1659 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1660 parent-supply = <&VDD_MMCX_LEVEL>;
1661 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1662 };
1663
1664 mvs0c_gdsc: qcom,gdsc@abf0bf8 {
1665 compatible = "qcom,gdsc";
1666 reg = <0xabf0bf8 0x4>;
1667 regulator-name = "mvs0c_gdsc";
1668 clock-names = "ahb_clk";
1669 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1670 parent-supply = <&VDD_MMCX_LEVEL>;
1671 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1672 };
1673
1674 mvs1_gdsc: qcom,gdsc@abf0d98 {
1675 compatible = "qcom,gdsc";
1676 reg = <0xabf0d98 0x4>;
1677 regulator-name = "mvs1_gdsc";
1678 clock-names = "ahb_clk";
1679 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1680 parent-supply = <&VDD_MMCX_LEVEL>;
1681 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1682 };
1683
1684 mvs1c_gdsc: qcom,gdsc@abf0c98 {
1685 compatible = "qcom,gdsc";
1686 reg = <0xabf0c98 0x4>;
1687 regulator-name = "mvs1c_gdsc";
1688 clock-names = "ahb_clk";
1689 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1690 parent-supply = <&VDD_MMCX_LEVEL>;
1691 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1692 };
1693
David Collinsc2c02f62018-11-05 16:23:24 -08001694 spmi_bus: qcom,spmi@c440000 {
1695 compatible = "qcom,spmi-pmic-arb";
1696 reg = <0xc440000 0x1100>,
1697 <0xc600000 0x2000000>,
1698 <0xe600000 0x100000>,
1699 <0xe700000 0xa0000>,
1700 <0xc40a000 0x26000>;
1701 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1702 interrupt-names = "periph_irq";
1703 interrupts = <GIC_SPI 481 IRQ_TYPE_LEVEL_HIGH>;
1704 qcom,ee = <0>;
1705 qcom,channel = <0>;
1706 #address-cells = <2>;
1707 #size-cells = <0>;
1708 interrupt-controller;
1709 #interrupt-cells = <4>;
1710 cell-index = <0>;
1711 };
1712
Can Guob04bed52018-07-10 19:27:32 -07001713 ufsphy_mem: ufsphy_mem@1d87000 {
1714 reg = <0x1d87000 0xe00>; /* PHY regs */
1715 reg-names = "phy_mem";
1716 #phy-cells = <0>;
1717
1718 lanes-per-direction = <2>;
1719
1720 clock-names = "ref_clk_src",
1721 "ref_clk",
1722 "ref_aux_clk";
1723 clocks = <&clock_rpmh RPMH_CXO_CLK>,
Vivek Aknurwarec5c93d2018-08-28 14:52:33 -07001724 <&clock_gcc GCC_UFS_1X_CLKREF_EN>,
Can Guob04bed52018-07-10 19:27:32 -07001725 <&clock_gcc GCC_UFS_PHY_PHY_AUX_CLK>;
1726
1727 status = "disabled";
1728 };
1729
1730 ufshc_mem: ufshc@1d84000 {
1731 compatible = "qcom,ufshc";
1732 reg = <0x1d84000 0x3000>;
1733 interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
1734 phys = <&ufsphy_mem>;
1735 phy-names = "ufsphy";
1736
1737 lanes-per-direction = <2>;
1738 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1739
1740 clock-names =
1741 "core_clk",
1742 "bus_aggr_clk",
1743 "iface_clk",
1744 "core_clk_unipro",
1745 "core_clk_ice",
1746 "ref_clk",
1747 "tx_lane0_sync_clk",
1748 "rx_lane0_sync_clk",
1749 "rx_lane1_sync_clk";
1750 clocks =
1751 <&clock_gcc GCC_UFS_PHY_AXI_CLK>,
1752 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
1753 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1754 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>,
1755 <&clock_gcc GCC_UFS_PHY_ICE_CORE_CLK>,
1756 <&clock_rpmh RPMH_CXO_CLK>,
1757 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1758 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>,
1759 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>;
1760 freq-table-hz =
1761 <37500000 300000000>,
1762 <0 0>,
1763 <0 0>,
1764 <37500000 300000000>,
1765 <75000000 300000000>,
1766 <0 0>,
1767 <0 0>,
1768 <0 0>,
1769 <0 0>;
1770
1771 qcom,msm-bus,name = "ufshc_mem";
1772 qcom,msm-bus,num-cases = <22>;
1773 qcom,msm-bus,num-paths = <2>;
1774 qcom,msm-bus,vectors-KBps =
1775 /*
1776 * During HS G3 UFS runs at nominal voltage corner, vote
1777 * higher bandwidth to push other buses in the data path
1778 * to run at nominal to achieve max throughput.
1779 * 4GBps pushes BIMC to run at nominal.
1780 * 200MBps pushes CNOC to run at nominal.
1781 * Vote for half of this bandwidth for HS G3 1-lane.
1782 * For max bandwidth, vote high enough to push the buses
1783 * to run in turbo voltage corner.
1784 */
1785 <123 512 0 0>, <1 757 0 0>, /* No vote */
1786 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1787 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1788 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1789 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1790 <123 512 1844 0>, <1 757 1000 0>, /* PWM G1 L2 */
1791 <123 512 3688 0>, <1 757 1000 0>, /* PWM G2 L2 */
1792 <123 512 7376 0>, <1 757 1000 0>, /* PWM G3 L2 */
1793 <123 512 14752 0>, <1 757 1000 0>, /* PWM G4 L2 */
1794 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1795 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1796 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1797 <123 512 255591 0>, <1 757 1000 0>, /* HS G1 RA L2 */
1798 <123 512 511181 0>, <1 757 1000 0>, /* HS G2 RA L2 */
1799 <123 512 4194304 0>, <1 757 204800 0>, /* HS G3 RA L2 */
1800 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1801 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1802 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1803 <123 512 298189 0>, <1 757 1000 0>, /* HS G1 RB L2 */
1804 <123 512 596378 0>, <1 757 1000 0>, /* HS G2 RB L2 */
1805 /* As UFS working in HS G3 RB L2 mode, aggregated
1806 * bandwidth (AB) should take care of providing
1807 * optimum throughput requested. However, as tested,
1808 * in order to scale up CNOC clock, instantaneous
1809 * bindwidth (IB) needs to be given a proper value too.
1810 */
1811 <123 512 4194304 0>, <1 757 204800 409600>, /* HS G3 RB L2 */
1812 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1813
1814 qcom,bus-vector-names = "MIN",
1815 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1816 "PWM_G1_L2", "PWM_G2_L2", "PWM_G3_L2", "PWM_G4_L2",
1817 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1818 "HS_RA_G1_L2", "HS_RA_G2_L2", "HS_RA_G3_L2",
1819 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1820 "HS_RB_G1_L2", "HS_RB_G2_L2", "HS_RB_G3_L2",
1821 "MAX";
1822
1823 /* PM QoS */
1824 qcom,pm-qos-cpu-groups = <0x0f 0xf0>;
1825 qcom,pm-qos-cpu-group-latency-us = <44 44>;
1826 qcom,pm-qos-default-cpu = <0>;
1827
1828 pinctrl-names = "dev-reset-assert", "dev-reset-deassert";
1829 pinctrl-0 = <&ufs_dev_reset_assert>;
1830 pinctrl-1 = <&ufs_dev_reset_deassert>;
1831
1832 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1833 reset-names = "core_reset";
1834
1835 status = "disabled";
1836 };
1837
Bao D. Nguyenbd2335b2019-01-17 13:32:42 -08001838 sdhc_2: sdhci@8804000 {
1839 compatible = "qcom,sdhci-msm-v5";
1840 reg = <0x8804000 0x1000>;
1841 reg-names = "hc_mem";
1842
1843 interrupts = <0 204 0>, <0 222 0>;
1844 interrupt-names = "hc_irq", "pwr_irq";
1845
1846 qcom,bus-width = <4>;
1847 qcom,large-address-bus;
1848
1849 qcom,msm-bus,name = "sdhc2";
1850 qcom,msm-bus,num-cases = <8>;
1851 qcom,msm-bus,num-paths = <2>;
1852 qcom,msm-bus,vectors-KBps =
1853 /* No vote */
1854 <81 512 0 0>, <1 608 0 0>,
1855 /* 400 KB/s*/
1856 <81 512 1046 1600>,
1857 <1 608 1600 1600>,
1858 /* 20 MB/s */
1859 <81 512 52286 80000>,
1860 <1 608 80000 80000>,
1861 /* 25 MB/s */
1862 <81 512 65360 100000>,
1863 <1 608 100000 100000>,
1864 /* 50 MB/s */
1865 <81 512 130718 200000>,
1866 <1 608 133320 133320>,
1867 /* 100 MB/s */
1868 <81 512 261438 200000>,
1869 <1 608 150000 150000>,
1870 /* 200 MB/s */
1871 <81 512 261438 400000>,
1872 <1 608 300000 300000>,
1873 /* Max. bandwidth */
1874 <81 512 1338562 4096000>,
1875 <1 608 1338562 4096000>;
1876 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
1877 100750000 200000000 4294967295>;
1878
1879 qcom,restore-after-cx-collapse;
1880
1881 qcom,clk-rates = <400000 20000000 25000000
1882 50000000 100000000 201500000>;
1883 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
1884 "SDR104";
1885
1886 qcom,devfreq,freq-table = <50000000 201500000>;
1887 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
1888 <&clock_gcc GCC_SDCC2_APPS_CLK>;
1889 clock-names = "iface_clk", "core_clk";
1890
1891 /* PM QoS */
1892 qcom,pm-qos-irq-type = "affine_irq";
1893 qcom,pm-qos-irq-latency = <44 44>;
1894 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
1895 qcom,pm-qos-legacy-latency-us = <44 44>, <44 44>;
1896
1897 status = "disabled";
1898 };
1899
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -07001900 ipcc_mproc: qcom,ipcc@408000 {
Neeraj Upadhyay5d7531f2019-01-16 10:25:24 -08001901 compatible = "qcom,ipcc";
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -07001902 reg = <0x408000 0x1000>;
1903 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
1904 interrupt-controller;
1905 #interrupt-cells = <3>;
1906 #mbox-cells = <2>;
1907 };
Lina Iyerea91c722018-06-20 14:58:05 -06001908
Raghavendra Rao Ananta5da54b32018-08-09 10:04:50 -07001909 ipcc_self_ping: ipcc-self-ping {
1910 compatible = "qcom,ipcc-self-ping";
1911 interrupts-extended = <&ipcc_mproc IPCC_CLIENT_APSS
1912 IPCC_MPROC_SIGNAL_SMP2P IRQ_TYPE_LEVEL_HIGH>;
1913 mboxes = <&ipcc_mproc IPCC_CLIENT_APSS IPCC_MPROC_SIGNAL_SMP2P>;
1914 };
1915
Maria Neptune5a1428b2018-08-29 13:25:19 -07001916 apps_rsc: rsc@18200000 {
Lina Iyerea91c722018-06-20 14:58:05 -06001917 label = "apps_rsc";
1918 compatible = "qcom,rpmh-rsc";
1919 reg = <0x18200000 0x10000>,
1920 <0x18210000 0x10000>,
1921 <0x18220000 0x10000>;
1922 reg-names = "drv-0", "drv-1", "drv-2";
1923 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
1924 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
1925 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1926 qcom,tcs-offset = <0xd00>;
1927 qcom,drv-id = <2>;
1928 qcom,tcs-config = <ACTIVE_TCS 2>,
1929 <SLEEP_TCS 3>,
1930 <WAKE_TCS 3>,
1931 <CONTROL_TCS 1>;
David Dai07c8d4e2018-10-09 14:22:06 -07001932
1933 msm_bus_apps_rsc {
1934 compatible = "qcom,msm-bus-rsc";
1935 qcom,msm-bus-id = <MSM_BUS_RSC_APPS>;
1936 };
Arjun Bagla76f02ef2018-09-19 10:00:29 -07001937
1938 system_pm {
1939 compatible = "qcom,system-pm";
1940 };
David Daiee6a9d62019-01-10 17:14:04 -08001941
1942 clock_rpmh: qcom,rpmhclk {
1943 compatible = "qcom,kona-rpmh-clk";
1944 #clock-cells = <1>;
1945 };
Lina Iyerea91c722018-06-20 14:58:05 -06001946 };
1947
1948 disp_rsc: rsc@af20000 {
1949 label = "disp_rsc";
1950 compatible = "qcom,rpmh-rsc";
1951 reg = <0xaf20000 0x10000>;
1952 reg-names = "drv-0";
1953 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
1954 qcom,tcs-offset = <0x1c00>;
1955 qcom,drv-id = <0>;
1956 qcom,tcs-config = <ACTIVE_TCS 0>,
1957 <SLEEP_TCS 1>,
1958 <WAKE_TCS 1>,
1959 <CONTROL_TCS 0>;
1960 status = "disabled";
Dhaval Patelf92536a2018-10-24 13:19:15 -07001961
1962 sde_rsc_rpmh {
1963 compatible = "qcom,sde-rsc-rpmh";
1964 cell-index = <0>;
1965 status = "disabled";
1966 };
Lina Iyerea91c722018-06-20 14:58:05 -06001967 };
Chris Lew86f6bde2018-09-06 16:40:39 -07001968
1969 tcsr_mutex_block: syscon@1f40000 {
1970 compatible = "syscon";
1971 reg = <0x1f40000 0x20000>;
1972 };
1973
1974 tcsr_mutex: hwlock {
1975 compatible = "qcom,tcsr-mutex";
1976 syscon = <&tcsr_mutex_block 0 0x1000>;
1977 #hwlock-cells = <1>;
1978 };
1979
1980 smem: qcom,smem {
1981 compatible = "qcom,smem";
1982 memory-region = <&smem_mem>;
1983 hwlocks = <&tcsr_mutex 3>;
1984 };
Venkata Narendra Kumar Gutta1781e562018-10-09 14:44:10 -07001985
1986 kryo-erp {
1987 compatible = "arm,arm64-kryo-cpu-erp";
1988 interrupts = <GIC_PPI 0 IRQ_TYPE_LEVEL_HIGH>,
1989 <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
1990 interrupt-names = "l1-l2-faultirq",
1991 "l3-scu-faultirq";
1992 };
Chris Lew3859b1b72018-09-25 16:54:52 -07001993
Chris Lew3b1f0982018-10-05 17:28:21 -07001994 sp_scsr: mailbox@188501c {
1995 compatible = "qcom,kona-spcs-global";
1996 reg = <0x188501c 0x4>;
1997
1998 #mbox-cells = <1>;
1999 };
2000
2001 sp_scsr_block: syscon@1880000 {
2002 compatible = "syscon";
2003 reg = <0x1880000 0x10000>;
2004 };
2005
2006 intsp: qcom,qsee_irq {
2007 compatible = "qcom,kona-qsee-irq";
2008
2009 syscon = <&sp_scsr_block>;
2010 interrupts = <0 348 IRQ_TYPE_LEVEL_HIGH>,
2011 <0 349 IRQ_TYPE_LEVEL_HIGH>;
2012
2013 interrupt-names = "sp_ipc0",
2014 "sp_ipc1";
2015
2016 interrupt-controller;
2017 #interrupt-cells = <3>;
2018 };
2019
2020 qcom,qsee_irq_bridge {
2021 compatible = "qcom,qsee-ipc-irq-bridge";
2022
2023 qcom,qsee-ipc-irq-spss {
2024 qcom,dev-name = "qsee_ipc_irq_spss";
2025 label = "spss";
2026 interrupt-parent = <&intsp>;
2027 interrupts = <1 0 IRQ_TYPE_LEVEL_HIGH>;
2028 };
2029 };
2030
Amir Samuelove4c04342019-01-17 13:25:02 +02002031 spss_utils: qcom,spss_utils {
2032 compatible = "qcom,spss-utils";
2033 /* spss fuses physical address */
2034 qcom,spss-fuse1-addr = <0x007841c4>;
2035 qcom,spss-fuse1-bit = <27>;
2036 qcom,spss-fuse2-addr = <0x007841c4>;
2037 qcom,spss-fuse2-bit = <26>;
2038 qcom,spss-dev-firmware-name = "spss1d"; /* 8 chars max */
2039 qcom,spss-test-firmware-name = "spss1t"; /* 8 chars max */
2040 qcom,spss-prod-firmware-name = "spss1p"; /* 8 chars max */
2041 qcom,spss-debug-reg-addr = <0x01886020>;
2042 qcom,spss-emul-type-reg-addr = <0x01fc8004>;
2043 status = "ok";
2044 };
2045
2046 qcom,spcom {
2047 compatible = "qcom,spcom";
2048
2049 /* predefined channels, remote side is server */
2050 qcom,spcom-ch-names = "sp_kernel", "sp_ssr";
2051 status = "ok";
2052 };
2053
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02002054 qcom,msm_gsi {
2055 compatible = "qcom,msm_gsi";
2056 };
2057
2058 qcom,rmnet-ipa {
2059 compatible = "qcom,rmnet-ipa3";
2060 qcom,rmnet-ipa-ssr;
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02002061 qcom,ipa-advertise-sg-support;
2062 qcom,ipa-napi-enable;
2063 };
2064
2065 qcom,ipa_fws {
2066 compatible = "qcom,pil-tz-generic";
2067 qcom,pas-id = <0xf>;
2068 qcom,firmware-name = "ipa_fws";
2069 qcom,pil-force-shutdown;
Amir Levy69bdbc42019-01-31 15:40:18 +02002070 memory-region = <&pil_ipa_gsi_mem>;
2071 };
2072
2073 qcom,ipa_uc {
2074 compatible = "qcom,pil-tz-generic";
2075 qcom,pas-id = <0x1B>;
2076 qcom,firmware-name = "ipa_uc";
2077 qcom,pil-force-shutdown;
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02002078 memory-region = <&pil_ipa_fw_mem>;
2079 };
2080
2081 ipa_hw: qcom,ipa@1e00000 {
2082 compatible = "qcom,ipa";
2083 reg =
2084 <0x1e00000 0x84000>,
2085 <0x1e04000 0x23000>;
2086 reg-names = "ipa-base", "gsi-base";
2087 interrupts =
2088 <0 311 IRQ_TYPE_LEVEL_HIGH>,
2089 <0 432 IRQ_TYPE_LEVEL_HIGH>;
2090 interrupt-names = "ipa-irq", "gsi-irq";
2091 qcom,ipa-hw-ver = <17>; /* IPA core version = IPAv4.5 */
2092 qcom,ipa-hw-mode = <0>;
Ghanim Fodif8dcdbf2018-11-04 17:58:22 +02002093 qcom,platform-type = <2>; /* APQ platform */
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02002094 qcom,ee = <0>;
2095 qcom,use-ipa-tethering-bridge;
2096 qcom,mhi-event-ring-id-limits = <9 11>; /* start and end */
2097 qcom,modem-cfg-emb-pipe-flt;
2098 qcom,use-ipa-pm;
2099 qcom,bandwidth-vote-for-ipa;
2100 qcom,use-64-bit-dma-mask;
2101 qcom,msm-bus,name = "ipa";
2102 qcom,msm-bus,num-cases = <5>;
2103 qcom,msm-bus,num-paths = <4>;
2104 qcom,msm-bus,vectors-KBps =
2105 /* No vote */
2106 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 0 0>,
2107 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 0 0>,
2108 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 0 0>,
2109 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 0>,
2110
2111 /* SVS2 */
2112 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 80000 600000>,
2113 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 80000 350000>,
2114 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 40000 40000>,
2115 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 125>,
2116
2117 /* SVS */
2118 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 80000 640000>,
2119 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 80000 640000>,
2120 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 80000 80000>,
2121 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 250>,
2122
2123 /* NOMINAL */
2124 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 206000 960000>,
2125 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 206000 960000>,
2126 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 206000 160000>,
2127 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 500>,
2128
2129 /* TURBO */
2130 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 206000 3600000>,
2131 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 206000 3600000>,
2132 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 206000 300000>,
2133 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 600>;
2134
2135 qcom,bus-vector-names = "MIN", "SVS2", "SVS", "NOMINAL",
2136 "TURBO";
2137 qcom,throughput-threshold = <310 600 1000>;
2138 qcom,scaling-exceptions = <>;
2139 };
2140
2141 ipa_smmu_ap: ipa_smmu_ap {
2142 compatible = "qcom,ipa-smmu-ap-cb";
2143 iommus = <&apps_smmu 0x5C0 0x0>;
2144 qcom,iommu-dma = "bypass";
2145 };
2146
2147 ipa_smmu_wlan: ipa_smmu_wlan {
2148 compatible = "qcom,ipa-smmu-wlan-cb";
2149 iommus = <&apps_smmu 0x5C1 0x0>;
2150 qcom,iommu-dma = "bypass";
2151 };
2152
2153 ipa_smmu_uc: ipa_smmu_uc {
2154 compatible = "qcom,ipa-smmu-uc-cb";
2155 iommus = <&apps_smmu 0x5C2 0x0>;
2156 qcom,iommu-dma = "bypass";
2157 };
2158
Chris Lew3859b1b72018-09-25 16:54:52 -07002159 qcom,glink {
2160 compatible = "qcom,glink";
2161 #address-cells = <1>;
2162 #size-cells = <1>;
2163 ranges;
2164
Chris Lewb2da0482018-11-16 14:50:31 -08002165 glink_npu: npu {
2166 qcom,remote-pid = <10>;
2167 transport = "smem";
2168 mboxes = <&ipcc_mproc IPCC_CLIENT_NPU
2169 IPCC_MPROC_SIGNAL_GLINK_QMP>;
2170 mbox-names = "npu_smem";
2171 interrupt-parent = <&ipcc_mproc>;
2172 interrupts = <IPCC_CLIENT_NPU
2173 IPCC_MPROC_SIGNAL_GLINK_QMP
2174 IRQ_TYPE_EDGE_RISING>;
2175
2176 label = "npu";
2177 qcom,glink-label = "npu";
2178
2179 qcom,npu_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08002180 qcom,net-id = <1>;
Chris Lewb2da0482018-11-16 14:50:31 -08002181 qcom,glink-channels = "IPCRTR";
2182 qcom,intents = <0x800 5
2183 0x2000 3
2184 0x4400 2>;
2185 };
2186
2187 qcom,npu_glink_ssr {
2188 qcom,glink-channels = "glink_ssr";
2189 qcom,notify-edges = <&glink_cdsp>;
2190 };
2191 };
2192
Chris Lew3859b1b72018-09-25 16:54:52 -07002193 glink_adsp: adsp {
2194 qcom,remote-pid = <2>;
2195 transport = "smem";
2196 mboxes = <&ipcc_mproc IPCC_CLIENT_LPASS
2197 IPCC_MPROC_SIGNAL_GLINK_QMP>;
2198 mbox-names = "adsp_smem";
2199 interrupt-parent = <&ipcc_mproc>;
2200 interrupts = <IPCC_CLIENT_LPASS
2201 IPCC_MPROC_SIGNAL_GLINK_QMP
2202 IRQ_TYPE_EDGE_RISING>;
2203
2204 label = "adsp";
2205 qcom,glink-label = "lpass";
2206
2207 qcom,adsp_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08002208 qcom,net-id = <2>;
Chris Lew3859b1b72018-09-25 16:54:52 -07002209 qcom,glink-channels = "IPCRTR";
2210 qcom,intents = <0x800 5
2211 0x2000 3
2212 0x4400 2>;
2213 };
2214
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302215 qcom,msm_fastrpc_rpmsg {
2216 compatible = "qcom,msm-fastrpc-rpmsg";
2217 qcom,glink-channels = "fastrpcglink-apps-dsp";
2218 qcom,intents = <0x64 64>;
2219 };
2220
Chris Lew3859b1b72018-09-25 16:54:52 -07002221 qcom,adsp_glink_ssr {
2222 qcom,glink-channels = "glink_ssr";
2223 qcom,notify-edges = <&glink_slpi>,
2224 <&glink_cdsp>;
2225 };
2226 };
2227
2228 glink_slpi: dsps {
2229 qcom,remote-pid = <3>;
2230 transport = "smem";
2231 mboxes = <&ipcc_mproc IPCC_CLIENT_SLPI
2232 IPCC_MPROC_SIGNAL_GLINK_QMP>;
2233 mbox-names = "dsps_smem";
2234 interrupt-parent = <&ipcc_mproc>;
2235 interrupts = <IPCC_CLIENT_SLPI
2236 IPCC_MPROC_SIGNAL_GLINK_QMP
2237 IRQ_TYPE_EDGE_RISING>;
2238
2239 label = "slpi";
2240 qcom,glink-label = "dsps";
2241
2242 qcom,slpi_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08002243 qcom,net-id = <2>;
Chris Lew3859b1b72018-09-25 16:54:52 -07002244 qcom,glink-channels = "IPCRTR";
2245 qcom,intents = <0x800 5
2246 0x2000 3
2247 0x4400 2>;
2248 };
2249
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302250 qcom,msm_fastrpc_rpmsg {
2251 compatible = "qcom,msm-fastrpc-rpmsg";
2252 qcom,glink-channels = "fastrpcglink-apps-dsp";
2253 qcom,intents = <0x64 64>;
2254 };
2255
Chris Lew3859b1b72018-09-25 16:54:52 -07002256 qcom,slpi_glink_ssr {
2257 qcom,glink-channels = "glink_ssr";
2258 qcom,notify-edges = <&glink_adsp>,
2259 <&glink_cdsp>;
2260 };
2261 };
2262
2263 glink_cdsp: cdsp {
2264 qcom,remote-pid = <5>;
2265 transport = "smem";
2266 mboxes = <&ipcc_mproc IPCC_CLIENT_CDSP
2267 IPCC_MPROC_SIGNAL_GLINK_QMP>;
2268 mbox-names = "dsps_smem";
2269 interrupt-parent = <&ipcc_mproc>;
2270 interrupts = <IPCC_CLIENT_CDSP
2271 IPCC_MPROC_SIGNAL_GLINK_QMP
2272 IRQ_TYPE_EDGE_RISING>;
2273
2274 label = "cdsp";
2275 qcom,glink-label = "cdsp";
2276
2277 qcom,cdsp_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08002278 qcom,net-id = <1>;
Chris Lew3859b1b72018-09-25 16:54:52 -07002279 qcom,glink-channels = "IPCRTR";
2280 qcom,intents = <0x800 5
2281 0x2000 3
2282 0x4400 2>;
2283 };
2284
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302285 qcom,msm_fastrpc_rpmsg {
2286 compatible = "qcom,msm-fastrpc-rpmsg";
2287 qcom,glink-channels = "fastrpcglink-apps-dsp";
2288 qcom,intents = <0x64 64>;
2289 };
2290
Chris Lew3859b1b72018-09-25 16:54:52 -07002291 qcom,cdsp_glink_ssr {
2292 qcom,glink-channels = "glink_ssr";
2293 qcom,notify-edges = <&glink_adsp>,
Chris Lewb2da0482018-11-16 14:50:31 -08002294 <&glink_slpi>,
2295 <&glink_npu>;
Chris Lew3859b1b72018-09-25 16:54:52 -07002296 };
2297 };
Chris Lew3b1f0982018-10-05 17:28:21 -07002298
2299 glink_spss: spss {
2300 qcom,remote-pid = <8>;
2301 transport = "spss";
2302 mboxes = <&sp_scsr 0>;
2303 mbox-names = "spss_spss";
2304 interrupt-parent = <&intsp>;
2305 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>;
2306
2307 reg = <0x1885008 0x8>,
2308 <0x1885010 0x4>;
2309 reg-names = "qcom,spss-addr",
2310 "qcom,spss-size";
2311
2312 label = "spss";
2313 qcom,glink-label = "spss";
2314 };
Chris Lew3859b1b72018-09-25 16:54:52 -07002315 };
Bruce Levy5122a632018-09-25 15:51:37 -07002316
Chris Lew3cbe4032018-11-30 18:57:32 -08002317 qmp_aop: qcom,qmp-aop@c300000 {
2318 compatible = "qcom,qmp-mbox";
2319 mboxes = <&ipcc_mproc IPCC_CLIENT_AOP
2320 IPCC_MPROC_SIGNAL_GLINK_QMP>;
2321 mbox-names = "aop_qmp";
2322 interrupt-parent = <&ipcc_mproc>;
2323 interrupts = <IPCC_CLIENT_AOP
2324 IPCC_MPROC_SIGNAL_GLINK_QMP
2325 IRQ_TYPE_EDGE_RISING>;
2326 reg = <0xc300000 0x1000>;
2327 reg-names = "msgram";
2328
2329 label = "aop";
2330 qcom,early-boot;
2331 priority = <0>;
2332 mbox-desc-offset = <0x0>;
2333 #mbox-cells = <1>;
2334 };
2335
Bruce Levy5122a632018-09-25 15:51:37 -07002336 qcom,lpass@17300000 {
2337 compatible = "qcom,pil-tz-generic";
2338 reg = <0x17300000 0x00100>;
2339
2340 vdd_cx-supply = <&VDD_CX_LEVEL>;
2341 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
2342 qcom,proxy-reg-names = "vdd_cx";
2343
2344 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2345 clock-names = "xo";
2346 qcom,proxy-clock-names = "xo";
2347
2348 qcom,pas-id = <1>;
2349 qcom,proxy-timeout-ms = <10000>;
2350 qcom,smem-id = <423>;
2351 qcom,sysmon-id = <1>;
2352 qcom,ssctl-instance-id = <0x14>;
2353 qcom,firmware-name = "adsp";
2354 memory-region = <&pil_adsp_mem>;
2355 qcom,complete-ramdump;
2356
2357 /* Inputs from lpass */
2358 interrupts-extended = <&pdc 96 IRQ_TYPE_LEVEL_HIGH>,
2359 <&adsp_smp2p_in 0 0>,
2360 <&adsp_smp2p_in 2 0>,
2361 <&adsp_smp2p_in 1 0>,
2362 <&adsp_smp2p_in 3 0>;
2363
2364 interrupt-names = "qcom,wdog",
2365 "qcom,err-fatal",
2366 "qcom,proxy-unvote",
2367 "qcom,err-ready",
2368 "qcom,stop-ack";
2369
2370 /* Outputs to lpass */
2371 qcom,smem-states = <&adsp_smp2p_out 0>;
2372 qcom,smem-state-names = "qcom,force-stop";
2373
2374 mbox-names = "adsp-pil";
2375 };
2376
2377 qcom,turing@8300000 {
2378 compatible = "qcom,pil-tz-generic";
2379 reg = <0x8300000 0x100000>;
2380
2381 vdd_cx-supply = <&VDD_CX_LEVEL>;
2382 qcom,proxy-reg-names = "vdd_cx";
2383 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2384
2385 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2386 clock-names = "xo";
2387 qcom,proxy-clock-names = "xo";
2388
2389 qcom,pas-id = <18>;
2390 qcom,proxy-timeout-ms = <10000>;
2391 qcom,smem-id = <601>;
2392 qcom,sysmon-id = <7>;
2393 qcom,ssctl-instance-id = <0x17>;
2394 qcom,firmware-name = "cdsp";
2395 memory-region = <&pil_cdsp_mem>;
2396 qcom,complete-ramdump;
2397
2398 qcom,msm-bus,name = "pil-cdsp";
2399 qcom,msm-bus,num-cases = <2>;
2400 qcom,msm-bus,num-paths = <1>;
2401 qcom,msm-bus,vectors-KBps =
2402 <154 10070 0 0>,
2403 <154 10070 0 1>;
2404
2405 /* Inputs from turing */
Bruce Levy821133c2018-11-29 11:34:45 -08002406 interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_LEVEL_HIGH>,
Bruce Levy5122a632018-09-25 15:51:37 -07002407 <&cdsp_smp2p_in 0 0>,
2408 <&cdsp_smp2p_in 2 0>,
2409 <&cdsp_smp2p_in 1 0>,
2410 <&cdsp_smp2p_in 3 0>;
2411
2412 interrupt-names = "qcom,wdog",
2413 "qcom,err-fatal",
2414 "qcom,proxy-unvote",
2415 "qcom,err-ready",
2416 "qcom,stop-ack";
2417
2418 /* Outputs to turing */
2419 qcom,smem-states = <&cdsp_smp2p_out 0>;
2420 qcom,smem-state-names = "qcom,force-stop";
2421
2422 mbox-names = "cdsp-pil";
2423 };
Akshay Chandrashekhar Kalghatgif7905ad2018-11-08 16:30:42 -08002424
2425 qcom,venus@aab0000 {
2426 compatible = "qcom,pil-tz-generic";
2427 reg = <0xaab0000 0x2000>;
Chinmay Sawarkar2cfeca02018-11-15 17:59:36 -08002428
2429 vdd-supply = <&mvs0c_gdsc>;
2430 qcom,proxy-reg-names = "vdd";
2431 qcom,complete-ramdump;
2432
2433 clocks = <&clock_videocc VIDEO_CC_XO_CLK>,
2434 <&clock_videocc VIDEO_CC_MVS0C_CLK>,
2435 <&clock_videocc VIDEO_CC_AHB_CLK>;
2436 clock-names = "xo", "core", "ahb";
2437 qcom,proxy-clock-names = "xo", "core", "ahb";
2438
Akshay Chandrashekhar Kalghatgif7905ad2018-11-08 16:30:42 -08002439 qcom,core-freq = <200000000>;
2440 qcom,ahb-freq = <200000000>;
2441
2442 qcom,pas-id = <9>;
2443 qcom,msm-bus,name = "pil-venus";
2444 qcom,msm-bus,num-cases = <2>;
2445 qcom,msm-bus,num-paths = <1>;
2446 qcom,msm-bus,vectors-KBps =
2447 <63 512 0 0>,
2448 <63 512 0 304000>;
2449 qcom,proxy-timeout-ms = <100>;
2450 qcom,firmware-name = "venus";
2451 memory-region = <&pil_video_mem>;
2452 };
Tharun Kumar Merugub8d79dd2018-11-02 23:07:31 +05302453
Amir Samuelovf52db412019-01-08 09:30:58 +02002454 /* PIL spss node - for loading Secure Processor */
2455 qcom,spss@1880000 {
2456 compatible = "qcom,pil-tz-generic";
2457 reg = <0x188101c 0x4>,
2458 <0x1881024 0x4>,
2459 <0x1881028 0x4>,
2460 <0x188103c 0x4>,
2461 <0x1882014 0x4>;
2462 reg-names = "sp2soc_irq_status", "sp2soc_irq_clr",
2463 "sp2soc_irq_mask", "rmb_err", "rmb_err_spare2";
2464 interrupts = <0 352 1>;
2465
2466 vdd_cx-supply = <&VDD_CX_LEVEL>;
2467 qcom,proxy-reg-names = "vdd_cx";
2468 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2469 vdd_mx-supply = <&VDD_MX_LEVEL>;
2470 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2471
2472 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2473 clock-names = "xo";
2474 qcom,proxy-clock-names = "xo";
2475 qcom,pil-generic-irq-handler;
2476 status = "ok";
2477
Amir Samuelov48955b32019-01-17 17:24:37 +02002478 qcom,signal-aop;
Amir Samuelovf52db412019-01-08 09:30:58 +02002479 qcom,complete-ramdump;
2480
2481 qcom,pas-id = <14>;
2482 qcom,proxy-timeout-ms = <10000>;
2483 qcom,firmware-name = "spss";
2484 memory-region = <&pil_spss_mem>;
2485 qcom,spss-scsr-bits = <24 25>;
2486
Amir Samuelov48955b32019-01-17 17:24:37 +02002487 mboxes = <&qmp_aop 0>;
Amir Samuelovf52db412019-01-08 09:30:58 +02002488 mbox-names = "spss-pil";
2489 };
2490
George Shen9c54c662018-12-26 15:50:11 -08002491 qcom,cvpss@abb0000 {
2492 compatible = "qcom,pil-tz-generic";
2493 reg = <0xabb0000 0x2000>;
2494 status = "ok";
George Shen24f63232019-01-11 14:28:21 -08002495 qcom,pas-id = <26>;
George Shen9c54c662018-12-26 15:50:11 -08002496 qcom,firmware-name = "cvpss";
2497
2498 memory-region = <&pil_cvp_mem>;
2499 };
2500
Jilai Wangd20a5292018-12-04 11:05:10 -05002501 qcom,npu@9800000 {
2502 compatible = "qcom,pil-tz-generic";
2503 reg = <0x9800000 0x800000>;
2504
2505 status = "ok";
2506 qcom,pas-id = <23>;
2507 qcom,firmware-name = "npu";
2508 memory-region = <&pil_npu_mem>;
2509 };
2510
Tharun Kumar Merugub8d79dd2018-11-02 23:07:31 +05302511 qcom,msm-cdsp-loader {
2512 compatible = "qcom,cdsp-loader";
2513 qcom,proc-img-to-load = "cdsp";
2514 };
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302515
2516 qcom,msm-adsprpc-mem {
2517 compatible = "qcom,msm-adsprpc-mem-region";
2518 memory-region = <&adsp_mem>;
Tharun Kumar Merugu9bf49d72018-12-21 02:33:10 +05302519 restrict-access;
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302520 };
2521
2522 msm_fastrpc: qcom,msm_fastrpc {
2523 compatible = "qcom,msm-fastrpc-compute";
Tharun Kumar Merugu9bf49d72018-12-21 02:33:10 +05302524 qcom,adsp-remoteheap-vmid = <22 37>;
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302525 qcom,fastrpc-adsp-audio-pdr;
Tharun Kumar Merugu9bf49d72018-12-21 02:33:10 +05302526 qcom,fastrpc-adsp-sensors-pdr;
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302527 qcom,rpc-latency-us = <235>;
2528
2529 qcom,msm_fastrpc_compute_cb1 {
2530 compatible = "qcom,msm-fastrpc-compute-cb";
2531 label = "cdsprpc-smd";
2532 iommus = <&apps_smmu 0x1001 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302533 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2534 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302535 dma-coherent;
2536 };
2537
2538 qcom,msm_fastrpc_compute_cb2 {
2539 compatible = "qcom,msm-fastrpc-compute-cb";
2540 label = "cdsprpc-smd";
2541 iommus = <&apps_smmu 0x1002 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302542 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2543 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302544 dma-coherent;
2545 };
2546
2547 qcom,msm_fastrpc_compute_cb3 {
2548 compatible = "qcom,msm-fastrpc-compute-cb";
2549 label = "cdsprpc-smd";
2550 iommus = <&apps_smmu 0x1003 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302551 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2552 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302553 dma-coherent;
2554 };
2555
2556 qcom,msm_fastrpc_compute_cb4 {
2557 compatible = "qcom,msm-fastrpc-compute-cb";
2558 label = "cdsprpc-smd";
2559 iommus = <&apps_smmu 0x1004 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302560 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2561 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302562 dma-coherent;
2563 };
2564
2565 qcom,msm_fastrpc_compute_cb5 {
2566 compatible = "qcom,msm-fastrpc-compute-cb";
2567 label = "cdsprpc-smd";
2568 iommus = <&apps_smmu 0x1005 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302569 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2570 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302571 dma-coherent;
2572 };
2573
2574 qcom,msm_fastrpc_compute_cb6 {
2575 compatible = "qcom,msm-fastrpc-compute-cb";
2576 label = "cdsprpc-smd";
2577 iommus = <&apps_smmu 0x1006 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302578 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2579 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302580 dma-coherent;
2581 };
2582
2583 qcom,msm_fastrpc_compute_cb7 {
2584 compatible = "qcom,msm-fastrpc-compute-cb";
2585 label = "cdsprpc-smd";
2586 iommus = <&apps_smmu 0x1007 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302587 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2588 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302589 dma-coherent;
2590 };
2591
2592 qcom,msm_fastrpc_compute_cb8 {
2593 compatible = "qcom,msm-fastrpc-compute-cb";
2594 label = "cdsprpc-smd";
2595 iommus = <&apps_smmu 0x1008 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302596 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2597 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302598 dma-coherent;
2599 };
2600
2601 qcom,msm_fastrpc_compute_cb9 {
2602 compatible = "qcom,msm-fastrpc-compute-cb";
2603 label = "cdsprpc-smd";
2604 qcom,secure-context-bank;
2605 iommus = <&apps_smmu 0x1009 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302606 dma-ranges = <0x60000000 0x60000000 0x78000000>;
2607 qcom,iommu-faults = "stall-disable";
2608 qcom,iommu-vmid = <0xA>; /* VMID_CP_PIXEL */
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302609 dma-coherent;
2610 };
2611
2612 qcom,msm_fastrpc_compute_cb10 {
2613 compatible = "qcom,msm-fastrpc-compute-cb";
2614 label = "adsprpc-smd";
2615 iommus = <&apps_smmu 0x1803 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302616 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2617 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302618 dma-coherent;
2619 };
2620
2621 qcom,msm_fastrpc_compute_cb11 {
2622 compatible = "qcom,msm-fastrpc-compute-cb";
2623 label = "adsprpc-smd";
2624 iommus = <&apps_smmu 0x1804 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302625 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2626 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302627 dma-coherent;
2628 };
2629
2630 qcom,msm_fastrpc_compute_cb12 {
2631 compatible = "qcom,msm-fastrpc-compute-cb";
2632 label = "adsprpc-smd";
2633 iommus = <&apps_smmu 0x1805 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302634 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2635 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302636 dma-coherent;
2637 };
2638
2639 qcom,msm_fastrpc_compute_cb13 {
2640 compatible = "qcom,msm-fastrpc-compute-cb";
2641 label = "sdsprpc-smd";
2642 iommus = <&apps_smmu 0x0541 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302643 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2644 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302645 dma-coherent;
2646 };
2647
2648 qcom,msm_fastrpc_compute_cb14 {
2649 compatible = "qcom,msm-fastrpc-compute-cb";
2650 label = "sdsprpc-smd";
2651 iommus = <&apps_smmu 0x0542 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302652 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2653 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302654 dma-coherent;
2655 };
2656
2657 qcom,msm_fastrpc_compute_cb15 {
2658 compatible = "qcom,msm-fastrpc-compute-cb";
2659 label = "sdsprpc-smd";
2660 iommus = <&apps_smmu 0x0543 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302661 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2662 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302663 shared-cb = <4>;
2664 dma-coherent;
2665 };
2666 };
Shaikh Shadulbfdfdda2018-11-14 15:36:21 +05302667
Tatenda Chipeperekwaa84e1aa2019-01-18 17:43:45 -08002668 qcom_msmhdcp: qcom,msm_hdcp {
2669 compatible = "qcom,msm-hdcp";
2670 };
2671
Tingwei Zhangd9b535f2018-12-03 19:14:06 -08002672 mem_dump {
2673 compatible = "qcom,mem-dump";
2674 memory-region = <&dump_mem>;
2675
2676 rpmh {
2677 qcom,dump-size = <0x2000000>;
2678 qcom,dump-id = <0xec>;
2679 };
2680
2681 rpm_sw {
2682 qcom,dump-size = <0x28000>;
2683 qcom,dump-id = <0xea>;
2684 };
2685
2686 pmic {
2687 qcom,dump-size = <0x80000>;
2688 qcom,dump-id = <0xe4>;
2689 };
2690
2691 fcm {
2692 qcom,dump-size = <0x8400>;
2693 qcom,dump-id = <0xee>;
2694 };
2695
2696 etf_swao {
2697 qcom,dump-size = <0x10000>;
2698 qcom,dump-id = <0xf1>;
2699 };
2700
2701 etr_reg {
2702 qcom,dump-size = <0x1000>;
2703 qcom,dump-id = <0x100>;
2704 };
2705
2706 etfswao_reg {
2707 qcom,dump-size = <0x1000>;
2708 qcom,dump-id = <0x102>;
2709 };
2710
2711 misc_data {
2712 qcom,dump-size = <0x1000>;
2713 qcom,dump-id = <0xe8>;
2714 };
2715 };
2716
Zhen Kong93446d22018-12-27 13:10:09 -08002717 qcom_tzlog: tz-log@146bf720 {
2718 compatible = "qcom,tz-log";
2719 reg = <0x146bf720 0x3000>;
2720 qcom,hyplog-enabled;
2721 hyplog-address-offset = <0x410>;
2722 hyplog-size-offset = <0x414>;
2723 };
2724
Shaikh Shadulbfdfdda2018-11-14 15:36:21 +05302725 qcom,ssc@5c00000 {
2726 compatible = "qcom,pil-tz-generic";
2727 reg = <0x5c00000 0x4000>;
2728
2729 vdd_cx-supply = <&VDD_CX_LEVEL>;
2730 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
2731 vdd_mx-supply = <&VDD_MX_LEVEL>;
2732 qcom,vdd_mx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
2733
2734 qcom,proxy-reg-names = "vdd_cx", "vdd_mx";
2735 qcom,keep-proxy-regs-on;
2736
2737 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2738 clock-names = "xo";
2739 qcom,proxy-clock-names = "xo";
2740
2741 qcom,pas-id = <12>;
2742 qcom,proxy-timeout-ms = <10000>;
2743 qcom,smem-id = <424>;
2744 qcom,sysmon-id = <3>;
2745 qcom,ssctl-instance-id = <0x16>;
2746 qcom,firmware-name = "slpi";
2747 status = "ok";
2748 memory-region = <&pil_slpi_mem>;
2749 qcom,complete-ramdump;
2750
2751 /* Inputs from ssc */
2752 interrupts-extended = <&pdc 9 IRQ_TYPE_LEVEL_HIGH>,
2753 <&dsps_smp2p_in 0 0>,
2754 <&dsps_smp2p_in 2 0>,
2755 <&dsps_smp2p_in 1 0>,
2756 <&dsps_smp2p_in 3 0>;
2757
2758 interrupt-names = "qcom,wdog",
2759 "qcom,err-fatal",
2760 "qcom,proxy-unvote",
2761 "qcom,err-ready",
2762 "qcom,stop-ack";
2763
2764 /* Outputs to ssc */
2765 qcom,smem-states = <&dsps_smp2p_out 0>;
2766 qcom,smem-state-names = "qcom,force-stop";
2767
2768 mbox-names = "slpi-pil";
2769 };
2770
2771 ssc_sensors: qcom,msm-ssc-sensors {
2772 compatible = "qcom,msm-ssc-sensors";
2773 status = "ok";
2774 qcom,firmware-name = "slpi";
2775 };
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08002776
2777 tsens0: tsens@c222000 {
2778 compatible = "qcom,tsens24xx";
2779 reg = <0xc222000 0x4>,
2780 <0xc263000 0x1ff>;
2781 reg-names = "tsens_srot_physical",
2782 "tsens_tm_physical";
Siddartha Mohanadoss404a89a2019-01-04 15:29:48 -08002783 interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
2784 <GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>;
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08002785 interrupt-names = "tsens-upper-lower", "tsens-critical";
2786 #thermal-sensor-cells = <1>;
2787 };
2788
2789 tsens1: tsens@c223000 {
2790 compatible = "qcom,tsens24xx";
2791 reg = <0xc223000 0x4>,
2792 <0xc265000 0x1ff>;
2793 reg-names = "tsens_srot_physical",
2794 "tsens_tm_physical";
Siddartha Mohanadoss404a89a2019-01-04 15:29:48 -08002795 interrupts = <GIC_SPI 507 IRQ_TYPE_LEVEL_HIGH>,
2796 <GIC_SPI 509 IRQ_TYPE_LEVEL_HIGH>;
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08002797 interrupt-names = "tsens-upper-lower", "tsens-critical";
2798 #thermal-sensor-cells = <1>;
2799 };
Rishabh Bhatnagarf7a853a2018-06-28 14:14:54 -07002800
2801 qcom,msm-rtb {
2802 compatible = "qcom,msm-rtb";
2803 qcom,rtb-size = <0x100000>;
2804 };
2805
2806 qcom,mpm2-sleep-counter@c221000 {
2807 compatible = "qcom,mpm2-sleep-counter";
2808 reg = <0xc221000 0x1000>;
2809 clock-frequency = <32768>;
2810 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -07002811
2812 cpuss_dump {
2813 compatible = "qcom,cpuss-dump";
2814
2815 qcom,l1_i_cache0 {
2816 qcom,dump-node = <&L1_I_0>;
2817 qcom,dump-id = <0x60>;
2818 };
2819
2820 qcom,l1_i_cache1 {
2821 qcom,dump-node = <&L1_I_100>;
2822 qcom,dump-id = <0x61>;
2823 };
2824
2825 qcom,l1_i_cache2 {
2826 qcom,dump-node = <&L1_I_200>;
2827 qcom,dump-id = <0x62>;
2828 };
2829
2830 qcom,l1_i_cache3 {
2831 qcom,dump-node = <&L1_I_300>;
2832 qcom,dump-id = <0x63>;
2833 };
2834
2835 qcom,l1_i_cache100 {
2836 qcom,dump-node = <&L1_I_400>;
2837 qcom,dump-id = <0x64>;
2838 };
2839
2840 qcom,l1_i_cache101 {
2841 qcom,dump-node = <&L1_I_500>;
2842 qcom,dump-id = <0x65>;
2843 };
2844
2845 qcom,l1_i_cache102 {
2846 qcom,dump-node = <&L1_I_600>;
2847 qcom,dump-id = <0x66>;
2848 };
2849
2850 qcom,l1_i_cache103 {
2851 qcom,dump-node = <&L1_I_700>;
2852 qcom,dump-id = <0x67>;
2853 };
2854
2855 qcom,l1_d_cache0 {
2856 qcom,dump-node = <&L1_D_0>;
2857 qcom,dump-id = <0x80>;
2858 };
2859
2860 qcom,l1_d_cache1 {
2861 qcom,dump-node = <&L1_D_100>;
2862 qcom,dump-id = <0x81>;
2863 };
2864
2865 qcom,l1_d_cache2 {
2866 qcom,dump-node = <&L1_D_200>;
2867 qcom,dump-id = <0x82>;
2868 };
2869
2870 qcom,l1_d_cache3 {
2871 qcom,dump-node = <&L1_D_300>;
2872 qcom,dump-id = <0x83>;
2873 };
2874
2875 qcom,l1_d_cache100 {
2876 qcom,dump-node = <&L1_D_400>;
2877 qcom,dump-id = <0x84>;
2878 };
2879
2880 qcom,l1_d_cache101 {
2881 qcom,dump-node = <&L1_D_500>;
2882 qcom,dump-id = <0x85>;
2883 };
2884
2885 qcom,l1_d_cache102 {
2886 qcom,dump-node = <&L1_D_600>;
2887 qcom,dump-id = <0x86>;
2888 };
2889
2890 qcom,l1_d_cache103 {
2891 qcom,dump-node = <&L1_D_700>;
2892 qcom,dump-id = <0x87>;
2893 };
2894
2895 qcom,l1_i_tlb_dump400 {
2896 qcom,dump-node = <&L1_ITLB_400>;
2897 qcom,dump-id = <0x24>;
2898 };
2899
2900 qcom,l1_i_tlb_dump500 {
2901 qcom,dump-node = <&L1_ITLB_500>;
2902 qcom,dump-id = <0x25>;
2903 };
2904
2905 qcom,l1_i_tlb_dump600 {
2906 qcom,dump-node = <&L1_ITLB_600>;
2907 qcom,dump-id = <0x26>;
2908 };
2909
2910 qcom,l1_i_tlb_dump700 {
2911 qcom,dump-node = <&L1_ITLB_700>;
2912 qcom,dump-id = <0x27>;
2913 };
2914
2915 qcom,l1_d_tlb_dump400 {
2916 qcom,dump-node = <&L1_DTLB_400>;
2917 qcom,dump-id = <0x44>;
2918 };
2919
2920 qcom,l1_d_tlb_dump500 {
2921 qcom,dump-node = <&L1_DTLB_500>;
2922 qcom,dump-id = <0x45>;
2923 };
2924
2925 qcom,l1_d_tlb_dump600 {
2926 qcom,dump-node = <&L1_DTLB_600>;
2927 qcom,dump-id = <0x46>;
2928 };
2929
2930 qcom,l1_d_tlb_dump700 {
2931 qcom,dump-node = <&L1_DTLB_700>;
2932 qcom,dump-id = <0x47>;
2933 };
2934
2935 qcom,l2_cache_dump400 {
2936 qcom,dump-node = <&L2_4>;
2937 qcom,dump-id = <0xc4>;
2938 };
2939
2940 qcom,l2_cache_dump500 {
2941 qcom,dump-node = <&L2_5>;
2942 qcom,dump-id = <0xc5>;
2943 };
2944
2945 qcom,l2_cache_dump600 {
2946 qcom,dump-node = <&L2_6>;
2947 qcom,dump-id = <0xc6>;
2948 };
2949
2950 qcom,l2_cache_dump700 {
2951 qcom,dump-node = <&L2_7>;
2952 qcom,dump-id = <0xc7>;
2953 };
2954
2955 qcom,l2_tlb_dump0 {
2956 qcom,dump-node = <&L2_TLB_0>;
2957 qcom,dump-id = <0x120>;
2958 };
2959
2960 qcom,l2_tlb_dump100 {
2961 qcom,dump-node = <&L2_TLB_100>;
2962 qcom,dump-id = <0x121>;
2963 };
2964
2965 qcom,l2_tlb_dump200 {
2966 qcom,dump-node = <&L2_TLB_200>;
2967 qcom,dump-id = <0x122>;
2968 };
2969
2970 qcom,l2_tlb_dump300 {
2971 qcom,dump-node = <&L2_TLB_300>;
2972 qcom,dump-id = <0x123>;
2973 };
2974
2975 qcom,l2_tlb_dump400 {
2976 qcom,dump-node = <&L2_TLB_400>;
2977 qcom,dump-id = <0x124>;
2978 };
2979
2980 qcom,l2_tlb_dump500 {
2981 qcom,dump-node = <&L2_TLB_500>;
2982 qcom,dump-id = <0x125>;
2983 };
2984
2985 qcom,l2_tlb_dump600 {
2986 qcom,dump-node = <&L2_TLB_600>;
2987 qcom,dump-id = <0x126>;
2988 };
2989
2990 qcom,l2_tlb_dump700 {
2991 qcom,dump-node = <&L2_TLB_700>;
2992 qcom,dump-id = <0x127>;
2993 };
2994 };
Vipin Deep Kaur1cd6ed02018-12-27 16:23:43 +05302995
2996 gpi_dma0: qcom,gpi-dma@900000 {
2997 #dma-cells = <5>;
2998 compatible = "qcom,gpi-dma";
2999 reg = <0x900000 0x70000>;
3000 reg-names = "gpi-top";
Rishabh Bhatnagar7ef15882019-01-22 11:02:09 -08003001 interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
3002 <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
3003 <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>,
3004 <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>,
3005 <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>,
3006 <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>,
3007 <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>,
3008 <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>,
3009 <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>,
3010 <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>,
3011 <GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>,
3012 <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>,
3013 <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
Vipin Deep Kaur1cd6ed02018-12-27 16:23:43 +05303014 qcom,max-num-gpii = <13>;
3015 qcom,gpii-mask = <0x7ff>;
3016 qcom,ev-factor = <2>;
3017 iommus = <&apps_smmu 0x5b6 0x0>;
3018 qcom,smmu-cfg = <0x1>;
3019 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
3020 status = "ok";
3021 };
3022
3023 gpi_dma1: qcom,gpi-dma@a00000 {
3024 #dma-cells = <5>;
3025 compatible = "qcom,gpi-dma";
3026 reg = <0xa00000 0x70000>;
3027 reg-names = "gpi-top";
Rishabh Bhatnagar7ef15882019-01-22 11:02:09 -08003028 interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>,
3029 <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
3030 <GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH>,
3031 <GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>,
3032 <GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>,
3033 <GIC_SPI 284 IRQ_TYPE_LEVEL_HIGH>,
3034 <GIC_SPI 293 IRQ_TYPE_LEVEL_HIGH>,
3035 <GIC_SPI 294 IRQ_TYPE_LEVEL_HIGH>,
3036 <GIC_SPI 295 IRQ_TYPE_LEVEL_HIGH>,
3037 <GIC_SPI 296 IRQ_TYPE_LEVEL_HIGH>;
Vipin Deep Kaur1cd6ed02018-12-27 16:23:43 +05303038 qcom,max-num-gpii = <10>;
3039 qcom,gpii-mask = <0x3f>;
3040 qcom,ev-factor = <2>;
3041 iommus = <&apps_smmu 0x56 0x0>;
3042 qcom,smmu-cfg = <0x1>;
3043 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
3044 status = "ok";
3045 };
3046
3047 gpi_dma2: qcom,gpi-dma@800000 {
3048 #dma-cells = <5>;
3049 compatible = "qcom,gpi-dma";
3050 reg = <0x800000 0x70000>;
3051 reg-names = "gpi-top";
Rishabh Bhatnagar7ef15882019-01-22 11:02:09 -08003052 interrupts = <GIC_SPI 588 IRQ_TYPE_LEVEL_HIGH>,
3053 <GIC_SPI 589 IRQ_TYPE_LEVEL_HIGH>,
3054 <GIC_SPI 590 IRQ_TYPE_LEVEL_HIGH>,
3055 <GIC_SPI 591 IRQ_TYPE_LEVEL_HIGH>,
3056 <GIC_SPI 592 IRQ_TYPE_LEVEL_HIGH>,
3057 <GIC_SPI 593 IRQ_TYPE_LEVEL_HIGH>,
3058 <GIC_SPI 594 IRQ_TYPE_LEVEL_HIGH>,
3059 <GIC_SPI 595 IRQ_TYPE_LEVEL_HIGH>,
3060 <GIC_SPI 596 IRQ_TYPE_LEVEL_HIGH>,
3061 <GIC_SPI 597 IRQ_TYPE_LEVEL_HIGH>;
Vipin Deep Kaur1cd6ed02018-12-27 16:23:43 +05303062 qcom,max-num-gpii = <10>;
3063 qcom,gpii-mask = <0x3f>;
3064 qcom,ev-factor = <2>;
3065 iommus = <&apps_smmu 0x76 0x0>;
3066 qcom,smmu-cfg = <0x1>;
3067 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
3068 status = "ok";
3069 };
3070
Yuanyuan Liu99e0b9a2019-01-16 11:01:38 -08003071 qcom,cnss-qca6390@a0000000 {
3072 compatible = "qcom,cnss-qca6390";
3073 reg = <0xa0000000 0x10000000>,
3074 <0xb0000000 0x10000>;
3075 reg-names = "smmu_iova_base", "smmu_iova_ipa";
3076 wlan-en-gpio = <&tlmm 169 0>;
3077 pinctrl-names = "wlan_en_active", "wlan_en_sleep";
3078 pinctrl-0 = <&cnss_wlan_en_active>;
3079 pinctrl-1 = <&cnss_wlan_en_sleep>;
3080 qcom,wlan-rc-num = <0>;
3081 qcom,wlan-ramdump-dynamic = <0x400000>;
3082
Yuanyuan Liu30d201f2019-01-22 14:04:54 -08003083 vdd-wlan-aon-supply = <&pm8150_s6>;
3084 vdd-wlan-dig-supply = <&pm8009_s2>;
3085 vdd-wlan-io-supply = <&pm8150_s4>;
3086 vdd-wlan-rfa1-supply = <&pm8150_s5>;
3087 vdd-wlan-rfa2-supply = <&pm8150a_s8>;
3088
Yuanyuan Liu99e0b9a2019-01-16 11:01:38 -08003089 mhi,max-channels = <30>;
3090 mhi,timeout = <10000>;
3091
3092 mhi_channels {
3093 #address-cells = <1>;
3094 #size-cells = <0>;
3095
3096 mhi_chan@0 {
3097 reg = <0>;
3098 label = "LOOPBACK";
3099 mhi,num-elements = <32>;
3100 mhi,event-ring = <1>;
3101 mhi,chan-dir = <1>;
3102 mhi,data-type = <0>;
3103 mhi,doorbell-mode = <2>;
3104 mhi,ee = <0x14>;
3105 };
3106
3107 mhi_chan@1 {
3108 reg = <1>;
3109 label = "LOOPBACK";
3110 mhi,num-elements = <32>;
3111 mhi,event-ring = <1>;
3112 mhi,chan-dir = <2>;
3113 mhi,data-type = <0>;
3114 mhi,doorbell-mode = <2>;
3115 mhi,ee = <0x14>;
3116 };
3117
3118 mhi_chan@4 {
3119 reg = <4>;
3120 label = "DIAG";
3121 mhi,num-elements = <32>;
3122 mhi,event-ring = <1>;
3123 mhi,chan-dir = <1>;
3124 mhi,data-type = <0>;
3125 mhi,doorbell-mode = <2>;
3126 mhi,ee = <0x14>;
3127 };
3128
3129 mhi_chan@5 {
3130 reg = <5>;
3131 label = "DIAG";
3132 mhi,num-elements = <32>;
3133 mhi,event-ring = <1>;
3134 mhi,chan-dir = <2>;
3135 mhi,data-type = <0>;
3136 mhi,doorbell-mode = <2>;
3137 mhi,ee = <0x14>;
3138 };
3139
3140 mhi_chan@20 {
3141 reg = <20>;
3142 label = "IPCR";
3143 mhi,num-elements = <32>;
3144 mhi,event-ring = <1>;
3145 mhi,chan-dir = <1>;
3146 mhi,data-type = <1>;
3147 mhi,doorbell-mode = <2>;
3148 mhi,ee = <0x14>;
3149 mhi,auto-start;
3150 };
3151
3152 mhi_chan@21 {
3153 reg = <21>;
3154 label = "IPCR";
3155 mhi,num-elements = <32>;
3156 mhi,event-ring = <1>;
3157 mhi,chan-dir = <2>;
3158 mhi,data-type = <0>;
3159 mhi,doorbell-mode = <2>;
3160 mhi,ee = <0x14>;
3161 mhi,auto-queue;
3162 mhi,auto-start;
3163 };
3164 };
3165
3166 mhi_events {
3167 mhi_event@0 {
3168 mhi,num-elements = <32>;
3169 mhi,intmod = <1>;
3170 mhi,msi = <1>;
3171 mhi,priority = <1>;
3172 mhi,brstmode = <2>;
3173 mhi,data-type = <1>;
3174 };
3175
3176 mhi_event@1 {
3177 mhi,num-elements = <256>;
3178 mhi,intmod = <1>;
3179 mhi,msi = <2>;
3180 mhi,priority = <1>;
3181 mhi,brstmode = <2>;
3182 };
3183 };
3184 };
Runmin Wang4f5985b2017-04-19 15:55:12 -07003185};
Swathi Sridhar4008eb42018-07-17 15:34:46 -07003186
David Collins61d237d2019-01-03 16:01:15 -08003187#include "kona-regulators.dtsi"
David Daib1d68482018-10-01 19:40:35 -07003188#include "kona-bus.dtsi"
Swathi Sridharbbbc80b2018-07-13 10:02:08 -07003189#include "kona-ion.dtsi"
Tony Truongc972c642018-09-12 10:03:51 -07003190#include "kona-pcie.dtsi"
Sujeev Dias5399e552018-09-18 17:57:54 -07003191#include "kona-mhi.dtsi"
Swathi Sridhar4008eb42018-07-17 15:34:46 -07003192#include "msm-arm-smmu-kona.dtsi"
Rishabh Bhatnagara740b0e2018-07-20 15:08:35 -07003193#include "kona-pinctrl.dtsi"
Chris Lew86f6bde2018-09-06 16:40:39 -07003194#include "kona-smp2p.dtsi"
Hemant Kumar5f58bad2018-08-31 14:25:23 -07003195#include "kona-usb.dtsi"
Tingwei Zhang564fa692018-11-28 00:31:17 -08003196#include "kona-coresight.dtsi"
Samantha Tran7e309f02018-08-31 17:23:00 -07003197#include "kona-sde.dtsi"
Satya Rama Aditya Pinapala09600b32018-10-29 10:52:37 -07003198#include "kona-sde-pll.dtsi"
Mukund Atred454ec92018-11-05 15:32:16 -08003199
Arjun Bagla76f02ef2018-09-19 10:00:29 -07003200#include "kona-pm.dtsi"
Mukund Atred454ec92018-11-05 15:32:16 -08003201
3202#include "kona-camera.dtsi"
Vipin Deep Kaur9a2c13d2018-12-19 18:38:46 +05303203#include "kona-qupv3.dtsi"
Karthikeyan Mani7f5b10b2019-01-16 16:35:07 -08003204#include "kona-audio.dtsi"
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08003205#include "kona-thermal.dtsi"
Chinmay Sawarkar83d01b42018-12-14 12:34:50 -08003206#include "kona-vidc.dtsi"
George Shen9c54c662018-12-26 15:50:11 -08003207#include "kona-cvp.dtsi"
Jilai Wang6fed1a22019-01-23 16:58:39 -05003208#include "kona-npu.dtsi"