blob: 0ec79ef51107bd1c2cad01108dc3045991277c28 [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
Runmin Wang4f5985b2017-04-19 15:55:12 -070024/ {
25 model = "Qualcomm Technologies, Inc. kona";
26 compatible = "qcom,kona";
27 qcom,msm-id = <356 0x10000>;
28 interrupt-parent = <&intc>;
29
Can Guob04bed52018-07-10 19:27:32 -070030 aliases {
31 ufshc1 = &ufshc_mem; /* Embedded UFS slot */
Tony Truongc972c642018-09-12 10:03:51 -070032 pci-domain2 = &pcie2; /* PCIe2 domain */
Vipin Deep Kaur9a2c13d2018-12-19 18:38:46 +053033 serial0 = &qupv3_se2_2uart; /* RUMI */
Can Guob04bed52018-07-10 19:27:32 -070034 };
35
Runmin Wang4f5985b2017-04-19 15:55:12 -070036 cpus {
37 #address-cells = <2>;
38 #size-cells = <0>;
39
40 CPU0: cpu@0 {
41 device_type = "cpu";
42 compatible = "qcom,kryo";
43 reg = <0x0 0x0>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -070044 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -070045 cache-size = <0x8000>;
46 cpu-release-addr = <0x0 0x90000000>;
47 next-level-cache = <&L2_0>;
David Daia4635e62018-10-11 13:39:44 -070048 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -080049 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -080050 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -070051 L2_0: l2-cache {
52 compatible = "arm,arch-cache";
53 cache-size = <0x20000>;
54 cache-level = <2>;
55 next-level-cache = <&L3_0>;
56
57 L3_0: l3-cache {
58 compatible = "arm,arch-cache";
59 cache-size = <0x400000>;
60 cache-level = <3>;
61 };
62 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -070063
64 L1_I_0: l1-icache {
65 compatible = "arm,arch-cache";
66 qcom,dump-size = <0x8800>;
67 };
68
69 L1_D_0: l1-dcache {
70 compatible = "arm,arch-cache";
71 qcom,dump-size = <0x9000>;
72 };
73
74 L2_TLB_0: l2-tlb {
75 qcom,dump-size = <0x5000>;
76 };
Runmin Wang4f5985b2017-04-19 15:55:12 -070077 };
78
79 CPU1: cpu@100 {
80 device_type = "cpu";
81 compatible = "qcom,kryo";
82 reg = <0x0 0x100>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -070083 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -070084 cache-size = <0x8000>;
85 cpu-release-addr = <0x0 0x90000000>;
86 next-level-cache = <&L2_1>;
David Daia4635e62018-10-11 13:39:44 -070087 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -080088 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -080089 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -070090 L2_1: l2-cache {
91 compatible = "arm,arch-cache";
92 cache-size = <0x20000>;
93 cache-level = <2>;
94 next-level-cache = <&L3_0>;
95 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -070096
97 L1_I_100: l1-icache {
98 compatible = "arm,arch-cache";
99 qcom,dump-size = <0x8800>;
100 };
101
102 L1_D_100: l1-dcache {
103 compatible = "arm,arch-cache";
104 qcom,dump-size = <0x9000>;
105 };
106
107 L2_TLB_100: l2-tlb {
108 qcom,dump-size = <0x5000>;
109 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700110 };
111
112 CPU2: cpu@200 {
113 device_type = "cpu";
114 compatible = "qcom,kryo";
115 reg = <0x0 0x200>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700116 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700117 cache-size = <0x8000>;
118 cpu-release-addr = <0x0 0x90000000>;
119 next-level-cache = <&L2_2>;
David Daia4635e62018-10-11 13:39:44 -0700120 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800121 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -0800122 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700123 L2_2: l2-cache {
124 compatible = "arm,arch-cache";
125 cache-size = <0x20000>;
126 cache-level = <2>;
127 next-level-cache = <&L3_0>;
128 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700129
130 L1_I_200: l1-icache {
131 compatible = "arm,arch-cache";
132 qcom,dump-size = <0x8800>;
133 };
134
135 L1_D_200: l1-dcache {
136 compatible = "arm,arch-cache";
137 qcom,dump-size = <0x9000>;
138 };
139
140 L2_TLB_200: l2-tlb {
141 qcom,dump-size = <0x5000>;
142 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700143 };
144
145 CPU3: cpu@300 {
146 device_type = "cpu";
147 compatible = "qcom,kryo";
148 reg = <0x0 0x300>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700149 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700150 cache-size = <0x8000>;
151 cpu-release-addr = <0x0 0x90000000>;
152 next-level-cache = <&L2_3>;
David Daia4635e62018-10-11 13:39:44 -0700153 qcom,freq-domain = <&cpufreq_hw 0 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800154 capacity-dmips-mhz = <1024>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -0800155 dynamic-power-coefficient = <100>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700156 L2_3: l2-cache {
157 compatible = "arm,arch-cache";
158 cache-size = <0x20000>;
159 cache-level = <2>;
160 next-level-cache = <&L3_0>;
161 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700162
163 L1_I_300: l1-icache {
164 compatible = "arm,arch-cache";
165 qcom,dump-size = <0x8800>;
166 };
167
168 L1_D_300: l1-dcache {
169 compatible = "arm,arch-cache";
170 qcom,dump-size = <0x9000>;
171 };
172
173 L2_TLB_300: l2-tlb {
174 qcom,dump-size = <0x5000>;
175 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700176 };
177
178 CPU4: cpu@400 {
179 device_type = "cpu";
180 compatible = "qcom,kryo";
181 reg = <0x0 0x400>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700182 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700183 cache-size = <0x10000>;
184 cpu-release-addr = <0x0 0x90000000>;
185 next-level-cache = <&L2_4>;
David Daia4635e62018-10-11 13:39:44 -0700186 qcom,freq-domain = <&cpufreq_hw 1 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800187 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -0800188 dynamic-power-coefficient = <374>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700189 L2_4: l2-cache {
190 compatible = "arm,arch-cache";
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700191 cache-size = <0x40000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700192 cache-level = <2>;
193 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700194 qcom,dump-size = <0x48000>;
195 };
196
197 L1_I_400: l1-icache {
198 compatible = "arm,arch-cache";
199 qcom,dump-size = <0x11000>;
200 };
201
202 L1_D_400: l1-dcache {
203 compatible = "arm,arch-cache";
204 qcom,dump-size = <0x12000>;
205 };
206
207 L1_ITLB_400: l1-itlb {
208 qcom,dump-size = <0x300>;
209 };
210
211 L1_DTLB_400: l1-dtlb {
212 qcom,dump-size = <0x480>;
213 };
214
215 L2_TLB_400: l2-tlb {
216 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700217 };
218 };
219
220 CPU5: cpu@500 {
221 device_type = "cpu";
222 compatible = "qcom,kryo";
223 reg = <0x0 0x500>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700224 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700225 cache-size = <0x10000>;
226 cpu-release-addr = <0x0 0x90000000>;
227 next-level-cache = <&L2_5>;
David Daia4635e62018-10-11 13:39:44 -0700228 qcom,freq-domain = <&cpufreq_hw 1 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800229 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -0800230 dynamic-power-coefficient = <374>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700231 L2_5: l2-cache {
232 compatible = "arm,arch-cache";
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700233 cache-size = <0x40000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700234 cache-level = <2>;
235 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700236 qcom,dump-size = <0x48000>;
237 };
238
239 L1_I_500: l1-icache {
240 compatible = "arm,arch-cache";
241 qcom,dump-size = <0x11000>;
242 };
243
244 L1_D_500: l1-dcache {
245 compatible = "arm,arch-cache";
246 qcom,dump-size = <0x12000>;
247 };
248
249 L1_ITLB_500: l1-itlb {
250 qcom,dump-size = <0x300>;
251 };
252
253 L1_DTLB_500: l1-dtlb {
254 qcom,dump-size = <0x480>;
255 };
256
257 L2_TLB_500: l2-tlb {
258 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700259 };
260 };
261
262 CPU6: cpu@600 {
263 device_type = "cpu";
264 compatible = "qcom,kryo";
265 reg = <0x0 0x600>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700266 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700267 cache-size = <0x10000>;
268 cpu-release-addr = <0x0 0x90000000>;
269 next-level-cache = <&L2_6>;
David Daia4635e62018-10-11 13:39:44 -0700270 qcom,freq-domain = <&cpufreq_hw 1 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800271 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -0800272 dynamic-power-coefficient = <374>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700273 L2_6: l2-cache {
274 compatible = "arm,arch-cache";
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700275 cache-size = <0x40000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700276 cache-level = <2>;
277 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700278 qcom,dump-size = <0x48000>;
279 };
280
281 L1_I_600: l1-icache {
282 compatible = "arm,arch-cache";
283 qcom,dump-size = <0x11000>;
284 };
285
286 L1_D_600: l1-dcache {
287 compatible = "arm,arch-cache";
288 qcom,dump-size = <0x12000>;
289 };
290
291 L1_ITLB_600: l1-itlb {
292 qcom,dump-size = <0x300>;
293 };
294
295 L1_DTLB_600: l1-dtlb {
296 qcom,dump-size = <0x480>;
297 };
298
299 L2_TLB_600: l2-tlb {
300 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700301 };
302 };
303
304 CPU7: cpu@700 {
305 device_type = "cpu";
306 compatible = "qcom,kryo";
307 reg = <0x0 0x700>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700308 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700309 cache-size = <0x10000>;
310 cpu-release-addr = <0x0 0x90000000>;
311 next-level-cache = <&L2_7>;
David Daia4635e62018-10-11 13:39:44 -0700312 qcom,freq-domain = <&cpufreq_hw 2 4>;
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800313 capacity-dmips-mhz = <1894>;
Satya Durga Srinivasu Prabhala50812f72018-12-13 12:50:08 -0800314 dynamic-power-coefficient = <431>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700315 L2_7: l2-cache {
316 compatible = "arm,arch-cache";
317 cache-size = <0x80000>;
318 cache-level = <2>;
319 next-level-cache = <&L3_0>;
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -0700320 qcom,dump-size = <0x90000>;
321 };
322
323 L1_I_700: l1-icache {
324 compatible = "arm,arch-cache";
325 qcom,dump-size = <0x11000>;
326 };
327
328 L1_D_700: l1-dcache {
329 compatible = "arm,arch-cache";
330 qcom,dump-size = <0x12000>;
331 };
332
333 L1_ITLB_700: l1-itlb {
334 qcom,dump-size = <0x300>;
335 };
336
337 L1_DTLB_700: l1-dtlb {
338 qcom,dump-size = <0x480>;
339 };
340
341 L2_TLB_700: l2-tlb {
342 qcom,dump-size = <0x7800>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700343 };
344 };
345
346 cpu-map {
347 cluster0 {
348 core0 {
349 cpu = <&CPU0>;
350 };
351
352 core1 {
353 cpu = <&CPU1>;
354 };
355
356 core2 {
357 cpu = <&CPU2>;
358 };
359
360 core3 {
361 cpu = <&CPU3>;
362 };
363 };
364
365 cluster1 {
366 core0 {
367 cpu = <&CPU4>;
368 };
369
370 core1 {
371 cpu = <&CPU5>;
372 };
373
374 core2 {
375 cpu = <&CPU6>;
376 };
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800377 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700378
Satya Durga Srinivasu Prabhala86db38d2018-11-06 13:21:20 -0800379 cluster2 {
380 core0 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700381 cpu = <&CPU7>;
382 };
383 };
384 };
385 };
386
David Daia4635e62018-10-11 13:39:44 -0700387
Channagoud Kadabicdd72a02018-09-21 14:46:21 -0700388 cpu_pmu: cpu-pmu {
389 compatible = "arm,armv8-pmuv3";
390 qcom,irq-is-percpu;
391 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
392 };
393
David Daia4635e62018-10-11 13:39:44 -0700394 soc: soc {
395 cpufreq_hw: qcom,cpufreq-hw {
396 compatible = "qcom,cpufreq-hw";
397 reg = <0x18591000 0x1000>, <0x18592000 0x1000>,
398 <0x18593000 0x1000>;
399 reg-names = "freq-domain0", "freq-domain1",
400 "freq-domain2";
401
David Daiee6a9d62019-01-10 17:14:04 -0800402 clocks = <&clock_rpmh RPMH_CXO_CLK>, <&clock_gcc GPLL0>;
David Daia4635e62018-10-11 13:39:44 -0700403 clock-names = "xo", "cpu_clk";
404
405 #freq-domain-cells = <2>;
406 };
407 };
408
Arjun Bagla76f02ef2018-09-19 10:00:29 -0700409 psci {
410 compatible = "arm,psci-1.0";
411 method = "smc";
412 };
413
Bruce Levy3bd8d1b2018-09-11 11:31:13 -0700414 firmware: firmware {
415 android {
416 compatible = "android,firmware";
417 fstab {
418 compatible = "android,fstab";
419 vendor {
420 compatible = "android,vendor";
421 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
422 type = "ext4";
423 mnt_flags = "ro,barrier=1,discard";
424 fsmgr_flags = "wait,slotselect,avb";
425 status = "ok";
426 };
427 };
428 };
429 };
430
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700431 psci {
432 compatible = "arm,psci-1.0";
433 method = "smc";
434 };
435
Swathi Sridhara79a9542018-06-21 11:40:44 -0700436 reserved-memory {
437 #address-cells = <2>;
438 #size-cells = <2>;
439 ranges;
440
441 hyp_mem: hyp_region@80000000 {
442 no-map;
443 reg = <0x0 0x80000000 0x0 0x600000>;
444 };
445
446 xbl_aop_mem: xbl_aop_region@80700000 {
447 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700448 reg = <0x0 0x80700000 0x0 0x120000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700449 };
450
Lina Iyer5d609fa2018-10-03 14:26:55 -0600451 cmd_db: reserved-memory@80820000 {
452 reg = <0x0 0x80820000 0x0 0x20000>;
453 compatible = "qcom,cmd-db";
454 no-map;
455 };
456
Swathi Sridhara79a9542018-06-21 11:40:44 -0700457 smem_mem: smem_region@80900000 {
458 no-map;
459 reg = <0x0 0x80900000 0x0 0x200000>;
460 };
461
462 removed_mem: removed_region@80b00000 {
463 no-map;
464 reg = <0x0 0x80b00000 0x0 0xc00000>;
465 };
466
467 qtee_apps_mem: qtee_apps_region@81e00000 {
468 no-map;
469 reg = <0x0 0x81e00000 0x0 0x2600000>;
470 };
471
472 pil_camera_mem: pil_camera_region@86000000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700473 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700474 no-map;
475 reg = <0x0 0x86000000 0x0 0x500000>;
476 };
477
478 pil_wlan_fw_mem: pil_wlan_fw_region@86500000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700479 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700480 no-map;
481 reg = <0x0 0x86500000 0x0 0x100000>;
482 };
483
484 pil_ipa_fw_mem: pil_ipa_fw_region@86600000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700485 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700486 no-map;
487 reg = <0x0 0x86600000 0x0 0x10000>;
488 };
489
490 pil_ipa_gsi_mem: pil_ipa_gsi_region@86610000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700491 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700492 no-map;
493 reg = <0x0 0x86610000 0x0 0x5000>;
494 };
495
496 pil_gpu_mem: pil_gpu_region@86615000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700497 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700498 no-map;
499 reg = <0x0 0x86615000 0x0 0x2000>;
500 };
501
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700502 pil_npu_mem: pil_npu_region@86700000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700503 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700504 no-map;
505 reg = <0x0 0x86700000 0x0 0x500000>;
506 };
507
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700508 pil_video_mem: pil_video_region@86c00000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700509 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700510 no-map;
511 reg = <0x0 0x86c00000 0x0 0x500000>;
512 };
513
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700514 pil_cvp_mem: pil_cvp_region@87100000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700515 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700516 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700517 reg = <0x0 0x87100000 0x0 0x500000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700518 };
519
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700520 pil_cdsp_mem: pil_cdsp_region@87600000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700521 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700522 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700523 reg = <0x0 0x87600000 0x0 0x800000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700524 };
525
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700526 pil_slpi_mem: pil_slpi_region@87e00000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700527 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700528 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700529 reg = <0x0 0x87e00000 0x0 0x1500000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700530 };
531
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700532 pil_adsp_mem: pil_adsp_region@89300000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700533 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700534 no-map;
Swathi Sridhar19db3ed2018-11-29 11:01:42 -0800535 reg = <0x0 0x89300000 0x0 0x1a00000>;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700536 };
537
Swathi Sridhar19db3ed2018-11-29 11:01:42 -0800538 pil_spss_mem: pil_spss_region@8ad00000 {
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700539 compatible = "removed-dma-pool";
540 no-map;
Swathi Sridhar19db3ed2018-11-29 11:01:42 -0800541 reg = <0x0 0x8ad00000 0x0 0x100000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700542 };
543
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +0530544 adsp_mem: adsp_region {
545 compatible = "shared-dma-pool";
546 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
547 reusable;
548 alignment = <0x0 0x400000>;
549 size = <0x0 0x1000000>;
550 };
551
George Shen9c54c662018-12-26 15:50:11 -0800552 cdsp_mem: cdsp_region {
553 compatible = "shared-dma-pool";
554 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
555 reusable;
556 alignment = <0x0 0x400000>;
557 size = <0x0 0x400000>;
558 };
559
Tingwei Zhangd9b535f2018-12-03 19:14:06 -0800560 dump_mem: mem_dump_region {
561 compatible = "shared-dma-pool";
Swathi Sridhar08b670b2019-01-16 17:05:24 -0800562 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
Tingwei Zhangd9b535f2018-12-03 19:14:06 -0800563 reusable;
564 size = <0 0x2400000>;
565 };
566
Swathi Sridhara79a9542018-06-21 11:40:44 -0700567 /* global autoconfigured region for contiguous allocations */
568 linux,cma {
569 compatible = "shared-dma-pool";
570 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
571 reusable;
572 alignment = <0x0 0x400000>;
573 size = <0x0 0x2000000>;
574 linux,cma-default;
575 };
576 };
Bruce Levyc5eb1992019-01-11 12:09:18 -0800577
578 vendor: vendor {
579 #address-cells = <1>;
580 #size-cells = <1>;
581 ranges = <0 0 0 0xffffffff>;
582 compatible = "simple-bus";
583 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700584};
585
586&soc {
587 #address-cells = <1>;
588 #size-cells = <1>;
589 ranges = <0 0 0 0xffffffff>;
590 compatible = "simple-bus";
591
David Collins692dff72018-11-12 17:09:49 -0800592 thermal_zones: thermal-zones {
593 };
594
Runmin Wang4f5985b2017-04-19 15:55:12 -0700595 intc: interrupt-controller@17a00000 {
596 compatible = "arm,gic-v3";
597 #interrupt-cells = <3>;
598 interrupt-controller;
599 #redistributor-regions = <1>;
600 redistributor-stride = <0x0 0x20000>;
601 reg = <0x17a00000 0x10000>, /* GICD */
602 <0x17a60000 0x100000>; /* GICR * 8 */
603 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
604 };
605
Rishabh Bhatnagarfd73eb12018-09-04 15:00:46 -0700606 qcom,chd_silver {
607 compatible = "qcom,core-hang-detect";
608 label = "silver";
609 qcom,threshold-arr = <0x18000058 0x18010058
610 0x18020058 0x18030058>;
611 qcom,config-arr = <0x18000060 0x18010060
612 0x18020060 0x18030060>;
613 };
614
615 qcom,chd_gold {
616 compatible = "qcom,core-hang-detect";
617 label = "gold";
618 qcom,threshold-arr = <0x18040058 0x18050058
619 0x18060058 0x18070058>;
620 qcom,config-arr = <0x18040060 0x18050060
621 0x18060060 0x18070060>;
622 };
623
Rishabh Bhatnagar8f0dd4b2018-08-07 11:07:40 -0700624 cache-controller@9200000 {
625 compatible = "qcom,kona-llcc";
626 reg = <0x9200000 0x1d0000> , <0x9600000 0x50000>;
627 reg-names = "llcc_base", "llcc_broadcast_base";
Channagoud Kadabia13ed0a2018-09-26 16:10:35 -0700628 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
Rishabh Bhatnagar8f0dd4b2018-08-07 11:07:40 -0700629 };
630
Maria Neptune5a1428b2018-08-29 13:25:19 -0700631 arch_timer: timer {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700632 compatible = "arm,armv8-timer";
633 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
634 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
635 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
636 <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
637 clock-frequency = <19200000>;
638 };
639
Maria Neptune5a1428b2018-08-29 13:25:19 -0700640 memtimer: timer@17c20000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700641 #address-cells = <1>;
642 #size-cells = <1>;
643 ranges;
644 compatible = "arm,armv7-timer-mem";
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700645 reg = <0x17c20000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700646 clock-frequency = <19200000>;
647
Maria Neptune5a1428b2018-08-29 13:25:19 -0700648 frame@17c21000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700649 frame-number = <0>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700650 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
Runmin Wang4f5985b2017-04-19 15:55:12 -0700651 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700652 reg = <0x17c21000 0x1000>,
653 <0x17c22000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700654 };
655
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700656 frame@17c23000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700657 frame-number = <1>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700658 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
659 reg = <0x17c23000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700660 status = "disabled";
661 };
662
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700663 frame@17c25000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700664 frame-number = <2>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700665 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
666 reg = <0x17c25000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700667 status = "disabled";
668 };
669
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700670 frame@17c27000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700671 frame-number = <3>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700672 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
673 reg = <0x17c27000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700674 status = "disabled";
675 };
676
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700677 frame@17c29000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700678 frame-number = <4>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700679 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
680 reg = <0x17c29000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700681 status = "disabled";
682 };
683
Maria Neptune5a1428b2018-08-29 13:25:19 -0700684 frame@17c2b000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700685 frame-number = <5>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700686 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
687 reg = <0x17c2b000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700688 status = "disabled";
689 };
690
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700691 frame@17c2d000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700692 frame-number = <6>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700693 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
694 reg = <0x17c2d000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700695 status = "disabled";
696 };
697 };
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700698
Tingwei Zhang020594a2018-11-27 21:58:09 -0800699 jtag_mm0: jtagmm@7040000 {
700 compatible = "qcom,jtagv8-mm";
701 reg = <0x7040000 0x1000>;
702 reg-names = "etm-base";
703
704 clocks = <&clock_aop QDSS_CLK>;
705 clock-names = "core_clk";
706
707 qcom,coresight-jtagmm-cpu = <&CPU0>;
708 };
709
710 jtag_mm1: jtagmm@7140000 {
711 compatible = "qcom,jtagv8-mm";
712 reg = <0x7140000 0x1000>;
713 reg-names = "etm-base";
714
715 clocks = <&clock_aop QDSS_CLK>;
716 clock-names = "core_clk";
717
718 qcom,coresight-jtagmm-cpu = <&CPU1>;
719 };
720
721 jtag_mm2: jtagmm@7240000 {
722 compatible = "qcom,jtagv8-mm";
723 reg = <0x7240000 0x1000>;
724 reg-names = "etm-base";
725
726 clocks = <&clock_aop QDSS_CLK>;
727 clock-names = "core_clk";
728
729 qcom,coresight-jtagmm-cpu = <&CPU2>;
730 };
731
732 jtag_mm3: jtagmm@7340000 {
733 compatible = "qcom,jtagv8-mm";
734 reg = <0x7340000 0x1000>;
735 reg-names = "etm-base";
736
737 clocks = <&clock_aop QDSS_CLK>;
738 clock-names = "core_clk";
739
740 qcom,coresight-jtagmm-cpu = <&CPU3>;
741 };
742
743 jtag_mm4: jtagmm@7440000 {
744 compatible = "qcom,jtagv8-mm";
745 reg = <0x7440000 0x1000>;
746 reg-names = "etm-base";
747
748 clocks = <&clock_aop QDSS_CLK>;
749 clock-names = "core_clk";
750
751 qcom,coresight-jtagmm-cpu = <&CPU4>;
752 };
753
754 jtag_mm5: jtagmm@7540000 {
755 compatible = "qcom,jtagv8-mm";
756 reg = <0x7540000 0x1000>;
757 reg-names = "etm-base";
758
759 clocks = <&clock_aop QDSS_CLK>;
760 clock-names = "core_clk";
761
762 qcom,coresight-jtagmm-cpu = <&CPU5>;
763 };
764
765 jtag_mm6: jtagmm@7640000 {
766 compatible = "qcom,jtagv8-mm";
767 reg = <0x7640000 0x1000>;
768 reg-names = "etm-base";
769
770 clocks = <&clock_aop QDSS_CLK>;
771 clock-names = "core_clk";
772
773 qcom,coresight-jtagmm-cpu = <&CPU6>;
774 };
775
776 jtag_mm7: jtagmm@7740000 {
777 compatible = "qcom,jtagv8-mm";
778 reg = <0x7740000 0x1000>;
779 reg-names = "etm-base";
780
781 clocks = <&clock_aop QDSS_CLK>;
782 clock-names = "core_clk";
783
784 qcom,coresight-jtagmm-cpu = <&CPU7>;
785 };
786
David Dai3c427802018-10-17 14:40:08 -0700787 qcom,devfreq-l3 {
788 compatible = "qcom,devfreq-fw";
789 reg = <0x18590000 0x4>, <0x18590100 0xa0>, <0x18590320 0x4>;
790 reg-names = "en-base", "ftbl-base", "perf-base";
791
792 qcom,cpu0-l3 {
793 compatible = "qcom,devfreq-fw-voter";
794 };
795
796 qcom,cpu4-l3 {
797 compatible = "qcom,devfreq-fw-voter";
798 };
799 };
800
Rishabh Bhatnagarf35ba022018-09-18 15:17:22 -0700801 qcom,msm-imem@146bf000 {
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700802 compatible = "qcom,msm-imem";
803 reg = <0x146bf000 0x1000>;
804 ranges = <0x0 0x146bf000 0x1000>;
805 #address-cells = <1>;
806 #size-cells = <1>;
807
Tingwei Zhangd9b535f2018-12-03 19:14:06 -0800808 mem_dump_table@10 {
809 compatible = "qcom,msm-imem-mem_dump_table";
810 reg = <0x10 0x8>;
811 };
812
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700813 restart_reason@65c {
814 compatible = "qcom,msm-imem-restart_reason";
Maria Neptune5a1428b2018-08-29 13:25:19 -0700815 reg = <0x65c 0x4>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700816 };
817
818 dload_type@1c {
819 compatible = "qcom,msm-imem-dload-type";
820 reg = <0x1c 0x4>;
821 };
822
823 boot_stats@6b0 {
824 compatible = "qcom,msm-imem-boot_stats";
Maria Neptune5a1428b2018-08-29 13:25:19 -0700825 reg = <0x6b0 0x20>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700826 };
827
828 kaslr_offset@6d0 {
829 compatible = "qcom,msm-imem-kaslr_offset";
Maria Neptune5a1428b2018-08-29 13:25:19 -0700830 reg = <0x6d0 0xc>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700831 };
832
833 pil@94c {
834 compatible = "qcom,msm-imem-pil";
Maria Neptune5a1428b2018-08-29 13:25:19 -0700835 reg = <0x94c 0xc8>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700836 };
837 };
838
Rishabh Bhatnagar811170f2018-11-09 13:44:32 -0800839 restart@c264000 {
840 compatible = "qcom,pshold";
841 reg = <0xc264000 0x4>,
842 <0x1fd3000 0x4>;
843 reg-names = "pshold-base", "tcsr-boot-misc-detect";
844 };
845
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -0700846 mdm0: qcom,mdm0 {
Rishabh Bhatnagar134ede82018-10-16 10:54:12 -0700847 compatible = "qcom,ext-sdx55m";
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -0700848 cell-index = <0>;
849 #address-cells = <0>;
850 interrupt-parent = <&mdm0>;
851 #interrupt-cells = <1>;
852 interrupt-map-mask = <0xffffffff>;
853 interrupt-names =
854 "err_fatal_irq",
855 "status_irq",
856 "mdm2ap_vddmin_irq";
857 /* modem attributes */
858 qcom,ramdump-delay-ms = <3000>;
859 qcom,ramdump-timeout-ms = <120000>;
860 qcom,vddmin-modes = "normal";
861 qcom,vddmin-drive-strength = <8>;
862 qcom,sfr-query;
863 qcom,sysmon-id = <20>;
864 qcom,ssctl-instance-id = <0x10>;
865 qcom,support-shutdown;
866 qcom,pil-force-shutdown;
867 qcom,esoc-skip-restart-for-mdm-crash;
868 pinctrl-names = "default", "mdm_active", "mdm_suspend";
869 pinctrl-0 = <&ap2mdm_pon_reset_default>;
870 pinctrl-1 = <&ap2mdm_active &mdm2ap_active>;
871 pinctrl-2 = <&ap2mdm_sleep &mdm2ap_sleep>;
872 interrupt-map = <0 &tlmm 1 0x3
873 1 &tlmm 3 0x3>;
874 qcom,mdm2ap-errfatal-gpio = <&tlmm 1 0x00>;
875 qcom,ap2mdm-errfatal-gpio = <&tlmm 57 0x00>;
876 qcom,mdm2ap-status-gpio = <&tlmm 3 0x00>;
877 qcom,ap2mdm-status-gpio = <&tlmm 56 0x00>;
Rishabh Bhatnagar2b66dc12018-10-18 10:36:27 -0700878 qcom,ap2mdm-soft-reset-gpio = <&tlmm 145 GPIO_ACTIVE_LOW>;
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -0700879 qcom,mdm-link-info = "0306_02.01.00";
880 status = "ok";
881 };
882
Lina Iyer8551c792018-06-21 16:06:53 -0600883 pdc: interrupt-controller@b220000 {
884 compatible = "qcom,kona-pdc";
885 reg = <0xb220000 0x30000>;
886 qcom,pdc-ranges = <0 480 29>, <42 522 52>, <94 609 30>;
887 #interrupt-cells = <2>;
888 interrupt-parent = <&intc>;
889 interrupt-controller;
890 };
891
Vivek Aknurwar65bafd92018-11-01 17:27:53 -0700892 clocks {
David Daiee6a9d62019-01-10 17:14:04 -0800893 xo_board: xo-board {
894 compatible = "fixed-clock";
895 #clock-cells = <0>;
896 clock-frequency = <38400000>;
897 clock-output-names = "xo_board";
898 };
899
Vivek Aknurwar65bafd92018-11-01 17:27:53 -0700900 sleep_clk: sleep-clk {
901 compatible = "fixed-clock";
902 clock-frequency = <32000>;
903 clock-output-names = "chip_sleep_clk";
904 #clock-cells = <1>;
905 };
906 };
907
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700908 clock_aop: qcom,aopclk {
909 compatible = "qcom,dummycc";
910 clock-output-names = "qdss_clocks";
911 #clock-cells = <1>;
912 };
913
Vivek Aknurwar7e9ecb92018-09-07 14:27:58 -0700914 clock_gcc: qcom,gcc@100000 {
David Dai7e431ad2018-12-05 15:37:39 -0800915 compatible = "qcom,gcc-kona", "syscon";
Vivek Aknurwar7e9ecb92018-09-07 14:27:58 -0700916 reg = <0x100000 0x1f0000>;
917 reg-names = "cc_base";
918 vdd_cx-supply = <&VDD_CX_LEVEL>;
919 vdd_cx_ao-supply = <&VDD_CX_LEVEL_AO>;
920 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700921 #clock-cells = <1>;
922 #reset-cells = <1>;
923 };
924
925 clock_npucc: qcom,npucc {
926 compatible = "qcom,dummycc";
927 clock-output-names = "npucc_clocks";
928 #clock-cells = <1>;
929 #reset-cells = <1>;
930 };
931
Vivek Aknurwar65bafd92018-11-01 17:27:53 -0700932 clock_videocc: qcom,videocc@abf0000 {
933 compatible = "qcom,videocc-kona", "syscon";
934 reg = <0xabf0000 0x10000>;
935 reg-names = "cc_base";
936 vdd_mx-supply = <&VDD_MX_LEVEL>;
937 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
938 clock-names = "cfg_ahb_clk";
939 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700940 #clock-cells = <1>;
941 #reset-cells = <1>;
942 };
943
Vivek Aknurwar86452c02018-11-05 15:20:31 -0800944 clock_camcc: qcom,camcc@ad00000 {
945 compatible = "qcom,camcc-kona", "syscon";
946 reg = <0xad00000 0x10000>;
947 reg-names = "cc_base";
948 vdd_mx-supply = <&VDD_MX_LEVEL>;
949 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
950 clock-names = "cfg_ahb_clk";
951 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700952 #clock-cells = <1>;
953 #reset-cells = <1>;
954 };
955
David Daidc93e482018-11-27 17:32:50 -0800956 clock_dispcc: qcom,dispcc@af00000 {
David Dai7e431ad2018-12-05 15:37:39 -0800957 compatible = "qcom,kona-dispcc", "syscon";
David Daidc93e482018-11-27 17:32:50 -0800958 reg = <0xaf00000 0x20000>;
959 reg-names = "cc_base";
960 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
961 clock-names = "cfg_ahb_clk";
962 clocks = <&clock_gcc GCC_DISP_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700963 #clock-cells = <1>;
964 #reset-cells = <1>;
965 };
966
Vivek Aknurwar31c2e0f22018-11-16 17:10:12 -0800967 clock_gpucc: qcom,gpucc@3d90000 {
968 compatible = "qcom,gpucc-kona", "syscon";
969 reg = <0x3d90000 0x9000>;
970 reg-names = "cc_base";
971 vdd_cx-supply = <&VDD_CX_LEVEL>;
972 vdd_mx-supply = <&VDD_MX_LEVEL>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700973 #clock-cells = <1>;
974 #reset-cells = <1>;
975 };
976
977 clock_cpucc: qcom,cpucc {
978 compatible = "qcom,dummycc";
979 clock-output-names = "cpucc_clocks";
980 #clock-cells = <1>;
981 };
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -0700982
David Dai7e431ad2018-12-05 15:37:39 -0800983 clock_debugcc: qcom,cc-debug {
984 compatible = "qcom,kona-debugcc";
985 qcom,gcc = <&clock_gcc>;
986 qcom,videocc = <&clock_videocc>;
987 qcom,dispcc = <&clock_dispcc>;
988 qcom,camcc = <&clock_camcc>;
989 qcom,gpucc = <&clock_gpucc>;
990 clock-names = "xo_clk_src";
David Daiee6a9d62019-01-10 17:14:04 -0800991 clocks = <&clock_rpmh RPMH_CXO_CLK>;
David Dai7e431ad2018-12-05 15:37:39 -0800992 #clock-cells = <1>;
993 };
994
David Collinsa86302c2018-09-17 14:16:50 -0700995 /* GCC GDSCs */
996 pcie_0_gdsc: qcom,gdsc@16b004 {
997 compatible = "qcom,gdsc";
998 reg = <0x16b004 0x4>;
999 regulator-name = "pcie_0_gdsc";
1000 };
1001
1002 pcie_1_gdsc: qcom,gdsc@18d004 {
1003 compatible = "qcom,gdsc";
1004 reg = <0x18d004 0x4>;
1005 regulator-name = "pcie_1_gdsc";
1006 };
1007
1008 pcie_2_gdsc: qcom,gdsc@106004 {
1009 compatible = "qcom,gdsc";
1010 reg = <0x106004 0x4>;
1011 regulator-name = "pcie_2_gdsc";
1012 };
1013
1014 ufs_card_gdsc: qcom,gdsc@175004 {
1015 compatible = "qcom,gdsc";
1016 reg = <0x175004 0x4>;
1017 regulator-name = "ufs_card_gdsc";
1018 };
1019
1020 ufs_phy_gdsc: qcom,gdsc@177004 {
1021 compatible = "qcom,gdsc";
1022 reg = <0x177004 0x4>;
1023 regulator-name = "ufs_phy_gdsc";
1024 };
1025
1026 usb30_prim_gdsc: qcom,gdsc@10f004 {
1027 compatible = "qcom,gdsc";
1028 reg = <0x10f004 0x4>;
1029 regulator-name = "usb30_prim_gdsc";
1030 };
1031
1032 usb30_sec_gdsc: qcom,gdsc@110004 {
1033 compatible = "qcom,gdsc";
1034 reg = <0x110004 0x4>;
1035 regulator-name = "usb30_sec_gdsc";
1036 };
1037
1038 hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc: qcom,gdsc@17d050 {
1039 compatible = "qcom,gdsc";
1040 reg = <0x17d050 0x4>;
1041 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc";
1042 qcom,no-status-check-on-disable;
1043 qcom,gds-timeout = <500>;
1044 };
1045
1046 hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc: qcom,gdsc@17d058 {
1047 compatible = "qcom,gdsc";
1048 reg = <0x17d058 0x4>;
1049 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc";
1050 qcom,no-status-check-on-disable;
1051 qcom,gds-timeout = <500>;
1052 };
1053
1054 hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc: qcom,gdsc@17d054 {
1055 compatible = "qcom,gdsc";
1056 reg = <0x17d054 0x4>;
1057 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc";
1058 qcom,no-status-check-on-disable;
1059 qcom,gds-timeout = <500>;
1060 };
1061
1062 hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc: qcom,gdsc@17d06c {
1063 compatible = "qcom,gdsc";
1064 reg = <0x17d06c 0x4>;
1065 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc";
1066 qcom,no-status-check-on-disable;
1067 qcom,gds-timeout = <500>;
1068 };
1069
1070 /* CAM_CC GDSCs */
1071 bps_gdsc: qcom,gdsc@ad07004 {
1072 compatible = "qcom,gdsc";
1073 reg = <0xad07004 0x4>;
1074 regulator-name = "bps_gdsc";
1075 clock-names = "ahb_clk";
1076 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1077 parent-supply = <&VDD_MMCX_LEVEL>;
1078 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1079 qcom,support-hw-trigger;
1080 };
1081
1082 ife_0_gdsc: qcom,gdsc@ad0a004 {
1083 compatible = "qcom,gdsc";
1084 reg = <0xad0a004 0x4>;
1085 regulator-name = "ife_0_gdsc";
1086 clock-names = "ahb_clk";
1087 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1088 parent-supply = <&VDD_MMCX_LEVEL>;
1089 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1090 };
1091
1092 ife_1_gdsc: qcom,gdsc@ad0b004 {
1093 compatible = "qcom,gdsc";
1094 reg = <0xad0b004 0x4>;
1095 regulator-name = "ife_1_gdsc";
1096 clock-names = "ahb_clk";
1097 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1098 parent-supply = <&VDD_MMCX_LEVEL>;
1099 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1100 };
1101
1102 ipe_0_gdsc: qcom,gdsc@ad08004 {
1103 compatible = "qcom,gdsc";
1104 reg = <0xad08004 0x4>;
1105 regulator-name = "ipe_0_gdsc";
1106 clock-names = "ahb_clk";
1107 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1108 parent-supply = <&VDD_MMCX_LEVEL>;
1109 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1110 qcom,support-hw-trigger;
1111 };
1112
1113 sbi_gdsc: qcom,gdsc@ad09004 {
1114 compatible = "qcom,gdsc";
1115 reg = <0xad09004 0x4>;
1116 regulator-name = "sbi_gdsc";
1117 clock-names = "ahb_clk";
1118 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1119 parent-supply = <&VDD_MMCX_LEVEL>;
1120 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1121 };
1122
1123 titan_top_gdsc: qcom,gdsc@ad0c144 {
1124 compatible = "qcom,gdsc";
1125 reg = <0xad0c144 0x4>;
1126 regulator-name = "titan_top_gdsc";
1127 clock-names = "ahb_clk";
1128 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
1129 parent-supply = <&VDD_MMCX_LEVEL>;
1130 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1131 };
1132
1133 /* DISP_CC GDSC */
1134 mdss_core_gdsc: qcom,gdsc@af03000 {
1135 compatible = "qcom,gdsc";
1136 reg = <0xaf03000 0x4>;
1137 regulator-name = "mdss_core_gdsc";
1138 clock-names = "ahb_clk";
1139 clocks = <&clock_gcc GCC_DISP_AHB_CLK>;
1140 parent-supply = <&VDD_MMCX_LEVEL>;
1141 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1142 qcom,support-hw-trigger;
1143 };
1144
1145 /* GPU_CC GDSCs */
1146 gpu_cx_hw_ctrl: syscon@3d91540 {
1147 compatible = "syscon";
1148 reg = <0x3d91540 0x4>;
1149 };
1150
1151 gpu_cx_gdsc: qcom,gdsc@3d9106c {
1152 compatible = "qcom,gdsc";
1153 reg = <0x3d9106c 0x4>;
1154 regulator-name = "gpu_cx_gdsc";
1155 hw-ctrl-addr = <&gpu_cx_hw_ctrl>;
1156 parent-supply = <&VDD_CX_LEVEL>;
1157 qcom,no-status-check-on-disable;
1158 qcom,clk-dis-wait-val = <8>;
1159 qcom,gds-timeout = <500>;
1160 };
1161
David Collinsd7eea142018-10-08 17:32:48 -07001162 gpu_gx_domain_addr: syscon@3d91508 {
David Collinsa86302c2018-09-17 14:16:50 -07001163 compatible = "syscon";
1164 reg = <0x3d91508 0x4>;
1165 };
1166
David Collinsd7eea142018-10-08 17:32:48 -07001167 gpu_gx_sw_reset: syscon@3d91008 {
David Collinsa86302c2018-09-17 14:16:50 -07001168 compatible = "syscon";
1169 reg = <0x3d91008 0x4>;
1170 };
1171
1172 gpu_gx_gdsc: qcom,gdsc@3d9100c {
1173 compatible = "qcom,gdsc";
1174 reg = <0x3d9100c 0x4>;
1175 regulator-name = "gpu_gx_gdsc";
1176 domain-addr = <&gpu_gx_domain_addr>;
1177 sw-reset = <&gpu_gx_sw_reset>;
1178 parent-supply = <&VDD_GFX_LEVEL>;
1179 vdd_parent-supply = <&VDD_GFX_LEVEL>;
1180 qcom,reset-aon-logic;
1181 };
1182
1183 /* NPU GDSC */
1184 npu_core_gdsc: qcom,gdsc@9981004 {
1185 compatible = "qcom,gdsc";
1186 reg = <0x9981004 0x4>;
1187 regulator-name = "npu_core_gdsc";
1188 clock-names = "ahb_clk";
1189 clocks = <&clock_gcc GCC_NPU_CFG_AHB_CLK>;
1190 };
1191
Jishnu Prakash793bf5b2018-11-09 16:28:55 +05301192 qcom,sps {
1193 compatible = "qcom,msm-sps-4k";
1194 qcom,pipe-attr-ee;
1195 };
1196
David Collinsa86302c2018-09-17 14:16:50 -07001197 /* VIDEO_CC GDSCs */
1198 mvs0_gdsc: qcom,gdsc@abf0d18 {
1199 compatible = "qcom,gdsc";
1200 reg = <0xabf0d18 0x4>;
1201 regulator-name = "mvs0_gdsc";
1202 clock-names = "ahb_clk";
1203 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1204 parent-supply = <&VDD_MMCX_LEVEL>;
1205 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1206 };
1207
1208 mvs0c_gdsc: qcom,gdsc@abf0bf8 {
1209 compatible = "qcom,gdsc";
1210 reg = <0xabf0bf8 0x4>;
1211 regulator-name = "mvs0c_gdsc";
1212 clock-names = "ahb_clk";
1213 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1214 parent-supply = <&VDD_MMCX_LEVEL>;
1215 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1216 };
1217
1218 mvs1_gdsc: qcom,gdsc@abf0d98 {
1219 compatible = "qcom,gdsc";
1220 reg = <0xabf0d98 0x4>;
1221 regulator-name = "mvs1_gdsc";
1222 clock-names = "ahb_clk";
1223 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1224 parent-supply = <&VDD_MMCX_LEVEL>;
1225 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1226 };
1227
1228 mvs1c_gdsc: qcom,gdsc@abf0c98 {
1229 compatible = "qcom,gdsc";
1230 reg = <0xabf0c98 0x4>;
1231 regulator-name = "mvs1c_gdsc";
1232 clock-names = "ahb_clk";
1233 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1234 parent-supply = <&VDD_MMCX_LEVEL>;
1235 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1236 };
1237
David Collinsc2c02f62018-11-05 16:23:24 -08001238 spmi_bus: qcom,spmi@c440000 {
1239 compatible = "qcom,spmi-pmic-arb";
1240 reg = <0xc440000 0x1100>,
1241 <0xc600000 0x2000000>,
1242 <0xe600000 0x100000>,
1243 <0xe700000 0xa0000>,
1244 <0xc40a000 0x26000>;
1245 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1246 interrupt-names = "periph_irq";
1247 interrupts = <GIC_SPI 481 IRQ_TYPE_LEVEL_HIGH>;
1248 qcom,ee = <0>;
1249 qcom,channel = <0>;
1250 #address-cells = <2>;
1251 #size-cells = <0>;
1252 interrupt-controller;
1253 #interrupt-cells = <4>;
1254 cell-index = <0>;
1255 };
1256
Can Guob04bed52018-07-10 19:27:32 -07001257 ufsphy_mem: ufsphy_mem@1d87000 {
1258 reg = <0x1d87000 0xe00>; /* PHY regs */
1259 reg-names = "phy_mem";
1260 #phy-cells = <0>;
1261
1262 lanes-per-direction = <2>;
1263
1264 clock-names = "ref_clk_src",
1265 "ref_clk",
1266 "ref_aux_clk";
1267 clocks = <&clock_rpmh RPMH_CXO_CLK>,
Vivek Aknurwarec5c93d2018-08-28 14:52:33 -07001268 <&clock_gcc GCC_UFS_1X_CLKREF_EN>,
Can Guob04bed52018-07-10 19:27:32 -07001269 <&clock_gcc GCC_UFS_PHY_PHY_AUX_CLK>;
1270
1271 status = "disabled";
1272 };
1273
1274 ufshc_mem: ufshc@1d84000 {
1275 compatible = "qcom,ufshc";
1276 reg = <0x1d84000 0x3000>;
1277 interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
1278 phys = <&ufsphy_mem>;
1279 phy-names = "ufsphy";
1280
1281 lanes-per-direction = <2>;
1282 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1283
1284 clock-names =
1285 "core_clk",
1286 "bus_aggr_clk",
1287 "iface_clk",
1288 "core_clk_unipro",
1289 "core_clk_ice",
1290 "ref_clk",
1291 "tx_lane0_sync_clk",
1292 "rx_lane0_sync_clk",
1293 "rx_lane1_sync_clk";
1294 clocks =
1295 <&clock_gcc GCC_UFS_PHY_AXI_CLK>,
1296 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
1297 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1298 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>,
1299 <&clock_gcc GCC_UFS_PHY_ICE_CORE_CLK>,
1300 <&clock_rpmh RPMH_CXO_CLK>,
1301 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1302 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>,
1303 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>;
1304 freq-table-hz =
1305 <37500000 300000000>,
1306 <0 0>,
1307 <0 0>,
1308 <37500000 300000000>,
1309 <75000000 300000000>,
1310 <0 0>,
1311 <0 0>,
1312 <0 0>,
1313 <0 0>;
1314
1315 qcom,msm-bus,name = "ufshc_mem";
1316 qcom,msm-bus,num-cases = <22>;
1317 qcom,msm-bus,num-paths = <2>;
1318 qcom,msm-bus,vectors-KBps =
1319 /*
1320 * During HS G3 UFS runs at nominal voltage corner, vote
1321 * higher bandwidth to push other buses in the data path
1322 * to run at nominal to achieve max throughput.
1323 * 4GBps pushes BIMC to run at nominal.
1324 * 200MBps pushes CNOC to run at nominal.
1325 * Vote for half of this bandwidth for HS G3 1-lane.
1326 * For max bandwidth, vote high enough to push the buses
1327 * to run in turbo voltage corner.
1328 */
1329 <123 512 0 0>, <1 757 0 0>, /* No vote */
1330 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1331 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1332 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1333 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1334 <123 512 1844 0>, <1 757 1000 0>, /* PWM G1 L2 */
1335 <123 512 3688 0>, <1 757 1000 0>, /* PWM G2 L2 */
1336 <123 512 7376 0>, <1 757 1000 0>, /* PWM G3 L2 */
1337 <123 512 14752 0>, <1 757 1000 0>, /* PWM G4 L2 */
1338 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1339 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1340 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1341 <123 512 255591 0>, <1 757 1000 0>, /* HS G1 RA L2 */
1342 <123 512 511181 0>, <1 757 1000 0>, /* HS G2 RA L2 */
1343 <123 512 4194304 0>, <1 757 204800 0>, /* HS G3 RA L2 */
1344 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1345 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1346 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1347 <123 512 298189 0>, <1 757 1000 0>, /* HS G1 RB L2 */
1348 <123 512 596378 0>, <1 757 1000 0>, /* HS G2 RB L2 */
1349 /* As UFS working in HS G3 RB L2 mode, aggregated
1350 * bandwidth (AB) should take care of providing
1351 * optimum throughput requested. However, as tested,
1352 * in order to scale up CNOC clock, instantaneous
1353 * bindwidth (IB) needs to be given a proper value too.
1354 */
1355 <123 512 4194304 0>, <1 757 204800 409600>, /* HS G3 RB L2 */
1356 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1357
1358 qcom,bus-vector-names = "MIN",
1359 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1360 "PWM_G1_L2", "PWM_G2_L2", "PWM_G3_L2", "PWM_G4_L2",
1361 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1362 "HS_RA_G1_L2", "HS_RA_G2_L2", "HS_RA_G3_L2",
1363 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1364 "HS_RB_G1_L2", "HS_RB_G2_L2", "HS_RB_G3_L2",
1365 "MAX";
1366
1367 /* PM QoS */
1368 qcom,pm-qos-cpu-groups = <0x0f 0xf0>;
1369 qcom,pm-qos-cpu-group-latency-us = <44 44>;
1370 qcom,pm-qos-default-cpu = <0>;
1371
1372 pinctrl-names = "dev-reset-assert", "dev-reset-deassert";
1373 pinctrl-0 = <&ufs_dev_reset_assert>;
1374 pinctrl-1 = <&ufs_dev_reset_deassert>;
1375
1376 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1377 reset-names = "core_reset";
1378
1379 status = "disabled";
1380 };
1381
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -07001382 ipcc_mproc: qcom,ipcc@408000 {
1383 compatible = "qcom,kona-ipcc";
1384 reg = <0x408000 0x1000>;
1385 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
1386 interrupt-controller;
1387 #interrupt-cells = <3>;
1388 #mbox-cells = <2>;
1389 };
Lina Iyerea91c722018-06-20 14:58:05 -06001390
Raghavendra Rao Ananta5da54b32018-08-09 10:04:50 -07001391 ipcc_self_ping: ipcc-self-ping {
1392 compatible = "qcom,ipcc-self-ping";
1393 interrupts-extended = <&ipcc_mproc IPCC_CLIENT_APSS
1394 IPCC_MPROC_SIGNAL_SMP2P IRQ_TYPE_LEVEL_HIGH>;
1395 mboxes = <&ipcc_mproc IPCC_CLIENT_APSS IPCC_MPROC_SIGNAL_SMP2P>;
1396 };
1397
Maria Neptune5a1428b2018-08-29 13:25:19 -07001398 apps_rsc: rsc@18200000 {
Lina Iyerea91c722018-06-20 14:58:05 -06001399 label = "apps_rsc";
1400 compatible = "qcom,rpmh-rsc";
1401 reg = <0x18200000 0x10000>,
1402 <0x18210000 0x10000>,
1403 <0x18220000 0x10000>;
1404 reg-names = "drv-0", "drv-1", "drv-2";
1405 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
1406 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
1407 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1408 qcom,tcs-offset = <0xd00>;
1409 qcom,drv-id = <2>;
1410 qcom,tcs-config = <ACTIVE_TCS 2>,
1411 <SLEEP_TCS 3>,
1412 <WAKE_TCS 3>,
1413 <CONTROL_TCS 1>;
David Dai07c8d4e2018-10-09 14:22:06 -07001414
1415 msm_bus_apps_rsc {
1416 compatible = "qcom,msm-bus-rsc";
1417 qcom,msm-bus-id = <MSM_BUS_RSC_APPS>;
1418 };
Arjun Bagla76f02ef2018-09-19 10:00:29 -07001419
1420 system_pm {
1421 compatible = "qcom,system-pm";
1422 };
David Daiee6a9d62019-01-10 17:14:04 -08001423
1424 clock_rpmh: qcom,rpmhclk {
1425 compatible = "qcom,kona-rpmh-clk";
1426 #clock-cells = <1>;
1427 };
Lina Iyerea91c722018-06-20 14:58:05 -06001428 };
1429
1430 disp_rsc: rsc@af20000 {
1431 label = "disp_rsc";
1432 compatible = "qcom,rpmh-rsc";
1433 reg = <0xaf20000 0x10000>;
1434 reg-names = "drv-0";
1435 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
1436 qcom,tcs-offset = <0x1c00>;
1437 qcom,drv-id = <0>;
1438 qcom,tcs-config = <ACTIVE_TCS 0>,
1439 <SLEEP_TCS 1>,
1440 <WAKE_TCS 1>,
1441 <CONTROL_TCS 0>;
1442 status = "disabled";
Dhaval Patelf92536a2018-10-24 13:19:15 -07001443
1444 sde_rsc_rpmh {
1445 compatible = "qcom,sde-rsc-rpmh";
1446 cell-index = <0>;
1447 status = "disabled";
1448 };
Lina Iyerea91c722018-06-20 14:58:05 -06001449 };
Chris Lew86f6bde2018-09-06 16:40:39 -07001450
1451 tcsr_mutex_block: syscon@1f40000 {
1452 compatible = "syscon";
1453 reg = <0x1f40000 0x20000>;
1454 };
1455
1456 tcsr_mutex: hwlock {
1457 compatible = "qcom,tcsr-mutex";
1458 syscon = <&tcsr_mutex_block 0 0x1000>;
1459 #hwlock-cells = <1>;
1460 };
1461
1462 smem: qcom,smem {
1463 compatible = "qcom,smem";
1464 memory-region = <&smem_mem>;
1465 hwlocks = <&tcsr_mutex 3>;
1466 };
Venkata Narendra Kumar Gutta1781e562018-10-09 14:44:10 -07001467
1468 kryo-erp {
1469 compatible = "arm,arm64-kryo-cpu-erp";
1470 interrupts = <GIC_PPI 0 IRQ_TYPE_LEVEL_HIGH>,
1471 <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
1472 interrupt-names = "l1-l2-faultirq",
1473 "l3-scu-faultirq";
1474 };
Chris Lew3859b1b72018-09-25 16:54:52 -07001475
Chris Lew3b1f0982018-10-05 17:28:21 -07001476 sp_scsr: mailbox@188501c {
1477 compatible = "qcom,kona-spcs-global";
1478 reg = <0x188501c 0x4>;
1479
1480 #mbox-cells = <1>;
1481 };
1482
1483 sp_scsr_block: syscon@1880000 {
1484 compatible = "syscon";
1485 reg = <0x1880000 0x10000>;
1486 };
1487
1488 intsp: qcom,qsee_irq {
1489 compatible = "qcom,kona-qsee-irq";
1490
1491 syscon = <&sp_scsr_block>;
1492 interrupts = <0 348 IRQ_TYPE_LEVEL_HIGH>,
1493 <0 349 IRQ_TYPE_LEVEL_HIGH>;
1494
1495 interrupt-names = "sp_ipc0",
1496 "sp_ipc1";
1497
1498 interrupt-controller;
1499 #interrupt-cells = <3>;
1500 };
1501
1502 qcom,qsee_irq_bridge {
1503 compatible = "qcom,qsee-ipc-irq-bridge";
1504
1505 qcom,qsee-ipc-irq-spss {
1506 qcom,dev-name = "qsee_ipc_irq_spss";
1507 label = "spss";
1508 interrupt-parent = <&intsp>;
1509 interrupts = <1 0 IRQ_TYPE_LEVEL_HIGH>;
1510 };
1511 };
1512
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02001513 qcom,msm_gsi {
1514 compatible = "qcom,msm_gsi";
1515 };
1516
1517 qcom,rmnet-ipa {
1518 compatible = "qcom,rmnet-ipa3";
1519 qcom,rmnet-ipa-ssr;
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02001520 qcom,ipa-advertise-sg-support;
1521 qcom,ipa-napi-enable;
1522 };
1523
1524 qcom,ipa_fws {
1525 compatible = "qcom,pil-tz-generic";
1526 qcom,pas-id = <0xf>;
1527 qcom,firmware-name = "ipa_fws";
1528 qcom,pil-force-shutdown;
1529 memory-region = <&pil_ipa_fw_mem>;
1530 };
1531
1532 ipa_hw: qcom,ipa@1e00000 {
1533 compatible = "qcom,ipa";
1534 reg =
1535 <0x1e00000 0x84000>,
1536 <0x1e04000 0x23000>;
1537 reg-names = "ipa-base", "gsi-base";
1538 interrupts =
1539 <0 311 IRQ_TYPE_LEVEL_HIGH>,
1540 <0 432 IRQ_TYPE_LEVEL_HIGH>;
1541 interrupt-names = "ipa-irq", "gsi-irq";
1542 qcom,ipa-hw-ver = <17>; /* IPA core version = IPAv4.5 */
1543 qcom,ipa-hw-mode = <0>;
Ghanim Fodif8dcdbf2018-11-04 17:58:22 +02001544 qcom,platform-type = <2>; /* APQ platform */
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02001545 qcom,ee = <0>;
1546 qcom,use-ipa-tethering-bridge;
1547 qcom,mhi-event-ring-id-limits = <9 11>; /* start and end */
1548 qcom,modem-cfg-emb-pipe-flt;
1549 qcom,use-ipa-pm;
1550 qcom,bandwidth-vote-for-ipa;
1551 qcom,use-64-bit-dma-mask;
1552 qcom,msm-bus,name = "ipa";
1553 qcom,msm-bus,num-cases = <5>;
1554 qcom,msm-bus,num-paths = <4>;
1555 qcom,msm-bus,vectors-KBps =
1556 /* No vote */
1557 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 0 0>,
1558 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 0 0>,
1559 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 0 0>,
1560 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 0>,
1561
1562 /* SVS2 */
1563 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 80000 600000>,
1564 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 80000 350000>,
1565 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 40000 40000>,
1566 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 125>,
1567
1568 /* SVS */
1569 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 80000 640000>,
1570 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 80000 640000>,
1571 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 80000 80000>,
1572 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 250>,
1573
1574 /* NOMINAL */
1575 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 206000 960000>,
1576 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 206000 960000>,
1577 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 206000 160000>,
1578 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 500>,
1579
1580 /* TURBO */
1581 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 206000 3600000>,
1582 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 206000 3600000>,
1583 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 206000 300000>,
1584 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 600>;
1585
1586 qcom,bus-vector-names = "MIN", "SVS2", "SVS", "NOMINAL",
1587 "TURBO";
1588 qcom,throughput-threshold = <310 600 1000>;
1589 qcom,scaling-exceptions = <>;
1590 };
1591
1592 ipa_smmu_ap: ipa_smmu_ap {
1593 compatible = "qcom,ipa-smmu-ap-cb";
1594 iommus = <&apps_smmu 0x5C0 0x0>;
1595 qcom,iommu-dma = "bypass";
1596 };
1597
1598 ipa_smmu_wlan: ipa_smmu_wlan {
1599 compatible = "qcom,ipa-smmu-wlan-cb";
1600 iommus = <&apps_smmu 0x5C1 0x0>;
1601 qcom,iommu-dma = "bypass";
1602 };
1603
1604 ipa_smmu_uc: ipa_smmu_uc {
1605 compatible = "qcom,ipa-smmu-uc-cb";
1606 iommus = <&apps_smmu 0x5C2 0x0>;
1607 qcom,iommu-dma = "bypass";
1608 };
1609
Chris Lew3859b1b72018-09-25 16:54:52 -07001610 qcom,glink {
1611 compatible = "qcom,glink";
1612 #address-cells = <1>;
1613 #size-cells = <1>;
1614 ranges;
1615
Chris Lewb2da0482018-11-16 14:50:31 -08001616 glink_npu: npu {
1617 qcom,remote-pid = <10>;
1618 transport = "smem";
1619 mboxes = <&ipcc_mproc IPCC_CLIENT_NPU
1620 IPCC_MPROC_SIGNAL_GLINK_QMP>;
1621 mbox-names = "npu_smem";
1622 interrupt-parent = <&ipcc_mproc>;
1623 interrupts = <IPCC_CLIENT_NPU
1624 IPCC_MPROC_SIGNAL_GLINK_QMP
1625 IRQ_TYPE_EDGE_RISING>;
1626
1627 label = "npu";
1628 qcom,glink-label = "npu";
1629
1630 qcom,npu_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08001631 qcom,net-id = <1>;
Chris Lewb2da0482018-11-16 14:50:31 -08001632 qcom,glink-channels = "IPCRTR";
1633 qcom,intents = <0x800 5
1634 0x2000 3
1635 0x4400 2>;
1636 };
1637
1638 qcom,npu_glink_ssr {
1639 qcom,glink-channels = "glink_ssr";
1640 qcom,notify-edges = <&glink_cdsp>;
1641 };
1642 };
1643
Chris Lew3859b1b72018-09-25 16:54:52 -07001644 glink_adsp: adsp {
1645 qcom,remote-pid = <2>;
1646 transport = "smem";
1647 mboxes = <&ipcc_mproc IPCC_CLIENT_LPASS
1648 IPCC_MPROC_SIGNAL_GLINK_QMP>;
1649 mbox-names = "adsp_smem";
1650 interrupt-parent = <&ipcc_mproc>;
1651 interrupts = <IPCC_CLIENT_LPASS
1652 IPCC_MPROC_SIGNAL_GLINK_QMP
1653 IRQ_TYPE_EDGE_RISING>;
1654
1655 label = "adsp";
1656 qcom,glink-label = "lpass";
1657
1658 qcom,adsp_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08001659 qcom,net-id = <2>;
Chris Lew3859b1b72018-09-25 16:54:52 -07001660 qcom,glink-channels = "IPCRTR";
1661 qcom,intents = <0x800 5
1662 0x2000 3
1663 0x4400 2>;
1664 };
1665
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301666 qcom,msm_fastrpc_rpmsg {
1667 compatible = "qcom,msm-fastrpc-rpmsg";
1668 qcom,glink-channels = "fastrpcglink-apps-dsp";
1669 qcom,intents = <0x64 64>;
1670 };
1671
Chris Lew3859b1b72018-09-25 16:54:52 -07001672 qcom,adsp_glink_ssr {
1673 qcom,glink-channels = "glink_ssr";
1674 qcom,notify-edges = <&glink_slpi>,
1675 <&glink_cdsp>;
1676 };
1677 };
1678
1679 glink_slpi: dsps {
1680 qcom,remote-pid = <3>;
1681 transport = "smem";
1682 mboxes = <&ipcc_mproc IPCC_CLIENT_SLPI
1683 IPCC_MPROC_SIGNAL_GLINK_QMP>;
1684 mbox-names = "dsps_smem";
1685 interrupt-parent = <&ipcc_mproc>;
1686 interrupts = <IPCC_CLIENT_SLPI
1687 IPCC_MPROC_SIGNAL_GLINK_QMP
1688 IRQ_TYPE_EDGE_RISING>;
1689
1690 label = "slpi";
1691 qcom,glink-label = "dsps";
1692
1693 qcom,slpi_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08001694 qcom,net-id = <2>;
Chris Lew3859b1b72018-09-25 16:54:52 -07001695 qcom,glink-channels = "IPCRTR";
1696 qcom,intents = <0x800 5
1697 0x2000 3
1698 0x4400 2>;
1699 };
1700
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301701 qcom,msm_fastrpc_rpmsg {
1702 compatible = "qcom,msm-fastrpc-rpmsg";
1703 qcom,glink-channels = "fastrpcglink-apps-dsp";
1704 qcom,intents = <0x64 64>;
1705 };
1706
Chris Lew3859b1b72018-09-25 16:54:52 -07001707 qcom,slpi_glink_ssr {
1708 qcom,glink-channels = "glink_ssr";
1709 qcom,notify-edges = <&glink_adsp>,
1710 <&glink_cdsp>;
1711 };
1712 };
1713
1714 glink_cdsp: cdsp {
1715 qcom,remote-pid = <5>;
1716 transport = "smem";
1717 mboxes = <&ipcc_mproc IPCC_CLIENT_CDSP
1718 IPCC_MPROC_SIGNAL_GLINK_QMP>;
1719 mbox-names = "dsps_smem";
1720 interrupt-parent = <&ipcc_mproc>;
1721 interrupts = <IPCC_CLIENT_CDSP
1722 IPCC_MPROC_SIGNAL_GLINK_QMP
1723 IRQ_TYPE_EDGE_RISING>;
1724
1725 label = "cdsp";
1726 qcom,glink-label = "cdsp";
1727
1728 qcom,cdsp_qrtr {
Chris Lewc3861122018-12-14 18:26:01 -08001729 qcom,net-id = <1>;
Chris Lew3859b1b72018-09-25 16:54:52 -07001730 qcom,glink-channels = "IPCRTR";
1731 qcom,intents = <0x800 5
1732 0x2000 3
1733 0x4400 2>;
1734 };
1735
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301736 qcom,msm_fastrpc_rpmsg {
1737 compatible = "qcom,msm-fastrpc-rpmsg";
1738 qcom,glink-channels = "fastrpcglink-apps-dsp";
1739 qcom,intents = <0x64 64>;
1740 };
1741
Chris Lew3859b1b72018-09-25 16:54:52 -07001742 qcom,cdsp_glink_ssr {
1743 qcom,glink-channels = "glink_ssr";
1744 qcom,notify-edges = <&glink_adsp>,
Chris Lewb2da0482018-11-16 14:50:31 -08001745 <&glink_slpi>,
1746 <&glink_npu>;
Chris Lew3859b1b72018-09-25 16:54:52 -07001747 };
1748 };
Chris Lew3b1f0982018-10-05 17:28:21 -07001749
1750 glink_spss: spss {
1751 qcom,remote-pid = <8>;
1752 transport = "spss";
1753 mboxes = <&sp_scsr 0>;
1754 mbox-names = "spss_spss";
1755 interrupt-parent = <&intsp>;
1756 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>;
1757
1758 reg = <0x1885008 0x8>,
1759 <0x1885010 0x4>;
1760 reg-names = "qcom,spss-addr",
1761 "qcom,spss-size";
1762
1763 label = "spss";
1764 qcom,glink-label = "spss";
1765 };
Chris Lew3859b1b72018-09-25 16:54:52 -07001766 };
Bruce Levy5122a632018-09-25 15:51:37 -07001767
Chris Lew3cbe4032018-11-30 18:57:32 -08001768 qmp_aop: qcom,qmp-aop@c300000 {
1769 compatible = "qcom,qmp-mbox";
1770 mboxes = <&ipcc_mproc IPCC_CLIENT_AOP
1771 IPCC_MPROC_SIGNAL_GLINK_QMP>;
1772 mbox-names = "aop_qmp";
1773 interrupt-parent = <&ipcc_mproc>;
1774 interrupts = <IPCC_CLIENT_AOP
1775 IPCC_MPROC_SIGNAL_GLINK_QMP
1776 IRQ_TYPE_EDGE_RISING>;
1777 reg = <0xc300000 0x1000>;
1778 reg-names = "msgram";
1779
1780 label = "aop";
1781 qcom,early-boot;
1782 priority = <0>;
1783 mbox-desc-offset = <0x0>;
1784 #mbox-cells = <1>;
1785 };
1786
Bruce Levy5122a632018-09-25 15:51:37 -07001787 qcom,lpass@17300000 {
1788 compatible = "qcom,pil-tz-generic";
1789 reg = <0x17300000 0x00100>;
1790
1791 vdd_cx-supply = <&VDD_CX_LEVEL>;
1792 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
1793 qcom,proxy-reg-names = "vdd_cx";
1794
1795 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1796 clock-names = "xo";
1797 qcom,proxy-clock-names = "xo";
1798
1799 qcom,pas-id = <1>;
1800 qcom,proxy-timeout-ms = <10000>;
1801 qcom,smem-id = <423>;
1802 qcom,sysmon-id = <1>;
1803 qcom,ssctl-instance-id = <0x14>;
1804 qcom,firmware-name = "adsp";
1805 memory-region = <&pil_adsp_mem>;
1806 qcom,complete-ramdump;
1807
1808 /* Inputs from lpass */
1809 interrupts-extended = <&pdc 96 IRQ_TYPE_LEVEL_HIGH>,
1810 <&adsp_smp2p_in 0 0>,
1811 <&adsp_smp2p_in 2 0>,
1812 <&adsp_smp2p_in 1 0>,
1813 <&adsp_smp2p_in 3 0>;
1814
1815 interrupt-names = "qcom,wdog",
1816 "qcom,err-fatal",
1817 "qcom,proxy-unvote",
1818 "qcom,err-ready",
1819 "qcom,stop-ack";
1820
1821 /* Outputs to lpass */
1822 qcom,smem-states = <&adsp_smp2p_out 0>;
1823 qcom,smem-state-names = "qcom,force-stop";
1824
1825 mbox-names = "adsp-pil";
1826 };
1827
1828 qcom,turing@8300000 {
1829 compatible = "qcom,pil-tz-generic";
1830 reg = <0x8300000 0x100000>;
1831
1832 vdd_cx-supply = <&VDD_CX_LEVEL>;
1833 qcom,proxy-reg-names = "vdd_cx";
1834 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1835
1836 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1837 clock-names = "xo";
1838 qcom,proxy-clock-names = "xo";
1839
1840 qcom,pas-id = <18>;
1841 qcom,proxy-timeout-ms = <10000>;
1842 qcom,smem-id = <601>;
1843 qcom,sysmon-id = <7>;
1844 qcom,ssctl-instance-id = <0x17>;
1845 qcom,firmware-name = "cdsp";
1846 memory-region = <&pil_cdsp_mem>;
1847 qcom,complete-ramdump;
1848
1849 qcom,msm-bus,name = "pil-cdsp";
1850 qcom,msm-bus,num-cases = <2>;
1851 qcom,msm-bus,num-paths = <1>;
1852 qcom,msm-bus,vectors-KBps =
1853 <154 10070 0 0>,
1854 <154 10070 0 1>;
1855
1856 /* Inputs from turing */
Bruce Levy821133c2018-11-29 11:34:45 -08001857 interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_LEVEL_HIGH>,
Bruce Levy5122a632018-09-25 15:51:37 -07001858 <&cdsp_smp2p_in 0 0>,
1859 <&cdsp_smp2p_in 2 0>,
1860 <&cdsp_smp2p_in 1 0>,
1861 <&cdsp_smp2p_in 3 0>;
1862
1863 interrupt-names = "qcom,wdog",
1864 "qcom,err-fatal",
1865 "qcom,proxy-unvote",
1866 "qcom,err-ready",
1867 "qcom,stop-ack";
1868
1869 /* Outputs to turing */
1870 qcom,smem-states = <&cdsp_smp2p_out 0>;
1871 qcom,smem-state-names = "qcom,force-stop";
1872
1873 mbox-names = "cdsp-pil";
1874 };
Akshay Chandrashekhar Kalghatgif7905ad2018-11-08 16:30:42 -08001875
1876 qcom,venus@aab0000 {
1877 compatible = "qcom,pil-tz-generic";
1878 reg = <0xaab0000 0x2000>;
Chinmay Sawarkar2cfeca02018-11-15 17:59:36 -08001879
1880 vdd-supply = <&mvs0c_gdsc>;
1881 qcom,proxy-reg-names = "vdd";
1882 qcom,complete-ramdump;
1883
1884 clocks = <&clock_videocc VIDEO_CC_XO_CLK>,
1885 <&clock_videocc VIDEO_CC_MVS0C_CLK>,
1886 <&clock_videocc VIDEO_CC_AHB_CLK>;
1887 clock-names = "xo", "core", "ahb";
1888 qcom,proxy-clock-names = "xo", "core", "ahb";
1889
Akshay Chandrashekhar Kalghatgif7905ad2018-11-08 16:30:42 -08001890 qcom,core-freq = <200000000>;
1891 qcom,ahb-freq = <200000000>;
1892
1893 qcom,pas-id = <9>;
1894 qcom,msm-bus,name = "pil-venus";
1895 qcom,msm-bus,num-cases = <2>;
1896 qcom,msm-bus,num-paths = <1>;
1897 qcom,msm-bus,vectors-KBps =
1898 <63 512 0 0>,
1899 <63 512 0 304000>;
1900 qcom,proxy-timeout-ms = <100>;
1901 qcom,firmware-name = "venus";
1902 memory-region = <&pil_video_mem>;
1903 };
Tharun Kumar Merugub8d79dd2018-11-02 23:07:31 +05301904
Amir Samuelovf52db412019-01-08 09:30:58 +02001905 /* PIL spss node - for loading Secure Processor */
1906 qcom,spss@1880000 {
1907 compatible = "qcom,pil-tz-generic";
1908 reg = <0x188101c 0x4>,
1909 <0x1881024 0x4>,
1910 <0x1881028 0x4>,
1911 <0x188103c 0x4>,
1912 <0x1882014 0x4>;
1913 reg-names = "sp2soc_irq_status", "sp2soc_irq_clr",
1914 "sp2soc_irq_mask", "rmb_err", "rmb_err_spare2";
1915 interrupts = <0 352 1>;
1916
1917 vdd_cx-supply = <&VDD_CX_LEVEL>;
1918 qcom,proxy-reg-names = "vdd_cx";
1919 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1920 vdd_mx-supply = <&VDD_MX_LEVEL>;
1921 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1922
1923 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1924 clock-names = "xo";
1925 qcom,proxy-clock-names = "xo";
1926 qcom,pil-generic-irq-handler;
1927 status = "ok";
1928
1929 qcom,complete-ramdump;
1930
1931 qcom,pas-id = <14>;
1932 qcom,proxy-timeout-ms = <10000>;
1933 qcom,firmware-name = "spss";
1934 memory-region = <&pil_spss_mem>;
1935 qcom,spss-scsr-bits = <24 25>;
1936
1937 mbox-names = "spss-pil";
1938 };
1939
George Shen9c54c662018-12-26 15:50:11 -08001940 qcom,cvpss@abb0000 {
1941 compatible = "qcom,pil-tz-generic";
1942 reg = <0xabb0000 0x2000>;
1943 status = "ok";
1944 qcom,pas-id = <25>;
1945 qcom,firmware-name = "cvpss";
1946
1947 memory-region = <&pil_cvp_mem>;
1948 };
1949
Jilai Wangd20a5292018-12-04 11:05:10 -05001950 qcom,npu@9800000 {
1951 compatible = "qcom,pil-tz-generic";
1952 reg = <0x9800000 0x800000>;
1953
1954 status = "ok";
1955 qcom,pas-id = <23>;
1956 qcom,firmware-name = "npu";
1957 memory-region = <&pil_npu_mem>;
1958 };
1959
Tharun Kumar Merugub8d79dd2018-11-02 23:07:31 +05301960 qcom,msm-cdsp-loader {
1961 compatible = "qcom,cdsp-loader";
1962 qcom,proc-img-to-load = "cdsp";
1963 };
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301964
1965 qcom,msm-adsprpc-mem {
1966 compatible = "qcom,msm-adsprpc-mem-region";
1967 memory-region = <&adsp_mem>;
1968 };
1969
1970 msm_fastrpc: qcom,msm_fastrpc {
1971 compatible = "qcom,msm-fastrpc-compute";
1972 qcom,fastrpc-adsp-audio-pdr;
1973 qcom,rpc-latency-us = <235>;
1974
1975 qcom,msm_fastrpc_compute_cb1 {
1976 compatible = "qcom,msm-fastrpc-compute-cb";
1977 label = "cdsprpc-smd";
1978 iommus = <&apps_smmu 0x1001 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301979 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1980 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301981 dma-coherent;
1982 };
1983
1984 qcom,msm_fastrpc_compute_cb2 {
1985 compatible = "qcom,msm-fastrpc-compute-cb";
1986 label = "cdsprpc-smd";
1987 iommus = <&apps_smmu 0x1002 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301988 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1989 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301990 dma-coherent;
1991 };
1992
1993 qcom,msm_fastrpc_compute_cb3 {
1994 compatible = "qcom,msm-fastrpc-compute-cb";
1995 label = "cdsprpc-smd";
1996 iommus = <&apps_smmu 0x1003 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301997 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1998 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301999 dma-coherent;
2000 };
2001
2002 qcom,msm_fastrpc_compute_cb4 {
2003 compatible = "qcom,msm-fastrpc-compute-cb";
2004 label = "cdsprpc-smd";
2005 iommus = <&apps_smmu 0x1004 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302006 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2007 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302008 dma-coherent;
2009 };
2010
2011 qcom,msm_fastrpc_compute_cb5 {
2012 compatible = "qcom,msm-fastrpc-compute-cb";
2013 label = "cdsprpc-smd";
2014 iommus = <&apps_smmu 0x1005 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302015 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2016 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302017 dma-coherent;
2018 };
2019
2020 qcom,msm_fastrpc_compute_cb6 {
2021 compatible = "qcom,msm-fastrpc-compute-cb";
2022 label = "cdsprpc-smd";
2023 iommus = <&apps_smmu 0x1006 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302024 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2025 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302026 dma-coherent;
2027 };
2028
2029 qcom,msm_fastrpc_compute_cb7 {
2030 compatible = "qcom,msm-fastrpc-compute-cb";
2031 label = "cdsprpc-smd";
2032 iommus = <&apps_smmu 0x1007 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302033 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2034 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302035 dma-coherent;
2036 };
2037
2038 qcom,msm_fastrpc_compute_cb8 {
2039 compatible = "qcom,msm-fastrpc-compute-cb";
2040 label = "cdsprpc-smd";
2041 iommus = <&apps_smmu 0x1008 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302042 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2043 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302044 dma-coherent;
2045 };
2046
2047 qcom,msm_fastrpc_compute_cb9 {
2048 compatible = "qcom,msm-fastrpc-compute-cb";
2049 label = "cdsprpc-smd";
2050 qcom,secure-context-bank;
2051 iommus = <&apps_smmu 0x1009 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302052 dma-ranges = <0x60000000 0x60000000 0x78000000>;
2053 qcom,iommu-faults = "stall-disable";
2054 qcom,iommu-vmid = <0xA>; /* VMID_CP_PIXEL */
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302055 dma-coherent;
2056 };
2057
2058 qcom,msm_fastrpc_compute_cb10 {
2059 compatible = "qcom,msm-fastrpc-compute-cb";
2060 label = "adsprpc-smd";
2061 iommus = <&apps_smmu 0x1803 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302062 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2063 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302064 dma-coherent;
2065 };
2066
2067 qcom,msm_fastrpc_compute_cb11 {
2068 compatible = "qcom,msm-fastrpc-compute-cb";
2069 label = "adsprpc-smd";
2070 iommus = <&apps_smmu 0x1804 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302071 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2072 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302073 dma-coherent;
2074 };
2075
2076 qcom,msm_fastrpc_compute_cb12 {
2077 compatible = "qcom,msm-fastrpc-compute-cb";
2078 label = "adsprpc-smd";
2079 iommus = <&apps_smmu 0x1805 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302080 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2081 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302082 dma-coherent;
2083 };
2084
2085 qcom,msm_fastrpc_compute_cb13 {
2086 compatible = "qcom,msm-fastrpc-compute-cb";
2087 label = "sdsprpc-smd";
2088 iommus = <&apps_smmu 0x0541 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302089 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2090 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302091 dma-coherent;
2092 };
2093
2094 qcom,msm_fastrpc_compute_cb14 {
2095 compatible = "qcom,msm-fastrpc-compute-cb";
2096 label = "sdsprpc-smd";
2097 iommus = <&apps_smmu 0x0542 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302098 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2099 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302100 dma-coherent;
2101 };
2102
2103 qcom,msm_fastrpc_compute_cb15 {
2104 compatible = "qcom,msm-fastrpc-compute-cb";
2105 label = "sdsprpc-smd";
2106 iommus = <&apps_smmu 0x0543 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05302107 dma-ranges = <0x80000000 0x80000000 0x78000000>;
2108 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05302109 shared-cb = <4>;
2110 dma-coherent;
2111 };
2112 };
Shaikh Shadulbfdfdda2018-11-14 15:36:21 +05302113
Tingwei Zhangd9b535f2018-12-03 19:14:06 -08002114 mem_dump {
2115 compatible = "qcom,mem-dump";
2116 memory-region = <&dump_mem>;
2117
2118 rpmh {
2119 qcom,dump-size = <0x2000000>;
2120 qcom,dump-id = <0xec>;
2121 };
2122
2123 rpm_sw {
2124 qcom,dump-size = <0x28000>;
2125 qcom,dump-id = <0xea>;
2126 };
2127
2128 pmic {
2129 qcom,dump-size = <0x80000>;
2130 qcom,dump-id = <0xe4>;
2131 };
2132
2133 fcm {
2134 qcom,dump-size = <0x8400>;
2135 qcom,dump-id = <0xee>;
2136 };
2137
2138 etf_swao {
2139 qcom,dump-size = <0x10000>;
2140 qcom,dump-id = <0xf1>;
2141 };
2142
2143 etr_reg {
2144 qcom,dump-size = <0x1000>;
2145 qcom,dump-id = <0x100>;
2146 };
2147
2148 etfswao_reg {
2149 qcom,dump-size = <0x1000>;
2150 qcom,dump-id = <0x102>;
2151 };
2152
2153 misc_data {
2154 qcom,dump-size = <0x1000>;
2155 qcom,dump-id = <0xe8>;
2156 };
2157 };
2158
Shaikh Shadulbfdfdda2018-11-14 15:36:21 +05302159 qcom,ssc@5c00000 {
2160 compatible = "qcom,pil-tz-generic";
2161 reg = <0x5c00000 0x4000>;
2162
2163 vdd_cx-supply = <&VDD_CX_LEVEL>;
2164 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
2165 vdd_mx-supply = <&VDD_MX_LEVEL>;
2166 qcom,vdd_mx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
2167
2168 qcom,proxy-reg-names = "vdd_cx", "vdd_mx";
2169 qcom,keep-proxy-regs-on;
2170
2171 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2172 clock-names = "xo";
2173 qcom,proxy-clock-names = "xo";
2174
2175 qcom,pas-id = <12>;
2176 qcom,proxy-timeout-ms = <10000>;
2177 qcom,smem-id = <424>;
2178 qcom,sysmon-id = <3>;
2179 qcom,ssctl-instance-id = <0x16>;
2180 qcom,firmware-name = "slpi";
2181 status = "ok";
2182 memory-region = <&pil_slpi_mem>;
2183 qcom,complete-ramdump;
2184
2185 /* Inputs from ssc */
2186 interrupts-extended = <&pdc 9 IRQ_TYPE_LEVEL_HIGH>,
2187 <&dsps_smp2p_in 0 0>,
2188 <&dsps_smp2p_in 2 0>,
2189 <&dsps_smp2p_in 1 0>,
2190 <&dsps_smp2p_in 3 0>;
2191
2192 interrupt-names = "qcom,wdog",
2193 "qcom,err-fatal",
2194 "qcom,proxy-unvote",
2195 "qcom,err-ready",
2196 "qcom,stop-ack";
2197
2198 /* Outputs to ssc */
2199 qcom,smem-states = <&dsps_smp2p_out 0>;
2200 qcom,smem-state-names = "qcom,force-stop";
2201
2202 mbox-names = "slpi-pil";
2203 };
2204
2205 ssc_sensors: qcom,msm-ssc-sensors {
2206 compatible = "qcom,msm-ssc-sensors";
2207 status = "ok";
2208 qcom,firmware-name = "slpi";
2209 };
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08002210
2211 tsens0: tsens@c222000 {
2212 compatible = "qcom,tsens24xx";
2213 reg = <0xc222000 0x4>,
2214 <0xc263000 0x1ff>;
2215 reg-names = "tsens_srot_physical",
2216 "tsens_tm_physical";
Siddartha Mohanadoss404a89a2019-01-04 15:29:48 -08002217 interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
2218 <GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>;
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08002219 interrupt-names = "tsens-upper-lower", "tsens-critical";
2220 #thermal-sensor-cells = <1>;
2221 };
2222
2223 tsens1: tsens@c223000 {
2224 compatible = "qcom,tsens24xx";
2225 reg = <0xc223000 0x4>,
2226 <0xc265000 0x1ff>;
2227 reg-names = "tsens_srot_physical",
2228 "tsens_tm_physical";
Siddartha Mohanadoss404a89a2019-01-04 15:29:48 -08002229 interrupts = <GIC_SPI 507 IRQ_TYPE_LEVEL_HIGH>,
2230 <GIC_SPI 509 IRQ_TYPE_LEVEL_HIGH>;
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08002231 interrupt-names = "tsens-upper-lower", "tsens-critical";
2232 #thermal-sensor-cells = <1>;
2233 };
Rishabh Bhatnagarf7a853a2018-06-28 14:14:54 -07002234
2235 qcom,msm-rtb {
2236 compatible = "qcom,msm-rtb";
2237 qcom,rtb-size = <0x100000>;
2238 };
2239
2240 qcom,mpm2-sleep-counter@c221000 {
2241 compatible = "qcom,mpm2-sleep-counter";
2242 reg = <0xc221000 0x1000>;
2243 clock-frequency = <32768>;
2244 };
Venkata Narendra Kumar Guttab0205a92018-09-11 13:40:34 -07002245
2246 cpuss_dump {
2247 compatible = "qcom,cpuss-dump";
2248
2249 qcom,l1_i_cache0 {
2250 qcom,dump-node = <&L1_I_0>;
2251 qcom,dump-id = <0x60>;
2252 };
2253
2254 qcom,l1_i_cache1 {
2255 qcom,dump-node = <&L1_I_100>;
2256 qcom,dump-id = <0x61>;
2257 };
2258
2259 qcom,l1_i_cache2 {
2260 qcom,dump-node = <&L1_I_200>;
2261 qcom,dump-id = <0x62>;
2262 };
2263
2264 qcom,l1_i_cache3 {
2265 qcom,dump-node = <&L1_I_300>;
2266 qcom,dump-id = <0x63>;
2267 };
2268
2269 qcom,l1_i_cache100 {
2270 qcom,dump-node = <&L1_I_400>;
2271 qcom,dump-id = <0x64>;
2272 };
2273
2274 qcom,l1_i_cache101 {
2275 qcom,dump-node = <&L1_I_500>;
2276 qcom,dump-id = <0x65>;
2277 };
2278
2279 qcom,l1_i_cache102 {
2280 qcom,dump-node = <&L1_I_600>;
2281 qcom,dump-id = <0x66>;
2282 };
2283
2284 qcom,l1_i_cache103 {
2285 qcom,dump-node = <&L1_I_700>;
2286 qcom,dump-id = <0x67>;
2287 };
2288
2289 qcom,l1_d_cache0 {
2290 qcom,dump-node = <&L1_D_0>;
2291 qcom,dump-id = <0x80>;
2292 };
2293
2294 qcom,l1_d_cache1 {
2295 qcom,dump-node = <&L1_D_100>;
2296 qcom,dump-id = <0x81>;
2297 };
2298
2299 qcom,l1_d_cache2 {
2300 qcom,dump-node = <&L1_D_200>;
2301 qcom,dump-id = <0x82>;
2302 };
2303
2304 qcom,l1_d_cache3 {
2305 qcom,dump-node = <&L1_D_300>;
2306 qcom,dump-id = <0x83>;
2307 };
2308
2309 qcom,l1_d_cache100 {
2310 qcom,dump-node = <&L1_D_400>;
2311 qcom,dump-id = <0x84>;
2312 };
2313
2314 qcom,l1_d_cache101 {
2315 qcom,dump-node = <&L1_D_500>;
2316 qcom,dump-id = <0x85>;
2317 };
2318
2319 qcom,l1_d_cache102 {
2320 qcom,dump-node = <&L1_D_600>;
2321 qcom,dump-id = <0x86>;
2322 };
2323
2324 qcom,l1_d_cache103 {
2325 qcom,dump-node = <&L1_D_700>;
2326 qcom,dump-id = <0x87>;
2327 };
2328
2329 qcom,l1_i_tlb_dump400 {
2330 qcom,dump-node = <&L1_ITLB_400>;
2331 qcom,dump-id = <0x24>;
2332 };
2333
2334 qcom,l1_i_tlb_dump500 {
2335 qcom,dump-node = <&L1_ITLB_500>;
2336 qcom,dump-id = <0x25>;
2337 };
2338
2339 qcom,l1_i_tlb_dump600 {
2340 qcom,dump-node = <&L1_ITLB_600>;
2341 qcom,dump-id = <0x26>;
2342 };
2343
2344 qcom,l1_i_tlb_dump700 {
2345 qcom,dump-node = <&L1_ITLB_700>;
2346 qcom,dump-id = <0x27>;
2347 };
2348
2349 qcom,l1_d_tlb_dump400 {
2350 qcom,dump-node = <&L1_DTLB_400>;
2351 qcom,dump-id = <0x44>;
2352 };
2353
2354 qcom,l1_d_tlb_dump500 {
2355 qcom,dump-node = <&L1_DTLB_500>;
2356 qcom,dump-id = <0x45>;
2357 };
2358
2359 qcom,l1_d_tlb_dump600 {
2360 qcom,dump-node = <&L1_DTLB_600>;
2361 qcom,dump-id = <0x46>;
2362 };
2363
2364 qcom,l1_d_tlb_dump700 {
2365 qcom,dump-node = <&L1_DTLB_700>;
2366 qcom,dump-id = <0x47>;
2367 };
2368
2369 qcom,l2_cache_dump400 {
2370 qcom,dump-node = <&L2_4>;
2371 qcom,dump-id = <0xc4>;
2372 };
2373
2374 qcom,l2_cache_dump500 {
2375 qcom,dump-node = <&L2_5>;
2376 qcom,dump-id = <0xc5>;
2377 };
2378
2379 qcom,l2_cache_dump600 {
2380 qcom,dump-node = <&L2_6>;
2381 qcom,dump-id = <0xc6>;
2382 };
2383
2384 qcom,l2_cache_dump700 {
2385 qcom,dump-node = <&L2_7>;
2386 qcom,dump-id = <0xc7>;
2387 };
2388
2389 qcom,l2_tlb_dump0 {
2390 qcom,dump-node = <&L2_TLB_0>;
2391 qcom,dump-id = <0x120>;
2392 };
2393
2394 qcom,l2_tlb_dump100 {
2395 qcom,dump-node = <&L2_TLB_100>;
2396 qcom,dump-id = <0x121>;
2397 };
2398
2399 qcom,l2_tlb_dump200 {
2400 qcom,dump-node = <&L2_TLB_200>;
2401 qcom,dump-id = <0x122>;
2402 };
2403
2404 qcom,l2_tlb_dump300 {
2405 qcom,dump-node = <&L2_TLB_300>;
2406 qcom,dump-id = <0x123>;
2407 };
2408
2409 qcom,l2_tlb_dump400 {
2410 qcom,dump-node = <&L2_TLB_400>;
2411 qcom,dump-id = <0x124>;
2412 };
2413
2414 qcom,l2_tlb_dump500 {
2415 qcom,dump-node = <&L2_TLB_500>;
2416 qcom,dump-id = <0x125>;
2417 };
2418
2419 qcom,l2_tlb_dump600 {
2420 qcom,dump-node = <&L2_TLB_600>;
2421 qcom,dump-id = <0x126>;
2422 };
2423
2424 qcom,l2_tlb_dump700 {
2425 qcom,dump-node = <&L2_TLB_700>;
2426 qcom,dump-id = <0x127>;
2427 };
2428 };
Runmin Wang4f5985b2017-04-19 15:55:12 -07002429};
Swathi Sridhar4008eb42018-07-17 15:34:46 -07002430
David Collins61d237d2019-01-03 16:01:15 -08002431#include "kona-regulators.dtsi"
David Daib1d68482018-10-01 19:40:35 -07002432#include "kona-bus.dtsi"
Swathi Sridharbbbc80b2018-07-13 10:02:08 -07002433#include "kona-ion.dtsi"
Tony Truongc972c642018-09-12 10:03:51 -07002434#include "kona-pcie.dtsi"
Sujeev Dias5399e552018-09-18 17:57:54 -07002435#include "kona-mhi.dtsi"
Swathi Sridhar4008eb42018-07-17 15:34:46 -07002436#include "msm-arm-smmu-kona.dtsi"
Rishabh Bhatnagara740b0e2018-07-20 15:08:35 -07002437#include "kona-pinctrl.dtsi"
Chris Lew86f6bde2018-09-06 16:40:39 -07002438#include "kona-smp2p.dtsi"
Hemant Kumar5f58bad2018-08-31 14:25:23 -07002439#include "kona-usb.dtsi"
Tingwei Zhang564fa692018-11-28 00:31:17 -08002440#include "kona-coresight.dtsi"
Samantha Tran7e309f02018-08-31 17:23:00 -07002441#include "kona-sde.dtsi"
Satya Rama Aditya Pinapala09600b32018-10-29 10:52:37 -07002442#include "kona-sde-pll.dtsi"
Samantha Tran7e309f02018-08-31 17:23:00 -07002443#include "kona-sde-display.dtsi"
Vignesh Kulothungand728f712018-10-26 17:49:46 -07002444#include "kona-audio.dtsi"
Mukund Atred454ec92018-11-05 15:32:16 -08002445
Arjun Bagla76f02ef2018-09-19 10:00:29 -07002446#include "kona-pm.dtsi"
Mukund Atred454ec92018-11-05 15:32:16 -08002447
2448#include "kona-camera.dtsi"
Vipin Deep Kaur9a2c13d2018-12-19 18:38:46 +05302449#include "kona-qupv3.dtsi"
Siddartha Mohanadoss42c8d782018-12-21 14:20:33 -08002450#include "kona-thermal.dtsi"
Chinmay Sawarkar83d01b42018-12-14 12:34:50 -08002451#include "kona-vidc.dtsi"
George Shen9c54c662018-12-26 15:50:11 -08002452#include "kona-cvp.dtsi"