blob: 621e8bd4ec0b8427bc206b0a2748e9851ba80b3c [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 Truong576c9bf2019-01-31 17:38:11 -080037 pci-domain0 = &pcie0; /* PCIe0 domain */
38 pci-domain1 = &pcie1; /* PCIe1 domain */
Tony Truongc972c642018-09-12 10:03:51 -070039 pci-domain2 = &pcie2; /* PCIe2 domain */
Vipin Deep Kaur9a2c13d2018-12-19 18:38:46 +053040 serial0 = &qupv3_se2_2uart; /* RUMI */
Can Guob04bed52018-07-10 19:27:32 -070041 };
42
Runmin Wang4f5985b2017-04-19 15:55:12 -070043 cpus {
44 #address-cells = <2>;
45 #size-cells = <0>;
46
47 CPU0: cpu@0 {
48 device_type = "cpu";
49 compatible = "qcom,kryo";
50 reg = <0x0 0x0>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -070051 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -070052 cache-size = <0x8000>;
53 cpu-release-addr = <0x0 0x90000000>;
54 next-level-cache = <&L2_0>;
David Daia4635e62018-10-11 13:39:44 -070055 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -080056 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -080057 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -070058 L2_0: l2-cache {
59 compatible = "arm,arch-cache";
60 cache-size = <0x20000>;
61 cache-level = <2>;
62 next-level-cache = <&L3_0>;
63
64 L3_0: l3-cache {
65 compatible = "arm,arch-cache";
66 cache-size = <0x400000>;
67 cache-level = <3>;
68 };
69 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -070070
71 L1_I_0: l1-icache {
72 compatible = "arm,arch-cache";
73 qcom,dump-size = <0x8800>;
74 };
75
76 L1_D_0: l1-dcache {
77 compatible = "arm,arch-cache";
78 qcom,dump-size = <0x9000>;
79 };
80
81 L2_TLB_0: l2-tlb {
82 qcom,dump-size = <0x5000>;
83 };
Runmin Wang4f5985b2017-04-19 15:55:12 -070084 };
85
86 CPU1: cpu@100 {
87 device_type = "cpu";
88 compatible = "qcom,kryo";
89 reg = <0x0 0x100>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -070090 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -070091 cache-size = <0x8000>;
92 cpu-release-addr = <0x0 0x90000000>;
93 next-level-cache = <&L2_1>;
David Daia4635e62018-10-11 13:39:44 -070094 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -080095 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -080096 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -070097 L2_1: l2-cache {
98 compatible = "arm,arch-cache";
99 cache-size = <0x20000>;
100 cache-level = <2>;
101 next-level-cache = <&L3_0>;
102 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700103
104 L1_I_100: l1-icache {
105 compatible = "arm,arch-cache";
106 qcom,dump-size = <0x8800>;
107 };
108
109 L1_D_100: l1-dcache {
110 compatible = "arm,arch-cache";
111 qcom,dump-size = <0x9000>;
112 };
113
114 L2_TLB_100: l2-tlb {
115 qcom,dump-size = <0x5000>;
116 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700117 };
118
119 CPU2: cpu@200 {
120 device_type = "cpu";
121 compatible = "qcom,kryo";
122 reg = <0x0 0x200>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700123 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700124 cache-size = <0x8000>;
125 cpu-release-addr = <0x0 0x90000000>;
126 next-level-cache = <&L2_2>;
David Daia4635e62018-10-11 13:39:44 -0700127 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800128 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -0800129 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700130 L2_2: l2-cache {
131 compatible = "arm,arch-cache";
132 cache-size = <0x20000>;
133 cache-level = <2>;
134 next-level-cache = <&L3_0>;
135 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700136
137 L1_I_200: l1-icache {
138 compatible = "arm,arch-cache";
139 qcom,dump-size = <0x8800>;
140 };
141
142 L1_D_200: l1-dcache {
143 compatible = "arm,arch-cache";
144 qcom,dump-size = <0x9000>;
145 };
146
147 L2_TLB_200: l2-tlb {
148 qcom,dump-size = <0x5000>;
149 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700150 };
151
152 CPU3: cpu@300 {
153 device_type = "cpu";
154 compatible = "qcom,kryo";
155 reg = <0x0 0x300>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700156 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700157 cache-size = <0x8000>;
158 cpu-release-addr = <0x0 0x90000000>;
159 next-level-cache = <&L2_3>;
David Daia4635e62018-10-11 13:39:44 -0700160 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800161 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -0800162 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700163 L2_3: l2-cache {
164 compatible = "arm,arch-cache";
165 cache-size = <0x20000>;
166 cache-level = <2>;
167 next-level-cache = <&L3_0>;
168 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700169
170 L1_I_300: l1-icache {
171 compatible = "arm,arch-cache";
172 qcom,dump-size = <0x8800>;
173 };
174
175 L1_D_300: l1-dcache {
176 compatible = "arm,arch-cache";
177 qcom,dump-size = <0x9000>;
178 };
179
180 L2_TLB_300: l2-tlb {
181 qcom,dump-size = <0x5000>;
182 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700183 };
184
185 CPU4: cpu@400 {
186 device_type = "cpu";
187 compatible = "qcom,kryo";
188 reg = <0x0 0x400>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700189 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700190 cache-size = <0x10000>;
191 cpu-release-addr = <0x0 0x90000000>;
192 next-level-cache = <&L2_4>;
David Daia4635e62018-10-11 13:39:44 -0700193 qcom,freq-domain = <&cpufreq_hw 1 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800194 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhaladb98c3e2019-01-25 10:26:46 -0800195 dynamic-power-coefficient = <514>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700196 L2_4: l2-cache {
197 compatible = "arm,arch-cache";
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700198 cache-size = <0x40000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700199 cache-level = <2>;
200 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700201 qcom,dump-size = <0x48000>;
202 };
203
204 L1_I_400: l1-icache {
205 compatible = "arm,arch-cache";
206 qcom,dump-size = <0x11000>;
207 };
208
209 L1_D_400: l1-dcache {
210 compatible = "arm,arch-cache";
211 qcom,dump-size = <0x12000>;
212 };
213
214 L1_ITLB_400: l1-itlb {
215 qcom,dump-size = <0x300>;
216 };
217
218 L1_DTLB_400: l1-dtlb {
219 qcom,dump-size = <0x480>;
220 };
221
222 L2_TLB_400: l2-tlb {
223 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700224 };
225 };
226
227 CPU5: cpu@500 {
228 device_type = "cpu";
229 compatible = "qcom,kryo";
230 reg = <0x0 0x500>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700231 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700232 cache-size = <0x10000>;
233 cpu-release-addr = <0x0 0x90000000>;
234 next-level-cache = <&L2_5>;
David Daia4635e62018-10-11 13:39:44 -0700235 qcom,freq-domain = <&cpufreq_hw 1 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800236 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhaladb98c3e2019-01-25 10:26:46 -0800237 dynamic-power-coefficient = <514>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700238 L2_5: l2-cache {
239 compatible = "arm,arch-cache";
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700240 cache-size = <0x40000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700241 cache-level = <2>;
242 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700243 qcom,dump-size = <0x48000>;
244 };
245
246 L1_I_500: l1-icache {
247 compatible = "arm,arch-cache";
248 qcom,dump-size = <0x11000>;
249 };
250
251 L1_D_500: l1-dcache {
252 compatible = "arm,arch-cache";
253 qcom,dump-size = <0x12000>;
254 };
255
256 L1_ITLB_500: l1-itlb {
257 qcom,dump-size = <0x300>;
258 };
259
260 L1_DTLB_500: l1-dtlb {
261 qcom,dump-size = <0x480>;
262 };
263
264 L2_TLB_500: l2-tlb {
265 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700266 };
267 };
268
269 CPU6: cpu@600 {
270 device_type = "cpu";
271 compatible = "qcom,kryo";
272 reg = <0x0 0x600>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700273 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700274 cache-size = <0x10000>;
275 cpu-release-addr = <0x0 0x90000000>;
276 next-level-cache = <&L2_6>;
David Daia4635e62018-10-11 13:39:44 -0700277 qcom,freq-domain = <&cpufreq_hw 1 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800278 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhaladb98c3e2019-01-25 10:26:46 -0800279 dynamic-power-coefficient = <514>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700280 L2_6: l2-cache {
281 compatible = "arm,arch-cache";
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700282 cache-size = <0x40000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700283 cache-level = <2>;
284 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700285 qcom,dump-size = <0x48000>;
286 };
287
288 L1_I_600: l1-icache {
289 compatible = "arm,arch-cache";
290 qcom,dump-size = <0x11000>;
291 };
292
293 L1_D_600: l1-dcache {
294 compatible = "arm,arch-cache";
295 qcom,dump-size = <0x12000>;
296 };
297
298 L1_ITLB_600: l1-itlb {
299 qcom,dump-size = <0x300>;
300 };
301
302 L1_DTLB_600: l1-dtlb {
303 qcom,dump-size = <0x480>;
304 };
305
306 L2_TLB_600: l2-tlb {
307 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700308 };
309 };
310
311 CPU7: cpu@700 {
312 device_type = "cpu";
313 compatible = "qcom,kryo";
314 reg = <0x0 0x700>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700315 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700316 cache-size = <0x10000>;
317 cpu-release-addr = <0x0 0x90000000>;
318 next-level-cache = <&L2_7>;
David Daia4635e62018-10-11 13:39:44 -0700319 qcom,freq-domain = <&cpufreq_hw 2 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800320 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhaladb98c3e2019-01-25 10:26:46 -0800321 dynamic-power-coefficient = <598>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700322 L2_7: l2-cache {
323 compatible = "arm,arch-cache";
324 cache-size = <0x80000>;
325 cache-level = <2>;
326 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700327 qcom,dump-size = <0x90000>;
328 };
329
330 L1_I_700: l1-icache {
331 compatible = "arm,arch-cache";
332 qcom,dump-size = <0x11000>;
333 };
334
335 L1_D_700: l1-dcache {
336 compatible = "arm,arch-cache";
337 qcom,dump-size = <0x12000>;
338 };
339
340 L1_ITLB_700: l1-itlb {
341 qcom,dump-size = <0x300>;
342 };
343
344 L1_DTLB_700: l1-dtlb {
345 qcom,dump-size = <0x480>;
346 };
347
348 L2_TLB_700: l2-tlb {
349 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700350 };
351 };
352
353 cpu-map {
354 cluster0 {
355 core0 {
356 cpu = <&CPU0>;
357 };
358
359 core1 {
360 cpu = <&CPU1>;
361 };
362
363 core2 {
364 cpu = <&CPU2>;
365 };
366
367 core3 {
368 cpu = <&CPU3>;
369 };
370 };
371
372 cluster1 {
373 core0 {
374 cpu = <&CPU4>;
375 };
376
377 core1 {
378 cpu = <&CPU5>;
379 };
380
381 core2 {
382 cpu = <&CPU6>;
383 };
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800384 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700385
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800386 cluster2 {
387 core0 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700388 cpu = <&CPU7>;
389 };
390 };
391 };
392 };
393
David Daia4635e62018-10-11 13:39:44 -0700394
Channagoud Kadabicdd72a02018-09-21 14:46:21 -0700395 cpu_pmu: cpu-pmu {
396 compatible = "arm,armv8-pmuv3";
397 qcom,irq-is-percpu;
398 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
399 };
400
David Daia4635e62018-10-11 13:39:44 -0700401 soc: soc {
402 cpufreq_hw: qcom,cpufreq-hw {
403 compatible = "qcom,cpufreq-hw";
404 reg = <0x18591000 0x1000>, <0x18592000 0x1000>,
405 <0x18593000 0x1000>;
406 reg-names = "freq-domain0", "freq-domain1",
407 "freq-domain2";
408
David Daiee6a9d62019-01-10 17:14:04 -0800409 clocks = <&clock_rpmh RPMH_CXO_CLK>, <&clock_gcc GPLL0>;
David Daia4635e62018-10-11 13:39:44 -0700410 clock-names = "xo", "cpu_clk";
411
412 #freq-domain-cells = <2>;
413 };
414 };
415
Arjun Bagla76f02ef2018-09-19 10:00:29 -0700416 psci {
417 compatible = "arm,psci-1.0";
418 method = "smc";
419 };
420
Venkata Narendra Kumar Gutta07fdd262019-02-11 21:12:04 -0800421 chosen {
422 bootargs = "rcupdate.rcu_expedited=1 rcu_nocbs=0-7";
423 };
424
Bruce Levy3bd8d1b2018-09-11 11:31:13 -0700425 firmware: firmware {
426 android {
427 compatible = "android,firmware";
Zhen Kongb8fe4072019-01-15 17:58:27 -0800428 vbmeta {
429 compatible = "android,vbmeta";
430 parts = "vbmeta,boot,system,vendor,dtbo";
431 };
432
Bruce Levy3bd8d1b2018-09-11 11:31:13 -0700433 fstab {
434 compatible = "android,fstab";
435 vendor {
436 compatible = "android,vendor";
437 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
438 type = "ext4";
439 mnt_flags = "ro,barrier=1,discard";
440 fsmgr_flags = "wait,slotselect,avb";
441 status = "ok";
442 };
443 };
444 };
445 };
446
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700447 psci {
448 compatible = "arm,psci-1.0";
449 method = "smc";
450 };
451
Swathi Sridhara79a9542018-06-21 11:40:44 -0700452 reserved-memory {
453 #address-cells = <2>;
454 #size-cells = <2>;
455 ranges;
456
457 hyp_mem: hyp_region@80000000 {
458 no-map;
459 reg = <0x0 0x80000000 0x0 0x600000>;
460 };
461
462 xbl_aop_mem: xbl_aop_region@80700000 {
463 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700464 reg = <0x0 0x80700000 0x0 0x120000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700465 };
466
Lina Iyer5d609fa2018-10-03 14:26:55 -0600467 cmd_db: reserved-memory@80820000 {
468 reg = <0x0 0x80820000 0x0 0x20000>;
469 compatible = "qcom,cmd-db";
470 no-map;
471 };
472
Swathi Sridhara79a9542018-06-21 11:40:44 -0700473 smem_mem: smem_region@80900000 {
474 no-map;
475 reg = <0x0 0x80900000 0x0 0x200000>;
476 };
477
478 removed_mem: removed_region@80b00000 {
479 no-map;
Swathi Sridhar67f2e9c2019-01-14 11:04:05 -0800480 reg = <0x0 0x80b00000 0x0 0x1300000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700481 };
482
483 qtee_apps_mem: qtee_apps_region@81e00000 {
484 no-map;
485 reg = <0x0 0x81e00000 0x0 0x2600000>;
486 };
487
488 pil_camera_mem: pil_camera_region@86000000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700489 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700490 no-map;
491 reg = <0x0 0x86000000 0x0 0x500000>;
492 };
493
494 pil_wlan_fw_mem: pil_wlan_fw_region@86500000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700495 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700496 no-map;
497 reg = <0x0 0x86500000 0x0 0x100000>;
498 };
499
500 pil_ipa_fw_mem: pil_ipa_fw_region@86600000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700501 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700502 no-map;
503 reg = <0x0 0x86600000 0x0 0x10000>;
504 };
505
506 pil_ipa_gsi_mem: pil_ipa_gsi_region@86610000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700507 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700508 no-map;
Swathi Sridhar67f2e9c2019-01-14 11:04:05 -0800509 reg = <0x0 0x86610000 0x0 0xa000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700510 };
511
Swathi Sridhar67f2e9c2019-01-14 11:04:05 -0800512 pil_gpu_mem: pil_gpu_region@8661a000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700513 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700514 no-map;
Swathi Sridhar67f2e9c2019-01-14 11:04:05 -0800515 reg = <0x0 0x8661a000 0x0 0x2000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700516 };
517
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700518 pil_npu_mem: pil_npu_region@86700000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700519 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700520 no-map;
521 reg = <0x0 0x86700000 0x0 0x500000>;
522 };
523
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700524 pil_video_mem: pil_video_region@86c00000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700525 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700526 no-map;
527 reg = <0x0 0x86c00000 0x0 0x500000>;
528 };
529
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700530 pil_cvp_mem: pil_cvp_region@87100000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700531 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700532 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700533 reg = <0x0 0x87100000 0x0 0x500000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700534 };
535
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700536 pil_cdsp_mem: pil_cdsp_region@87600000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700537 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700538 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700539 reg = <0x0 0x87600000 0x0 0x800000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700540 };
541
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700542 pil_slpi_mem: pil_slpi_region@87e00000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700543 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700544 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700545 reg = <0x0 0x87e00000 0x0 0x1500000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700546 };
547
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700548 pil_adsp_mem: pil_adsp_region@89300000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700549 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700550 no-map;
Swathi Sridhar19db3ed2018-11-29 11:01:42 -0800551 reg = <0x0 0x89300000 0x0 0x1a00000>;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700552 };
553
Swathi Sridhar19db3ed2018-11-29 11:01:42 -0800554 pil_spss_mem: pil_spss_region@8ad00000 {
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700555 compatible = "removed-dma-pool";
556 no-map;
Swathi Sridhar19db3ed2018-11-29 11:01:42 -0800557 reg = <0x0 0x8ad00000 0x0 0x100000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700558 };
559
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +0530560 adsp_mem: adsp_region {
561 compatible = "shared-dma-pool";
562 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
563 reusable;
564 alignment = <0x0 0x400000>;
Tharun Kumar Merugu9bf49d72018-12-21 02:33:10 +0530565 size = <0x0 0xC00000>;
566 };
567
568 sdsp_mem: sdsp_region {
569 compatible = "shared-dma-pool";
570 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
571 reusable;
572 alignment = <0x0 0x400000>;
573 size = <0x0 0x800000>;
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +0530574 };
575
George Shen9c54c662018-12-26 15:50:11 -0800576 cdsp_mem: cdsp_region {
577 compatible = "shared-dma-pool";
578 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
579 reusable;
580 alignment = <0x0 0x400000>;
581 size = <0x0 0x400000>;
582 };
583
Tingwei Zhangd9b535f2018-12-03 19:14:06 -0800584 dump_mem: mem_dump_region {
585 compatible = "shared-dma-pool";
Swathi Sridhar08b670b2019-01-16 17:05:24 -0800586 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
Tingwei Zhangd9b535f2018-12-03 19:14:06 -0800587 reusable;
588 size = <0 0x2400000>;
589 };
Konstantin Dorfman13fe5432019-02-06 16:03:13 +0200590 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
591 compatible = "shared-dma-pool";
592 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
593 reusable;
594 alignment = <0x0 0x400000>;
595 size = <0x0 0x800000>;
596 };
Tingwei Zhangd9b535f2018-12-03 19:14:06 -0800597
Zhen Kong284c9f02018-11-06 12:00:30 -0800598 qseecom_mem: qseecom_region {
599 compatible = "shared-dma-pool";
600 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
601 reusable;
602 alignment = <0x0 0x400000>;
603 size = <0x0 0x1400000>;
604 };
605
606 qseecom_ta_mem: qseecom_ta_region {
607 compatible = "shared-dma-pool";
608 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
609 reusable;
610 alignment = <0x0 0x400000>;
611 size = <0x0 0x1000000>;
612 };
613
Swathi Sridhara79a9542018-06-21 11:40:44 -0700614 /* global autoconfigured region for contiguous allocations */
615 linux,cma {
616 compatible = "shared-dma-pool";
617 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
618 reusable;
619 alignment = <0x0 0x400000>;
620 size = <0x0 0x2000000>;
621 linux,cma-default;
622 };
Vikram Panduranga5bbf75a2019-01-17 19:26:52 -0800623
624 mailbox_mem: mailbox_region {
625 compatible = "shared-dma-pool";
626 no-map;
627 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
628 alignment = <0x0 0x400000>;
629 size = <0x0 0x20000>;
630 };
Swathi Sridhara79a9542018-06-21 11:40:44 -0700631 };
Bruce Levyc5eb1992019-01-11 12:09:18 -0800632
633 vendor: vendor {
634 #address-cells = <1>;
635 #size-cells = <1>;
636 ranges = <0 0 0 0xffffffff>;
637 compatible = "simple-bus";
638 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700639};
640
641&soc {
642 #address-cells = <1>;
643 #size-cells = <1>;
644 ranges = <0 0 0 0xffffffff>;
645 compatible = "simple-bus";
646
David Collins692dff72018-11-12 17:09:49 -0800647 thermal_zones: thermal-zones {
648 };
649
Dilip Kotaab8bf962018-12-26 12:12:22 +0530650 slim_aud: slim@3ac0000 {
651 cell-index = <1>;
652 compatible = "qcom,slim-ngd";
653 reg = <0x3ac0000 0x2c000>,
654 <0x3a84000 0x2c000>;
655 reg-names = "slimbus_physical", "slimbus_bam_physical";
Rishabh Bhatnagar7ef15882019-01-22 11:02:09 -0800656 interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
657 <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
Dilip Kotaab8bf962018-12-26 12:12:22 +0530658 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
659 qcom,apps-ch-pipes = <0x700000>;
660 qcom,ea-pc = <0x2d0>;
Dilip Kota8b36d602019-02-06 12:07:34 +0530661 iommus = <&apps_smmu 0x1826 0x0>,
662 <&apps_smmu 0x182f 0x0>,
663 <&apps_smmu 0x1830 0x1>;
664 qcom,iommu-dma-addr-pool = <0x40000000 0xc0000000>;
665 qcom,iommu-dma = "bypass";
Mahesh Kumar Sharmab8e62662019-01-17 16:16:22 -0800666 status = "ok";
Mahesh Kumar Sharmab8e62662019-01-17 16:16:22 -0800667
668 /* Slimbus Slave DT for QCA6390 */
669 btfmslim_codec: qca6390 {
670 compatible = "qcom,btfmslim_slave";
671 elemental-addr = [00 01 20 02 17 02];
672 qcom,btfm-slim-ifd = "btfmslim_slave_ifd";
673 qcom,btfm-slim-ifd-elemental-addr = [00 00 20 02 17 02];
674 };
Dilip Kotaab8bf962018-12-26 12:12:22 +0530675 };
676
Runmin Wang4f5985b2017-04-19 15:55:12 -0700677 intc: interrupt-controller@17a00000 {
678 compatible = "arm,gic-v3";
679 #interrupt-cells = <3>;
680 interrupt-controller;
681 #redistributor-regions = <1>;
682 redistributor-stride = <0x0 0x20000>;
683 reg = <0x17a00000 0x10000>, /* GICD */
684 <0x17a60000 0x100000>; /* GICR * 8 */
685 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
686 };
687
Rishabh Bhatnagarfd73eb12018-09-04 15:00:46 -0700688 qcom,chd_silver {
689 compatible = "qcom,core-hang-detect";
690 label = "silver";
691 qcom,threshold-arr = <0x18000058 0x18010058
692 0x18020058 0x18030058>;
693 qcom,config-arr = <0x18000060 0x18010060
694 0x18020060 0x18030060>;
695 };
696
697 qcom,chd_gold {
698 compatible = "qcom,core-hang-detect";
699 label = "gold";
700 qcom,threshold-arr = <0x18040058 0x18050058
701 0x18060058 0x18070058>;
702 qcom,config-arr = <0x18040060 0x18050060
703 0x18060060 0x18070060>;
704 };
705
Rishabh Bhatnagar8f0dd4b2018-08-07 11:07:40 -0700706 cache-controller@9200000 {
707 compatible = "qcom,kona-llcc";
708 reg = <0x9200000 0x1d0000> , <0x9600000 0x50000>;
709 reg-names = "llcc_base", "llcc_broadcast_base";
Rishabh Bhatnagar2e49cd3a2019-01-16 12:03:36 -0800710 cap-based-alloc-and-pwr-collapse;
Rishabh Bhatnagar8f0dd4b2018-08-07 11:07:40 -0700711 };
712
Rishabh Bhatnagarc6970a02018-09-04 16:43:43 -0700713 wdog: qcom,wdt@17c10000 {
714 compatible = "qcom,msm-watchdog";
715 reg = <0x17c10000 0x1000>;
716 reg-names = "wdt-base";
717 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>,
718 <0 1 IRQ_TYPE_LEVEL_HIGH>;
719 qcom,bark-time = <11000>;
720 qcom,pet-time = <9360>;
721 qcom,wakeup-enable;
Rishabh Bhatnagar1265dc52019-02-08 13:40:59 -0800722 qcom,ipi-ping;
Rishabh Bhatnagarc6970a02018-09-04 16:43:43 -0700723 qcom,scandump-sizes = <0x10100 0x10100 0x10100 0x10100
724 0x18100 0x18100 0x18100 0x18100>;
Rishabh Bhatnagarc6970a02018-09-04 16:43:43 -0700725 };
726
Maria Neptune5a1428b2018-08-29 13:25:19 -0700727 arch_timer: timer {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700728 compatible = "arm,armv8-timer";
729 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
730 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
731 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
732 <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
733 clock-frequency = <19200000>;
734 };
735
Maria Neptune5a1428b2018-08-29 13:25:19 -0700736 memtimer: timer@17c20000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700737 #address-cells = <1>;
738 #size-cells = <1>;
739 ranges;
740 compatible = "arm,armv7-timer-mem";
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700741 reg = <0x17c20000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700742 clock-frequency = <19200000>;
743
Maria Neptune5a1428b2018-08-29 13:25:19 -0700744 frame@17c21000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700745 frame-number = <0>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700746 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
Runmin Wang4f5985b2017-04-19 15:55:12 -0700747 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700748 reg = <0x17c21000 0x1000>,
749 <0x17c22000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700750 };
751
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700752 frame@17c23000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700753 frame-number = <1>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700754 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
755 reg = <0x17c23000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700756 status = "disabled";
757 };
758
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700759 frame@17c25000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700760 frame-number = <2>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700761 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
762 reg = <0x17c25000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700763 status = "disabled";
764 };
765
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700766 frame@17c27000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700767 frame-number = <3>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700768 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
769 reg = <0x17c27000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700770 status = "disabled";
771 };
772
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700773 frame@17c29000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700774 frame-number = <4>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700775 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
776 reg = <0x17c29000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700777 status = "disabled";
778 };
779
Maria Neptune5a1428b2018-08-29 13:25:19 -0700780 frame@17c2b000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700781 frame-number = <5>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700782 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
783 reg = <0x17c2b000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700784 status = "disabled";
785 };
786
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700787 frame@17c2d000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700788 frame-number = <6>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700789 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
790 reg = <0x17c2d000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700791 status = "disabled";
792 };
793 };
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700794
Tingwei Zhang020594a2018-11-27 21:58:09 -0800795 jtag_mm0: jtagmm@7040000 {
796 compatible = "qcom,jtagv8-mm";
797 reg = <0x7040000 0x1000>;
798 reg-names = "etm-base";
799
800 clocks = <&clock_aop QDSS_CLK>;
801 clock-names = "core_clk";
802
803 qcom,coresight-jtagmm-cpu = <&CPU0>;
804 };
805
806 jtag_mm1: jtagmm@7140000 {
807 compatible = "qcom,jtagv8-mm";
808 reg = <0x7140000 0x1000>;
809 reg-names = "etm-base";
810
811 clocks = <&clock_aop QDSS_CLK>;
812 clock-names = "core_clk";
813
814 qcom,coresight-jtagmm-cpu = <&CPU1>;
815 };
816
817 jtag_mm2: jtagmm@7240000 {
818 compatible = "qcom,jtagv8-mm";
819 reg = <0x7240000 0x1000>;
820 reg-names = "etm-base";
821
822 clocks = <&clock_aop QDSS_CLK>;
823 clock-names = "core_clk";
824
825 qcom,coresight-jtagmm-cpu = <&CPU2>;
826 };
827
828 jtag_mm3: jtagmm@7340000 {
829 compatible = "qcom,jtagv8-mm";
830 reg = <0x7340000 0x1000>;
831 reg-names = "etm-base";
832
833 clocks = <&clock_aop QDSS_CLK>;
834 clock-names = "core_clk";
835
836 qcom,coresight-jtagmm-cpu = <&CPU3>;
837 };
838
839 jtag_mm4: jtagmm@7440000 {
840 compatible = "qcom,jtagv8-mm";
841 reg = <0x7440000 0x1000>;
842 reg-names = "etm-base";
843
844 clocks = <&clock_aop QDSS_CLK>;
845 clock-names = "core_clk";
846
847 qcom,coresight-jtagmm-cpu = <&CPU4>;
848 };
849
850 jtag_mm5: jtagmm@7540000 {
851 compatible = "qcom,jtagv8-mm";
852 reg = <0x7540000 0x1000>;
853 reg-names = "etm-base";
854
855 clocks = <&clock_aop QDSS_CLK>;
856 clock-names = "core_clk";
857
858 qcom,coresight-jtagmm-cpu = <&CPU5>;
859 };
860
861 jtag_mm6: jtagmm@7640000 {
862 compatible = "qcom,jtagv8-mm";
863 reg = <0x7640000 0x1000>;
864 reg-names = "etm-base";
865
866 clocks = <&clock_aop QDSS_CLK>;
867 clock-names = "core_clk";
868
869 qcom,coresight-jtagmm-cpu = <&CPU6>;
870 };
871
872 jtag_mm7: jtagmm@7740000 {
873 compatible = "qcom,jtagv8-mm";
874 reg = <0x7740000 0x1000>;
875 reg-names = "etm-base";
876
877 clocks = <&clock_aop QDSS_CLK>;
878 clock-names = "core_clk";
879
880 qcom,coresight-jtagmm-cpu = <&CPU7>;
881 };
882
David Dai3c427802018-10-17 14:40:08 -0700883 qcom,devfreq-l3 {
884 compatible = "qcom,devfreq-fw";
885 reg = <0x18590000 0x4>, <0x18590100 0xa0>, <0x18590320 0x4>;
886 reg-names = "en-base", "ftbl-base", "perf-base";
887
Rama Aparna Mallavarapude6608e2019-01-07 15:41:32 -0800888 cpu0_l3: qcom,cpu0-cpu-l3-lat {
David Dai3c427802018-10-17 14:40:08 -0700889 compatible = "qcom,devfreq-fw-voter";
890 };
891
Rama Aparna Mallavarapude6608e2019-01-07 15:41:32 -0800892 cpu4_l3: qcom,cpu4-cpu-l3-lat {
893 compatible = "qcom,devfreq-fw-voter";
894 };
895
896 cpu7_l3: qcom,cpu7-cpu-l3-lat {
897 compatible = "qcom,devfreq-fw-voter";
898 };
899
900 cdsp_l3: qcom,cdsp-cdsp-l3-lat {
David Dai3c427802018-10-17 14:40:08 -0700901 compatible = "qcom,devfreq-fw-voter";
902 };
903 };
904
David Dai95d5bfba2019-01-31 13:59:58 -0800905 keepalive_opp_table: keepalive-opp-table {
906 compatible = "operating-points-v2";
907 opp-1 {
908 opp-hz = /bits/ 64 < 1 >;
909 };
910 };
911
912 snoc_cnoc_keepalive: qcom,snoc_cnoc_keepalive {
913 compatible = "qcom,devbw";
914 governor = "powersave";
915 qcom,src-dst-ports = <MSM_BUS_MASTER_AMPSS_M0
916 MSM_BUS_SLAVE_IMEM_CFG>;
917 qcom,active-only;
918 status = "ok";
919 operating-points-v2 = <&keepalive_opp_table>;
920 };
921
Chinmay Sawarkare5d4b862019-01-07 15:54:39 -0800922 venus_bus_cnoc_bw_table: bus-cnoc-bw-table {
923 compatible = "operating-points-v2";
924 BW_OPP_ENTRY( 200, 4);
925 };
926
Rama Aparna Mallavarapu5a7daf42019-01-14 22:08:20 -0800927 llcc_bw_opp_table: llcc-bw-opp-table {
928 compatible = "operating-points-v2";
929 BW_OPP_ENTRY( 150, 16); /* 2288 MB/s */
930 BW_OPP_ENTRY( 300, 16); /* 4577 MB/s */
931 BW_OPP_ENTRY( 466, 16); /* 7110 MB/s */
932 BW_OPP_ENTRY( 600, 16); /* 9155 MB/s */
933 BW_OPP_ENTRY( 806, 16); /* 12298 MB/s */
934 BW_OPP_ENTRY( 933, 16); /* 14236 MB/s */
935 BW_OPP_ENTRY( 1000, 16); /* 15258 MB/s */
936 };
937
938 ddr_bw_opp_table: ddr-bw-opp-table {
939 compatible = "operating-points-v2";
940 BW_OPP_ENTRY( 200, 4); /* 762 MB/s */
941 BW_OPP_ENTRY( 300, 4); /* 1144 MB/s */
942 BW_OPP_ENTRY( 451, 4); /* 1720 MB/s */
943 BW_OPP_ENTRY( 547, 4); /* 2086 MB/s */
944 BW_OPP_ENTRY( 681, 4); /* 2597 MB/s */
945 BW_OPP_ENTRY( 768, 4); /* 2929 MB/s */
946 BW_OPP_ENTRY( 1017, 4); /* 3879 MB/s */
947 BW_OPP_ENTRY( 1353, 4); /* 5161 MB/s */
948 BW_OPP_ENTRY( 1555, 4); /* 5931 MB/s */
Rama Aparna Mallavarapude6608e2019-01-07 15:41:32 -0800949 BW_OPP_ENTRY( 1804, 4); /* 6881 MB/s */
Rama Aparna Mallavarapu5a7daf42019-01-14 22:08:20 -0800950 BW_OPP_ENTRY( 2092, 4); /* 7980 MB/s */
951 BW_OPP_ENTRY( 2736, 4); /* 10437 MB/s */
952 };
953
954 suspendable_ddr_bw_opp_table: suspendable-ddr-bw-opp-table {
955 compatible = "operating-points-v2";
956 BW_OPP_ENTRY( 0, 4); /* 0 MB/s */
957 BW_OPP_ENTRY( 200, 4); /* 762 MB/s */
958 BW_OPP_ENTRY( 300, 4); /* 1144 MB/s */
959 BW_OPP_ENTRY( 451, 4); /* 1720 MB/s */
960 BW_OPP_ENTRY( 547, 4); /* 2086 MB/s */
961 BW_OPP_ENTRY( 681, 4); /* 2597 MB/s */
962 BW_OPP_ENTRY( 768, 4); /* 2929 MB/s */
963 BW_OPP_ENTRY( 1017, 4); /* 3879 MB/s */
964 BW_OPP_ENTRY( 1353, 4); /* 5161 MB/s */
965 BW_OPP_ENTRY( 1555, 4); /* 5931 MB/s */
Rama Aparna Mallavarapude6608e2019-01-07 15:41:32 -0800966 BW_OPP_ENTRY( 1804, 4); /* 6881 MB/s */
Rama Aparna Mallavarapu5a7daf42019-01-14 22:08:20 -0800967 BW_OPP_ENTRY( 2092, 4); /* 7980 MB/s */
968 BW_OPP_ENTRY( 2736, 4); /* 10437 MB/s */
969 };
970
Rama Aparna Mallavarapu230fb2a2019-01-31 12:56:01 -0800971 llcc_pmu: llcc-pmu@9095000 {
972 compatible = "qcom,llcc-pmu-ver2";
973 reg = <0x09095000 0x300>;
Rama Aparna Mallavarapude6608e2019-01-07 15:41:32 -0800974 reg-names = "lagg-base";
975 };
976
977 cpu_cpu_llcc_bw: qcom,cpu-cpu-llcc-bw {
978 compatible = "qcom,devbw";
979 governor = "performance";
980 qcom,src-dst-ports =
981 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_LLCC>;
982 qcom,active-only;
983 operating-points-v2 = <&llcc_bw_opp_table>;
984 };
985
986 cpu_cpu_llcc_bwmon: qcom,cpu-cpu-llcc-bwmon@90b6400 {
987 compatible = "qcom,bimc-bwmon4";
988 reg = <0x90b6400 0x300>, <0x90b6300 0x200>;
989 reg-names = "base", "global_base";
990 interrupts = <GIC_SPI 581 IRQ_TYPE_LEVEL_HIGH>;
991 qcom,mport = <0>;
992 qcom,hw-timer-hz = <19200000>;
993 qcom,target-dev = <&cpu_cpu_llcc_bw>;
994 qcom,count-unit = <0x10000>;
995 };
996
997 cpu_llcc_ddr_bw: qcom,cpu-llcc-ddr-bw {
998 compatible = "qcom,devbw";
999 governor = "performance";
1000 qcom,src-dst-ports =
1001 <MSM_BUS_MASTER_LLCC MSM_BUS_SLAVE_EBI_CH0>;
1002 qcom,active-only;
1003 operating-points-v2 = <&ddr_bw_opp_table>;
1004 };
1005
1006 cpu_llcc_ddr_bwmon: qcom,cpu-llcc-ddr-bwmon@9091000 {
1007 compatible = "qcom,bimc-bwmon5";
1008 reg = <0x9091000 0x1000>;
1009 reg-names = "base";
1010 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
1011 qcom,hw-timer-hz = <19200000>;
1012 qcom,target-dev = <&cpu_llcc_ddr_bw>;
1013 qcom,count-unit = <0x10000>;
1014 };
1015
1016 npu_npu_ddr_bw: qcom,npu-npu-ddr-bw {
1017 compatible = "qcom,devbw";
1018 governor = "performance";
1019 qcom,src-dst-ports = <MSM_BUS_MASTER_NPU MSM_BUS_SLAVE_EBI_CH0>;
1020 operating-points-v2 = <&suspendable_ddr_bw_opp_table>;
1021 };
1022
1023 npu_npu_ddr_bwmon: qcom,npu-npu-ddr-bwmon@60300 {
1024 compatible = "qcom,bimc-bwmon4";
1025 reg = <0x00060300 0x300>, <0x00060400 0x200>;
1026 reg-names = "base", "global_base";
1027 interrupts = <GIC_SPI 476 IRQ_TYPE_LEVEL_HIGH>;
1028 qcom,mport = <0>;
1029 qcom,hw-timer-hz = <19200000>;
1030 qcom,target-dev = <&npu_npu_ddr_bw>;
1031 qcom,count-unit = <0x10000>;
1032 };
1033
1034 npu_npu_ddr_bwmon_dsp: qcom,npu-npu-ddr-bwmoni_dsp@70200 {
1035 compatible = "qcom,bimc-bwmon4";
1036 reg = <0x00070200 0x300>, <0x00070300 0x200>;
1037 reg-names = "base", "global_base";
1038 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
1039 qcom,mport = <0>;
1040 qcom,hw-timer-hz = <19200000>;
1041 qcom,target-dev = <&npu_npu_ddr_bw>;
1042 qcom,count-unit = <0x10000>;
1043 };
1044
1045 cpu0_cpu_l3_latmon: qcom,cpu0-cpu-l3-latmon {
1046 compatible = "qcom,arm-memlat-mon";
1047 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3>;
1048 qcom,target-dev = <&cpu0_l3>;
1049 qcom,cachemiss-ev = <0x17>;
1050 qcom,core-dev-table =
1051 < 300000 300000000 >,
1052 < 403200 403200000 >,
1053 < 518400 518400000 >,
1054 < 633600 614400000 >,
1055 < 825600 729600000 >,
1056 < 921600 825600000 >,
1057 < 1036800 921600000 >,
1058 < 1132800 1036800000 >,
1059 < 1228800 1132800000 >,
1060 < 1401600 1228800000 >,
1061 < 1497600 1305600000 >,
1062 < 1670400 1382400000 >;
1063 };
1064
1065 cpu4_cpu_l3_latmon: qcom,cpu4-cpu-l3-latmon {
1066 compatible = "qcom,arm-memlat-mon";
1067 qcom,cpulist = <&CPU4 &CPU5 &CPU6>;
1068 qcom,target-dev = <&cpu4_l3>;
1069 qcom,cachemiss-ev = <0x17>;
1070 qcom,core-dev-table =
1071 < 300000 300000000 >,
1072 < 806400 614400000 >,
1073 < 1017600 729600000 >,
1074 < 1228800 921600000 >,
1075 < 1689600 1228800000 >,
1076 < 1804800 1305600000 >,
1077 < 2227200 1382400000 >;
1078 };
1079
1080 cpu7_cpu_l3_latmon: qcom,cpu7-cpu-l3-latmon {
1081 compatible = "qcom,arm-memlat-mon";
1082 qcom,cpulist = <&CPU7>;
1083 qcom,target-dev = <&cpu7_l3>;
1084 qcom,cachemiss-ev = <0x17>;
1085 qcom,core-dev-table =
1086 < 300000 300000000 >,
1087 < 806400 614400000 >,
1088 < 1017600 729600000 >,
1089 < 1228800 921600000 >,
1090 < 1689600 1228800000 >,
1091 < 1804800 1305600000 >,
1092 < 2227200 1382400000 >;
1093 };
1094
1095 cpu0_cpu_llcc_lat: qcom,cpu0-cpu-llcc-lat {
1096 compatible = "qcom,devbw";
1097 governor = "performance";
1098 qcom,src-dst-ports =
1099 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_LLCC>;
1100 qcom,active-only;
1101 operating-points-v2 = <&llcc_bw_opp_table>;
1102 };
1103
1104 cpu0_cpu_llcc_latmon: qcom,cpu0-cpu-llcc-latmon {
1105 compatible = "qcom,arm-memlat-mon";
1106 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3>;
1107 qcom,target-dev = <&cpu0_cpu_llcc_lat>;
1108 qcom,cachemiss-ev = <0x2A>;
1109 qcom,core-dev-table =
1110 < 300000 MHZ_TO_MBPS( 150, 16) >,
1111 < 729600 MHZ_TO_MBPS( 300, 16) >,
1112 < 1497600 MHZ_TO_MBPS( 466, 16) >,
1113 < 1670400 MHZ_TO_MBPS( 600, 16) >;
1114 };
1115
1116 cpu4_cpu_llcc_lat: qcom,cpu4-cpu-llcc-lat {
1117 compatible = "qcom,devbw";
1118 governor = "performance";
1119 qcom,src-dst-ports =
1120 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_LLCC>;
1121 qcom,active-only;
1122 operating-points-v2 = <&llcc_bw_opp_table>;
1123 };
1124
1125 cpu4_cpu_llcc_latmon: qcom,cpu4-cpu-llcc-latmon {
1126 compatible = "qcom,arm-memlat-mon";
1127 qcom,cpulist = <&CPU4 &CPU5 &CPU6 &CPU7>;
1128 qcom,target-dev = <&cpu4_cpu_llcc_lat>;
1129 qcom,cachemiss-ev = <0x2A>;
1130 qcom,core-dev-table =
1131 < 300000 MHZ_TO_MBPS( 150, 16) >,
1132 < 691200 MHZ_TO_MBPS( 300, 16) >,
1133 < 1017600 MHZ_TO_MBPS( 466, 16) >,
1134 < 1228800 MHZ_TO_MBPS( 600, 16) >,
1135 < 1804800 MHZ_TO_MBPS( 806, 16) >,
1136 < 2227200 MHZ_TO_MBPS( 933, 16) >,
1137 < 2476800 MHZ_TO_MBPS( 1000, 16) >;
1138 };
1139
1140 cpu0_llcc_ddr_lat: qcom,cpu0-llcc-ddr-lat {
1141 compatible = "qcom,devbw";
1142 governor = "performance";
1143 qcom,src-dst-ports =
1144 <MSM_BUS_MASTER_LLCC MSM_BUS_SLAVE_EBI_CH0>;
1145 qcom,active-only;
1146 operating-points-v2 = <&ddr_bw_opp_table>;
1147 };
1148
1149 cpu0_llcc_ddr_latmon: qcom,cpu0-llcc-ddr-latmon {
1150 compatible = "qcom,arm-memlat-mon";
1151 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3>;
1152 qcom,target-dev = <&cpu0_llcc_ddr_lat>;
1153 qcom,cachemiss-ev = <0x1000>;
1154 qcom,core-dev-table =
1155 < 300000 MHZ_TO_MBPS( 200, 4) >,
1156 < 729600 MHZ_TO_MBPS( 451, 4) >,
1157 < 1132800 MHZ_TO_MBPS( 547, 4) >,
1158 < 1497600 MHZ_TO_MBPS( 768, 4) >,
1159 < 1670400 MHZ_TO_MBPS( 1017, 4) >;
1160 };
1161
1162 cpu4_llcc_ddr_lat: qcom,cpu4-llcc-ddr-lat {
1163 compatible = "qcom,devbw";
1164 governor = "performance";
1165 qcom,src-dst-ports =
1166 <MSM_BUS_MASTER_LLCC MSM_BUS_SLAVE_EBI_CH0>;
1167 qcom,active-only;
1168 operating-points-v2 = <&ddr_bw_opp_table>;
1169 };
1170
1171 cpu4_llcc_ddr_latmon: qcom,cpu4-llcc-ddr-latmon {
1172 compatible = "qcom,arm-memlat-mon";
1173 qcom,cpulist = <&CPU4 &CPU5 &CPU6 &CPU7>;
1174 qcom,target-dev = <&cpu4_llcc_ddr_lat>;
1175 qcom,cachemiss-ev = <0x1000>;
1176 qcom,core-dev-table =
1177 < 300000 MHZ_TO_MBPS( 200, 4) >,
1178 < 691200 MHZ_TO_MBPS( 451, 4) >,
1179 < 806400 MHZ_TO_MBPS( 547, 4) >,
1180 < 1017600 MHZ_TO_MBPS( 768, 4) >,
1181 < 1228800 MHZ_TO_MBPS(1017, 4) >,
1182 < 1574400 MHZ_TO_MBPS(1353, 4) >,
1183 < 1804800 MHZ_TO_MBPS(1555, 4) >,
1184 < 2227200 MHZ_TO_MBPS(1804, 4) >,
1185 < 2380800 MHZ_TO_MBPS(2092, 4) >,
1186 < 2476800 MHZ_TO_MBPS(2736, 4) >;
1187 };
1188
1189 cpu4_cpu_ddr_latfloor: qcom,cpu4-cpu-ddr-latfloor {
1190 compatible = "qcom,devbw";
1191 governor = "performance";
1192 qcom,src-dst-ports =
1193 <MSM_BUS_MASTER_LLCC MSM_BUS_SLAVE_EBI_CH0>;
1194 qcom,active-only;
1195 operating-points-v2 = <&ddr_bw_opp_table>;
1196 };
1197
1198 cpu4_computemon: qcom,cpu4-computemon {
1199 compatible = "qcom,arm-cpu-mon";
1200 qcom,cpulist = <&CPU4 &CPU5 &CPU6 &CPU7>;
1201 qcom,target-dev = <&cpu4_cpu_ddr_latfloor>;
1202 qcom,core-dev-table =
1203 < 1804800 MHZ_TO_MBPS( 200, 4) >,
1204 < 2380800 MHZ_TO_MBPS(1017, 4) >,
1205 < 2500000 MHZ_TO_MBPS(2736, 4) >;
1206 };
1207
1208 keepalive_opp_table: keepalive-opp-table {
1209 compatible = "operating-points-v2";
1210 opp-1 {
1211 opp-hz = /bits/ 64 < 1 >;
1212 };
1213 };
1214
1215 snoc_cnoc_keepalive: qcom,snoc_cnoc_keepalive {
1216 compatible = "qcom,devbw";
1217 governor = "powersave";
1218 qcom,src-dst-ports = <1 627>;
1219 qcom,active-only;
1220 status = "ok";
1221 operating-points-v2 = <&keepalive_opp_table>;
1222 };
1223
1224 cdsp_keepalive: qcom,cdsp_keepalive {
1225 compatible = "qcom,devbw";
1226 governor = "powersave";
1227 qcom,src-dst-ports = <154 10070>;
1228 qcom,active-only;
1229 status = "ok";
1230 operating-points-v2 = <&keepalive_opp_table>;
1231 };
1232
Rishabh Bhatnagarf35ba022018-09-18 15:17:22 -07001233 qcom,msm-imem@146bf000 {
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001234 compatible = "qcom,msm-imem";
1235 reg = <0x146bf000 0x1000>;
1236 ranges = <0x0 0x146bf000 0x1000>;
1237 #address-cells = <1>;
1238 #size-cells = <1>;
1239
Tingwei Zhangd9b535f2018-12-03 19:14:06 -08001240 mem_dump_table@10 {
1241 compatible = "qcom,msm-imem-mem_dump_table";
1242 reg = <0x10 0x8>;
1243 };
1244
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001245 restart_reason@65c {
1246 compatible = "qcom,msm-imem-restart_reason";
Maria Neptune5a1428b2018-08-29 13:25:19 -07001247 reg = <0x65c 0x4>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001248 };
1249
1250 dload_type@1c {
1251 compatible = "qcom,msm-imem-dload-type";
1252 reg = <0x1c 0x4>;
1253 };
1254
1255 boot_stats@6b0 {
1256 compatible = "qcom,msm-imem-boot_stats";
Maria Neptune5a1428b2018-08-29 13:25:19 -07001257 reg = <0x6b0 0x20>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001258 };
1259
1260 kaslr_offset@6d0 {
1261 compatible = "qcom,msm-imem-kaslr_offset";
Maria Neptune5a1428b2018-08-29 13:25:19 -07001262 reg = <0x6d0 0xc>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001263 };
1264
1265 pil@94c {
1266 compatible = "qcom,msm-imem-pil";
Maria Neptune5a1428b2018-08-29 13:25:19 -07001267 reg = <0x94c 0xc8>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001268 };
Hemant Kumarca399682019-01-25 14:51:13 -08001269
1270 diag_dload@c8 {
1271 compatible = "qcom,msm-imem-diag-dload";
1272 reg = <0xc8 0xc8>;
1273 };
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -07001274 };
1275
Rishabh Bhatnagar811170f2018-11-09 13:44:32 -08001276 restart@c264000 {
1277 compatible = "qcom,pshold";
1278 reg = <0xc264000 0x4>,
1279 <0x1fd3000 0x4>;
1280 reg-names = "pshold-base", "tcsr-boot-misc-detect";
1281 };
1282
Zhen Kong284c9f02018-11-06 12:00:30 -08001283 dcc: dcc_v2@1023000 {
1284 compatible = "qcom,dcc-v2";
1285 reg = <0x1023000 0x1000>,
1286 <0x103a000 0x6000>;
1287 reg-names = "dcc-base", "dcc-ram-base";
1288
1289 dcc-ram-offset = <0x1a000>;
1290 };
1291
1292 qcom_seecom: qseecom@82200000 {
1293 compatible = "qcom,qseecom";
1294 reg = <0x82200000 0x2200000>;
1295 reg-names = "secapp-region";
1296 memory-region = <&qseecom_mem>;
1297 qcom,hlos-num-ce-hw-instances = <1>;
1298 qcom,hlos-ce-hw-instance = <0>;
1299 qcom,qsee-ce-hw-instance = <0>;
1300 qcom,disk-encrypt-pipe-pair = <2>;
1301 qcom,support-fde;
1302 qcom,no-clock-support;
1303 qcom,fde-key-size;
Zhen Kong84997022019-01-29 12:52:21 -08001304 qcom,appsbl-qseecom-support;
Zhen Kong284c9f02018-11-06 12:00:30 -08001305 qcom,commonlib64-loaded-by-uefi;
1306 qcom,qsee-reentrancy-support = <2>;
1307 };
1308
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -07001309 mdm0: qcom,mdm0 {
Rishabh Bhatnagar134ede82018-10-16 10:54:12 -07001310 compatible = "qcom,ext-sdx55m";
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -07001311 cell-index = <0>;
1312 #address-cells = <0>;
1313 interrupt-parent = <&mdm0>;
1314 #interrupt-cells = <1>;
1315 interrupt-map-mask = <0xffffffff>;
1316 interrupt-names =
1317 "err_fatal_irq",
1318 "status_irq",
1319 "mdm2ap_vddmin_irq";
1320 /* modem attributes */
1321 qcom,ramdump-delay-ms = <3000>;
1322 qcom,ramdump-timeout-ms = <120000>;
1323 qcom,vddmin-modes = "normal";
1324 qcom,vddmin-drive-strength = <8>;
1325 qcom,sfr-query;
1326 qcom,sysmon-id = <20>;
1327 qcom,ssctl-instance-id = <0x10>;
1328 qcom,support-shutdown;
1329 qcom,pil-force-shutdown;
1330 qcom,esoc-skip-restart-for-mdm-crash;
Rishabh Bhatnagar632f3262019-01-25 10:30:36 -08001331 qcom,esoc-spmi-soft-reset;
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -07001332 pinctrl-names = "default", "mdm_active", "mdm_suspend";
1333 pinctrl-0 = <&ap2mdm_pon_reset_default>;
1334 pinctrl-1 = <&ap2mdm_active &mdm2ap_active>;
1335 pinctrl-2 = <&ap2mdm_sleep &mdm2ap_sleep>;
1336 interrupt-map = <0 &tlmm 1 0x3
1337 1 &tlmm 3 0x3>;
1338 qcom,mdm2ap-errfatal-gpio = <&tlmm 1 0x00>;
1339 qcom,ap2mdm-errfatal-gpio = <&tlmm 57 0x00>;
1340 qcom,mdm2ap-status-gpio = <&tlmm 3 0x00>;
1341 qcom,ap2mdm-status-gpio = <&tlmm 56 0x00>;
Rishabh Bhatnagar2b66dc12018-10-18 10:36:27 -07001342 qcom,ap2mdm-soft-reset-gpio = <&tlmm 145 GPIO_ACTIVE_LOW>;
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -07001343 qcom,mdm-link-info = "0306_02.01.00";
1344 status = "ok";
1345 };
1346
Lina Iyer8551c792018-06-21 16:06:53 -06001347 pdc: interrupt-controller@b220000 {
1348 compatible = "qcom,kona-pdc";
1349 reg = <0xb220000 0x30000>;
1350 qcom,pdc-ranges = <0 480 29>, <42 522 52>, <94 609 30>;
1351 #interrupt-cells = <2>;
1352 interrupt-parent = <&intc>;
1353 interrupt-controller;
1354 };
1355
Vivek Aknurwar65bafd92018-11-01 17:27:53 -07001356 clocks {
David Daiee6a9d62019-01-10 17:14:04 -08001357 xo_board: xo-board {
1358 compatible = "fixed-clock";
1359 #clock-cells = <0>;
1360 clock-frequency = <38400000>;
1361 clock-output-names = "xo_board";
1362 };
1363
Vivek Aknurwar65bafd92018-11-01 17:27:53 -07001364 sleep_clk: sleep-clk {
1365 compatible = "fixed-clock";
1366 clock-frequency = <32000>;
1367 clock-output-names = "chip_sleep_clk";
1368 #clock-cells = <1>;
1369 };
1370 };
1371
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001372 clock_aop: qcom,aopclk {
David Collinsb8a46bb2019-01-07 18:03:13 -08001373 compatible = "qcom,aop-qmp-clk";
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001374 #clock-cells = <1>;
David Collinsb8a46bb2019-01-07 18:03:13 -08001375 mboxes = <&qmp_aop 0>;
1376 mbox-names = "qdss_clk";
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001377 };
1378
Vivek Aknurwar7e9ecb92018-09-07 14:27:58 -07001379 clock_gcc: qcom,gcc@100000 {
David Dai7e431ad2018-12-05 15:37:39 -08001380 compatible = "qcom,gcc-kona", "syscon";
Vivek Aknurwar7e9ecb92018-09-07 14:27:58 -07001381 reg = <0x100000 0x1f0000>;
1382 reg-names = "cc_base";
1383 vdd_cx-supply = <&VDD_CX_LEVEL>;
1384 vdd_cx_ao-supply = <&VDD_CX_LEVEL_AO>;
1385 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001386 #clock-cells = <1>;
1387 #reset-cells = <1>;
1388 };
1389
David Collins4eb34f32018-12-06 11:51:01 -08001390 clock_npucc: qcom,npucc@9980000 {
1391 compatible = "qcom,npucc-kona", "syscon";
1392 reg = <0x9980000 0x10000>,
1393 <0x9800000 0x10000>,
1394 <0x9810000 0x10000>;
1395 reg-names = "cc", "qdsp6ss", "qdsp6ss_pll";
1396 vdd_cx-supply = <&VDD_CX_LEVEL>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001397 #clock-cells = <1>;
1398 #reset-cells = <1>;
1399 };
1400
Vivek Aknurwar65bafd92018-11-01 17:27:53 -07001401 clock_videocc: qcom,videocc@abf0000 {
1402 compatible = "qcom,videocc-kona", "syscon";
1403 reg = <0xabf0000 0x10000>;
1404 reg-names = "cc_base";
1405 vdd_mx-supply = <&VDD_MX_LEVEL>;
1406 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
1407 clock-names = "cfg_ahb_clk";
1408 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001409 #clock-cells = <1>;
1410 #reset-cells = <1>;
1411 };
1412
Vivek Aknurwar86452c02018-11-05 15:20:31 -08001413 clock_camcc: qcom,camcc@ad00000 {
1414 compatible = "qcom,camcc-kona", "syscon";
1415 reg = <0xad00000 0x10000>;
1416 reg-names = "cc_base";
1417 vdd_mx-supply = <&VDD_MX_LEVEL>;
1418 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
1419 clock-names = "cfg_ahb_clk";
1420 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001421 #clock-cells = <1>;
1422 #reset-cells = <1>;
1423 };
1424
David Daidc93e482018-11-27 17:32:50 -08001425 clock_dispcc: qcom,dispcc@af00000 {
David Dai7e431ad2018-12-05 15:37:39 -08001426 compatible = "qcom,kona-dispcc", "syscon";
David Daidc93e482018-11-27 17:32:50 -08001427 reg = <0xaf00000 0x20000>;
1428 reg-names = "cc_base";
1429 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
1430 clock-names = "cfg_ahb_clk";
1431 clocks = <&clock_gcc GCC_DISP_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001432 #clock-cells = <1>;
1433 #reset-cells = <1>;
1434 };
1435
Vivek Aknurwar31c2e0f22018-11-16 17:10:12 -08001436 clock_gpucc: qcom,gpucc@3d90000 {
1437 compatible = "qcom,gpucc-kona", "syscon";
1438 reg = <0x3d90000 0x9000>;
1439 reg-names = "cc_base";
1440 vdd_cx-supply = <&VDD_CX_LEVEL>;
1441 vdd_mx-supply = <&VDD_MX_LEVEL>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -07001442 #clock-cells = <1>;
1443 #reset-cells = <1>;
1444 };
1445
1446 clock_cpucc: qcom,cpucc {
1447 compatible = "qcom,dummycc";
1448 clock-output-names = "cpucc_clocks";
1449 #clock-cells = <1>;
1450 };
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -07001451
David Dai7e431ad2018-12-05 15:37:39 -08001452 clock_debugcc: qcom,cc-debug {
1453 compatible = "qcom,kona-debugcc";
1454 qcom,gcc = <&clock_gcc>;
1455 qcom,videocc = <&clock_videocc>;
1456 qcom,dispcc = <&clock_dispcc>;
1457 qcom,camcc = <&clock_camcc>;
1458 qcom,gpucc = <&clock_gpucc>;
David Collins4eb34f32018-12-06 11:51:01 -08001459 qcom,npucc = <&clock_npucc>;
David Dai7e431ad2018-12-05 15:37:39 -08001460 clock-names = "xo_clk_src";
David Daiee6a9d62019-01-10 17:14:04 -08001461 clocks = <&clock_rpmh RPMH_CXO_CLK>;
David Dai7e431ad2018-12-05 15:37:39 -08001462 #clock-cells = <1>;
1463 };
1464
David Collinsa86302c2018-09-17 14:16:50 -07001465 /* GCC GDSCs */
1466 pcie_0_gdsc: qcom,gdsc@16b004 {
1467 compatible = "qcom,gdsc";
1468 reg = <0x16b004 0x4>;
1469 regulator-name = "pcie_0_gdsc";
1470 };
1471
1472 pcie_1_gdsc: qcom,gdsc@18d004 {
1473 compatible = "qcom,gdsc";
1474 reg = <0x18d004 0x4>;
1475 regulator-name = "pcie_1_gdsc";
1476 };
1477
1478 pcie_2_gdsc: qcom,gdsc@106004 {
1479 compatible = "qcom,gdsc";
1480 reg = <0x106004 0x4>;
1481 regulator-name = "pcie_2_gdsc";
1482 };
1483
1484 ufs_card_gdsc: qcom,gdsc@175004 {
1485 compatible = "qcom,gdsc";
1486 reg = <0x175004 0x4>;
1487 regulator-name = "ufs_card_gdsc";
1488 };
1489
1490 ufs_phy_gdsc: qcom,gdsc@177004 {
1491 compatible = "qcom,gdsc";
1492 reg = <0x177004 0x4>;
1493 regulator-name = "ufs_phy_gdsc";
1494 };
1495
1496 usb30_prim_gdsc: qcom,gdsc@10f004 {
1497 compatible = "qcom,gdsc";
1498 reg = <0x10f004 0x4>;
1499 regulator-name = "usb30_prim_gdsc";
1500 };
1501
1502 usb30_sec_gdsc: qcom,gdsc@110004 {
1503 compatible = "qcom,gdsc";
1504 reg = <0x110004 0x4>;
1505 regulator-name = "usb30_sec_gdsc";
1506 };
1507
1508 hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc: qcom,gdsc@17d050 {
1509 compatible = "qcom,gdsc";
1510 reg = <0x17d050 0x4>;
1511 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc";
1512 qcom,no-status-check-on-disable;
1513 qcom,gds-timeout = <500>;
1514 };
1515
1516 hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc: qcom,gdsc@17d058 {
1517 compatible = "qcom,gdsc";
1518 reg = <0x17d058 0x4>;
1519 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc";
1520 qcom,no-status-check-on-disable;
1521 qcom,gds-timeout = <500>;
1522 };
1523
1524 hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc: qcom,gdsc@17d054 {
1525 compatible = "qcom,gdsc";
1526 reg = <0x17d054 0x4>;
1527 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc";
1528 qcom,no-status-check-on-disable;
1529 qcom,gds-timeout = <500>;
1530 };
1531
1532 hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc: qcom,gdsc@17d06c {
1533 compatible = "qcom,gdsc";
1534 reg = <0x17d06c 0x4>;
1535 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc";
1536 qcom,no-status-check-on-disable;
1537 qcom,gds-timeout = <500>;
1538 };
1539
1540 /* CAM_CC GDSCs */
1541 bps_gdsc: qcom,gdsc@ad07004 {
1542 compatible = "qcom,gdsc";
1543 reg = <0xad07004 0x4>;
1544 regulator-name = "bps_gdsc";
1545 clock-names = "ahb_clk";
1546 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1547 parent-supply = <&VDD_MMCX_LEVEL>;
1548 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1549 qcom,support-hw-trigger;
1550 };
1551
1552 ife_0_gdsc: qcom,gdsc@ad0a004 {
1553 compatible = "qcom,gdsc";
1554 reg = <0xad0a004 0x4>;
1555 regulator-name = "ife_0_gdsc";
1556 clock-names = "ahb_clk";
1557 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1558 parent-supply = <&VDD_MMCX_LEVEL>;
1559 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1560 };
1561
1562 ife_1_gdsc: qcom,gdsc@ad0b004 {
1563 compatible = "qcom,gdsc";
1564 reg = <0xad0b004 0x4>;
1565 regulator-name = "ife_1_gdsc";
1566 clock-names = "ahb_clk";
1567 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1568 parent-supply = <&VDD_MMCX_LEVEL>;
1569 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1570 };
1571
1572 ipe_0_gdsc: qcom,gdsc@ad08004 {
1573 compatible = "qcom,gdsc";
1574 reg = <0xad08004 0x4>;
1575 regulator-name = "ipe_0_gdsc";
1576 clock-names = "ahb_clk";
1577 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1578 parent-supply = <&VDD_MMCX_LEVEL>;
1579 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1580 qcom,support-hw-trigger;
1581 };
1582
1583 sbi_gdsc: qcom,gdsc@ad09004 {
1584 compatible = "qcom,gdsc";
1585 reg = <0xad09004 0x4>;
1586 regulator-name = "sbi_gdsc";
1587 clock-names = "ahb_clk";
1588 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1589 parent-supply = <&VDD_MMCX_LEVEL>;
1590 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1591 };
1592
1593 titan_top_gdsc: qcom,gdsc@ad0c144 {
1594 compatible = "qcom,gdsc";
1595 reg = <0xad0c144 0x4>;
1596 regulator-name = "titan_top_gdsc";
1597 clock-names = "ahb_clk";
1598 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1599 parent-supply = <&VDD_MMCX_LEVEL>;
1600 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1601 };
1602
1603 /* DISP_CC GDSC */
1604 mdss_core_gdsc: qcom,gdsc@af03000 {
1605 compatible = "qcom,gdsc";
1606 reg = <0xaf03000 0x4>;
1607 regulator-name = "mdss_core_gdsc";
1608 clock-names = "ahb_clk";
1609 clocks = <&clock_gcc GCC_DISP_AHB_CLK>;
1610 parent-supply = <&VDD_MMCX_LEVEL>;
1611 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1612 qcom,support-hw-trigger;
1613 };
1614
1615 /* GPU_CC GDSCs */
1616 gpu_cx_hw_ctrl: syscon@3d91540 {
1617 compatible = "syscon";
1618 reg = <0x3d91540 0x4>;
1619 };
1620
1621 gpu_cx_gdsc: qcom,gdsc@3d9106c {
1622 compatible = "qcom,gdsc";
1623 reg = <0x3d9106c 0x4>;
1624 regulator-name = "gpu_cx_gdsc";
1625 hw-ctrl-addr = <&gpu_cx_hw_ctrl>;
1626 parent-supply = <&VDD_CX_LEVEL>;
1627 qcom,no-status-check-on-disable;
1628 qcom,clk-dis-wait-val = <8>;
1629 qcom,gds-timeout = <500>;
1630 };
1631
David Collinsd7eea142018-10-08 17:32:48 -07001632 gpu_gx_domain_addr: syscon@3d91508 {
David Collinsa86302c2018-09-17 14:16:50 -07001633 compatible = "syscon";
1634 reg = <0x3d91508 0x4>;
1635 };
1636
David Collinsd7eea142018-10-08 17:32:48 -07001637 gpu_gx_sw_reset: syscon@3d91008 {
David Collinsa86302c2018-09-17 14:16:50 -07001638 compatible = "syscon";
1639 reg = <0x3d91008 0x4>;
1640 };
1641
1642 gpu_gx_gdsc: qcom,gdsc@3d9100c {
1643 compatible = "qcom,gdsc";
1644 reg = <0x3d9100c 0x4>;
1645 regulator-name = "gpu_gx_gdsc";
1646 domain-addr = <&gpu_gx_domain_addr>;
1647 sw-reset = <&gpu_gx_sw_reset>;
1648 parent-supply = <&VDD_GFX_LEVEL>;
1649 vdd_parent-supply = <&VDD_GFX_LEVEL>;
1650 qcom,reset-aon-logic;
1651 };
1652
1653 /* NPU GDSC */
1654 npu_core_gdsc: qcom,gdsc@9981004 {
1655 compatible = "qcom,gdsc";
1656 reg = <0x9981004 0x4>;
1657 regulator-name = "npu_core_gdsc";
1658 clock-names = "ahb_clk";
1659 clocks = <&clock_gcc GCC_NPU_CFG_AHB_CLK>;
1660 };
1661
Jishnu Prakash793bf5b2018-11-09 16:28:55 +05301662 qcom,sps {
1663 compatible = "qcom,msm-sps-4k";
1664 qcom,pipe-attr-ee;
1665 };
1666
David Collinsa86302c2018-09-17 14:16:50 -07001667 /* VIDEO_CC GDSCs */
1668 mvs0_gdsc: qcom,gdsc@abf0d18 {
1669 compatible = "qcom,gdsc";
1670 reg = <0xabf0d18 0x4>;
1671 regulator-name = "mvs0_gdsc";
1672 clock-names = "ahb_clk";
1673 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1674 parent-supply = <&VDD_MMCX_LEVEL>;
1675 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1676 };
1677
1678 mvs0c_gdsc: qcom,gdsc@abf0bf8 {
1679 compatible = "qcom,gdsc";
1680 reg = <0xabf0bf8 0x4>;
1681 regulator-name = "mvs0c_gdsc";
1682 clock-names = "ahb_clk";
1683 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1684 parent-supply = <&VDD_MMCX_LEVEL>;
1685 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1686 };
1687
1688 mvs1_gdsc: qcom,gdsc@abf0d98 {
1689 compatible = "qcom,gdsc";
1690 reg = <0xabf0d98 0x4>;
1691 regulator-name = "mvs1_gdsc";
1692 clock-names = "ahb_clk";
1693 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1694 parent-supply = <&VDD_MMCX_LEVEL>;
1695 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1696 };
1697
1698 mvs1c_gdsc: qcom,gdsc@abf0c98 {
1699 compatible = "qcom,gdsc";
1700 reg = <0xabf0c98 0x4>;
1701 regulator-name = "mvs1c_gdsc";
1702 clock-names = "ahb_clk";
1703 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1704 parent-supply = <&VDD_MMCX_LEVEL>;
1705 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1706 };
1707
David Collinsc2c02f62018-11-05 16:23:24 -08001708 spmi_bus: qcom,spmi@c440000 {
1709 compatible = "qcom,spmi-pmic-arb";
1710 reg = <0xc440000 0x1100>,
1711 <0xc600000 0x2000000>,
1712 <0xe600000 0x100000>,
1713 <0xe700000 0xa0000>,
1714 <0xc40a000 0x26000>;
1715 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1716 interrupt-names = "periph_irq";
1717 interrupts = <GIC_SPI 481 IRQ_TYPE_LEVEL_HIGH>;
1718 qcom,ee = <0>;
1719 qcom,channel = <0>;
1720 #address-cells = <2>;
1721 #size-cells = <0>;
1722 interrupt-controller;
1723 #interrupt-cells = <4>;
1724 cell-index = <0>;
1725 };
1726
Can Guob04bed52018-07-10 19:27:32 -07001727 ufsphy_mem: ufsphy_mem@1d87000 {
1728 reg = <0x1d87000 0xe00>; /* PHY regs */
1729 reg-names = "phy_mem";
1730 #phy-cells = <0>;
1731
1732 lanes-per-direction = <2>;
1733
1734 clock-names = "ref_clk_src",
1735 "ref_clk",
1736 "ref_aux_clk";
1737 clocks = <&clock_rpmh RPMH_CXO_CLK>,
Vivek Aknurwarec5c93d2018-08-28 14:52:33 -07001738 <&clock_gcc GCC_UFS_1X_CLKREF_EN>,
Can Guob04bed52018-07-10 19:27:32 -07001739 <&clock_gcc GCC_UFS_PHY_PHY_AUX_CLK>;
1740
1741 status = "disabled";
1742 };
1743
1744 ufshc_mem: ufshc@1d84000 {
1745 compatible = "qcom,ufshc";
1746 reg = <0x1d84000 0x3000>;
1747 interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
1748 phys = <&ufsphy_mem>;
1749 phy-names = "ufsphy";
1750
1751 lanes-per-direction = <2>;
1752 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1753
1754 clock-names =
1755 "core_clk",
1756 "bus_aggr_clk",
1757 "iface_clk",
1758 "core_clk_unipro",
1759 "core_clk_ice",
1760 "ref_clk",
1761 "tx_lane0_sync_clk",
1762 "rx_lane0_sync_clk",
1763 "rx_lane1_sync_clk";
1764 clocks =
1765 <&clock_gcc GCC_UFS_PHY_AXI_CLK>,
1766 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
1767 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1768 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>,
1769 <&clock_gcc GCC_UFS_PHY_ICE_CORE_CLK>,
1770 <&clock_rpmh RPMH_CXO_CLK>,
1771 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1772 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>,
1773 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>;
1774 freq-table-hz =
1775 <37500000 300000000>,
1776 <0 0>,
1777 <0 0>,
1778 <37500000 300000000>,
1779 <75000000 300000000>,
1780 <0 0>,
1781 <0 0>,
1782 <0 0>,
1783 <0 0>;
1784
1785 qcom,msm-bus,name = "ufshc_mem";
1786 qcom,msm-bus,num-cases = <22>;
1787 qcom,msm-bus,num-paths = <2>;
1788 qcom,msm-bus,vectors-KBps =
1789 /*
1790 * During HS G3 UFS runs at nominal voltage corner, vote
1791 * higher bandwidth to push other buses in the data path
1792 * to run at nominal to achieve max throughput.
1793 * 4GBps pushes BIMC to run at nominal.
1794 * 200MBps pushes CNOC to run at nominal.
1795 * Vote for half of this bandwidth for HS G3 1-lane.
1796 * For max bandwidth, vote high enough to push the buses
1797 * to run in turbo voltage corner.
1798 */
1799 <123 512 0 0>, <1 757 0 0>, /* No vote */
1800 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1801 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1802 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1803 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1804 <123 512 1844 0>, <1 757 1000 0>, /* PWM G1 L2 */
1805 <123 512 3688 0>, <1 757 1000 0>, /* PWM G2 L2 */
1806 <123 512 7376 0>, <1 757 1000 0>, /* PWM G3 L2 */
1807 <123 512 14752 0>, <1 757 1000 0>, /* PWM G4 L2 */
1808 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1809 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1810 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1811 <123 512 255591 0>, <1 757 1000 0>, /* HS G1 RA L2 */
1812 <123 512 511181 0>, <1 757 1000 0>, /* HS G2 RA L2 */
1813 <123 512 4194304 0>, <1 757 204800 0>, /* HS G3 RA L2 */
1814 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1815 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1816 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1817 <123 512 298189 0>, <1 757 1000 0>, /* HS G1 RB L2 */
1818 <123 512 596378 0>, <1 757 1000 0>, /* HS G2 RB L2 */
1819 /* As UFS working in HS G3 RB L2 mode, aggregated
1820 * bandwidth (AB) should take care of providing
1821 * optimum throughput requested. However, as tested,
1822 * in order to scale up CNOC clock, instantaneous
1823 * bindwidth (IB) needs to be given a proper value too.
1824 */
1825 <123 512 4194304 0>, <1 757 204800 409600>, /* HS G3 RB L2 */
1826 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1827
1828 qcom,bus-vector-names = "MIN",
1829 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1830 "PWM_G1_L2", "PWM_G2_L2", "PWM_G3_L2", "PWM_G4_L2",
1831 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1832 "HS_RA_G1_L2", "HS_RA_G2_L2", "HS_RA_G3_L2",
1833 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1834 "HS_RB_G1_L2", "HS_RB_G2_L2", "HS_RB_G3_L2",
1835 "MAX";
1836
1837 /* PM QoS */
1838 qcom,pm-qos-cpu-groups = <0x0f 0xf0>;
1839 qcom,pm-qos-cpu-group-latency-us = <44 44>;
1840 qcom,pm-qos-default-cpu = <0>;
1841
1842 pinctrl-names = "dev-reset-assert", "dev-reset-deassert";
1843 pinctrl-0 = <&ufs_dev_reset_assert>;
1844 pinctrl-1 = <&ufs_dev_reset_deassert>;
1845
1846 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1847 reset-names = "core_reset";
1848
1849 status = "disabled";
1850 };
1851
Bao D. Nguyenbd2335b2019-01-17 13:32:42 -08001852 sdhc_2: sdhci@8804000 {
1853 compatible = "qcom,sdhci-msm-v5";
1854 reg = <0x8804000 0x1000>;
1855 reg-names = "hc_mem";
1856
1857 interrupts = <0 204 0>, <0 222 0>;
1858 interrupt-names = "hc_irq", "pwr_irq";
1859
1860 qcom,bus-width = <4>;
1861 qcom,large-address-bus;
1862
1863 qcom,msm-bus,name = "sdhc2";
1864 qcom,msm-bus,num-cases = <8>;
1865 qcom,msm-bus,num-paths = <2>;
1866 qcom,msm-bus,vectors-KBps =
1867 /* No vote */
1868 <81 512 0 0>, <1 608 0 0>,
1869 /* 400 KB/s*/
1870 <81 512 1046 1600>,
1871 <1 608 1600 1600>,
1872 /* 20 MB/s */
1873 <81 512 52286 80000>,
1874 <1 608 80000 80000>,
1875 /* 25 MB/s */
1876 <81 512 65360 100000>,
1877 <1 608 100000 100000>,
1878 /* 50 MB/s */
1879 <81 512 130718 200000>,
1880 <1 608 133320 133320>,
1881 /* 100 MB/s */
1882 <81 512 261438 200000>,
1883 <1 608 150000 150000>,
1884 /* 200 MB/s */
1885 <81 512 261438 400000>,
1886 <1 608 300000 300000>,
1887 /* Max. bandwidth */
1888 <81 512 1338562 4096000>,
1889 <1 608 1338562 4096000>;
1890 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
1891 100750000 200000000 4294967295>;
1892
1893 qcom,restore-after-cx-collapse;
1894
1895 qcom,clk-rates = <400000 20000000 25000000
1896 50000000 100000000 201500000>;
1897 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
1898 "SDR104";
1899
1900 qcom,devfreq,freq-table = <50000000 201500000>;
1901 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
1902 <&clock_gcc GCC_SDCC2_APPS_CLK>;
1903 clock-names = "iface_clk", "core_clk";
1904
1905 /* PM QoS */
1906 qcom,pm-qos-irq-type = "affine_irq";
1907 qcom,pm-qos-irq-latency = <44 44>;
1908 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
1909 qcom,pm-qos-legacy-latency-us = <44 44>, <44 44>;
1910
1911 status = "disabled";
1912 };
1913
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -07001914 ipcc_mproc: qcom,ipcc@408000 {
Neeraj Upadhyay5d7531f2019-01-16 10:25:24 -08001915 compatible = "qcom,ipcc";
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -07001916 reg = <0x408000 0x1000>;
1917 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
1918 interrupt-controller;
1919 #interrupt-cells = <3>;
1920 #mbox-cells = <2>;
1921 };
Lina Iyerea91c722018-06-20 14:58:05 -06001922
Raghavendra Rao Ananta5da54b32018-08-09 10:04:50 -07001923 ipcc_self_ping: ipcc-self-ping {
1924 compatible = "qcom,ipcc-self-ping";
1925 interrupts-extended = <&ipcc_mproc IPCC_CLIENT_APSS
1926 IPCC_MPROC_SIGNAL_SMP2P IRQ_TYPE_LEVEL_HIGH>;
1927 mboxes = <&ipcc_mproc IPCC_CLIENT_APSS IPCC_MPROC_SIGNAL_SMP2P>;
1928 };
1929
Maria Neptune5a1428b2018-08-29 13:25:19 -07001930 apps_rsc: rsc@18200000 {
Lina Iyerea91c722018-06-20 14:58:05 -06001931 label = "apps_rsc";
1932 compatible = "qcom,rpmh-rsc";
1933 reg = <0x18200000 0x10000>,
1934 <0x18210000 0x10000>,
1935 <0x18220000 0x10000>;
1936 reg-names = "drv-0", "drv-1", "drv-2";
1937 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
1938 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
1939 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1940 qcom,tcs-offset = <0xd00>;
1941 qcom,drv-id = <2>;
1942 qcom,tcs-config = <ACTIVE_TCS 2>,
1943 <SLEEP_TCS 3>,
1944 <WAKE_TCS 3>,
1945 <CONTROL_TCS 1>;
David Dai07c8d4e2018-10-09 14:22:06 -07001946
1947 msm_bus_apps_rsc {
1948 compatible = "qcom,msm-bus-rsc";
1949 qcom,msm-bus-id = <MSM_BUS_RSC_APPS>;
1950 };
Arjun Bagla76f02ef2018-09-19 10:00:29 -07001951
1952 system_pm {
1953 compatible = "qcom,system-pm";
1954 };
David Daiee6a9d62019-01-10 17:14:04 -08001955
1956 clock_rpmh: qcom,rpmhclk {
1957 compatible = "qcom,kona-rpmh-clk";
1958 #clock-cells = <1>;
1959 };
Lina Iyerea91c722018-06-20 14:58:05 -06001960 };
1961
1962 disp_rsc: rsc@af20000 {
1963 label = "disp_rsc";
1964 compatible = "qcom,rpmh-rsc";
1965 reg = <0xaf20000 0x10000>;
1966 reg-names = "drv-0";
1967 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
1968 qcom,tcs-offset = <0x1c00>;
1969 qcom,drv-id = <0>;
1970 qcom,tcs-config = <ACTIVE_TCS 0>,
1971 <SLEEP_TCS 1>,
1972 <WAKE_TCS 1>,
1973 <CONTROL_TCS 0>;
1974 status = "disabled";
Dhaval Patelf92536a2018-10-24 13:19:15 -07001975
1976 sde_rsc_rpmh {
1977 compatible = "qcom,sde-rsc-rpmh";
1978 cell-index = <0>;
1979 status = "disabled";
1980 };
Lina Iyerea91c722018-06-20 14:58:05 -06001981 };
Chris Lew86f6bde2018-09-06 16:40:39 -07001982
1983 tcsr_mutex_block: syscon@1f40000 {
1984 compatible = "syscon";
1985 reg = <0x1f40000 0x20000>;
1986 };
1987
1988 tcsr_mutex: hwlock {
1989 compatible = "qcom,tcsr-mutex";
1990 syscon = <&tcsr_mutex_block 0 0x1000>;
1991 #hwlock-cells = <1>;
1992 };
1993
1994 smem: qcom,smem {
1995 compatible = "qcom,smem";
1996 memory-region = <&smem_mem>;
1997 hwlocks = <&tcsr_mutex 3>;
1998 };
Venkata Narendra Kumar Gutta1781e562018-10-09 14:44:10 -07001999
2000 kryo-erp {
2001 compatible = "arm,arm64-kryo-cpu-erp";
2002 interrupts = <GIC_PPI 0 IRQ_TYPE_LEVEL_HIGH>,
2003 <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
2004 interrupt-names = "l1-l2-faultirq",
2005 "l3-scu-faultirq";
2006 };
Chris Lew3859b1b72018-09-25 16:54:52 -07002007
Chris Lew3b1f0982018-10-05 17:28:21 -07002008 sp_scsr: mailbox@188501c {
2009 compatible = "qcom,kona-spcs-global";
2010 reg = <0x188501c 0x4>;
2011
2012 #mbox-cells = <1>;
2013 };
2014
2015 sp_scsr_block: syscon@1880000 {
2016 compatible = "syscon";
2017 reg = <0x1880000 0x10000>;
2018 };
2019
2020 intsp: qcom,qsee_irq {
2021 compatible = "qcom,kona-qsee-irq";
2022
2023 syscon = <&sp_scsr_block>;
2024 interrupts = <0 348 IRQ_TYPE_LEVEL_HIGH>,
2025 <0 349 IRQ_TYPE_LEVEL_HIGH>;
2026
2027 interrupt-names = "sp_ipc0",
2028 "sp_ipc1";
2029
2030 interrupt-controller;
2031 #interrupt-cells = <3>;
2032 };
2033
2034 qcom,qsee_irq_bridge {
2035 compatible = "qcom,qsee-ipc-irq-bridge";
2036
2037 qcom,qsee-ipc-irq-spss {
2038 qcom,dev-name = "qsee_ipc_irq_spss";
2039 label = "spss";
2040 interrupt-parent = <&intsp>;
2041 interrupts = <1 0 IRQ_TYPE_LEVEL_HIGH>;
2042 };
2043 };
2044
Amir Samuelove4c04342019-01-17 13:25:02 +02002045 spss_utils: qcom,spss_utils {
2046 compatible = "qcom,spss-utils";
2047 /* spss fuses physical address */
2048 qcom,spss-fuse1-addr = <0x007841c4>;
2049 qcom,spss-fuse1-bit = <27>;
2050 qcom,spss-fuse2-addr = <0x007841c4>;
2051 qcom,spss-fuse2-bit = <26>;
2052 qcom,spss-dev-firmware-name = "spss1d"; /* 8 chars max */
2053 qcom,spss-test-firmware-name = "spss1t"; /* 8 chars max */
2054 qcom,spss-prod-firmware-name = "spss1p"; /* 8 chars max */
2055 qcom,spss-debug-reg-addr = <0x01886020>;
2056 qcom,spss-emul-type-reg-addr = <0x01fc8004>;
2057 status = "ok";
2058 };
2059
2060 qcom,spcom {
2061 compatible = "qcom,spcom";
2062
2063 /* predefined channels, remote side is server */
2064 qcom,spcom-ch-names = "sp_kernel", "sp_ssr";
2065 status = "ok";
2066 };
2067
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02002068 qcom,msm_gsi {
2069 compatible = "qcom,msm_gsi";
2070 };
2071
2072 qcom,rmnet-ipa {
2073 compatible = "qcom,rmnet-ipa3";
2074 qcom,rmnet-ipa-ssr;
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02002075 qcom,ipa-advertise-sg-support;
2076 qcom,ipa-napi-enable;
2077 };
2078
2079 qcom,ipa_fws {
2080 compatible = "qcom,pil-tz-generic";
2081 qcom,pas-id = <0xf>;
2082 qcom,firmware-name = "ipa_fws";
2083 qcom,pil-force-shutdown;
Amir Levy69bdbc42019-01-31 15:40:18 +02002084 memory-region = <&pil_ipa_gsi_mem>;
2085 };
2086
2087 qcom,ipa_uc {
2088 compatible = "qcom,pil-tz-generic";
2089 qcom,pas-id = <0x1B>;
2090 qcom,firmware-name = "ipa_uc";
2091 qcom,pil-force-shutdown;
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02002092 memory-region = <&pil_ipa_fw_mem>;
2093 };
2094
2095 ipa_hw: qcom,ipa@1e00000 {
2096 compatible = "qcom,ipa";
2097 reg =
2098 <0x1e00000 0x84000>,
2099 <0x1e04000 0x23000>;
2100 reg-names = "ipa-base", "gsi-base";
2101 interrupts =
2102 <0 311 IRQ_TYPE_LEVEL_HIGH>,
2103 <0 432 IRQ_TYPE_LEVEL_HIGH>;
2104 interrupt-names = "ipa-irq", "gsi-irq";
2105 qcom,ipa-hw-ver = <17>; /* IPA core version = IPAv4.5 */
2106 qcom,ipa-hw-mode = <0>;
Ghanim Fodif8dcdbf2018-11-04 17:58:22 +02002107 qcom,platform-type = <2>; /* APQ platform */
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02002108 qcom,ee = <0>;
2109 qcom,use-ipa-tethering-bridge;
2110 qcom,mhi-event-ring-id-limits = <9 11>; /* start and end */
2111 qcom,modem-cfg-emb-pipe-flt;
2112 qcom,use-ipa-pm;
2113 qcom,bandwidth-vote-for-ipa;
2114 qcom,use-64-bit-dma-mask;
2115 qcom,msm-bus,name = "ipa";
2116 qcom,msm-bus,num-cases = <5>;
2117 qcom,msm-bus,num-paths = <4>;
2118 qcom,msm-bus,vectors-KBps =
2119 /* No vote */
2120 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 0 0>,
2121 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 0 0>,
2122 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 0 0>,
2123 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 0>,
2124
2125 /* SVS2 */
2126 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 80000 600000>,
2127 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 80000 350000>,
2128 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 40000 40000>,
2129 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 125>,
2130
2131 /* SVS */
2132 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 80000 640000>,
2133 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 80000 640000>,
2134 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 80000 80000>,
2135 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 250>,
2136
2137 /* NOMINAL */
2138 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 206000 960000>,
2139 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 206000 960000>,
2140 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 206000 160000>,
2141 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 500>,
2142
2143 /* TURBO */
2144 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 206000 3600000>,
2145 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 206000 3600000>,
2146 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 206000 300000>,
2147 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 600>;
2148
2149 qcom,bus-vector-names = "MIN", "SVS2", "SVS", "NOMINAL",
2150 "TURBO";
2151 qcom,throughput-threshold = <310 600 1000>;
2152 qcom,scaling-exceptions = <>;
2153 };
2154
2155 ipa_smmu_ap: ipa_smmu_ap {
2156 compatible = "qcom,ipa-smmu-ap-cb";
2157 iommus = <&apps_smmu 0x5C0 0x0>;
2158 qcom,iommu-dma = "bypass";
2159 };
2160
2161 ipa_smmu_wlan: ipa_smmu_wlan {
2162 compatible = "qcom,ipa-smmu-wlan-cb";
2163 iommus = <&apps_smmu 0x5C1 0x0>;
2164 qcom,iommu-dma = "bypass";
2165 };
2166
2167 ipa_smmu_uc: ipa_smmu_uc {
2168 compatible = "qcom,ipa-smmu-uc-cb";
2169 iommus = <&apps_smmu 0x5C2 0x0>;
2170 qcom,iommu-dma = "bypass";
2171 };
2172
Chris Lew3859b1b72018-09-25 16:54:52 -07002173 qcom,glink {
2174 compatible = "qcom,glink";
2175 #address-cells = <1>;
2176 #size-cells = <1>;
2177 ranges;
2178
Chris Lewb2da0482018-11-16 14:50:31 -08002179 glink_npu: npu {
2180 qcom,remote-pid = <10>;
2181 transport = "smem";
2182 mboxes = <&ipcc_mproc IPCC_CLIENT_NPU
2183 IPCC_MPROC_SIGNAL_GLINK_QMP>;
2184 mbox-names = "npu_smem";
2185 interrupt-parent = <&ipcc_mproc>;
2186 interrupts = <IPCC_CLIENT_NPU
2187 IPCC_MPROC_SIGNAL_GLINK_QMP
2188 IRQ_TYPE_EDGE_RISING>;
2189
2190 label = "npu";
2191 qcom,glink-label = "npu";
2192
2193 qcom,npu_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08002194 qcom,net-id = <1>;
Chris Lewb2da0482018-11-16 14:50:31 -08002195 qcom,glink-channels = "IPCRTR";
2196 qcom,intents = <0x800 5
2197 0x2000 3
2198 0x4400 2>;
2199 };
2200
2201 qcom,npu_glink_ssr {
2202 qcom,glink-channels = "glink_ssr";
2203 qcom,notify-edges = <&glink_cdsp>;
2204 };
2205 };
2206
Chris Lew3859b1b72018-09-25 16:54:52 -07002207 glink_adsp: adsp {
2208 qcom,remote-pid = <2>;
2209 transport = "smem";
2210 mboxes = <&ipcc_mproc IPCC_CLIENT_LPASS
2211 IPCC_MPROC_SIGNAL_GLINK_QMP>;
2212 mbox-names = "adsp_smem";
2213 interrupt-parent = <&ipcc_mproc>;
2214 interrupts = <IPCC_CLIENT_LPASS
2215 IPCC_MPROC_SIGNAL_GLINK_QMP
2216 IRQ_TYPE_EDGE_RISING>;
2217
2218 label = "adsp";
2219 qcom,glink-label = "lpass";
2220
2221 qcom,adsp_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08002222 qcom,net-id = <2>;
Chris Lew3859b1b72018-09-25 16:54:52 -07002223 qcom,glink-channels = "IPCRTR";
2224 qcom,intents = <0x800 5
2225 0x2000 3
2226 0x4400 2>;
2227 };
2228
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302229 qcom,msm_fastrpc_rpmsg {
2230 compatible = "qcom,msm-fastrpc-rpmsg";
2231 qcom,glink-channels = "fastrpcglink-apps-dsp";
2232 qcom,intents = <0x64 64>;
2233 };
2234
Chris Lew3859b1b72018-09-25 16:54:52 -07002235 qcom,adsp_glink_ssr {
2236 qcom,glink-channels = "glink_ssr";
2237 qcom,notify-edges = <&glink_slpi>,
2238 <&glink_cdsp>;
2239 };
2240 };
2241
2242 glink_slpi: dsps {
2243 qcom,remote-pid = <3>;
2244 transport = "smem";
2245 mboxes = <&ipcc_mproc IPCC_CLIENT_SLPI
2246 IPCC_MPROC_SIGNAL_GLINK_QMP>;
2247 mbox-names = "dsps_smem";
2248 interrupt-parent = <&ipcc_mproc>;
2249 interrupts = <IPCC_CLIENT_SLPI
2250 IPCC_MPROC_SIGNAL_GLINK_QMP
2251 IRQ_TYPE_EDGE_RISING>;
2252
2253 label = "slpi";
2254 qcom,glink-label = "dsps";
2255
2256 qcom,slpi_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08002257 qcom,net-id = <2>;
Chris Lew3859b1b72018-09-25 16:54:52 -07002258 qcom,glink-channels = "IPCRTR";
2259 qcom,intents = <0x800 5
2260 0x2000 3
2261 0x4400 2>;
2262 };
2263
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302264 qcom,msm_fastrpc_rpmsg {
2265 compatible = "qcom,msm-fastrpc-rpmsg";
2266 qcom,glink-channels = "fastrpcglink-apps-dsp";
2267 qcom,intents = <0x64 64>;
2268 };
2269
Chris Lew3859b1b72018-09-25 16:54:52 -07002270 qcom,slpi_glink_ssr {
2271 qcom,glink-channels = "glink_ssr";
2272 qcom,notify-edges = <&glink_adsp>,
2273 <&glink_cdsp>;
2274 };
2275 };
2276
2277 glink_cdsp: cdsp {
2278 qcom,remote-pid = <5>;
2279 transport = "smem";
2280 mboxes = <&ipcc_mproc IPCC_CLIENT_CDSP
2281 IPCC_MPROC_SIGNAL_GLINK_QMP>;
2282 mbox-names = "dsps_smem";
2283 interrupt-parent = <&ipcc_mproc>;
2284 interrupts = <IPCC_CLIENT_CDSP
2285 IPCC_MPROC_SIGNAL_GLINK_QMP
2286 IRQ_TYPE_EDGE_RISING>;
2287
2288 label = "cdsp";
2289 qcom,glink-label = "cdsp";
2290
2291 qcom,cdsp_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08002292 qcom,net-id = <1>;
Chris Lew3859b1b72018-09-25 16:54:52 -07002293 qcom,glink-channels = "IPCRTR";
2294 qcom,intents = <0x800 5
2295 0x2000 3
2296 0x4400 2>;
2297 };
2298
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302299 qcom,msm_fastrpc_rpmsg {
2300 compatible = "qcom,msm-fastrpc-rpmsg";
2301 qcom,glink-channels = "fastrpcglink-apps-dsp";
2302 qcom,intents = <0x64 64>;
2303 };
2304
Chris Lew3859b1b72018-09-25 16:54:52 -07002305 qcom,cdsp_glink_ssr {
2306 qcom,glink-channels = "glink_ssr";
2307 qcom,notify-edges = <&glink_adsp>,
Chris Lewb2da0482018-11-16 14:50:31 -08002308 <&glink_slpi>,
2309 <&glink_npu>;
Chris Lew3859b1b72018-09-25 16:54:52 -07002310 };
2311 };
Chris Lew3b1f0982018-10-05 17:28:21 -07002312
2313 glink_spss: spss {
2314 qcom,remote-pid = <8>;
2315 transport = "spss";
2316 mboxes = <&sp_scsr 0>;
2317 mbox-names = "spss_spss";
2318 interrupt-parent = <&intsp>;
2319 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>;
2320
2321 reg = <0x1885008 0x8>,
2322 <0x1885010 0x4>;
2323 reg-names = "qcom,spss-addr",
2324 "qcom,spss-size";
2325
2326 label = "spss";
2327 qcom,glink-label = "spss";
2328 };
Chris Lew3859b1b72018-09-25 16:54:52 -07002329 };
Bruce Levy5122a632018-09-25 15:51:37 -07002330
Chris Lew3cbe4032018-11-30 18:57:32 -08002331 qmp_aop: qcom,qmp-aop@c300000 {
2332 compatible = "qcom,qmp-mbox";
2333 mboxes = <&ipcc_mproc IPCC_CLIENT_AOP
2334 IPCC_MPROC_SIGNAL_GLINK_QMP>;
2335 mbox-names = "aop_qmp";
2336 interrupt-parent = <&ipcc_mproc>;
2337 interrupts = <IPCC_CLIENT_AOP
2338 IPCC_MPROC_SIGNAL_GLINK_QMP
2339 IRQ_TYPE_EDGE_RISING>;
2340 reg = <0xc300000 0x1000>;
2341 reg-names = "msgram";
2342
2343 label = "aop";
2344 qcom,early-boot;
2345 priority = <0>;
2346 mbox-desc-offset = <0x0>;
2347 #mbox-cells = <1>;
2348 };
2349
Bruce Levy5122a632018-09-25 15:51:37 -07002350 qcom,lpass@17300000 {
2351 compatible = "qcom,pil-tz-generic";
2352 reg = <0x17300000 0x00100>;
2353
2354 vdd_cx-supply = <&VDD_CX_LEVEL>;
2355 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
2356 qcom,proxy-reg-names = "vdd_cx";
2357
2358 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2359 clock-names = "xo";
2360 qcom,proxy-clock-names = "xo";
2361
2362 qcom,pas-id = <1>;
2363 qcom,proxy-timeout-ms = <10000>;
2364 qcom,smem-id = <423>;
2365 qcom,sysmon-id = <1>;
2366 qcom,ssctl-instance-id = <0x14>;
2367 qcom,firmware-name = "adsp";
2368 memory-region = <&pil_adsp_mem>;
2369 qcom,complete-ramdump;
2370
2371 /* Inputs from lpass */
2372 interrupts-extended = <&pdc 96 IRQ_TYPE_LEVEL_HIGH>,
2373 <&adsp_smp2p_in 0 0>,
2374 <&adsp_smp2p_in 2 0>,
2375 <&adsp_smp2p_in 1 0>,
2376 <&adsp_smp2p_in 3 0>;
2377
2378 interrupt-names = "qcom,wdog",
2379 "qcom,err-fatal",
2380 "qcom,proxy-unvote",
2381 "qcom,err-ready",
2382 "qcom,stop-ack";
2383
2384 /* Outputs to lpass */
2385 qcom,smem-states = <&adsp_smp2p_out 0>;
2386 qcom,smem-state-names = "qcom,force-stop";
2387
2388 mbox-names = "adsp-pil";
2389 };
2390
2391 qcom,turing@8300000 {
2392 compatible = "qcom,pil-tz-generic";
2393 reg = <0x8300000 0x100000>;
2394
2395 vdd_cx-supply = <&VDD_CX_LEVEL>;
2396 qcom,proxy-reg-names = "vdd_cx";
2397 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2398
2399 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2400 clock-names = "xo";
2401 qcom,proxy-clock-names = "xo";
2402
2403 qcom,pas-id = <18>;
2404 qcom,proxy-timeout-ms = <10000>;
2405 qcom,smem-id = <601>;
2406 qcom,sysmon-id = <7>;
2407 qcom,ssctl-instance-id = <0x17>;
2408 qcom,firmware-name = "cdsp";
2409 memory-region = <&pil_cdsp_mem>;
2410 qcom,complete-ramdump;
2411
2412 qcom,msm-bus,name = "pil-cdsp";
2413 qcom,msm-bus,num-cases = <2>;
2414 qcom,msm-bus,num-paths = <1>;
2415 qcom,msm-bus,vectors-KBps =
2416 <154 10070 0 0>,
2417 <154 10070 0 1>;
2418
2419 /* Inputs from turing */
Bruce Levy821133c2018-11-29 11:34:45 -08002420 interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_LEVEL_HIGH>,
Bruce Levy5122a632018-09-25 15:51:37 -07002421 <&cdsp_smp2p_in 0 0>,
2422 <&cdsp_smp2p_in 2 0>,
2423 <&cdsp_smp2p_in 1 0>,
2424 <&cdsp_smp2p_in 3 0>;
2425
2426 interrupt-names = "qcom,wdog",
2427 "qcom,err-fatal",
2428 "qcom,proxy-unvote",
2429 "qcom,err-ready",
2430 "qcom,stop-ack";
2431
2432 /* Outputs to turing */
2433 qcom,smem-states = <&cdsp_smp2p_out 0>;
2434 qcom,smem-state-names = "qcom,force-stop";
2435
2436 mbox-names = "cdsp-pil";
2437 };
Akshay Chandrashekhar Kalghatgif7905ad2018-11-08 16:30:42 -08002438
2439 qcom,venus@aab0000 {
2440 compatible = "qcom,pil-tz-generic";
2441 reg = <0xaab0000 0x2000>;
Chinmay Sawarkar2cfeca02018-11-15 17:59:36 -08002442
2443 vdd-supply = <&mvs0c_gdsc>;
2444 qcom,proxy-reg-names = "vdd";
2445 qcom,complete-ramdump;
2446
2447 clocks = <&clock_videocc VIDEO_CC_XO_CLK>,
2448 <&clock_videocc VIDEO_CC_MVS0C_CLK>,
2449 <&clock_videocc VIDEO_CC_AHB_CLK>;
2450 clock-names = "xo", "core", "ahb";
2451 qcom,proxy-clock-names = "xo", "core", "ahb";
2452
Akshay Chandrashekhar Kalghatgif7905ad2018-11-08 16:30:42 -08002453 qcom,core-freq = <200000000>;
2454 qcom,ahb-freq = <200000000>;
2455
2456 qcom,pas-id = <9>;
2457 qcom,msm-bus,name = "pil-venus";
2458 qcom,msm-bus,num-cases = <2>;
2459 qcom,msm-bus,num-paths = <1>;
2460 qcom,msm-bus,vectors-KBps =
2461 <63 512 0 0>,
2462 <63 512 0 304000>;
2463 qcom,proxy-timeout-ms = <100>;
2464 qcom,firmware-name = "venus";
2465 memory-region = <&pil_video_mem>;
2466 };
Tharun Kumar Merugub8d79dd2018-11-02 23:07:31 +05302467
Amir Samuelovf52db412019-01-08 09:30:58 +02002468 /* PIL spss node - for loading Secure Processor */
2469 qcom,spss@1880000 {
2470 compatible = "qcom,pil-tz-generic";
2471 reg = <0x188101c 0x4>,
2472 <0x1881024 0x4>,
2473 <0x1881028 0x4>,
2474 <0x188103c 0x4>,
2475 <0x1882014 0x4>;
2476 reg-names = "sp2soc_irq_status", "sp2soc_irq_clr",
2477 "sp2soc_irq_mask", "rmb_err", "rmb_err_spare2";
2478 interrupts = <0 352 1>;
2479
2480 vdd_cx-supply = <&VDD_CX_LEVEL>;
2481 qcom,proxy-reg-names = "vdd_cx";
2482 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2483 vdd_mx-supply = <&VDD_MX_LEVEL>;
2484 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2485
2486 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2487 clock-names = "xo";
2488 qcom,proxy-clock-names = "xo";
2489 qcom,pil-generic-irq-handler;
2490 status = "ok";
2491
Amir Samuelov48955b32019-01-17 17:24:37 +02002492 qcom,signal-aop;
Amir Samuelovf52db412019-01-08 09:30:58 +02002493 qcom,complete-ramdump;
2494
2495 qcom,pas-id = <14>;
2496 qcom,proxy-timeout-ms = <10000>;
2497 qcom,firmware-name = "spss";
2498 memory-region = <&pil_spss_mem>;
2499 qcom,spss-scsr-bits = <24 25>;
2500
Amir Samuelov48955b32019-01-17 17:24:37 +02002501 mboxes = <&qmp_aop 0>;
Amir Samuelovf52db412019-01-08 09:30:58 +02002502 mbox-names = "spss-pil";
2503 };
2504
George Shen9c54c662018-12-26 15:50:11 -08002505 qcom,cvpss@abb0000 {
2506 compatible = "qcom,pil-tz-generic";
2507 reg = <0xabb0000 0x2000>;
2508 status = "ok";
George Shen24f63232019-01-11 14:28:21 -08002509 qcom,pas-id = <26>;
George Shen9c54c662018-12-26 15:50:11 -08002510 qcom,firmware-name = "cvpss";
2511
2512 memory-region = <&pil_cvp_mem>;
2513 };
2514
Jilai Wangd20a5292018-12-04 11:05:10 -05002515 qcom,npu@9800000 {
2516 compatible = "qcom,pil-tz-generic";
2517 reg = <0x9800000 0x800000>;
2518
2519 status = "ok";
2520 qcom,pas-id = <23>;
2521 qcom,firmware-name = "npu";
2522 memory-region = <&pil_npu_mem>;
2523 };
2524
Tharun Kumar Merugub8d79dd2018-11-02 23:07:31 +05302525 qcom,msm-cdsp-loader {
2526 compatible = "qcom,cdsp-loader";
2527 qcom,proc-img-to-load = "cdsp";
2528 };
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302529
2530 qcom,msm-adsprpc-mem {
2531 compatible = "qcom,msm-adsprpc-mem-region";
2532 memory-region = <&adsp_mem>;
Tharun Kumar Merugu9bf49d72018-12-21 02:33:10 +05302533 restrict-access;
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302534 };
2535
2536 msm_fastrpc: qcom,msm_fastrpc {
2537 compatible = "qcom,msm-fastrpc-compute";
Tharun Kumar Merugu9bf49d72018-12-21 02:33:10 +05302538 qcom,adsp-remoteheap-vmid = <22 37>;
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302539 qcom,fastrpc-adsp-audio-pdr;
Tharun Kumar Merugu9bf49d72018-12-21 02:33:10 +05302540 qcom,fastrpc-adsp-sensors-pdr;
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302541 qcom,rpc-latency-us = <235>;
2542
2543 qcom,msm_fastrpc_compute_cb1 {
2544 compatible = "qcom,msm-fastrpc-compute-cb";
2545 label = "cdsprpc-smd";
2546 iommus = <&apps_smmu 0x1001 0x0460>;
Patrick Daly84360e12019-02-05 14:37:08 -08002547 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302548 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302549 dma-coherent;
2550 };
2551
2552 qcom,msm_fastrpc_compute_cb2 {
2553 compatible = "qcom,msm-fastrpc-compute-cb";
2554 label = "cdsprpc-smd";
2555 iommus = <&apps_smmu 0x1002 0x0460>;
Patrick Daly84360e12019-02-05 14:37:08 -08002556 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302557 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302558 dma-coherent;
2559 };
2560
2561 qcom,msm_fastrpc_compute_cb3 {
2562 compatible = "qcom,msm-fastrpc-compute-cb";
2563 label = "cdsprpc-smd";
2564 iommus = <&apps_smmu 0x1003 0x0460>;
Patrick Daly84360e12019-02-05 14:37:08 -08002565 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302566 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302567 dma-coherent;
2568 };
2569
2570 qcom,msm_fastrpc_compute_cb4 {
2571 compatible = "qcom,msm-fastrpc-compute-cb";
2572 label = "cdsprpc-smd";
2573 iommus = <&apps_smmu 0x1004 0x0460>;
Patrick Daly84360e12019-02-05 14:37:08 -08002574 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302575 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302576 dma-coherent;
2577 };
2578
2579 qcom,msm_fastrpc_compute_cb5 {
2580 compatible = "qcom,msm-fastrpc-compute-cb";
2581 label = "cdsprpc-smd";
2582 iommus = <&apps_smmu 0x1005 0x0460>;
Patrick Daly84360e12019-02-05 14:37:08 -08002583 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302584 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302585 dma-coherent;
2586 };
2587
2588 qcom,msm_fastrpc_compute_cb6 {
2589 compatible = "qcom,msm-fastrpc-compute-cb";
2590 label = "cdsprpc-smd";
2591 iommus = <&apps_smmu 0x1006 0x0460>;
Patrick Daly84360e12019-02-05 14:37:08 -08002592 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302593 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302594 dma-coherent;
2595 };
2596
2597 qcom,msm_fastrpc_compute_cb7 {
2598 compatible = "qcom,msm-fastrpc-compute-cb";
2599 label = "cdsprpc-smd";
2600 iommus = <&apps_smmu 0x1007 0x0460>;
Patrick Daly84360e12019-02-05 14:37:08 -08002601 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302602 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302603 dma-coherent;
2604 };
2605
2606 qcom,msm_fastrpc_compute_cb8 {
2607 compatible = "qcom,msm-fastrpc-compute-cb";
2608 label = "cdsprpc-smd";
2609 iommus = <&apps_smmu 0x1008 0x0460>;
Patrick Daly84360e12019-02-05 14:37:08 -08002610 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302611 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302612 dma-coherent;
2613 };
2614
2615 qcom,msm_fastrpc_compute_cb9 {
2616 compatible = "qcom,msm-fastrpc-compute-cb";
2617 label = "cdsprpc-smd";
2618 qcom,secure-context-bank;
2619 iommus = <&apps_smmu 0x1009 0x0460>;
Patrick Daly84360e12019-02-05 14:37:08 -08002620 qcom,iommu-dma-addr-pool = <0x60000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302621 qcom,iommu-faults = "stall-disable";
2622 qcom,iommu-vmid = <0xA>; /* VMID_CP_PIXEL */
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302623 dma-coherent;
2624 };
2625
2626 qcom,msm_fastrpc_compute_cb10 {
2627 compatible = "qcom,msm-fastrpc-compute-cb";
2628 label = "adsprpc-smd";
2629 iommus = <&apps_smmu 0x1803 0x0>;
Patrick Daly84360e12019-02-05 14:37:08 -08002630 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302631 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302632 dma-coherent;
2633 };
2634
2635 qcom,msm_fastrpc_compute_cb11 {
2636 compatible = "qcom,msm-fastrpc-compute-cb";
2637 label = "adsprpc-smd";
2638 iommus = <&apps_smmu 0x1804 0x0>;
Patrick Daly84360e12019-02-05 14:37:08 -08002639 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302640 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302641 dma-coherent;
2642 };
2643
2644 qcom,msm_fastrpc_compute_cb12 {
2645 compatible = "qcom,msm-fastrpc-compute-cb";
2646 label = "adsprpc-smd";
2647 iommus = <&apps_smmu 0x1805 0x0>;
Patrick Daly84360e12019-02-05 14:37:08 -08002648 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302649 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302650 dma-coherent;
2651 };
2652
2653 qcom,msm_fastrpc_compute_cb13 {
2654 compatible = "qcom,msm-fastrpc-compute-cb";
2655 label = "sdsprpc-smd";
2656 iommus = <&apps_smmu 0x0541 0x0>;
Patrick Daly84360e12019-02-05 14:37:08 -08002657 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302658 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302659 dma-coherent;
2660 };
2661
2662 qcom,msm_fastrpc_compute_cb14 {
2663 compatible = "qcom,msm-fastrpc-compute-cb";
2664 label = "sdsprpc-smd";
2665 iommus = <&apps_smmu 0x0542 0x0>;
Patrick Daly84360e12019-02-05 14:37:08 -08002666 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302667 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302668 dma-coherent;
2669 };
2670
2671 qcom,msm_fastrpc_compute_cb15 {
2672 compatible = "qcom,msm-fastrpc-compute-cb";
2673 label = "sdsprpc-smd";
2674 iommus = <&apps_smmu 0x0543 0x0>;
Patrick Daly84360e12019-02-05 14:37:08 -08002675 qcom,iommu-dma-addr-pool = <0x80000000 0x78000000>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302676 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302677 shared-cb = <4>;
2678 dma-coherent;
2679 };
2680 };
Shaikh Shadulbfdfdda2018-11-14 15:36:21 +05302681
Tatenda Chipeperekwaa84e1aa2019-01-18 17:43:45 -08002682 qcom_msmhdcp: qcom,msm_hdcp {
2683 compatible = "qcom,msm-hdcp";
2684 };
2685
Tingwei Zhangd9b535f2018-12-03 19:14:06 -08002686 mem_dump {
2687 compatible = "qcom,mem-dump";
2688 memory-region = <&dump_mem>;
2689
2690 rpmh {
2691 qcom,dump-size = <0x2000000>;
2692 qcom,dump-id = <0xec>;
2693 };
2694
2695 rpm_sw {
2696 qcom,dump-size = <0x28000>;
2697 qcom,dump-id = <0xea>;
2698 };
2699
2700 pmic {
2701 qcom,dump-size = <0x80000>;
2702 qcom,dump-id = <0xe4>;
2703 };
2704
2705 fcm {
2706 qcom,dump-size = <0x8400>;
2707 qcom,dump-id = <0xee>;
2708 };
2709
2710 etf_swao {
2711 qcom,dump-size = <0x10000>;
2712 qcom,dump-id = <0xf1>;
2713 };
2714
2715 etr_reg {
2716 qcom,dump-size = <0x1000>;
2717 qcom,dump-id = <0x100>;
2718 };
2719
2720 etfswao_reg {
2721 qcom,dump-size = <0x1000>;
2722 qcom,dump-id = <0x102>;
2723 };
2724
2725 misc_data {
2726 qcom,dump-size = <0x1000>;
2727 qcom,dump-id = <0xe8>;
2728 };
2729 };
2730
Zhen Kong93446d22018-12-27 13:10:09 -08002731 qcom_tzlog: tz-log@146bf720 {
2732 compatible = "qcom,tz-log";
2733 reg = <0x146bf720 0x3000>;
2734 qcom,hyplog-enabled;
2735 hyplog-address-offset = <0x410>;
2736 hyplog-size-offset = <0x414>;
2737 };
2738
Shaikh Shadulbfdfdda2018-11-14 15:36:21 +05302739 qcom,ssc@5c00000 {
2740 compatible = "qcom,pil-tz-generic";
2741 reg = <0x5c00000 0x4000>;
2742
2743 vdd_cx-supply = <&VDD_CX_LEVEL>;
2744 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
2745 vdd_mx-supply = <&VDD_MX_LEVEL>;
2746 qcom,vdd_mx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
2747
2748 qcom,proxy-reg-names = "vdd_cx", "vdd_mx";
2749 qcom,keep-proxy-regs-on;
2750
2751 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2752 clock-names = "xo";
2753 qcom,proxy-clock-names = "xo";
2754
2755 qcom,pas-id = <12>;
2756 qcom,proxy-timeout-ms = <10000>;
2757 qcom,smem-id = <424>;
2758 qcom,sysmon-id = <3>;
2759 qcom,ssctl-instance-id = <0x16>;
2760 qcom,firmware-name = "slpi";
2761 status = "ok";
2762 memory-region = <&pil_slpi_mem>;
2763 qcom,complete-ramdump;
2764
2765 /* Inputs from ssc */
2766 interrupts-extended = <&pdc 9 IRQ_TYPE_LEVEL_HIGH>,
2767 <&dsps_smp2p_in 0 0>,
2768 <&dsps_smp2p_in 2 0>,
2769 <&dsps_smp2p_in 1 0>,
2770 <&dsps_smp2p_in 3 0>;
2771
2772 interrupt-names = "qcom,wdog",
2773 "qcom,err-fatal",
2774 "qcom,proxy-unvote",
2775 "qcom,err-ready",
2776 "qcom,stop-ack";
2777
2778 /* Outputs to ssc */
2779 qcom,smem-states = <&dsps_smp2p_out 0>;
2780 qcom,smem-state-names = "qcom,force-stop";
2781
2782 mbox-names = "slpi-pil";
2783 };
2784
2785 ssc_sensors: qcom,msm-ssc-sensors {
2786 compatible = "qcom,msm-ssc-sensors";
2787 status = "ok";
2788 qcom,firmware-name = "slpi";
2789 };
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08002790
2791 tsens0: tsens@c222000 {
2792 compatible = "qcom,tsens24xx";
2793 reg = <0xc222000 0x4>,
2794 <0xc263000 0x1ff>;
2795 reg-names = "tsens_srot_physical",
2796 "tsens_tm_physical";
Siddartha Mohanadoss404a89a2019-01-04 15:29:48 -08002797 interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
2798 <GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>;
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08002799 interrupt-names = "tsens-upper-lower", "tsens-critical";
2800 #thermal-sensor-cells = <1>;
2801 };
2802
2803 tsens1: tsens@c223000 {
2804 compatible = "qcom,tsens24xx";
2805 reg = <0xc223000 0x4>,
2806 <0xc265000 0x1ff>;
2807 reg-names = "tsens_srot_physical",
2808 "tsens_tm_physical";
Siddartha Mohanadoss404a89a2019-01-04 15:29:48 -08002809 interrupts = <GIC_SPI 507 IRQ_TYPE_LEVEL_HIGH>,
2810 <GIC_SPI 509 IRQ_TYPE_LEVEL_HIGH>;
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08002811 interrupt-names = "tsens-upper-lower", "tsens-critical";
2812 #thermal-sensor-cells = <1>;
2813 };
Rishabh Bhatnagarf7a853a2018-06-28 14:14:54 -07002814
2815 qcom,msm-rtb {
2816 compatible = "qcom,msm-rtb";
2817 qcom,rtb-size = <0x100000>;
2818 };
2819
2820 qcom,mpm2-sleep-counter@c221000 {
2821 compatible = "qcom,mpm2-sleep-counter";
2822 reg = <0xc221000 0x1000>;
2823 clock-frequency = <32768>;
2824 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -07002825
2826 cpuss_dump {
2827 compatible = "qcom,cpuss-dump";
2828
2829 qcom,l1_i_cache0 {
2830 qcom,dump-node = <&L1_I_0>;
2831 qcom,dump-id = <0x60>;
2832 };
2833
2834 qcom,l1_i_cache1 {
2835 qcom,dump-node = <&L1_I_100>;
2836 qcom,dump-id = <0x61>;
2837 };
2838
2839 qcom,l1_i_cache2 {
2840 qcom,dump-node = <&L1_I_200>;
2841 qcom,dump-id = <0x62>;
2842 };
2843
2844 qcom,l1_i_cache3 {
2845 qcom,dump-node = <&L1_I_300>;
2846 qcom,dump-id = <0x63>;
2847 };
2848
2849 qcom,l1_i_cache100 {
2850 qcom,dump-node = <&L1_I_400>;
2851 qcom,dump-id = <0x64>;
2852 };
2853
2854 qcom,l1_i_cache101 {
2855 qcom,dump-node = <&L1_I_500>;
2856 qcom,dump-id = <0x65>;
2857 };
2858
2859 qcom,l1_i_cache102 {
2860 qcom,dump-node = <&L1_I_600>;
2861 qcom,dump-id = <0x66>;
2862 };
2863
2864 qcom,l1_i_cache103 {
2865 qcom,dump-node = <&L1_I_700>;
2866 qcom,dump-id = <0x67>;
2867 };
2868
2869 qcom,l1_d_cache0 {
2870 qcom,dump-node = <&L1_D_0>;
2871 qcom,dump-id = <0x80>;
2872 };
2873
2874 qcom,l1_d_cache1 {
2875 qcom,dump-node = <&L1_D_100>;
2876 qcom,dump-id = <0x81>;
2877 };
2878
2879 qcom,l1_d_cache2 {
2880 qcom,dump-node = <&L1_D_200>;
2881 qcom,dump-id = <0x82>;
2882 };
2883
2884 qcom,l1_d_cache3 {
2885 qcom,dump-node = <&L1_D_300>;
2886 qcom,dump-id = <0x83>;
2887 };
2888
2889 qcom,l1_d_cache100 {
2890 qcom,dump-node = <&L1_D_400>;
2891 qcom,dump-id = <0x84>;
2892 };
2893
2894 qcom,l1_d_cache101 {
2895 qcom,dump-node = <&L1_D_500>;
2896 qcom,dump-id = <0x85>;
2897 };
2898
2899 qcom,l1_d_cache102 {
2900 qcom,dump-node = <&L1_D_600>;
2901 qcom,dump-id = <0x86>;
2902 };
2903
2904 qcom,l1_d_cache103 {
2905 qcom,dump-node = <&L1_D_700>;
2906 qcom,dump-id = <0x87>;
2907 };
2908
2909 qcom,l1_i_tlb_dump400 {
2910 qcom,dump-node = <&L1_ITLB_400>;
2911 qcom,dump-id = <0x24>;
2912 };
2913
2914 qcom,l1_i_tlb_dump500 {
2915 qcom,dump-node = <&L1_ITLB_500>;
2916 qcom,dump-id = <0x25>;
2917 };
2918
2919 qcom,l1_i_tlb_dump600 {
2920 qcom,dump-node = <&L1_ITLB_600>;
2921 qcom,dump-id = <0x26>;
2922 };
2923
2924 qcom,l1_i_tlb_dump700 {
2925 qcom,dump-node = <&L1_ITLB_700>;
2926 qcom,dump-id = <0x27>;
2927 };
2928
2929 qcom,l1_d_tlb_dump400 {
2930 qcom,dump-node = <&L1_DTLB_400>;
2931 qcom,dump-id = <0x44>;
2932 };
2933
2934 qcom,l1_d_tlb_dump500 {
2935 qcom,dump-node = <&L1_DTLB_500>;
2936 qcom,dump-id = <0x45>;
2937 };
2938
2939 qcom,l1_d_tlb_dump600 {
2940 qcom,dump-node = <&L1_DTLB_600>;
2941 qcom,dump-id = <0x46>;
2942 };
2943
2944 qcom,l1_d_tlb_dump700 {
2945 qcom,dump-node = <&L1_DTLB_700>;
2946 qcom,dump-id = <0x47>;
2947 };
2948
2949 qcom,l2_cache_dump400 {
2950 qcom,dump-node = <&L2_4>;
2951 qcom,dump-id = <0xc4>;
2952 };
2953
2954 qcom,l2_cache_dump500 {
2955 qcom,dump-node = <&L2_5>;
2956 qcom,dump-id = <0xc5>;
2957 };
2958
2959 qcom,l2_cache_dump600 {
2960 qcom,dump-node = <&L2_6>;
2961 qcom,dump-id = <0xc6>;
2962 };
2963
2964 qcom,l2_cache_dump700 {
2965 qcom,dump-node = <&L2_7>;
2966 qcom,dump-id = <0xc7>;
2967 };
2968
2969 qcom,l2_tlb_dump0 {
2970 qcom,dump-node = <&L2_TLB_0>;
2971 qcom,dump-id = <0x120>;
2972 };
2973
2974 qcom,l2_tlb_dump100 {
2975 qcom,dump-node = <&L2_TLB_100>;
2976 qcom,dump-id = <0x121>;
2977 };
2978
2979 qcom,l2_tlb_dump200 {
2980 qcom,dump-node = <&L2_TLB_200>;
2981 qcom,dump-id = <0x122>;
2982 };
2983
2984 qcom,l2_tlb_dump300 {
2985 qcom,dump-node = <&L2_TLB_300>;
2986 qcom,dump-id = <0x123>;
2987 };
2988
2989 qcom,l2_tlb_dump400 {
2990 qcom,dump-node = <&L2_TLB_400>;
2991 qcom,dump-id = <0x124>;
2992 };
2993
2994 qcom,l2_tlb_dump500 {
2995 qcom,dump-node = <&L2_TLB_500>;
2996 qcom,dump-id = <0x125>;
2997 };
2998
2999 qcom,l2_tlb_dump600 {
3000 qcom,dump-node = <&L2_TLB_600>;
3001 qcom,dump-id = <0x126>;
3002 };
3003
3004 qcom,l2_tlb_dump700 {
3005 qcom,dump-node = <&L2_TLB_700>;
3006 qcom,dump-id = <0x127>;
3007 };
3008 };
Vipin Deep Kaur1cd6ed02018-12-27 16:23:43 +05303009
3010 gpi_dma0: qcom,gpi-dma@900000 {
3011 #dma-cells = <5>;
3012 compatible = "qcom,gpi-dma";
3013 reg = <0x900000 0x70000>;
3014 reg-names = "gpi-top";
Rishabh Bhatnagar7ef15882019-01-22 11:02:09 -08003015 interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
3016 <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
3017 <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>,
3018 <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>,
3019 <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>,
3020 <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>,
3021 <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>,
3022 <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>,
3023 <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>,
3024 <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>,
3025 <GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>,
3026 <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>,
3027 <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
Vipin Deep Kaur1cd6ed02018-12-27 16:23:43 +05303028 qcom,max-num-gpii = <13>;
3029 qcom,gpii-mask = <0x7ff>;
3030 qcom,ev-factor = <2>;
3031 iommus = <&apps_smmu 0x5b6 0x0>;
3032 qcom,smmu-cfg = <0x1>;
3033 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
3034 status = "ok";
3035 };
3036
3037 gpi_dma1: qcom,gpi-dma@a00000 {
3038 #dma-cells = <5>;
3039 compatible = "qcom,gpi-dma";
3040 reg = <0xa00000 0x70000>;
3041 reg-names = "gpi-top";
Rishabh Bhatnagar7ef15882019-01-22 11:02:09 -08003042 interrupts = <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>,
3043 <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
3044 <GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH>,
3045 <GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>,
3046 <GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>,
3047 <GIC_SPI 284 IRQ_TYPE_LEVEL_HIGH>,
3048 <GIC_SPI 293 IRQ_TYPE_LEVEL_HIGH>,
3049 <GIC_SPI 294 IRQ_TYPE_LEVEL_HIGH>,
3050 <GIC_SPI 295 IRQ_TYPE_LEVEL_HIGH>,
3051 <GIC_SPI 296 IRQ_TYPE_LEVEL_HIGH>;
Vipin Deep Kaur1cd6ed02018-12-27 16:23:43 +05303052 qcom,max-num-gpii = <10>;
3053 qcom,gpii-mask = <0x3f>;
3054 qcom,ev-factor = <2>;
3055 iommus = <&apps_smmu 0x56 0x0>;
3056 qcom,smmu-cfg = <0x1>;
3057 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
3058 status = "ok";
3059 };
3060
3061 gpi_dma2: qcom,gpi-dma@800000 {
3062 #dma-cells = <5>;
3063 compatible = "qcom,gpi-dma";
3064 reg = <0x800000 0x70000>;
3065 reg-names = "gpi-top";
Rishabh Bhatnagar7ef15882019-01-22 11:02:09 -08003066 interrupts = <GIC_SPI 588 IRQ_TYPE_LEVEL_HIGH>,
3067 <GIC_SPI 589 IRQ_TYPE_LEVEL_HIGH>,
3068 <GIC_SPI 590 IRQ_TYPE_LEVEL_HIGH>,
3069 <GIC_SPI 591 IRQ_TYPE_LEVEL_HIGH>,
3070 <GIC_SPI 592 IRQ_TYPE_LEVEL_HIGH>,
3071 <GIC_SPI 593 IRQ_TYPE_LEVEL_HIGH>,
3072 <GIC_SPI 594 IRQ_TYPE_LEVEL_HIGH>,
3073 <GIC_SPI 595 IRQ_TYPE_LEVEL_HIGH>,
3074 <GIC_SPI 596 IRQ_TYPE_LEVEL_HIGH>,
3075 <GIC_SPI 597 IRQ_TYPE_LEVEL_HIGH>;
Vipin Deep Kaur1cd6ed02018-12-27 16:23:43 +05303076 qcom,max-num-gpii = <10>;
3077 qcom,gpii-mask = <0x3f>;
3078 qcom,ev-factor = <2>;
3079 iommus = <&apps_smmu 0x76 0x0>;
3080 qcom,smmu-cfg = <0x1>;
3081 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
3082 status = "ok";
3083 };
3084
Yuanyuan Liu99e0b9a2019-01-16 11:01:38 -08003085 qcom,cnss-qca6390@a0000000 {
3086 compatible = "qcom,cnss-qca6390";
3087 reg = <0xa0000000 0x10000000>,
3088 <0xb0000000 0x10000>;
3089 reg-names = "smmu_iova_base", "smmu_iova_ipa";
Yuanyuan Liu09a52092019-02-05 16:02:43 -08003090 wlan-en-gpio = <&tlmm 20 0>;
Yuanyuan Liu99e0b9a2019-01-16 11:01:38 -08003091 pinctrl-names = "wlan_en_active", "wlan_en_sleep";
3092 pinctrl-0 = <&cnss_wlan_en_active>;
3093 pinctrl-1 = <&cnss_wlan_en_sleep>;
3094 qcom,wlan-rc-num = <0>;
3095 qcom,wlan-ramdump-dynamic = <0x400000>;
Yuanyuan Liue0c49072019-02-07 16:21:09 -08003096 qcom,smmu-s1-enable;
Yuanyuan Liu99e0b9a2019-01-16 11:01:38 -08003097
Yuanyuan Liu30d201f2019-01-22 14:04:54 -08003098 vdd-wlan-aon-supply = <&pm8150_s6>;
3099 vdd-wlan-dig-supply = <&pm8009_s2>;
3100 vdd-wlan-io-supply = <&pm8150_s4>;
3101 vdd-wlan-rfa1-supply = <&pm8150_s5>;
3102 vdd-wlan-rfa2-supply = <&pm8150a_s8>;
Yuanyuan Liu8f91f4a2019-01-30 10:42:25 -08003103 wlan-ant-switch-supply = <&pm8150a_l5>;
Yuanyuan Liu30d201f2019-01-22 14:04:54 -08003104
Yuanyuan Liu99e0b9a2019-01-16 11:01:38 -08003105 mhi,max-channels = <30>;
3106 mhi,timeout = <10000>;
3107
3108 mhi_channels {
3109 #address-cells = <1>;
3110 #size-cells = <0>;
3111
3112 mhi_chan@0 {
3113 reg = <0>;
3114 label = "LOOPBACK";
3115 mhi,num-elements = <32>;
3116 mhi,event-ring = <1>;
3117 mhi,chan-dir = <1>;
3118 mhi,data-type = <0>;
3119 mhi,doorbell-mode = <2>;
3120 mhi,ee = <0x14>;
3121 };
3122
3123 mhi_chan@1 {
3124 reg = <1>;
3125 label = "LOOPBACK";
3126 mhi,num-elements = <32>;
3127 mhi,event-ring = <1>;
3128 mhi,chan-dir = <2>;
3129 mhi,data-type = <0>;
3130 mhi,doorbell-mode = <2>;
3131 mhi,ee = <0x14>;
3132 };
3133
3134 mhi_chan@4 {
3135 reg = <4>;
3136 label = "DIAG";
3137 mhi,num-elements = <32>;
3138 mhi,event-ring = <1>;
3139 mhi,chan-dir = <1>;
3140 mhi,data-type = <0>;
3141 mhi,doorbell-mode = <2>;
3142 mhi,ee = <0x14>;
3143 };
3144
3145 mhi_chan@5 {
3146 reg = <5>;
3147 label = "DIAG";
3148 mhi,num-elements = <32>;
3149 mhi,event-ring = <1>;
3150 mhi,chan-dir = <2>;
3151 mhi,data-type = <0>;
3152 mhi,doorbell-mode = <2>;
3153 mhi,ee = <0x14>;
3154 };
3155
3156 mhi_chan@20 {
3157 reg = <20>;
3158 label = "IPCR";
3159 mhi,num-elements = <32>;
3160 mhi,event-ring = <1>;
3161 mhi,chan-dir = <1>;
3162 mhi,data-type = <1>;
3163 mhi,doorbell-mode = <2>;
3164 mhi,ee = <0x14>;
3165 mhi,auto-start;
3166 };
3167
3168 mhi_chan@21 {
3169 reg = <21>;
3170 label = "IPCR";
3171 mhi,num-elements = <32>;
3172 mhi,event-ring = <1>;
3173 mhi,chan-dir = <2>;
3174 mhi,data-type = <0>;
3175 mhi,doorbell-mode = <2>;
3176 mhi,ee = <0x14>;
3177 mhi,auto-queue;
3178 mhi,auto-start;
3179 };
3180 };
3181
3182 mhi_events {
3183 mhi_event@0 {
3184 mhi,num-elements = <32>;
3185 mhi,intmod = <1>;
3186 mhi,msi = <1>;
3187 mhi,priority = <1>;
3188 mhi,brstmode = <2>;
3189 mhi,data-type = <1>;
3190 };
3191
3192 mhi_event@1 {
3193 mhi,num-elements = <256>;
3194 mhi,intmod = <1>;
3195 mhi,msi = <2>;
3196 mhi,priority = <1>;
3197 mhi,brstmode = <2>;
3198 };
3199 };
3200 };
Runmin Wang4f5985b2017-04-19 15:55:12 -07003201};
Swathi Sridhar4008eb42018-07-17 15:34:46 -07003202
David Collins61d237d2019-01-03 16:01:15 -08003203#include "kona-regulators.dtsi"
David Daib1d68482018-10-01 19:40:35 -07003204#include "kona-bus.dtsi"
Swathi Sridharbbbc80b2018-07-13 10:02:08 -07003205#include "kona-ion.dtsi"
Tony Truongc972c642018-09-12 10:03:51 -07003206#include "kona-pcie.dtsi"
Sujeev Dias5399e552018-09-18 17:57:54 -07003207#include "kona-mhi.dtsi"
Yuanyuan Liu7c4eb3f2019-02-05 19:33:03 -08003208
3209&pcie0_rp {
3210 #address-cells = <5>;
3211 #size-cells = <0>;
3212
3213 cnss_pci: cnss_pci {
3214 reg = <0 0 0 0 0>;
3215 qcom,iommu-dma = "disabled";
3216 };
3217};
3218
Swathi Sridhar4008eb42018-07-17 15:34:46 -07003219#include "msm-arm-smmu-kona.dtsi"
Rishabh Bhatnagara740b0e2018-07-20 15:08:35 -07003220#include "kona-pinctrl.dtsi"
Chris Lew86f6bde2018-09-06 16:40:39 -07003221#include "kona-smp2p.dtsi"
Hemant Kumar5f58bad2018-08-31 14:25:23 -07003222#include "kona-usb.dtsi"
Tingwei Zhang564fa692018-11-28 00:31:17 -08003223#include "kona-coresight.dtsi"
Samantha Tran7e309f02018-08-31 17:23:00 -07003224#include "kona-sde.dtsi"
Satya Rama Aditya Pinapala09600b32018-10-29 10:52:37 -07003225#include "kona-sde-pll.dtsi"
Mukund Atred454ec92018-11-05 15:32:16 -08003226
Arjun Bagla76f02ef2018-09-19 10:00:29 -07003227#include "kona-pm.dtsi"
Mukund Atred454ec92018-11-05 15:32:16 -08003228
3229#include "kona-camera.dtsi"
Vipin Deep Kaur9a2c13d2018-12-19 18:38:46 +05303230#include "kona-qupv3.dtsi"
Karthikeyan Mani7f5b10b2019-01-16 16:35:07 -08003231#include "kona-audio.dtsi"
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08003232#include "kona-thermal.dtsi"
Chinmay Sawarkar83d01b42018-12-14 12:34:50 -08003233#include "kona-vidc.dtsi"
George Shen9c54c662018-12-26 15:50:11 -08003234#include "kona-cvp.dtsi"
Jilai Wang6fed1a22019-01-23 16:58:39 -05003235#include "kona-npu.dtsi"