blob: 007d7f8a2fdc2432e10489fd7a11dddc06df386f [file] [log] [blame]
Runmin Wang4f5985b2017-04-19 15:55:12 -07001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
4 */
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>
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -070019#include <dt-bindings/soc/qcom,ipcc.h>
Lina Iyerea91c722018-06-20 14:58:05 -060020#include <dt-bindings/soc/qcom,rpmh-rsc.h>
Rishabh Bhatnagar2b66dc12018-10-18 10:36:27 -070021#include <dt-bindings/gpio/gpio.h>
Tingwei Zhang2fa63c92018-11-30 01:14:06 -080022#include <dt-bindings/soc/qcom,dcc_v2.h>
Deepak Katragadda5bbf8142018-06-20 16:12:13 -070023
David Collins54e45302018-06-29 18:46:53 -070024#include "kona-regulators.dtsi"
25
Runmin Wang4f5985b2017-04-19 15:55:12 -070026/ {
27 model = "Qualcomm Technologies, Inc. kona";
28 compatible = "qcom,kona";
29 qcom,msm-id = <356 0x10000>;
30 interrupt-parent = <&intc>;
31
Can Guob04bed52018-07-10 19:27:32 -070032 aliases {
33 ufshc1 = &ufshc_mem; /* Embedded UFS slot */
Tony Truongc972c642018-09-12 10:03:51 -070034 pci-domain2 = &pcie2; /* PCIe2 domain */
Can Guob04bed52018-07-10 19:27:32 -070035 };
36
Runmin Wang4f5985b2017-04-19 15:55:12 -070037 cpus {
38 #address-cells = <2>;
39 #size-cells = <0>;
40
41 CPU0: cpu@0 {
42 device_type = "cpu";
43 compatible = "qcom,kryo";
44 reg = <0x0 0x0>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -070045 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -070046 cache-size = <0x8000>;
47 cpu-release-addr = <0x0 0x90000000>;
48 next-level-cache = <&L2_0>;
David Daia4635e62018-10-11 13:39:44 -070049 qcom,freq-domain = <&cpufreq_hw 0 4>;
Runmin Wang4f5985b2017-04-19 15:55:12 -070050 L2_0: l2-cache {
51 compatible = "arm,arch-cache";
52 cache-size = <0x20000>;
53 cache-level = <2>;
54 next-level-cache = <&L3_0>;
55
56 L3_0: l3-cache {
57 compatible = "arm,arch-cache";
58 cache-size = <0x400000>;
59 cache-level = <3>;
60 };
61 };
62 };
63
64 CPU1: cpu@100 {
65 device_type = "cpu";
66 compatible = "qcom,kryo";
67 reg = <0x0 0x100>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -070068 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -070069 cache-size = <0x8000>;
70 cpu-release-addr = <0x0 0x90000000>;
71 next-level-cache = <&L2_1>;
David Daia4635e62018-10-11 13:39:44 -070072 qcom,freq-domain = <&cpufreq_hw 0 4>;
Runmin Wang4f5985b2017-04-19 15:55:12 -070073 L2_1: l2-cache {
74 compatible = "arm,arch-cache";
75 cache-size = <0x20000>;
76 cache-level = <2>;
77 next-level-cache = <&L3_0>;
78 };
79 };
80
81 CPU2: cpu@200 {
82 device_type = "cpu";
83 compatible = "qcom,kryo";
84 reg = <0x0 0x200>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -070085 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -070086 cache-size = <0x8000>;
87 cpu-release-addr = <0x0 0x90000000>;
88 next-level-cache = <&L2_2>;
David Daia4635e62018-10-11 13:39:44 -070089 qcom,freq-domain = <&cpufreq_hw 0 4>;
Runmin Wang4f5985b2017-04-19 15:55:12 -070090 L2_2: l2-cache {
91 compatible = "arm,arch-cache";
92 cache-size = <0x20000>;
93 cache-level = <2>;
94 next-level-cache = <&L3_0>;
95 };
96 };
97
98 CPU3: cpu@300 {
99 device_type = "cpu";
100 compatible = "qcom,kryo";
101 reg = <0x0 0x300>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700102 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700103 cache-size = <0x8000>;
104 cpu-release-addr = <0x0 0x90000000>;
105 next-level-cache = <&L2_3>;
David Daia4635e62018-10-11 13:39:44 -0700106 qcom,freq-domain = <&cpufreq_hw 0 4>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700107 L2_3: l2-cache {
108 compatible = "arm,arch-cache";
109 cache-size = <0x20000>;
110 cache-level = <2>;
111 next-level-cache = <&L3_0>;
112 };
113 };
114
115 CPU4: cpu@400 {
116 device_type = "cpu";
117 compatible = "qcom,kryo";
118 reg = <0x0 0x400>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700119 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700120 cache-size = <0x10000>;
121 cpu-release-addr = <0x0 0x90000000>;
122 next-level-cache = <&L2_4>;
David Daia4635e62018-10-11 13:39:44 -0700123 qcom,freq-domain = <&cpufreq_hw 1 4>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700124 L2_4: l2-cache {
125 compatible = "arm,arch-cache";
126 cache-size = <0x20000>;
127 cache-level = <2>;
128 next-level-cache = <&L3_0>;
129 };
130 };
131
132 CPU5: cpu@500 {
133 device_type = "cpu";
134 compatible = "qcom,kryo";
135 reg = <0x0 0x500>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700136 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700137 cache-size = <0x10000>;
138 cpu-release-addr = <0x0 0x90000000>;
139 next-level-cache = <&L2_5>;
David Daia4635e62018-10-11 13:39:44 -0700140 qcom,freq-domain = <&cpufreq_hw 1 4>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700141 L2_5: l2-cache {
142 compatible = "arm,arch-cache";
143 cache-size = <0x20000>;
144 cache-level = <2>;
145 next-level-cache = <&L3_0>;
146 };
147 };
148
149 CPU6: cpu@600 {
150 device_type = "cpu";
151 compatible = "qcom,kryo";
152 reg = <0x0 0x600>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700153 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700154 cache-size = <0x10000>;
155 cpu-release-addr = <0x0 0x90000000>;
156 next-level-cache = <&L2_6>;
David Daia4635e62018-10-11 13:39:44 -0700157 qcom,freq-domain = <&cpufreq_hw 1 4>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700158 L2_6: l2-cache {
159 compatible = "arm,arch-cache";
160 cache-size = <0x20000>;
161 cache-level = <2>;
162 next-level-cache = <&L3_0>;
163 };
164 };
165
166 CPU7: cpu@700 {
167 device_type = "cpu";
168 compatible = "qcom,kryo";
169 reg = <0x0 0x700>;
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700170 enable-method = "psci";
Runmin Wang4f5985b2017-04-19 15:55:12 -0700171 cache-size = <0x10000>;
172 cpu-release-addr = <0x0 0x90000000>;
173 next-level-cache = <&L2_7>;
David Daia4635e62018-10-11 13:39:44 -0700174 qcom,freq-domain = <&cpufreq_hw 2 4>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700175 L2_7: l2-cache {
176 compatible = "arm,arch-cache";
177 cache-size = <0x80000>;
178 cache-level = <2>;
179 next-level-cache = <&L3_0>;
180 };
181 };
182
183 cpu-map {
184 cluster0 {
185 core0 {
186 cpu = <&CPU0>;
187 };
188
189 core1 {
190 cpu = <&CPU1>;
191 };
192
193 core2 {
194 cpu = <&CPU2>;
195 };
196
197 core3 {
198 cpu = <&CPU3>;
199 };
200 };
201
202 cluster1 {
203 core0 {
204 cpu = <&CPU4>;
205 };
206
207 core1 {
208 cpu = <&CPU5>;
209 };
210
211 core2 {
212 cpu = <&CPU6>;
213 };
214
215 core3 {
216 cpu = <&CPU7>;
217 };
218 };
219 };
220 };
221
David Daia4635e62018-10-11 13:39:44 -0700222
Channagoud Kadabicdd72a02018-09-21 14:46:21 -0700223 cpu_pmu: cpu-pmu {
224 compatible = "arm,armv8-pmuv3";
225 qcom,irq-is-percpu;
226 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
227 };
228
David Daia4635e62018-10-11 13:39:44 -0700229 soc: soc {
230 cpufreq_hw: qcom,cpufreq-hw {
231 compatible = "qcom,cpufreq-hw";
232 reg = <0x18591000 0x1000>, <0x18592000 0x1000>,
233 <0x18593000 0x1000>;
234 reg-names = "freq-domain0", "freq-domain1",
235 "freq-domain2";
236
237 clocks = <&clock_xo>, <&clock_gcc GPLL0>;
238 clock-names = "xo", "cpu_clk";
239
240 #freq-domain-cells = <2>;
241 };
242 };
243
Arjun Bagla76f02ef2018-09-19 10:00:29 -0700244 psci {
245 compatible = "arm,psci-1.0";
246 method = "smc";
247 };
248
Bruce Levy3bd8d1b2018-09-11 11:31:13 -0700249 firmware: firmware {
250 android {
251 compatible = "android,firmware";
252 fstab {
253 compatible = "android,fstab";
254 vendor {
255 compatible = "android,vendor";
256 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
257 type = "ext4";
258 mnt_flags = "ro,barrier=1,discard";
259 fsmgr_flags = "wait,slotselect,avb";
260 status = "ok";
261 };
262 };
263 };
264 };
265
Channagoud Kadabida4367b2018-09-20 15:07:04 -0700266 psci {
267 compatible = "arm,psci-1.0";
268 method = "smc";
269 };
270
Swathi Sridhara79a9542018-06-21 11:40:44 -0700271 reserved-memory {
272 #address-cells = <2>;
273 #size-cells = <2>;
274 ranges;
275
276 hyp_mem: hyp_region@80000000 {
277 no-map;
278 reg = <0x0 0x80000000 0x0 0x600000>;
279 };
280
281 xbl_aop_mem: xbl_aop_region@80700000 {
282 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700283 reg = <0x0 0x80700000 0x0 0x120000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700284 };
285
Lina Iyer5d609fa2018-10-03 14:26:55 -0600286 cmd_db: reserved-memory@80820000 {
287 reg = <0x0 0x80820000 0x0 0x20000>;
288 compatible = "qcom,cmd-db";
289 no-map;
290 };
291
Swathi Sridhara79a9542018-06-21 11:40:44 -0700292 smem_mem: smem_region@80900000 {
293 no-map;
294 reg = <0x0 0x80900000 0x0 0x200000>;
295 };
296
297 removed_mem: removed_region@80b00000 {
298 no-map;
299 reg = <0x0 0x80b00000 0x0 0xc00000>;
300 };
301
302 qtee_apps_mem: qtee_apps_region@81e00000 {
303 no-map;
304 reg = <0x0 0x81e00000 0x0 0x2600000>;
305 };
306
307 pil_camera_mem: pil_camera_region@86000000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700308 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700309 no-map;
310 reg = <0x0 0x86000000 0x0 0x500000>;
311 };
312
313 pil_wlan_fw_mem: pil_wlan_fw_region@86500000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700314 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700315 no-map;
316 reg = <0x0 0x86500000 0x0 0x100000>;
317 };
318
319 pil_ipa_fw_mem: pil_ipa_fw_region@86600000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700320 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700321 no-map;
322 reg = <0x0 0x86600000 0x0 0x10000>;
323 };
324
325 pil_ipa_gsi_mem: pil_ipa_gsi_region@86610000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700326 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700327 no-map;
328 reg = <0x0 0x86610000 0x0 0x5000>;
329 };
330
331 pil_gpu_mem: pil_gpu_region@86615000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700332 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700333 no-map;
334 reg = <0x0 0x86615000 0x0 0x2000>;
335 };
336
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700337 pil_npu_mem: pil_npu_region@86700000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700338 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700339 no-map;
340 reg = <0x0 0x86700000 0x0 0x500000>;
341 };
342
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700343 pil_video_mem: pil_video_region@86c00000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700344 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700345 no-map;
346 reg = <0x0 0x86c00000 0x0 0x500000>;
347 };
348
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700349 pil_cvp_mem: pil_cvp_region@87100000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700350 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700351 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700352 reg = <0x0 0x87100000 0x0 0x500000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700353 };
354
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700355 pil_cdsp_mem: pil_cdsp_region@87600000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700356 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700357 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700358 reg = <0x0 0x87600000 0x0 0x800000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700359 };
360
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700361 pil_slpi_mem: pil_slpi_region@87e00000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700362 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700363 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700364 reg = <0x0 0x87e00000 0x0 0x1500000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700365 };
366
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700367 pil_adsp_mem: pil_adsp_region@89300000 {
Swathi Sridhar2f971562018-10-02 15:43:09 -0700368 compatible = "removed-dma-pool";
Swathi Sridhara79a9542018-06-21 11:40:44 -0700369 no-map;
Swathi Sridhar072b0ad2018-10-16 22:52:57 -0700370 reg = <0x0 0x89300000 0x0 0x1900000>;
371 };
372
373 pil_spss_mem: pil_spss_region@8ac00000 {
374 compatible = "removed-dma-pool";
375 no-map;
376 reg = <0x0 0x8ac00000 0x0 0x100000>;
Swathi Sridhara79a9542018-06-21 11:40:44 -0700377 };
378
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +0530379 adsp_mem: adsp_region {
380 compatible = "shared-dma-pool";
381 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
382 reusable;
383 alignment = <0x0 0x400000>;
384 size = <0x0 0x1000000>;
385 };
386
Swathi Sridhara79a9542018-06-21 11:40:44 -0700387 /* global autoconfigured region for contiguous allocations */
388 linux,cma {
389 compatible = "shared-dma-pool";
390 alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
391 reusable;
392 alignment = <0x0 0x400000>;
393 size = <0x0 0x2000000>;
394 linux,cma-default;
395 };
396 };
Runmin Wang4f5985b2017-04-19 15:55:12 -0700397};
398
399&soc {
400 #address-cells = <1>;
401 #size-cells = <1>;
402 ranges = <0 0 0 0xffffffff>;
403 compatible = "simple-bus";
404
David Collins692dff72018-11-12 17:09:49 -0800405 thermal_zones: thermal-zones {
406 };
407
Runmin Wang4f5985b2017-04-19 15:55:12 -0700408 intc: interrupt-controller@17a00000 {
409 compatible = "arm,gic-v3";
410 #interrupt-cells = <3>;
411 interrupt-controller;
412 #redistributor-regions = <1>;
413 redistributor-stride = <0x0 0x20000>;
414 reg = <0x17a00000 0x10000>, /* GICD */
415 <0x17a60000 0x100000>; /* GICR * 8 */
416 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
417 };
418
Rishabh Bhatnagarfd73eb12018-09-04 15:00:46 -0700419 qcom,chd_silver {
420 compatible = "qcom,core-hang-detect";
421 label = "silver";
422 qcom,threshold-arr = <0x18000058 0x18010058
423 0x18020058 0x18030058>;
424 qcom,config-arr = <0x18000060 0x18010060
425 0x18020060 0x18030060>;
426 };
427
428 qcom,chd_gold {
429 compatible = "qcom,core-hang-detect";
430 label = "gold";
431 qcom,threshold-arr = <0x18040058 0x18050058
432 0x18060058 0x18070058>;
433 qcom,config-arr = <0x18040060 0x18050060
434 0x18060060 0x18070060>;
435 };
436
Rishabh Bhatnagar8f0dd4b2018-08-07 11:07:40 -0700437 cache-controller@9200000 {
438 compatible = "qcom,kona-llcc";
439 reg = <0x9200000 0x1d0000> , <0x9600000 0x50000>;
440 reg-names = "llcc_base", "llcc_broadcast_base";
Channagoud Kadabia13ed0a2018-09-26 16:10:35 -0700441 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
Rishabh Bhatnagar8f0dd4b2018-08-07 11:07:40 -0700442 };
443
Maria Neptune5a1428b2018-08-29 13:25:19 -0700444 arch_timer: timer {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700445 compatible = "arm,armv8-timer";
446 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
447 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
448 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
449 <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
450 clock-frequency = <19200000>;
451 };
452
Maria Neptune5a1428b2018-08-29 13:25:19 -0700453 memtimer: timer@17c20000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700454 #address-cells = <1>;
455 #size-cells = <1>;
456 ranges;
457 compatible = "arm,armv7-timer-mem";
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700458 reg = <0x17c20000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700459 clock-frequency = <19200000>;
460
Maria Neptune5a1428b2018-08-29 13:25:19 -0700461 frame@17c21000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700462 frame-number = <0>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700463 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
Runmin Wang4f5985b2017-04-19 15:55:12 -0700464 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700465 reg = <0x17c21000 0x1000>,
466 <0x17c22000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700467 };
468
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700469 frame@17c23000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700470 frame-number = <1>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700471 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
472 reg = <0x17c23000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700473 status = "disabled";
474 };
475
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700476 frame@17c25000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700477 frame-number = <2>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700478 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
479 reg = <0x17c25000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700480 status = "disabled";
481 };
482
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700483 frame@17c27000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700484 frame-number = <3>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700485 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
486 reg = <0x17c27000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700487 status = "disabled";
488 };
489
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700490 frame@17c29000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700491 frame-number = <4>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700492 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
493 reg = <0x17c29000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700494 status = "disabled";
495 };
496
Maria Neptune5a1428b2018-08-29 13:25:19 -0700497 frame@17c2b000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700498 frame-number = <5>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700499 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
500 reg = <0x17c2b000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700501 status = "disabled";
502 };
503
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700504 frame@17c2d000 {
Runmin Wang4f5985b2017-04-19 15:55:12 -0700505 frame-number = <6>;
Rishabh Bhatnagar5c1c1762018-05-29 17:04:46 -0700506 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
507 reg = <0x17c2d000 0x1000>;
Runmin Wang4f5985b2017-04-19 15:55:12 -0700508 status = "disabled";
509 };
510 };
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700511
Tingwei Zhang020594a2018-11-27 21:58:09 -0800512 jtag_mm0: jtagmm@7040000 {
513 compatible = "qcom,jtagv8-mm";
514 reg = <0x7040000 0x1000>;
515 reg-names = "etm-base";
516
517 clocks = <&clock_aop QDSS_CLK>;
518 clock-names = "core_clk";
519
520 qcom,coresight-jtagmm-cpu = <&CPU0>;
521 };
522
523 jtag_mm1: jtagmm@7140000 {
524 compatible = "qcom,jtagv8-mm";
525 reg = <0x7140000 0x1000>;
526 reg-names = "etm-base";
527
528 clocks = <&clock_aop QDSS_CLK>;
529 clock-names = "core_clk";
530
531 qcom,coresight-jtagmm-cpu = <&CPU1>;
532 };
533
534 jtag_mm2: jtagmm@7240000 {
535 compatible = "qcom,jtagv8-mm";
536 reg = <0x7240000 0x1000>;
537 reg-names = "etm-base";
538
539 clocks = <&clock_aop QDSS_CLK>;
540 clock-names = "core_clk";
541
542 qcom,coresight-jtagmm-cpu = <&CPU2>;
543 };
544
545 jtag_mm3: jtagmm@7340000 {
546 compatible = "qcom,jtagv8-mm";
547 reg = <0x7340000 0x1000>;
548 reg-names = "etm-base";
549
550 clocks = <&clock_aop QDSS_CLK>;
551 clock-names = "core_clk";
552
553 qcom,coresight-jtagmm-cpu = <&CPU3>;
554 };
555
556 jtag_mm4: jtagmm@7440000 {
557 compatible = "qcom,jtagv8-mm";
558 reg = <0x7440000 0x1000>;
559 reg-names = "etm-base";
560
561 clocks = <&clock_aop QDSS_CLK>;
562 clock-names = "core_clk";
563
564 qcom,coresight-jtagmm-cpu = <&CPU4>;
565 };
566
567 jtag_mm5: jtagmm@7540000 {
568 compatible = "qcom,jtagv8-mm";
569 reg = <0x7540000 0x1000>;
570 reg-names = "etm-base";
571
572 clocks = <&clock_aop QDSS_CLK>;
573 clock-names = "core_clk";
574
575 qcom,coresight-jtagmm-cpu = <&CPU5>;
576 };
577
578 jtag_mm6: jtagmm@7640000 {
579 compatible = "qcom,jtagv8-mm";
580 reg = <0x7640000 0x1000>;
581 reg-names = "etm-base";
582
583 clocks = <&clock_aop QDSS_CLK>;
584 clock-names = "core_clk";
585
586 qcom,coresight-jtagmm-cpu = <&CPU6>;
587 };
588
589 jtag_mm7: jtagmm@7740000 {
590 compatible = "qcom,jtagv8-mm";
591 reg = <0x7740000 0x1000>;
592 reg-names = "etm-base";
593
594 clocks = <&clock_aop QDSS_CLK>;
595 clock-names = "core_clk";
596
597 qcom,coresight-jtagmm-cpu = <&CPU7>;
598 };
599
David Dai3c427802018-10-17 14:40:08 -0700600 qcom,devfreq-l3 {
601 compatible = "qcom,devfreq-fw";
602 reg = <0x18590000 0x4>, <0x18590100 0xa0>, <0x18590320 0x4>;
603 reg-names = "en-base", "ftbl-base", "perf-base";
604
605 qcom,cpu0-l3 {
606 compatible = "qcom,devfreq-fw-voter";
607 };
608
609 qcom,cpu4-l3 {
610 compatible = "qcom,devfreq-fw-voter";
611 };
612 };
613
Rishabh Bhatnagarf35ba022018-09-18 15:17:22 -0700614 qcom,msm-imem@146bf000 {
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700615 compatible = "qcom,msm-imem";
616 reg = <0x146bf000 0x1000>;
617 ranges = <0x0 0x146bf000 0x1000>;
618 #address-cells = <1>;
619 #size-cells = <1>;
620
621 restart_reason@65c {
622 compatible = "qcom,msm-imem-restart_reason";
Maria Neptune5a1428b2018-08-29 13:25:19 -0700623 reg = <0x65c 0x4>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700624 };
625
626 dload_type@1c {
627 compatible = "qcom,msm-imem-dload-type";
628 reg = <0x1c 0x4>;
629 };
630
631 boot_stats@6b0 {
632 compatible = "qcom,msm-imem-boot_stats";
Maria Neptune5a1428b2018-08-29 13:25:19 -0700633 reg = <0x6b0 0x20>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700634 };
635
636 kaslr_offset@6d0 {
637 compatible = "qcom,msm-imem-kaslr_offset";
Maria Neptune5a1428b2018-08-29 13:25:19 -0700638 reg = <0x6d0 0xc>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700639 };
640
641 pil@94c {
642 compatible = "qcom,msm-imem-pil";
Maria Neptune5a1428b2018-08-29 13:25:19 -0700643 reg = <0x94c 0xc8>;
Rishabh Bhatnagar2b6a59c2018-09-06 11:06:16 -0700644 };
645 };
646
Rishabh Bhatnagar811170f2018-11-09 13:44:32 -0800647 restart@c264000 {
648 compatible = "qcom,pshold";
649 reg = <0xc264000 0x4>,
650 <0x1fd3000 0x4>;
651 reg-names = "pshold-base", "tcsr-boot-misc-detect";
652 };
653
Tingwei Zhang2fa63c92018-11-30 01:14:06 -0800654 dcc: dcc_v2@1023000 {
655 compatible = "qcom,dcc-v2";
656 reg = <0x1023000 0x1000>,
657 <0x103a000 0x6000>;
658 reg-names = "dcc-base", "dcc-ram-base";
659
660 dcc-ram-offset = <0x1a000>;
661 };
662
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -0700663 mdm0: qcom,mdm0 {
Rishabh Bhatnagar134ede82018-10-16 10:54:12 -0700664 compatible = "qcom,ext-sdx55m";
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -0700665 cell-index = <0>;
666 #address-cells = <0>;
667 interrupt-parent = <&mdm0>;
668 #interrupt-cells = <1>;
669 interrupt-map-mask = <0xffffffff>;
670 interrupt-names =
671 "err_fatal_irq",
672 "status_irq",
673 "mdm2ap_vddmin_irq";
674 /* modem attributes */
675 qcom,ramdump-delay-ms = <3000>;
676 qcom,ramdump-timeout-ms = <120000>;
677 qcom,vddmin-modes = "normal";
678 qcom,vddmin-drive-strength = <8>;
679 qcom,sfr-query;
680 qcom,sysmon-id = <20>;
681 qcom,ssctl-instance-id = <0x10>;
682 qcom,support-shutdown;
683 qcom,pil-force-shutdown;
684 qcom,esoc-skip-restart-for-mdm-crash;
685 pinctrl-names = "default", "mdm_active", "mdm_suspend";
686 pinctrl-0 = <&ap2mdm_pon_reset_default>;
687 pinctrl-1 = <&ap2mdm_active &mdm2ap_active>;
688 pinctrl-2 = <&ap2mdm_sleep &mdm2ap_sleep>;
689 interrupt-map = <0 &tlmm 1 0x3
690 1 &tlmm 3 0x3>;
691 qcom,mdm2ap-errfatal-gpio = <&tlmm 1 0x00>;
692 qcom,ap2mdm-errfatal-gpio = <&tlmm 57 0x00>;
693 qcom,mdm2ap-status-gpio = <&tlmm 3 0x00>;
694 qcom,ap2mdm-status-gpio = <&tlmm 56 0x00>;
Rishabh Bhatnagar2b66dc12018-10-18 10:36:27 -0700695 qcom,ap2mdm-soft-reset-gpio = <&tlmm 145 GPIO_ACTIVE_LOW>;
Rishabh Bhatnagar19ddb35e2018-09-18 15:53:03 -0700696 qcom,mdm-link-info = "0306_02.01.00";
697 status = "ok";
698 };
699
Lina Iyer8551c792018-06-21 16:06:53 -0600700 pdc: interrupt-controller@b220000 {
701 compatible = "qcom,kona-pdc";
702 reg = <0xb220000 0x30000>;
703 qcom,pdc-ranges = <0 480 29>, <42 522 52>, <94 609 30>;
704 #interrupt-cells = <2>;
705 interrupt-parent = <&intc>;
706 interrupt-controller;
707 };
708
David Collinsa6d833b2018-09-25 14:44:32 -0700709 clock_xo: bi_tcxo {
710 compatible = "fixed-clock";
711 #clock-cells = <0>;
712 clock-frequency = <19200000>;
713 clock-output-names = "bi_tcxo";
714 };
715
Vivek Aknurwar65bafd92018-11-01 17:27:53 -0700716 clocks {
717 sleep_clk: sleep-clk {
718 compatible = "fixed-clock";
719 clock-frequency = <32000>;
720 clock-output-names = "chip_sleep_clk";
721 #clock-cells = <1>;
722 };
723 };
724
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700725 clock_rpmh: qcom,rpmhclk {
726 compatible = "qcom,dummycc";
727 clock-output-names = "rpmh_clocks";
728 #clock-cells = <1>;
729 };
730
731 clock_aop: qcom,aopclk {
732 compatible = "qcom,dummycc";
733 clock-output-names = "qdss_clocks";
734 #clock-cells = <1>;
735 };
736
Vivek Aknurwar7e9ecb92018-09-07 14:27:58 -0700737 clock_gcc: qcom,gcc@100000 {
738 compatible = "qcom,gcc-kona";
739 reg = <0x100000 0x1f0000>;
740 reg-names = "cc_base";
741 vdd_cx-supply = <&VDD_CX_LEVEL>;
742 vdd_cx_ao-supply = <&VDD_CX_LEVEL_AO>;
743 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700744 #clock-cells = <1>;
745 #reset-cells = <1>;
746 };
747
748 clock_npucc: qcom,npucc {
749 compatible = "qcom,dummycc";
750 clock-output-names = "npucc_clocks";
751 #clock-cells = <1>;
752 #reset-cells = <1>;
753 };
754
Vivek Aknurwar65bafd92018-11-01 17:27:53 -0700755 clock_videocc: qcom,videocc@abf0000 {
756 compatible = "qcom,videocc-kona", "syscon";
757 reg = <0xabf0000 0x10000>;
758 reg-names = "cc_base";
759 vdd_mx-supply = <&VDD_MX_LEVEL>;
760 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
761 clock-names = "cfg_ahb_clk";
762 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700763 #clock-cells = <1>;
764 #reset-cells = <1>;
765 };
766
Vivek Aknurwar86452c02018-11-05 15:20:31 -0800767 clock_camcc: qcom,camcc@ad00000 {
768 compatible = "qcom,camcc-kona", "syscon";
769 reg = <0xad00000 0x10000>;
770 reg-names = "cc_base";
771 vdd_mx-supply = <&VDD_MX_LEVEL>;
772 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
773 clock-names = "cfg_ahb_clk";
774 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700775 #clock-cells = <1>;
776 #reset-cells = <1>;
777 };
778
David Daidc93e482018-11-27 17:32:50 -0800779 clock_dispcc: qcom,dispcc@af00000 {
780 compatible = "qcom,kona-dispcc";
781 reg = <0xaf00000 0x20000>;
782 reg-names = "cc_base";
783 vdd_mm-supply = <&VDD_MMCX_LEVEL>;
784 clock-names = "cfg_ahb_clk";
785 clocks = <&clock_gcc GCC_DISP_AHB_CLK>;
Deepak Katragadda5bbf8142018-06-20 16:12:13 -0700786 #clock-cells = <1>;
787 #reset-cells = <1>;
788 };
789
790 clock_gpucc: qcom,gpucc {
791 compatible = "qcom,dummycc";
792 clock-output-names = "gpucc_clocks";
793 #clock-cells = <1>;
794 #reset-cells = <1>;
795 };
796
797 clock_cpucc: qcom,cpucc {
798 compatible = "qcom,dummycc";
799 clock-output-names = "cpucc_clocks";
800 #clock-cells = <1>;
801 };
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -0700802
David Collinsa86302c2018-09-17 14:16:50 -0700803 /* GCC GDSCs */
804 pcie_0_gdsc: qcom,gdsc@16b004 {
805 compatible = "qcom,gdsc";
806 reg = <0x16b004 0x4>;
807 regulator-name = "pcie_0_gdsc";
808 };
809
810 pcie_1_gdsc: qcom,gdsc@18d004 {
811 compatible = "qcom,gdsc";
812 reg = <0x18d004 0x4>;
813 regulator-name = "pcie_1_gdsc";
814 };
815
816 pcie_2_gdsc: qcom,gdsc@106004 {
817 compatible = "qcom,gdsc";
818 reg = <0x106004 0x4>;
819 regulator-name = "pcie_2_gdsc";
820 };
821
822 ufs_card_gdsc: qcom,gdsc@175004 {
823 compatible = "qcom,gdsc";
824 reg = <0x175004 0x4>;
825 regulator-name = "ufs_card_gdsc";
826 };
827
828 ufs_phy_gdsc: qcom,gdsc@177004 {
829 compatible = "qcom,gdsc";
830 reg = <0x177004 0x4>;
831 regulator-name = "ufs_phy_gdsc";
832 };
833
834 usb30_prim_gdsc: qcom,gdsc@10f004 {
835 compatible = "qcom,gdsc";
836 reg = <0x10f004 0x4>;
837 regulator-name = "usb30_prim_gdsc";
838 };
839
840 usb30_sec_gdsc: qcom,gdsc@110004 {
841 compatible = "qcom,gdsc";
842 reg = <0x110004 0x4>;
843 regulator-name = "usb30_sec_gdsc";
844 };
845
846 hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc: qcom,gdsc@17d050 {
847 compatible = "qcom,gdsc";
848 reg = <0x17d050 0x4>;
849 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc";
850 qcom,no-status-check-on-disable;
851 qcom,gds-timeout = <500>;
852 };
853
854 hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc: qcom,gdsc@17d058 {
855 compatible = "qcom,gdsc";
856 reg = <0x17d058 0x4>;
857 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc";
858 qcom,no-status-check-on-disable;
859 qcom,gds-timeout = <500>;
860 };
861
862 hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc: qcom,gdsc@17d054 {
863 compatible = "qcom,gdsc";
864 reg = <0x17d054 0x4>;
865 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc";
866 qcom,no-status-check-on-disable;
867 qcom,gds-timeout = <500>;
868 };
869
870 hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc: qcom,gdsc@17d06c {
871 compatible = "qcom,gdsc";
872 reg = <0x17d06c 0x4>;
873 regulator-name = "hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc";
874 qcom,no-status-check-on-disable;
875 qcom,gds-timeout = <500>;
876 };
877
878 /* CAM_CC GDSCs */
879 bps_gdsc: qcom,gdsc@ad07004 {
880 compatible = "qcom,gdsc";
881 reg = <0xad07004 0x4>;
882 regulator-name = "bps_gdsc";
883 clock-names = "ahb_clk";
884 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
885 parent-supply = <&VDD_MMCX_LEVEL>;
886 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
887 qcom,support-hw-trigger;
888 };
889
890 ife_0_gdsc: qcom,gdsc@ad0a004 {
891 compatible = "qcom,gdsc";
892 reg = <0xad0a004 0x4>;
893 regulator-name = "ife_0_gdsc";
894 clock-names = "ahb_clk";
895 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
896 parent-supply = <&VDD_MMCX_LEVEL>;
897 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
898 };
899
900 ife_1_gdsc: qcom,gdsc@ad0b004 {
901 compatible = "qcom,gdsc";
902 reg = <0xad0b004 0x4>;
903 regulator-name = "ife_1_gdsc";
904 clock-names = "ahb_clk";
905 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
906 parent-supply = <&VDD_MMCX_LEVEL>;
907 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
908 };
909
910 ipe_0_gdsc: qcom,gdsc@ad08004 {
911 compatible = "qcom,gdsc";
912 reg = <0xad08004 0x4>;
913 regulator-name = "ipe_0_gdsc";
914 clock-names = "ahb_clk";
915 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
916 parent-supply = <&VDD_MMCX_LEVEL>;
917 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
918 qcom,support-hw-trigger;
919 };
920
921 sbi_gdsc: qcom,gdsc@ad09004 {
922 compatible = "qcom,gdsc";
923 reg = <0xad09004 0x4>;
924 regulator-name = "sbi_gdsc";
925 clock-names = "ahb_clk";
926 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
927 parent-supply = <&VDD_MMCX_LEVEL>;
928 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
929 };
930
931 titan_top_gdsc: qcom,gdsc@ad0c144 {
932 compatible = "qcom,gdsc";
933 reg = <0xad0c144 0x4>;
934 regulator-name = "titan_top_gdsc";
935 clock-names = "ahb_clk";
936 clocks = <&clock_gcc GCC_CAMERA_AHB_CLK>;
937 parent-supply = <&VDD_MMCX_LEVEL>;
938 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
939 };
940
941 /* DISP_CC GDSC */
942 mdss_core_gdsc: qcom,gdsc@af03000 {
943 compatible = "qcom,gdsc";
944 reg = <0xaf03000 0x4>;
945 regulator-name = "mdss_core_gdsc";
946 clock-names = "ahb_clk";
947 clocks = <&clock_gcc GCC_DISP_AHB_CLK>;
948 parent-supply = <&VDD_MMCX_LEVEL>;
949 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
950 qcom,support-hw-trigger;
951 };
952
953 /* GPU_CC GDSCs */
954 gpu_cx_hw_ctrl: syscon@3d91540 {
955 compatible = "syscon";
956 reg = <0x3d91540 0x4>;
957 };
958
959 gpu_cx_gdsc: qcom,gdsc@3d9106c {
960 compatible = "qcom,gdsc";
961 reg = <0x3d9106c 0x4>;
962 regulator-name = "gpu_cx_gdsc";
963 hw-ctrl-addr = <&gpu_cx_hw_ctrl>;
964 parent-supply = <&VDD_CX_LEVEL>;
965 qcom,no-status-check-on-disable;
966 qcom,clk-dis-wait-val = <8>;
967 qcom,gds-timeout = <500>;
968 };
969
David Collinsd7eea142018-10-08 17:32:48 -0700970 gpu_gx_domain_addr: syscon@3d91508 {
David Collinsa86302c2018-09-17 14:16:50 -0700971 compatible = "syscon";
972 reg = <0x3d91508 0x4>;
973 };
974
David Collinsd7eea142018-10-08 17:32:48 -0700975 gpu_gx_sw_reset: syscon@3d91008 {
David Collinsa86302c2018-09-17 14:16:50 -0700976 compatible = "syscon";
977 reg = <0x3d91008 0x4>;
978 };
979
980 gpu_gx_gdsc: qcom,gdsc@3d9100c {
981 compatible = "qcom,gdsc";
982 reg = <0x3d9100c 0x4>;
983 regulator-name = "gpu_gx_gdsc";
984 domain-addr = <&gpu_gx_domain_addr>;
985 sw-reset = <&gpu_gx_sw_reset>;
986 parent-supply = <&VDD_GFX_LEVEL>;
987 vdd_parent-supply = <&VDD_GFX_LEVEL>;
988 qcom,reset-aon-logic;
989 };
990
991 /* NPU GDSC */
992 npu_core_gdsc: qcom,gdsc@9981004 {
993 compatible = "qcom,gdsc";
994 reg = <0x9981004 0x4>;
995 regulator-name = "npu_core_gdsc";
996 clock-names = "ahb_clk";
997 clocks = <&clock_gcc GCC_NPU_CFG_AHB_CLK>;
998 };
999
Jishnu Prakash793bf5b2018-11-09 16:28:55 +05301000 qcom,sps {
1001 compatible = "qcom,msm-sps-4k";
1002 qcom,pipe-attr-ee;
1003 };
1004
David Collinsa86302c2018-09-17 14:16:50 -07001005 /* VIDEO_CC GDSCs */
1006 mvs0_gdsc: qcom,gdsc@abf0d18 {
1007 compatible = "qcom,gdsc";
1008 reg = <0xabf0d18 0x4>;
1009 regulator-name = "mvs0_gdsc";
1010 clock-names = "ahb_clk";
1011 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1012 parent-supply = <&VDD_MMCX_LEVEL>;
1013 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1014 };
1015
1016 mvs0c_gdsc: qcom,gdsc@abf0bf8 {
1017 compatible = "qcom,gdsc";
1018 reg = <0xabf0bf8 0x4>;
1019 regulator-name = "mvs0c_gdsc";
1020 clock-names = "ahb_clk";
1021 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1022 parent-supply = <&VDD_MMCX_LEVEL>;
1023 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1024 };
1025
1026 mvs1_gdsc: qcom,gdsc@abf0d98 {
1027 compatible = "qcom,gdsc";
1028 reg = <0xabf0d98 0x4>;
1029 regulator-name = "mvs1_gdsc";
1030 clock-names = "ahb_clk";
1031 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1032 parent-supply = <&VDD_MMCX_LEVEL>;
1033 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1034 };
1035
1036 mvs1c_gdsc: qcom,gdsc@abf0c98 {
1037 compatible = "qcom,gdsc";
1038 reg = <0xabf0c98 0x4>;
1039 regulator-name = "mvs1c_gdsc";
1040 clock-names = "ahb_clk";
1041 clocks = <&clock_gcc GCC_VIDEO_AHB_CLK>;
1042 parent-supply = <&VDD_MMCX_LEVEL>;
1043 vdd_parent-supply = <&VDD_MMCX_LEVEL>;
1044 };
1045
David Collinsc2c02f62018-11-05 16:23:24 -08001046 spmi_bus: qcom,spmi@c440000 {
1047 compatible = "qcom,spmi-pmic-arb";
1048 reg = <0xc440000 0x1100>,
1049 <0xc600000 0x2000000>,
1050 <0xe600000 0x100000>,
1051 <0xe700000 0xa0000>,
1052 <0xc40a000 0x26000>;
1053 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1054 interrupt-names = "periph_irq";
1055 interrupts = <GIC_SPI 481 IRQ_TYPE_LEVEL_HIGH>;
1056 qcom,ee = <0>;
1057 qcom,channel = <0>;
1058 #address-cells = <2>;
1059 #size-cells = <0>;
1060 interrupt-controller;
1061 #interrupt-cells = <4>;
1062 cell-index = <0>;
1063 };
1064
Can Guob04bed52018-07-10 19:27:32 -07001065 ufsphy_mem: ufsphy_mem@1d87000 {
1066 reg = <0x1d87000 0xe00>; /* PHY regs */
1067 reg-names = "phy_mem";
1068 #phy-cells = <0>;
1069
1070 lanes-per-direction = <2>;
1071
1072 clock-names = "ref_clk_src",
1073 "ref_clk",
1074 "ref_aux_clk";
1075 clocks = <&clock_rpmh RPMH_CXO_CLK>,
Vivek Aknurwarec5c93d2018-08-28 14:52:33 -07001076 <&clock_gcc GCC_UFS_1X_CLKREF_EN>,
Can Guob04bed52018-07-10 19:27:32 -07001077 <&clock_gcc GCC_UFS_PHY_PHY_AUX_CLK>;
1078
1079 status = "disabled";
1080 };
1081
1082 ufshc_mem: ufshc@1d84000 {
1083 compatible = "qcom,ufshc";
1084 reg = <0x1d84000 0x3000>;
1085 interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
1086 phys = <&ufsphy_mem>;
1087 phy-names = "ufsphy";
1088
1089 lanes-per-direction = <2>;
1090 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1091
1092 clock-names =
1093 "core_clk",
1094 "bus_aggr_clk",
1095 "iface_clk",
1096 "core_clk_unipro",
1097 "core_clk_ice",
1098 "ref_clk",
1099 "tx_lane0_sync_clk",
1100 "rx_lane0_sync_clk",
1101 "rx_lane1_sync_clk";
1102 clocks =
1103 <&clock_gcc GCC_UFS_PHY_AXI_CLK>,
1104 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
1105 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1106 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>,
1107 <&clock_gcc GCC_UFS_PHY_ICE_CORE_CLK>,
1108 <&clock_rpmh RPMH_CXO_CLK>,
1109 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1110 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>,
1111 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>;
1112 freq-table-hz =
1113 <37500000 300000000>,
1114 <0 0>,
1115 <0 0>,
1116 <37500000 300000000>,
1117 <75000000 300000000>,
1118 <0 0>,
1119 <0 0>,
1120 <0 0>,
1121 <0 0>;
1122
1123 qcom,msm-bus,name = "ufshc_mem";
1124 qcom,msm-bus,num-cases = <22>;
1125 qcom,msm-bus,num-paths = <2>;
1126 qcom,msm-bus,vectors-KBps =
1127 /*
1128 * During HS G3 UFS runs at nominal voltage corner, vote
1129 * higher bandwidth to push other buses in the data path
1130 * to run at nominal to achieve max throughput.
1131 * 4GBps pushes BIMC to run at nominal.
1132 * 200MBps pushes CNOC to run at nominal.
1133 * Vote for half of this bandwidth for HS G3 1-lane.
1134 * For max bandwidth, vote high enough to push the buses
1135 * to run in turbo voltage corner.
1136 */
1137 <123 512 0 0>, <1 757 0 0>, /* No vote */
1138 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1139 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1140 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1141 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1142 <123 512 1844 0>, <1 757 1000 0>, /* PWM G1 L2 */
1143 <123 512 3688 0>, <1 757 1000 0>, /* PWM G2 L2 */
1144 <123 512 7376 0>, <1 757 1000 0>, /* PWM G3 L2 */
1145 <123 512 14752 0>, <1 757 1000 0>, /* PWM G4 L2 */
1146 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1147 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1148 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1149 <123 512 255591 0>, <1 757 1000 0>, /* HS G1 RA L2 */
1150 <123 512 511181 0>, <1 757 1000 0>, /* HS G2 RA L2 */
1151 <123 512 4194304 0>, <1 757 204800 0>, /* HS G3 RA L2 */
1152 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1153 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1154 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1155 <123 512 298189 0>, <1 757 1000 0>, /* HS G1 RB L2 */
1156 <123 512 596378 0>, <1 757 1000 0>, /* HS G2 RB L2 */
1157 /* As UFS working in HS G3 RB L2 mode, aggregated
1158 * bandwidth (AB) should take care of providing
1159 * optimum throughput requested. However, as tested,
1160 * in order to scale up CNOC clock, instantaneous
1161 * bindwidth (IB) needs to be given a proper value too.
1162 */
1163 <123 512 4194304 0>, <1 757 204800 409600>, /* HS G3 RB L2 */
1164 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1165
1166 qcom,bus-vector-names = "MIN",
1167 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1168 "PWM_G1_L2", "PWM_G2_L2", "PWM_G3_L2", "PWM_G4_L2",
1169 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1170 "HS_RA_G1_L2", "HS_RA_G2_L2", "HS_RA_G3_L2",
1171 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1172 "HS_RB_G1_L2", "HS_RB_G2_L2", "HS_RB_G3_L2",
1173 "MAX";
1174
1175 /* PM QoS */
1176 qcom,pm-qos-cpu-groups = <0x0f 0xf0>;
1177 qcom,pm-qos-cpu-group-latency-us = <44 44>;
1178 qcom,pm-qos-default-cpu = <0>;
1179
1180 pinctrl-names = "dev-reset-assert", "dev-reset-deassert";
1181 pinctrl-0 = <&ufs_dev_reset_assert>;
1182 pinctrl-1 = <&ufs_dev_reset_deassert>;
1183
1184 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1185 reset-names = "core_reset";
1186
1187 status = "disabled";
1188 };
1189
Raghavendra Rao Ananta02957962018-08-06 15:28:34 -07001190 ipcc_mproc: qcom,ipcc@408000 {
1191 compatible = "qcom,kona-ipcc";
1192 reg = <0x408000 0x1000>;
1193 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
1194 interrupt-controller;
1195 #interrupt-cells = <3>;
1196 #mbox-cells = <2>;
1197 };
Lina Iyerea91c722018-06-20 14:58:05 -06001198
Raghavendra Rao Ananta5da54b32018-08-09 10:04:50 -07001199 ipcc_self_ping: ipcc-self-ping {
1200 compatible = "qcom,ipcc-self-ping";
1201 interrupts-extended = <&ipcc_mproc IPCC_CLIENT_APSS
1202 IPCC_MPROC_SIGNAL_SMP2P IRQ_TYPE_LEVEL_HIGH>;
1203 mboxes = <&ipcc_mproc IPCC_CLIENT_APSS IPCC_MPROC_SIGNAL_SMP2P>;
1204 };
1205
Maria Neptune5a1428b2018-08-29 13:25:19 -07001206 apps_rsc: rsc@18200000 {
Lina Iyerea91c722018-06-20 14:58:05 -06001207 label = "apps_rsc";
1208 compatible = "qcom,rpmh-rsc";
1209 reg = <0x18200000 0x10000>,
1210 <0x18210000 0x10000>,
1211 <0x18220000 0x10000>;
1212 reg-names = "drv-0", "drv-1", "drv-2";
1213 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
1214 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
1215 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1216 qcom,tcs-offset = <0xd00>;
1217 qcom,drv-id = <2>;
1218 qcom,tcs-config = <ACTIVE_TCS 2>,
1219 <SLEEP_TCS 3>,
1220 <WAKE_TCS 3>,
1221 <CONTROL_TCS 1>;
David Dai07c8d4e2018-10-09 14:22:06 -07001222
1223 msm_bus_apps_rsc {
1224 compatible = "qcom,msm-bus-rsc";
1225 qcom,msm-bus-id = <MSM_BUS_RSC_APPS>;
1226 };
Arjun Bagla76f02ef2018-09-19 10:00:29 -07001227
1228 system_pm {
1229 compatible = "qcom,system-pm";
1230 };
Lina Iyerea91c722018-06-20 14:58:05 -06001231 };
1232
1233 disp_rsc: rsc@af20000 {
1234 label = "disp_rsc";
1235 compatible = "qcom,rpmh-rsc";
1236 reg = <0xaf20000 0x10000>;
1237 reg-names = "drv-0";
1238 interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
1239 qcom,tcs-offset = <0x1c00>;
1240 qcom,drv-id = <0>;
1241 qcom,tcs-config = <ACTIVE_TCS 0>,
1242 <SLEEP_TCS 1>,
1243 <WAKE_TCS 1>,
1244 <CONTROL_TCS 0>;
1245 status = "disabled";
1246 };
Chris Lew86f6bde2018-09-06 16:40:39 -07001247
1248 tcsr_mutex_block: syscon@1f40000 {
1249 compatible = "syscon";
1250 reg = <0x1f40000 0x20000>;
1251 };
1252
1253 tcsr_mutex: hwlock {
1254 compatible = "qcom,tcsr-mutex";
1255 syscon = <&tcsr_mutex_block 0 0x1000>;
1256 #hwlock-cells = <1>;
1257 };
1258
1259 smem: qcom,smem {
1260 compatible = "qcom,smem";
1261 memory-region = <&smem_mem>;
1262 hwlocks = <&tcsr_mutex 3>;
1263 };
Venkata Narendra Kumar Gutta1781e562018-10-09 14:44:10 -07001264
1265 kryo-erp {
1266 compatible = "arm,arm64-kryo-cpu-erp";
1267 interrupts = <GIC_PPI 0 IRQ_TYPE_LEVEL_HIGH>,
1268 <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
1269 interrupt-names = "l1-l2-faultirq",
1270 "l3-scu-faultirq";
1271 };
Chris Lew3859b1b72018-09-25 16:54:52 -07001272
Chris Lew3b1f0982018-10-05 17:28:21 -07001273 sp_scsr: mailbox@188501c {
1274 compatible = "qcom,kona-spcs-global";
1275 reg = <0x188501c 0x4>;
1276
1277 #mbox-cells = <1>;
1278 };
1279
1280 sp_scsr_block: syscon@1880000 {
1281 compatible = "syscon";
1282 reg = <0x1880000 0x10000>;
1283 };
1284
1285 intsp: qcom,qsee_irq {
1286 compatible = "qcom,kona-qsee-irq";
1287
1288 syscon = <&sp_scsr_block>;
1289 interrupts = <0 348 IRQ_TYPE_LEVEL_HIGH>,
1290 <0 349 IRQ_TYPE_LEVEL_HIGH>;
1291
1292 interrupt-names = "sp_ipc0",
1293 "sp_ipc1";
1294
1295 interrupt-controller;
1296 #interrupt-cells = <3>;
1297 };
1298
1299 qcom,qsee_irq_bridge {
1300 compatible = "qcom,qsee-ipc-irq-bridge";
1301
1302 qcom,qsee-ipc-irq-spss {
1303 qcom,dev-name = "qsee_ipc_irq_spss";
1304 label = "spss";
1305 interrupt-parent = <&intsp>;
1306 interrupts = <1 0 IRQ_TYPE_LEVEL_HIGH>;
1307 };
1308 };
1309
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02001310 qcom,msm_gsi {
1311 compatible = "qcom,msm_gsi";
1312 };
1313
1314 qcom,rmnet-ipa {
1315 compatible = "qcom,rmnet-ipa3";
1316 qcom,rmnet-ipa-ssr;
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02001317 qcom,ipa-advertise-sg-support;
1318 qcom,ipa-napi-enable;
1319 };
1320
1321 qcom,ipa_fws {
1322 compatible = "qcom,pil-tz-generic";
1323 qcom,pas-id = <0xf>;
1324 qcom,firmware-name = "ipa_fws";
1325 qcom,pil-force-shutdown;
1326 memory-region = <&pil_ipa_fw_mem>;
1327 };
1328
1329 ipa_hw: qcom,ipa@1e00000 {
1330 compatible = "qcom,ipa";
1331 reg =
1332 <0x1e00000 0x84000>,
1333 <0x1e04000 0x23000>;
1334 reg-names = "ipa-base", "gsi-base";
1335 interrupts =
1336 <0 311 IRQ_TYPE_LEVEL_HIGH>,
1337 <0 432 IRQ_TYPE_LEVEL_HIGH>;
1338 interrupt-names = "ipa-irq", "gsi-irq";
1339 qcom,ipa-hw-ver = <17>; /* IPA core version = IPAv4.5 */
1340 qcom,ipa-hw-mode = <0>;
Ghanim Fodif8dcdbf2018-11-04 17:58:22 +02001341 qcom,platform-type = <2>; /* APQ platform */
Ghanim Fodi180e5aa2018-11-01 19:45:45 +02001342 qcom,ee = <0>;
1343 qcom,use-ipa-tethering-bridge;
1344 qcom,mhi-event-ring-id-limits = <9 11>; /* start and end */
1345 qcom,modem-cfg-emb-pipe-flt;
1346 qcom,use-ipa-pm;
1347 qcom,bandwidth-vote-for-ipa;
1348 qcom,use-64-bit-dma-mask;
1349 qcom,msm-bus,name = "ipa";
1350 qcom,msm-bus,num-cases = <5>;
1351 qcom,msm-bus,num-paths = <4>;
1352 qcom,msm-bus,vectors-KBps =
1353 /* No vote */
1354 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 0 0>,
1355 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 0 0>,
1356 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 0 0>,
1357 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 0>,
1358
1359 /* SVS2 */
1360 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 80000 600000>,
1361 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 80000 350000>,
1362 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 40000 40000>,
1363 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 125>,
1364
1365 /* SVS */
1366 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 80000 640000>,
1367 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 80000 640000>,
1368 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 80000 80000>,
1369 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 250>,
1370
1371 /* NOMINAL */
1372 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 206000 960000>,
1373 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 206000 960000>,
1374 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 206000 160000>,
1375 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 500>,
1376
1377 /* TURBO */
1378 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_EBI_CH0 206000 3600000>,
1379 <MSM_BUS_MASTER_IPA MSM_BUS_SLAVE_OCIMEM 206000 3600000>,
1380 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_IPA_CFG 206000 300000>,
1381 <MSM_BUS_MASTER_IPA_CORE MSM_BUS_SLAVE_IPA_CORE 0 600>;
1382
1383 qcom,bus-vector-names = "MIN", "SVS2", "SVS", "NOMINAL",
1384 "TURBO";
1385 qcom,throughput-threshold = <310 600 1000>;
1386 qcom,scaling-exceptions = <>;
1387 };
1388
1389 ipa_smmu_ap: ipa_smmu_ap {
1390 compatible = "qcom,ipa-smmu-ap-cb";
1391 iommus = <&apps_smmu 0x5C0 0x0>;
1392 qcom,iommu-dma = "bypass";
1393 };
1394
1395 ipa_smmu_wlan: ipa_smmu_wlan {
1396 compatible = "qcom,ipa-smmu-wlan-cb";
1397 iommus = <&apps_smmu 0x5C1 0x0>;
1398 qcom,iommu-dma = "bypass";
1399 };
1400
1401 ipa_smmu_uc: ipa_smmu_uc {
1402 compatible = "qcom,ipa-smmu-uc-cb";
1403 iommus = <&apps_smmu 0x5C2 0x0>;
1404 qcom,iommu-dma = "bypass";
1405 };
1406
Chris Lew3859b1b72018-09-25 16:54:52 -07001407 qcom,glink {
1408 compatible = "qcom,glink";
1409 #address-cells = <1>;
1410 #size-cells = <1>;
1411 ranges;
1412
Chris Lewb2da0482018-11-16 14:50:31 -08001413 glink_npu: npu {
1414 qcom,remote-pid = <10>;
1415 transport = "smem";
1416 mboxes = <&ipcc_mproc IPCC_CLIENT_NPU
1417 IPCC_MPROC_SIGNAL_GLINK_QMP>;
1418 mbox-names = "npu_smem";
1419 interrupt-parent = <&ipcc_mproc>;
1420 interrupts = <IPCC_CLIENT_NPU
1421 IPCC_MPROC_SIGNAL_GLINK_QMP
1422 IRQ_TYPE_EDGE_RISING>;
1423
1424 label = "npu";
1425 qcom,glink-label = "npu";
1426
1427 qcom,npu_qrtr {
1428 qcom,glink-channels = "IPCRTR";
1429 qcom,intents = <0x800 5
1430 0x2000 3
1431 0x4400 2>;
1432 };
1433
1434 qcom,npu_glink_ssr {
1435 qcom,glink-channels = "glink_ssr";
1436 qcom,notify-edges = <&glink_cdsp>;
1437 };
1438 };
1439
Chris Lew3859b1b72018-09-25 16:54:52 -07001440 glink_adsp: adsp {
1441 qcom,remote-pid = <2>;
1442 transport = "smem";
1443 mboxes = <&ipcc_mproc IPCC_CLIENT_LPASS
1444 IPCC_MPROC_SIGNAL_GLINK_QMP>;
1445 mbox-names = "adsp_smem";
1446 interrupt-parent = <&ipcc_mproc>;
1447 interrupts = <IPCC_CLIENT_LPASS
1448 IPCC_MPROC_SIGNAL_GLINK_QMP
1449 IRQ_TYPE_EDGE_RISING>;
1450
1451 label = "adsp";
1452 qcom,glink-label = "lpass";
1453
1454 qcom,adsp_qrtr {
1455 qcom,glink-channels = "IPCRTR";
1456 qcom,intents = <0x800 5
1457 0x2000 3
1458 0x4400 2>;
1459 };
1460
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301461 qcom,msm_fastrpc_rpmsg {
1462 compatible = "qcom,msm-fastrpc-rpmsg";
1463 qcom,glink-channels = "fastrpcglink-apps-dsp";
1464 qcom,intents = <0x64 64>;
1465 };
1466
Chris Lew3859b1b72018-09-25 16:54:52 -07001467 qcom,adsp_glink_ssr {
1468 qcom,glink-channels = "glink_ssr";
1469 qcom,notify-edges = <&glink_slpi>,
1470 <&glink_cdsp>;
1471 };
1472 };
1473
1474 glink_slpi: dsps {
1475 qcom,remote-pid = <3>;
1476 transport = "smem";
1477 mboxes = <&ipcc_mproc IPCC_CLIENT_SLPI
1478 IPCC_MPROC_SIGNAL_GLINK_QMP>;
1479 mbox-names = "dsps_smem";
1480 interrupt-parent = <&ipcc_mproc>;
1481 interrupts = <IPCC_CLIENT_SLPI
1482 IPCC_MPROC_SIGNAL_GLINK_QMP
1483 IRQ_TYPE_EDGE_RISING>;
1484
1485 label = "slpi";
1486 qcom,glink-label = "dsps";
1487
1488 qcom,slpi_qrtr {
1489 qcom,glink-channels = "IPCRTR";
1490 qcom,intents = <0x800 5
1491 0x2000 3
1492 0x4400 2>;
1493 };
1494
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301495 qcom,msm_fastrpc_rpmsg {
1496 compatible = "qcom,msm-fastrpc-rpmsg";
1497 qcom,glink-channels = "fastrpcglink-apps-dsp";
1498 qcom,intents = <0x64 64>;
1499 };
1500
Chris Lew3859b1b72018-09-25 16:54:52 -07001501 qcom,slpi_glink_ssr {
1502 qcom,glink-channels = "glink_ssr";
1503 qcom,notify-edges = <&glink_adsp>,
1504 <&glink_cdsp>;
1505 };
1506 };
1507
1508 glink_cdsp: cdsp {
1509 qcom,remote-pid = <5>;
1510 transport = "smem";
1511 mboxes = <&ipcc_mproc IPCC_CLIENT_CDSP
1512 IPCC_MPROC_SIGNAL_GLINK_QMP>;
1513 mbox-names = "dsps_smem";
1514 interrupt-parent = <&ipcc_mproc>;
1515 interrupts = <IPCC_CLIENT_CDSP
1516 IPCC_MPROC_SIGNAL_GLINK_QMP
1517 IRQ_TYPE_EDGE_RISING>;
1518
1519 label = "cdsp";
1520 qcom,glink-label = "cdsp";
1521
1522 qcom,cdsp_qrtr {
1523 qcom,glink-channels = "IPCRTR";
1524 qcom,intents = <0x800 5
1525 0x2000 3
1526 0x4400 2>;
1527 };
1528
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301529 qcom,msm_fastrpc_rpmsg {
1530 compatible = "qcom,msm-fastrpc-rpmsg";
1531 qcom,glink-channels = "fastrpcglink-apps-dsp";
1532 qcom,intents = <0x64 64>;
1533 };
1534
Chris Lew3859b1b72018-09-25 16:54:52 -07001535 qcom,cdsp_glink_ssr {
1536 qcom,glink-channels = "glink_ssr";
1537 qcom,notify-edges = <&glink_adsp>,
Chris Lewb2da0482018-11-16 14:50:31 -08001538 <&glink_slpi>,
1539 <&glink_npu>;
Chris Lew3859b1b72018-09-25 16:54:52 -07001540 };
1541 };
Chris Lew3b1f0982018-10-05 17:28:21 -07001542
1543 glink_spss: spss {
1544 qcom,remote-pid = <8>;
1545 transport = "spss";
1546 mboxes = <&sp_scsr 0>;
1547 mbox-names = "spss_spss";
1548 interrupt-parent = <&intsp>;
1549 interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>;
1550
1551 reg = <0x1885008 0x8>,
1552 <0x1885010 0x4>;
1553 reg-names = "qcom,spss-addr",
1554 "qcom,spss-size";
1555
1556 label = "spss";
1557 qcom,glink-label = "spss";
1558 };
Chris Lew3859b1b72018-09-25 16:54:52 -07001559 };
Bruce Levy5122a632018-09-25 15:51:37 -07001560
1561 qcom,lpass@17300000 {
1562 compatible = "qcom,pil-tz-generic";
1563 reg = <0x17300000 0x00100>;
1564
1565 vdd_cx-supply = <&VDD_CX_LEVEL>;
1566 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
1567 qcom,proxy-reg-names = "vdd_cx";
1568
1569 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1570 clock-names = "xo";
1571 qcom,proxy-clock-names = "xo";
1572
1573 qcom,pas-id = <1>;
1574 qcom,proxy-timeout-ms = <10000>;
1575 qcom,smem-id = <423>;
1576 qcom,sysmon-id = <1>;
1577 qcom,ssctl-instance-id = <0x14>;
1578 qcom,firmware-name = "adsp";
1579 memory-region = <&pil_adsp_mem>;
1580 qcom,complete-ramdump;
1581
1582 /* Inputs from lpass */
1583 interrupts-extended = <&pdc 96 IRQ_TYPE_LEVEL_HIGH>,
1584 <&adsp_smp2p_in 0 0>,
1585 <&adsp_smp2p_in 2 0>,
1586 <&adsp_smp2p_in 1 0>,
1587 <&adsp_smp2p_in 3 0>;
1588
1589 interrupt-names = "qcom,wdog",
1590 "qcom,err-fatal",
1591 "qcom,proxy-unvote",
1592 "qcom,err-ready",
1593 "qcom,stop-ack";
1594
1595 /* Outputs to lpass */
1596 qcom,smem-states = <&adsp_smp2p_out 0>;
1597 qcom,smem-state-names = "qcom,force-stop";
1598
1599 mbox-names = "adsp-pil";
1600 };
1601
1602 qcom,turing@8300000 {
1603 compatible = "qcom,pil-tz-generic";
1604 reg = <0x8300000 0x100000>;
1605
1606 vdd_cx-supply = <&VDD_CX_LEVEL>;
1607 qcom,proxy-reg-names = "vdd_cx";
1608 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1609
1610 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1611 clock-names = "xo";
1612 qcom,proxy-clock-names = "xo";
1613
1614 qcom,pas-id = <18>;
1615 qcom,proxy-timeout-ms = <10000>;
1616 qcom,smem-id = <601>;
1617 qcom,sysmon-id = <7>;
1618 qcom,ssctl-instance-id = <0x17>;
1619 qcom,firmware-name = "cdsp";
1620 memory-region = <&pil_cdsp_mem>;
1621 qcom,complete-ramdump;
1622
1623 qcom,msm-bus,name = "pil-cdsp";
1624 qcom,msm-bus,num-cases = <2>;
1625 qcom,msm-bus,num-paths = <1>;
1626 qcom,msm-bus,vectors-KBps =
1627 <154 10070 0 0>,
1628 <154 10070 0 1>;
1629
1630 /* Inputs from turing */
Bruce Levy821133c2018-11-29 11:34:45 -08001631 interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_LEVEL_HIGH>,
Bruce Levy5122a632018-09-25 15:51:37 -07001632 <&cdsp_smp2p_in 0 0>,
1633 <&cdsp_smp2p_in 2 0>,
1634 <&cdsp_smp2p_in 1 0>,
1635 <&cdsp_smp2p_in 3 0>;
1636
1637 interrupt-names = "qcom,wdog",
1638 "qcom,err-fatal",
1639 "qcom,proxy-unvote",
1640 "qcom,err-ready",
1641 "qcom,stop-ack";
1642
1643 /* Outputs to turing */
1644 qcom,smem-states = <&cdsp_smp2p_out 0>;
1645 qcom,smem-state-names = "qcom,force-stop";
1646
1647 mbox-names = "cdsp-pil";
1648 };
Akshay Chandrashekhar Kalghatgif7905ad2018-11-08 16:30:42 -08001649
1650 qcom,venus@aab0000 {
1651 compatible = "qcom,pil-tz-generic";
1652 reg = <0xaab0000 0x2000>;
Chinmay Sawarkar2cfeca02018-11-15 17:59:36 -08001653
1654 vdd-supply = <&mvs0c_gdsc>;
1655 qcom,proxy-reg-names = "vdd";
1656 qcom,complete-ramdump;
1657
1658 clocks = <&clock_videocc VIDEO_CC_XO_CLK>,
1659 <&clock_videocc VIDEO_CC_MVS0C_CLK>,
1660 <&clock_videocc VIDEO_CC_AHB_CLK>;
1661 clock-names = "xo", "core", "ahb";
1662 qcom,proxy-clock-names = "xo", "core", "ahb";
1663
Akshay Chandrashekhar Kalghatgif7905ad2018-11-08 16:30:42 -08001664 qcom,core-freq = <200000000>;
1665 qcom,ahb-freq = <200000000>;
1666
1667 qcom,pas-id = <9>;
1668 qcom,msm-bus,name = "pil-venus";
1669 qcom,msm-bus,num-cases = <2>;
1670 qcom,msm-bus,num-paths = <1>;
1671 qcom,msm-bus,vectors-KBps =
1672 <63 512 0 0>,
1673 <63 512 0 304000>;
1674 qcom,proxy-timeout-ms = <100>;
1675 qcom,firmware-name = "venus";
1676 memory-region = <&pil_video_mem>;
1677 };
Tharun Kumar Merugub8d79dd2018-11-02 23:07:31 +05301678
Jilai Wangd20a5292018-12-04 11:05:10 -05001679 qcom,npu@9800000 {
1680 compatible = "qcom,pil-tz-generic";
1681 reg = <0x9800000 0x800000>;
1682
1683 status = "ok";
1684 qcom,pas-id = <23>;
1685 qcom,firmware-name = "npu";
1686 memory-region = <&pil_npu_mem>;
1687 };
1688
Tharun Kumar Merugub8d79dd2018-11-02 23:07:31 +05301689 qcom,msm-cdsp-loader {
1690 compatible = "qcom,cdsp-loader";
1691 qcom,proc-img-to-load = "cdsp";
1692 };
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301693
1694 qcom,msm-adsprpc-mem {
1695 compatible = "qcom,msm-adsprpc-mem-region";
1696 memory-region = <&adsp_mem>;
1697 };
1698
1699 msm_fastrpc: qcom,msm_fastrpc {
1700 compatible = "qcom,msm-fastrpc-compute";
1701 qcom,fastrpc-adsp-audio-pdr;
1702 qcom,rpc-latency-us = <235>;
1703
1704 qcom,msm_fastrpc_compute_cb1 {
1705 compatible = "qcom,msm-fastrpc-compute-cb";
1706 label = "cdsprpc-smd";
1707 iommus = <&apps_smmu 0x1001 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301708 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1709 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301710 dma-coherent;
1711 };
1712
1713 qcom,msm_fastrpc_compute_cb2 {
1714 compatible = "qcom,msm-fastrpc-compute-cb";
1715 label = "cdsprpc-smd";
1716 iommus = <&apps_smmu 0x1002 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301717 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1718 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301719 dma-coherent;
1720 };
1721
1722 qcom,msm_fastrpc_compute_cb3 {
1723 compatible = "qcom,msm-fastrpc-compute-cb";
1724 label = "cdsprpc-smd";
1725 iommus = <&apps_smmu 0x1003 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301726 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1727 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301728 dma-coherent;
1729 };
1730
1731 qcom,msm_fastrpc_compute_cb4 {
1732 compatible = "qcom,msm-fastrpc-compute-cb";
1733 label = "cdsprpc-smd";
1734 iommus = <&apps_smmu 0x1004 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301735 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1736 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301737 dma-coherent;
1738 };
1739
1740 qcom,msm_fastrpc_compute_cb5 {
1741 compatible = "qcom,msm-fastrpc-compute-cb";
1742 label = "cdsprpc-smd";
1743 iommus = <&apps_smmu 0x1005 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301744 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1745 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301746 dma-coherent;
1747 };
1748
1749 qcom,msm_fastrpc_compute_cb6 {
1750 compatible = "qcom,msm-fastrpc-compute-cb";
1751 label = "cdsprpc-smd";
1752 iommus = <&apps_smmu 0x1006 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301753 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1754 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301755 dma-coherent;
1756 };
1757
1758 qcom,msm_fastrpc_compute_cb7 {
1759 compatible = "qcom,msm-fastrpc-compute-cb";
1760 label = "cdsprpc-smd";
1761 iommus = <&apps_smmu 0x1007 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301762 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1763 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301764 dma-coherent;
1765 };
1766
1767 qcom,msm_fastrpc_compute_cb8 {
1768 compatible = "qcom,msm-fastrpc-compute-cb";
1769 label = "cdsprpc-smd";
1770 iommus = <&apps_smmu 0x1008 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301771 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1772 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301773 dma-coherent;
1774 };
1775
1776 qcom,msm_fastrpc_compute_cb9 {
1777 compatible = "qcom,msm-fastrpc-compute-cb";
1778 label = "cdsprpc-smd";
1779 qcom,secure-context-bank;
1780 iommus = <&apps_smmu 0x1009 0x0460>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301781 dma-ranges = <0x60000000 0x60000000 0x78000000>;
1782 qcom,iommu-faults = "stall-disable";
1783 qcom,iommu-vmid = <0xA>; /* VMID_CP_PIXEL */
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301784 dma-coherent;
1785 };
1786
1787 qcom,msm_fastrpc_compute_cb10 {
1788 compatible = "qcom,msm-fastrpc-compute-cb";
1789 label = "adsprpc-smd";
1790 iommus = <&apps_smmu 0x1803 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301791 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1792 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301793 dma-coherent;
1794 };
1795
1796 qcom,msm_fastrpc_compute_cb11 {
1797 compatible = "qcom,msm-fastrpc-compute-cb";
1798 label = "adsprpc-smd";
1799 iommus = <&apps_smmu 0x1804 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301800 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1801 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301802 dma-coherent;
1803 };
1804
1805 qcom,msm_fastrpc_compute_cb12 {
1806 compatible = "qcom,msm-fastrpc-compute-cb";
1807 label = "adsprpc-smd";
1808 iommus = <&apps_smmu 0x1805 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301809 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1810 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301811 dma-coherent;
1812 };
1813
1814 qcom,msm_fastrpc_compute_cb13 {
1815 compatible = "qcom,msm-fastrpc-compute-cb";
1816 label = "sdsprpc-smd";
1817 iommus = <&apps_smmu 0x0541 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301818 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1819 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301820 dma-coherent;
1821 };
1822
1823 qcom,msm_fastrpc_compute_cb14 {
1824 compatible = "qcom,msm-fastrpc-compute-cb";
1825 label = "sdsprpc-smd";
1826 iommus = <&apps_smmu 0x0542 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301827 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1828 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301829 dma-coherent;
1830 };
1831
1832 qcom,msm_fastrpc_compute_cb15 {
1833 compatible = "qcom,msm-fastrpc-compute-cb";
1834 label = "sdsprpc-smd";
1835 iommus = <&apps_smmu 0x0543 0x0>;
Tharun Kumar Meruguaf4c92f2018-11-16 05:12:16 +05301836 dma-ranges = <0x80000000 0x80000000 0x78000000>;
1837 qcom,iommu-faults = "stall-disable";
Tharun Kumar Merugu027438b2018-11-09 03:24:57 +05301838 shared-cb = <4>;
1839 dma-coherent;
1840 };
1841 };
Shaikh Shadulbfdfdda2018-11-14 15:36:21 +05301842
1843 qcom,ssc@5c00000 {
1844 compatible = "qcom,pil-tz-generic";
1845 reg = <0x5c00000 0x4000>;
1846
1847 vdd_cx-supply = <&VDD_CX_LEVEL>;
1848 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
1849 vdd_mx-supply = <&VDD_MX_LEVEL>;
1850 qcom,vdd_mx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 0>;
1851
1852 qcom,proxy-reg-names = "vdd_cx", "vdd_mx";
1853 qcom,keep-proxy-regs-on;
1854
1855 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1856 clock-names = "xo";
1857 qcom,proxy-clock-names = "xo";
1858
1859 qcom,pas-id = <12>;
1860 qcom,proxy-timeout-ms = <10000>;
1861 qcom,smem-id = <424>;
1862 qcom,sysmon-id = <3>;
1863 qcom,ssctl-instance-id = <0x16>;
1864 qcom,firmware-name = "slpi";
1865 status = "ok";
1866 memory-region = <&pil_slpi_mem>;
1867 qcom,complete-ramdump;
1868
1869 /* Inputs from ssc */
1870 interrupts-extended = <&pdc 9 IRQ_TYPE_LEVEL_HIGH>,
1871 <&dsps_smp2p_in 0 0>,
1872 <&dsps_smp2p_in 2 0>,
1873 <&dsps_smp2p_in 1 0>,
1874 <&dsps_smp2p_in 3 0>;
1875
1876 interrupt-names = "qcom,wdog",
1877 "qcom,err-fatal",
1878 "qcom,proxy-unvote",
1879 "qcom,err-ready",
1880 "qcom,stop-ack";
1881
1882 /* Outputs to ssc */
1883 qcom,smem-states = <&dsps_smp2p_out 0>;
1884 qcom,smem-state-names = "qcom,force-stop";
1885
1886 mbox-names = "slpi-pil";
1887 };
1888
1889 ssc_sensors: qcom,msm-ssc-sensors {
1890 compatible = "qcom,msm-ssc-sensors";
1891 status = "ok";
1892 qcom,firmware-name = "slpi";
1893 };
Runmin Wang4f5985b2017-04-19 15:55:12 -07001894};
Swathi Sridhar4008eb42018-07-17 15:34:46 -07001895
David Daib1d68482018-10-01 19:40:35 -07001896#include "kona-bus.dtsi"
Swathi Sridharbbbc80b2018-07-13 10:02:08 -07001897#include "kona-ion.dtsi"
Tony Truongc972c642018-09-12 10:03:51 -07001898#include "kona-pcie.dtsi"
Sujeev Dias5399e552018-09-18 17:57:54 -07001899#include "kona-mhi.dtsi"
Swathi Sridhar4008eb42018-07-17 15:34:46 -07001900#include "msm-arm-smmu-kona.dtsi"
Rishabh Bhatnagara740b0e2018-07-20 15:08:35 -07001901#include "kona-pinctrl.dtsi"
Chris Lew86f6bde2018-09-06 16:40:39 -07001902#include "kona-smp2p.dtsi"
Hemant Kumar5f58bad2018-08-31 14:25:23 -07001903#include "kona-usb.dtsi"
Tingwei Zhang564fa692018-11-28 00:31:17 -08001904#include "kona-coresight.dtsi"
Samantha Tran7e309f02018-08-31 17:23:00 -07001905#include "kona-sde.dtsi"
Satya Rama Aditya Pinapala09600b32018-10-29 10:52:37 -07001906#include "kona-sde-pll.dtsi"
Samantha Tran7e309f02018-08-31 17:23:00 -07001907#include "kona-sde-display.dtsi"
Vignesh Kulothungand728f712018-10-26 17:49:46 -07001908#include "kona-audio.dtsi"
Arjun Bagla76f02ef2018-09-19 10:00:29 -07001909#include "kona-pm.dtsi"