blob: 68507a5869acb4b0f1a1ab83970e96070ac83eb6 [file] [log] [blame]
Imran Khan04f08312017-03-30 15:07:43 +05301/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include "skeleton64.dtsi"
14#include <dt-bindings/interrupt-controller/arm-gic.h>
Odelu Kukatla1fe3a222017-06-01 16:24:59 +053015#include <dt-bindings/clock/qcom,gcc-sdm845.h>
16#include <dt-bindings/clock/qcom,camcc-sdm845.h>
17#include <dt-bindings/clock/qcom,dispcc-sdm845.h>
18#include <dt-bindings/clock/qcom,gpucc-sdm845.h>
19#include <dt-bindings/clock/qcom,videocc-sdm845.h>
20#include <dt-bindings/clock/qcom,cpucc-sdm845.h>
21#include <dt-bindings/clock/qcom,rpmh.h>
Maulik Shahc77d1d22017-06-15 14:04:50 +053022#include <dt-bindings/soc/qcom,tcs-mbox.h>
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +053023#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +053024#include <dt-bindings/clock/qcom,aop-qmp.h>
Imran Khan04f08312017-03-30 15:07:43 +053025
Santosh Mardi903c95d2017-09-25 10:36:29 +053026#define MHZ_TO_MBPS(mhz, w) ((mhz * 1000000 * w) / (1024 * 1024))
27
Imran Khan04f08312017-03-30 15:07:43 +053028/ {
29 model = "Qualcomm Technologies, Inc. SDM670";
30 compatible = "qcom,sdm670";
31 qcom,msm-id = <336 0x0>;
Maulik Shah30ebbde2017-06-15 10:02:54 +053032 interrupt-parent = <&pdc>;
Imran Khan04f08312017-03-30 15:07:43 +053033
Sayali Lokhande099af9c2017-06-08 10:18:29 +053034 aliases {
35 ufshc1 = &ufshc_mem; /* Embedded UFS slot */
Vijay Viswanatheac72722017-06-05 11:01:38 +053036 sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
Vijay Viswanathee4340d2017-08-28 09:50:18 +053037 sdhc2 = &sdhc_2; /* SDC2 SD Card slot */
Mukesh Kumar Savaliya7b272542017-07-10 19:35:29 +053038 serial0 = &qupv3_se12_2uart;
39 spi0 = &qupv3_se8_spi;
40 i2c0 = &qupv3_se10_i2c;
41 i2c1 = &qupv3_se3_i2c;
42 hsuart0 = &qupv3_se6_4uart;
43 };
44
Lingutla Chandrasekhard9eb37a2017-10-03 19:53:36 +053045 chosen {
Pavankumar Kondeti2c218d72017-10-03 19:31:31 +053046 bootargs = "rcupdate.rcu_expedited=1 core_ctl_disable_cpumask=6-7";
Lingutla Chandrasekhard9eb37a2017-10-03 19:53:36 +053047 };
48
Imran Khan04f08312017-03-30 15:07:43 +053049 cpus {
50 #address-cells = <2>;
51 #size-cells = <0>;
52
53 CPU0: cpu@0 {
54 device_type = "cpu";
55 compatible = "arm,armv8";
56 reg = <0x0 0x0>;
57 enable-method = "psci";
58 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +053059 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +053060 cpu-release-addr = <0x0 0x90000000>;
61 next-level-cache = <&L2_0>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +053062 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +053063 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +053064 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +053065 L2_0: l2-cache {
66 compatible = "arm,arch-cache";
67 cache-size = <0x20000>;
68 cache-level = <2>;
69 next-level-cache = <&L3_0>;
70 L3_0: l3-cache {
71 compatible = "arm,arch-cache";
72 cache-size = <0x100000>;
73 cache-level = <3>;
74 };
75 };
76 L1_I_0: l1-icache {
77 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +053078 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +053079 };
80 L1_D_0: l1-dcache {
81 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +053082 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +053083 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +053084 L1_TLB_0: l1-tlb {
85 qcom,dump-size = <0x3000>;
86 };
Imran Khan04f08312017-03-30 15:07:43 +053087 };
88
89 CPU1: cpu@100 {
90 device_type = "cpu";
91 compatible = "arm,armv8";
92 reg = <0x0 0x100>;
93 enable-method = "psci";
94 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +053095 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +053096 cpu-release-addr = <0x0 0x90000000>;
97 next-level-cache = <&L2_100>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +053098 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +053099 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530100 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530101 L2_100: l2-cache {
102 compatible = "arm,arch-cache";
103 cache-size = <0x20000>;
104 cache-level = <2>;
105 next-level-cache = <&L3_0>;
106 };
107 L1_I_100: l1-icache {
108 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530109 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +0530110 };
111 L1_D_100: l1-dcache {
112 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530113 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +0530114 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530115 L1_TLB_100: l1-tlb {
116 qcom,dump-size = <0x3000>;
117 };
Imran Khan04f08312017-03-30 15:07:43 +0530118 };
119
120 CPU2: cpu@200 {
121 device_type = "cpu";
122 compatible = "arm,armv8";
123 reg = <0x0 0x200>;
124 enable-method = "psci";
125 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530126 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +0530127 cpu-release-addr = <0x0 0x90000000>;
128 next-level-cache = <&L2_200>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530129 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530130 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530131 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530132 L2_200: l2-cache {
133 compatible = "arm,arch-cache";
134 cache-size = <0x20000>;
135 cache-level = <2>;
136 next-level-cache = <&L3_0>;
137 };
138 L1_I_200: l1-icache {
139 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530140 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +0530141 };
142 L1_D_200: l1-dcache {
143 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530144 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +0530145 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530146 L1_TLB_200: l1-tlb {
147 qcom,dump-size = <0x3000>;
148 };
Imran Khan04f08312017-03-30 15:07:43 +0530149 };
150
151 CPU3: cpu@300 {
152 device_type = "cpu";
153 compatible = "arm,armv8";
154 reg = <0x0 0x300>;
155 enable-method = "psci";
156 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530157 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +0530158 cpu-release-addr = <0x0 0x90000000>;
159 next-level-cache = <&L2_300>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530160 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530161 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530162 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530163 L2_300: l2-cache {
164 compatible = "arm,arch-cache";
165 cache-size = <0x20000>;
166 cache-level = <2>;
167 next-level-cache = <&L3_0>;
168 };
169 L1_I_300: l1-icache {
170 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530171 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +0530172 };
173 L1_D_300: l1-dcache {
174 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530175 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +0530176 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530177 L1_TLB_300: l1-tlb {
178 qcom,dump-size = <0x3000>;
179 };
Imran Khan04f08312017-03-30 15:07:43 +0530180 };
181
182 CPU4: cpu@400 {
183 device_type = "cpu";
184 compatible = "arm,armv8";
185 reg = <0x0 0x400>;
186 enable-method = "psci";
187 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530188 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +0530189 cpu-release-addr = <0x0 0x90000000>;
190 next-level-cache = <&L2_400>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530191 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530192 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530193 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530194 L2_400: l2-cache {
195 compatible = "arm,arch-cache";
196 cache-size = <0x20000>;
197 cache-level = <2>;
198 next-level-cache = <&L3_0>;
199 };
200 L1_I_400: l1-icache {
201 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530202 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +0530203 };
204 L1_D_400: l1-dcache {
205 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530206 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +0530207 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530208 L1_TLB_400: l1-tlb {
209 qcom,dump-size = <0x3000>;
210 };
Imran Khan04f08312017-03-30 15:07:43 +0530211 };
212
213 CPU5: cpu@500 {
214 device_type = "cpu";
215 compatible = "arm,armv8";
216 reg = <0x0 0x500>;
217 enable-method = "psci";
218 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530219 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +0530220 cpu-release-addr = <0x0 0x90000000>;
221 next-level-cache = <&L2_500>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530222 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530223 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530224 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530225 L2_500: l2-cache {
226 compatible = "arm,arch-cache";
227 cache-size = <0x20000>;
228 cache-level = <2>;
229 next-level-cache = <&L3_0>;
230 };
231 L1_I_500: l1-icache {
232 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530233 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +0530234 };
235 L1_D_500: l1-dcache {
236 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530237 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +0530238 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530239 L1_TLB_500: l1-tlb {
240 qcom,dump-size = <0x3000>;
241 };
Imran Khan04f08312017-03-30 15:07:43 +0530242 };
243
244 CPU6: cpu@600 {
245 device_type = "cpu";
246 compatible = "arm,armv8";
247 reg = <0x0 0x600>;
248 enable-method = "psci";
249 efficiency = <1740>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530250 cache-size = <0x20000>;
Imran Khan04f08312017-03-30 15:07:43 +0530251 cpu-release-addr = <0x0 0x90000000>;
252 next-level-cache = <&L2_600>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530253 sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530254 qcom,lmh-dcvs = <&lmh_dcvs1>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530255 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530256 L2_600: l2-cache {
257 compatible = "arm,arch-cache";
258 cache-size = <0x40000>;
259 cache-level = <2>;
260 next-level-cache = <&L3_0>;
261 };
262 L1_I_600: l1-icache {
263 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530264 qcom,dump-size = <0x24000>;
Imran Khan04f08312017-03-30 15:07:43 +0530265 };
266 L1_D_600: l1-dcache {
267 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530268 qcom,dump-size = <0x14000>;
Imran Khan04f08312017-03-30 15:07:43 +0530269 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530270 L1_TLB_600: l1-tlb {
271 qcom,dump-size = <0x3c000>;
272 };
Imran Khan04f08312017-03-30 15:07:43 +0530273 };
274
275 CPU7: cpu@700 {
276 device_type = "cpu";
277 compatible = "arm,armv8";
278 reg = <0x0 0x700>;
279 enable-method = "psci";
280 efficiency = <1740>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530281 cache-size = <0x20000>;
Imran Khan04f08312017-03-30 15:07:43 +0530282 cpu-release-addr = <0x0 0x90000000>;
283 next-level-cache = <&L2_700>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530284 sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530285 qcom,lmh-dcvs = <&lmh_dcvs1>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530286 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530287 L2_700: l2-cache {
288 compatible = "arm,arch-cache";
289 cache-size = <0x40000>;
290 cache-level = <2>;
291 next-level-cache = <&L3_0>;
292 };
293 L1_I_700: l1-icache {
294 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530295 qcom,dump-size = <0x24000>;
Imran Khan04f08312017-03-30 15:07:43 +0530296 };
297 L1_D_700: l1-dcache {
298 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530299 qcom,dump-size = <0x14000>;
Imran Khan04f08312017-03-30 15:07:43 +0530300 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530301 L1_TLB_700: l1-tlb {
302 qcom,dump-size = <0x3c000>;
303 };
Imran Khan04f08312017-03-30 15:07:43 +0530304 };
305
306 cpu-map {
307 cluster0 {
308 core0 {
309 cpu = <&CPU0>;
310 };
311
312 core1 {
313 cpu = <&CPU1>;
314 };
315
316 core2 {
317 cpu = <&CPU2>;
318 };
319
320 core3 {
321 cpu = <&CPU3>;
322 };
323
324 core4 {
325 cpu = <&CPU4>;
326 };
327
328 core5 {
329 cpu = <&CPU5>;
330 };
331 };
332 cluster1 {
333 core0 {
334 cpu = <&CPU6>;
335 };
336
337 core1 {
338 cpu = <&CPU7>;
339 };
340 };
341 };
342 };
343
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530344 energy_costs: energy-costs {
345 compatible = "sched-energy";
346
347 CPU_COST_0: core-cost0 {
348 busy-cost-data = <
349 300000 14
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530350 576000 25
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530351 748800 31
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530352 998400 46
353 1209600 57
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530354 1324800 84
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530355 1516800 96
356 1612800 114
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530357 1708000 139
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530358 >;
359 idle-cost-data = <
360 12 10 8 6
361 >;
362 };
363 CPU_COST_1: core-cost1 {
364 busy-cost-data = <
365 300000 256
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530366 652800 307
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530367 825600 332
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530368 979200 382
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530369 1132800 408
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530370 1363200 448
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530371 1563000 586
372 1747200 641
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530373 1843200 659
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530374 1996800 696
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530375 2054400 876
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530376 2169600 900
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530377 2208000 924
378 2361600 948
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530379 2400000 1170
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530380 2457600 1200
381 2515200 1300
382 2611200 1400
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530383 >;
384 idle-cost-data = <
385 100 80 60 40
386 >;
387 };
388 CLUSTER_COST_0: cluster-cost0 {
389 busy-cost-data = <
390 300000 5
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530391 576000 7
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530392 748800 8
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530393 998400 9
394 1209600 10
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530395 1324800 13
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530396 1516800 15
397 1612800 16
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530398 1708000 19
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530399 >;
400 idle-cost-data = <
401 4 3 2 1
402 >;
403 };
404 CLUSTER_COST_1: cluster-cost1 {
405 busy-cost-data = <
406 300000 25
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530407 652800 30
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530408 825600 33
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530409 979200 38
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530410 1132800 40
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530411 1363200 44
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530412 1563000 58
413 1747200 64
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530414 1843200 65
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530415 1996800 69
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530416 2054400 87
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530417 2169600 90
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530418 2208000 92
419 2361600 94
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530420 2400000 117
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530421 2457600 120
422 2515200 130
423 2611200 140
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530424 >;
425 idle-cost-data = <
426 4 3 2 1
427 >;
428 };
429 };
430
Imran Khan04f08312017-03-30 15:07:43 +0530431 psci {
432 compatible = "arm,psci-1.0";
433 method = "smc";
434 };
435
436 soc: soc { };
437
Imran Khanb1066fa2017-08-01 17:20:22 +0530438 vendor: vendor {
439 #address-cells = <1>;
440 #size-cells = <1>;
441 ranges = <0 0 0 0xffffffff>;
442 compatible = "simple-bus";
443 };
444
Imran Khan5381c932017-08-02 11:27:07 +0530445 firmware: firmware {
446 android {
447 compatible = "android,firmware";
448
449 fstab {
450 compatible = "android,fstab";
451 vendor {
452 compatible = "android,vendor";
453 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
454 type = "ext4";
455 mnt_flags = "ro,barrier=1,discard";
AnilKumar Chimata0d646ab2017-10-25 22:09:03 +0530456 fsmgr_flags = "wait,slotselect,avb";
Imran Khan5381c932017-08-02 11:27:07 +0530457 };
458 };
459 };
460 };
461
Imran Khan04f08312017-03-30 15:07:43 +0530462 reserved-memory {
463 #address-cells = <2>;
464 #size-cells = <2>;
465 ranges;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530466
467 removed_regions: removed_regions@85700000 {
468 compatible = "removed-dma-pool";
469 no-map;
470 reg = <0 0x85700000 0 0x3800000>;
471 };
472
473 pil_camera_mem: camera_region@8ab00000 {
474 compatible = "removed-dma-pool";
475 no-map;
476 reg = <0 0x8ab00000 0 0x500000>;
477 };
478
479 pil_modem_mem: modem_region@8b000000 {
480 compatible = "removed-dma-pool";
481 no-map;
482 reg = <0 0x8b000000 0 0x7e00000>;
483 };
484
485 pil_video_mem: pil_video_region@92e00000 {
486 compatible = "removed-dma-pool";
487 no-map;
488 reg = <0 0x92e00000 0 0x500000>;
489 };
490
491 pil_cdsp_mem: cdsp_regions@93300000 {
492 compatible = "removed-dma-pool";
493 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530494 reg = <0 0x93300000 0 0x800000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530495 };
496
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530497 pil_mba_mem: pil_mba_region@0x93b00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530498 compatible = "removed-dma-pool";
499 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530500 reg = <0 0x93b00000 0 0x200000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530501 };
502
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530503 pil_adsp_mem: pil_adsp_region@93d00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530504 compatible = "removed-dma-pool";
505 no-map;
Vijayanand Jitta29d1a782017-07-03 15:17:09 +0530506 reg = <0 0x93d00000 0 0x1e00000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530507 };
508
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530509 adsp_mem: adsp_region {
510 compatible = "shared-dma-pool";
511 alloc-ranges = <0 0x00000000 0 0xffffffff>;
512 reusable;
513 alignment = <0 0x400000>;
514 size = <0 0xc00000>;
515 };
516
517 qseecom_mem: qseecom_region {
518 compatible = "shared-dma-pool";
519 alloc-ranges = <0 0x00000000 0 0xffffffff>;
520 reusable;
521 alignment = <0 0x400000>;
522 size = <0 0x1400000>;
523 };
524
525 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
526 compatible = "shared-dma-pool";
527 alloc-ranges = <0 0x00000000 0 0xffffffff>; /* 32-bit */
528 reusable;
529 alignment = <0 0x400000>;
530 size = <0 0x800000>;
531 };
532
533 secure_display_memory: secure_display_region {
534 compatible = "shared-dma-pool";
535 alloc-ranges = <0 0x00000000 0 0xffffffff>;
536 reusable;
537 alignment = <0 0x400000>;
538 size = <0 0x5c00000>;
539 };
540
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +0530541 dump_mem: mem_dump_region {
542 compatible = "shared-dma-pool";
543 reusable;
544 size = <0 0x2400000>;
545 };
546
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530547 /* global autoconfigured region for contiguous allocations */
548 linux,cma {
549 compatible = "shared-dma-pool";
550 alloc-ranges = <0 0x00000000 0 0xffffffff>;
551 reusable;
552 alignment = <0 0x400000>;
553 size = <0 0x2000000>;
554 linux,cma-default;
555 };
Imran Khan04f08312017-03-30 15:07:43 +0530556 };
557};
558
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530559#include "sdm670-ion.dtsi"
560
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530561#include "sdm670-smp2p.dtsi"
562
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530563#include "sdm670-qupv3.dtsi"
564
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530565#include "sdm670-coresight.dtsi"
Manikanta Kanamarlapudid4abc602017-08-28 19:23:41 +0530566
567#include "sdm670-vidc.dtsi"
568
Raviteja Tamatame97849a2017-09-12 20:25:50 +0530569#include "sdm670-sde-pll.dtsi"
570
571#include "sdm670-sde.dtsi"
572
Imran Khan04f08312017-03-30 15:07:43 +0530573&soc {
574 #address-cells = <1>;
575 #size-cells = <1>;
576 ranges = <0 0 0 0xffffffff>;
577 compatible = "simple-bus";
578
Saranya Chidura0e8b4262017-10-04 13:06:26 +0530579 jtag_mm0: jtagmm@7040000 {
580 compatible = "qcom,jtagv8-mm";
581 reg = <0x7040000 0x1000>;
582 reg-names = "etm-base";
583
584 clocks = <&clock_aop QDSS_CLK>;
585 clock-names = "core_clk";
586
587 qcom,coresight-jtagmm-cpu = <&CPU0>;
588 };
589
590 jtag_mm1: jtagmm@7140000 {
591 compatible = "qcom,jtagv8-mm";
592 reg = <0x7140000 0x1000>;
593 reg-names = "etm-base";
594
595 clocks = <&clock_aop QDSS_CLK>;
596 clock-names = "core_clk";
597
598 qom,coresight-jtagmm-cpu = <&CPU1>;
599 };
600
601 jtag_mm2: jtagmm@7240000 {
602 compatible = "qcom,jtagv8-mm";
603 reg = <0x7240000 0x1000>;
604 reg-names = "etm-base";
605
606 clocks = <&clock_aop QDSS_CLK>;
607 clock-names = "core_clk";
608
609 qcom,coresight-jtagmm-cpu = <&CPU2>;
610 };
611
612 jtag_mm3: jtagmm@7340000 {
613 compatible = "qcom,jtagv8-mm";
614 reg = <0x7340000 0x1000>;
615 reg-names = "etm-base";
616
617 clocks = <&clock_aop QDSS_CLK>;
618 clock-names = "core_clk";
619
620 qcom,coresight-jtagmm-cpu = <&CPU3>;
621 };
622
623 jtag_mm4: jtagmm@7440000 {
624 compatible = "qcom,jtagv8-mm";
625 reg = <0x7440000 0x1000>;
626 reg-names = "etm-base";
627
628 clocks = <&clock_aop QDSS_CLK>;
629 clock-names = "core_clk";
630
631 qcom,coresight-jtagmm-cpu = <&CPU4>;
632 };
633
634 jtag_mm5: jtagmm@7540000 {
635 compatible = "qcom,jtagv8-mm";
636 reg = <0x7540000 0x1000>;
637 reg-names = "etm-base";
638
639 clocks = <&clock_aop QDSS_CLK>;
640 clock-names = "core_clk";
641
642 qcom,coresight-jtagmm-cpu = <&CPU5>;
643 };
644
645 jtag_mm6: jtagmm@7640000 {
646 compatible = "qcom,jtagv8-mm";
647 reg = <0x7640000 0x1000>;
648 reg-names = "etm-base";
649
650 clocks = <&clock_aop QDSS_CLK>;
651 clock-names = "core_clk";
652
653 qcom,coresight-jtagmm-cpu = <&CPU6>;
654 };
655
656 jtag_mm7: jtagmm@7740000 {
657 compatible = "qcom,jtagv8-mm";
658 reg = <0x7740000 0x1000>;
659 reg-names = "etm-base";
660
661 clocks = <&clock_aop QDSS_CLK>;
662 clock-names = "core_clk";
663
664 qcom,coresight-jtagmm-cpu = <&CPU7>;
665 };
666
Imran Khan04f08312017-03-30 15:07:43 +0530667 intc: interrupt-controller@17a00000 {
668 compatible = "arm,gic-v3";
669 #interrupt-cells = <3>;
670 interrupt-controller;
671 #redistributor-regions = <1>;
672 redistributor-stride = <0x0 0x20000>;
673 reg = <0x17a00000 0x10000>, /* GICD */
674 <0x17a60000 0x100000>; /* GICR * 8 */
675 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530676 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530677 };
678
679 timer {
680 compatible = "arm,armv8-timer";
681 interrupts = <1 1 0xf08>,
682 <1 2 0xf08>,
683 <1 3 0xf08>,
684 <1 0 0xf08>;
685 clock-frequency = <19200000>;
686 };
687
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530688 qcom,sps {
689 compatible = "qcom,msm_sps_4k";
690 qcom,pipe-attr-ee;
691 };
692
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530693 qcom_cedev: qcedev@1de0000 {
694 compatible = "qcom,qcedev";
695 reg = <0x1de0000 0x20000>,
696 <0x1dc4000 0x24000>;
697 reg-names = "crypto-base","crypto-bam-base";
698 interrupts = <0 272 0>;
699 qcom,bam-pipe-pair = <3>;
700 qcom,ce-hw-instance = <0>;
701 qcom,ce-device = <0>;
702 qcom,ce-hw-shared;
703 qcom,bam-ee = <0>;
704 qcom,msm-bus,name = "qcedev-noc";
705 qcom,msm-bus,num-cases = <2>;
706 qcom,msm-bus,num-paths = <1>;
707 qcom,msm-bus,vectors-KBps =
708 <125 512 0 0>,
709 <125 512 393600 393600>;
710 clock-names = "core_clk_src", "core_clk",
711 "iface_clk", "bus_clk";
712 clocks = <&clock_gcc GCC_CE1_CLK>,
713 <&clock_gcc GCC_CE1_CLK>,
714 <&clock_gcc GCC_CE1_AHB_CLK>,
715 <&clock_gcc GCC_CE1_AXI_CLK>;
716 qcom,ce-opp-freq = <171430000>;
717 qcom,request-bw-before-clk;
718 qcom,smmu-s1-bypass;
719 iommus = <&apps_smmu 0x706 0x3>,
720 <&apps_smmu 0x716 0x3>;
721 };
722
723 qcom_crypto: qcrypto@1de0000 {
724 compatible = "qcom,qcrypto";
725 reg = <0x1de0000 0x20000>,
726 <0x1dc4000 0x24000>;
727 reg-names = "crypto-base","crypto-bam-base";
728 interrupts = <0 272 0>;
729 qcom,bam-pipe-pair = <2>;
730 qcom,ce-hw-instance = <0>;
731 qcom,ce-device = <0>;
732 qcom,bam-ee = <0>;
733 qcom,ce-hw-shared;
734 qcom,clk-mgmt-sus-res;
735 qcom,msm-bus,name = "qcrypto-noc";
736 qcom,msm-bus,num-cases = <2>;
737 qcom,msm-bus,num-paths = <1>;
738 qcom,msm-bus,vectors-KBps =
739 <125 512 0 0>,
740 <125 512 393600 393600>;
741 clock-names = "core_clk_src", "core_clk",
742 "iface_clk", "bus_clk";
743 clocks = <&clock_gcc GCC_CE1_CLK>,
744 <&clock_gcc GCC_CE1_CLK>,
745 <&clock_gcc GCC_CE1_AHB_CLK>,
746 <&clock_gcc GCC_CE1_AXI_CLK>;
747 qcom,ce-opp-freq = <171430000>;
748 qcom,request-bw-before-clk;
749 qcom,use-sw-aes-cbc-ecb-ctr-algo;
750 qcom,use-sw-aes-xts-algo;
751 qcom,use-sw-aes-ccm-algo;
752 qcom,use-sw-aead-algo;
753 qcom,use-sw-ahash-algo;
754 qcom,use-sw-hmac-algo;
755 qcom,smmu-s1-bypass;
756 iommus = <&apps_smmu 0x704 0x3>,
757 <&apps_smmu 0x714 0x3>;
758 };
759
Abir Ghoshb849ab22017-09-19 13:03:11 +0530760 qcom,qbt1000 {
761 compatible = "qcom,qbt1000";
762 clock-names = "core", "iface";
763 clock-frequency = <25000000>;
764 qcom,ipc-gpio = <&tlmm 121 0>;
765 qcom,finger-detect-gpio = <&tlmm 122 0>;
766 };
767
mohamed sunfeer71b31322017-09-20 00:46:46 +0530768 qcom_seecom: qseecom@86d00000 {
769 compatible = "qcom,qseecom";
770 reg = <0x86d00000 0x2200000>;
771 reg-names = "secapp-region";
772 qcom,hlos-num-ce-hw-instances = <1>;
773 qcom,hlos-ce-hw-instance = <0>;
774 qcom,qsee-ce-hw-instance = <0>;
775 qcom,disk-encrypt-pipe-pair = <2>;
776 qcom,support-fde;
777 qcom,no-clock-support;
778 qcom,appsbl-qseecom-support;
779 qcom,msm-bus,name = "qseecom-noc";
780 qcom,msm-bus,num-cases = <4>;
781 qcom,msm-bus,num-paths = <1>;
782 qcom,msm-bus,vectors-KBps =
783 <125 512 0 0>,
784 <125 512 200000 400000>,
785 <125 512 300000 800000>,
786 <125 512 400000 1000000>;
787 clock-names = "core_clk_src", "core_clk",
788 "iface_clk", "bus_clk";
789 clocks = <&clock_gcc GCC_CE1_CLK>,
790 <&clock_gcc GCC_CE1_CLK>,
791 <&clock_gcc GCC_CE1_AHB_CLK>,
792 <&clock_gcc GCC_CE1_AXI_CLK>;
793 qcom,ce-opp-freq = <171430000>;
794 qcom,qsee-reentrancy-support = <2>;
795 };
796
mohamed sunfeer732f7572017-09-19 19:51:11 +0530797 qcom_tzlog: tz-log@146bf720 {
798 compatible = "qcom,tz-log";
799 reg = <0x146bf720 0x3000>;
800 qcom,hyplog-enabled;
801 hyplog-address-offset = <0x410>;
802 hyplog-size-offset = <0x414>;
803 };
804
mohamed sunfeer2228b242017-09-19 19:10:08 +0530805 qcom_rng: qrng@793000{
806 compatible = "qcom,msm-rng";
807 reg = <0x793000 0x1000>;
808 qcom,msm-rng-iface-clk;
809 qcom,no-qrng-config;
810 qcom,msm-bus,name = "msm-rng-noc";
811 qcom,msm-bus,num-cases = <2>;
812 qcom,msm-bus,num-paths = <1>;
813 qcom,msm-bus,vectors-KBps =
814 <1 618 0 0>, /* No vote */
815 <1 618 0 800>; /* 100 KHz */
816 clocks = <&clock_gcc GCC_PRNG_AHB_CLK>;
817 clock-names = "iface_clk";
818 };
819
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +0530820 thermal_zones: thermal-zones {};
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530821
822 tsens0: tsens@c222000 {
823 compatible = "qcom,tsens24xx";
824 reg = <0xc222000 0x4>,
825 <0xc263000 0x1ff>;
826 reg-names = "tsens_srot_physical",
827 "tsens_tm_physical";
828 interrupts = <0 506 0>, <0 508 0>;
829 interrupt-names = "tsens-upper-lower", "tsens-critical";
830 #thermal-sensor-cells = <1>;
831 };
832
833 tsens1: tsens@c223000 {
834 compatible = "qcom,tsens24xx";
835 reg = <0xc223000 0x4>,
836 <0xc265000 0x1ff>;
837 reg-names = "tsens_srot_physical",
838 "tsens_tm_physical";
839 interrupts = <0 507 0>, <0 509 0>;
840 interrupt-names = "tsens-upper-lower", "tsens-critical";
841 #thermal-sensor-cells = <1>;
842 };
843
Imran Khan04f08312017-03-30 15:07:43 +0530844 timer@0x17c90000{
845 #address-cells = <1>;
846 #size-cells = <1>;
847 ranges;
848 compatible = "arm,armv7-timer-mem";
849 reg = <0x17c90000 0x1000>;
850 clock-frequency = <19200000>;
851
852 frame@0x17ca0000 {
853 frame-number = <0>;
854 interrupts = <0 7 0x4>,
855 <0 6 0x4>;
856 reg = <0x17ca0000 0x1000>,
857 <0x17cb0000 0x1000>;
858 };
859
860 frame@17cc0000 {
861 frame-number = <1>;
862 interrupts = <0 8 0x4>;
863 reg = <0x17cc0000 0x1000>;
864 status = "disabled";
865 };
866
867 frame@17cd0000 {
868 frame-number = <2>;
869 interrupts = <0 9 0x4>;
870 reg = <0x17cd0000 0x1000>;
871 status = "disabled";
872 };
873
874 frame@17ce0000 {
875 frame-number = <3>;
876 interrupts = <0 10 0x4>;
877 reg = <0x17ce0000 0x1000>;
878 status = "disabled";
879 };
880
881 frame@17cf0000 {
882 frame-number = <4>;
883 interrupts = <0 11 0x4>;
884 reg = <0x17cf0000 0x1000>;
885 status = "disabled";
886 };
887
888 frame@17d00000 {
889 frame-number = <5>;
890 interrupts = <0 12 0x4>;
891 reg = <0x17d00000 0x1000>;
892 status = "disabled";
893 };
894
895 frame@17d10000 {
896 frame-number = <6>;
897 interrupts = <0 13 0x4>;
898 reg = <0x17d10000 0x1000>;
899 status = "disabled";
900 };
901 };
902
903 restart@10ac000 {
904 compatible = "qcom,pshold";
905 reg = <0xC264000 0x4>,
906 <0x1fd3000 0x4>;
907 reg-names = "pshold-base", "tcsr-boot-misc-detect";
908 };
909
Maulik Shah6bf7d5d2017-07-27 09:48:42 +0530910 aop-msg-client {
911 compatible = "qcom,debugfs-qmp-client";
912 mboxes = <&qmp_aop 0>;
913 mbox-names = "aop";
914 };
915
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530916 clock_rpmh: qcom,rpmhclk {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530917 compatible = "qcom,rpmh-clk-sdm670";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530918 #clock-cells = <1>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530919 mboxes = <&apps_rsc 0>;
920 mbox-names = "apps";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530921 };
922
923 clock_gcc: qcom,gcc@100000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530924 compatible = "qcom,gcc-sdm670", "syscon";
925 reg = <0x100000 0x1f0000>;
926 reg-names = "cc_base";
927 vdd_cx-supply = <&pm660l_s3_level>;
928 vdd_cx_ao-supply = <&pm660l_s3_level_ao>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530929 #clock-cells = <1>;
930 #reset-cells = <1>;
931 };
932
933 clock_videocc: qcom,videocc@ab00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530934 compatible = "qcom,video_cc-sdm670", "syscon";
935 reg = <0xab00000 0x10000>;
936 reg-names = "cc_base";
937 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530938 #clock-cells = <1>;
939 #reset-cells = <1>;
940 };
941
942 clock_camcc: qcom,camcc@ad00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530943 compatible = "qcom,cam_cc-sdm670", "syscon";
944 reg = <0xad00000 0x10000>;
945 reg-names = "cc_base";
946 vdd_cx-supply = <&pm660l_s3_level>;
947 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530948 #clock-cells = <1>;
949 #reset-cells = <1>;
950 };
951
952 clock_dispcc: qcom,dispcc@af00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530953 compatible = "qcom,dispcc-sdm670", "syscon";
954 reg = <0xaf00000 0x10000>;
955 reg-names = "cc_base";
956 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530957 #clock-cells = <1>;
958 #reset-cells = <1>;
959 };
960
961 clock_gpucc: qcom,gpucc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530962 compatible = "qcom,gpucc-sdm670", "syscon";
963 reg = <0x5090000 0x9000>;
964 reg-names = "cc_base";
965 vdd_cx-supply = <&pm660l_s3_level>;
966 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +0530967 qcom,gpu_cc_gmu_clk_src-opp-handle = <&gmu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530968 #clock-cells = <1>;
969 #reset-cells = <1>;
970 };
971
972 clock_gfx: qcom,gfxcc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530973 compatible = "qcom,gfxcc-sdm670";
974 reg = <0x5090000 0x9000>;
975 reg-names = "cc_base";
976 vdd_gfx-supply = <&pm660l_s2_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +0530977 qcom,gpu_cc_gx_gfx3d_clk_src-opp-handle = <&msm_gpu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530978 #clock-cells = <1>;
979 #reset-cells = <1>;
980 };
981
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530982 cpucc_debug: syscon@17970018 {
983 compatible = "syscon";
984 reg = <0x17970018 0x4>;
985 };
986
987 clock_debug: qcom,cc-debug {
988 compatible = "qcom,debugcc-sdm845";
989 qcom,cc-count = <5>;
990 qcom,gcc = <&clock_gcc>;
991 qcom,videocc = <&clock_videocc>;
992 qcom,camcc = <&clock_camcc>;
993 qcom,dispcc = <&clock_dispcc>;
994 qcom,gpucc = <&clock_gpucc>;
995 qcom,cpucc = <&cpucc_debug>;
996 clock-names = "xo_clk_src";
997 clocks = <&clock_rpmh RPMH_CXO_CLK>;
998 #clock-cells = <1>;
999 };
1000
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301001 clock_cpucc: qcom,cpucc@0x17d41000 {
1002 compatible = "qcom,clk-cpu-osm-sdm670";
1003 reg = <0x17d41000 0x1400>,
1004 <0x17d43000 0x1400>,
1005 <0x17d45800 0x1400>;
1006 reg-names = "osm_l3_base", "osm_pwrcl_base", "osm_perfcl_base";
1007
1008 l3-devs = <&l3_cpu0 &l3_cpu6>;
1009
1010 clock-names = "xo_ao";
1011 clocks = <&clock_rpmh RPMH_CXO_CLK_A>;
Imran Khan04f08312017-03-30 15:07:43 +05301012 #clock-cells = <1>;
Imran Khan04f08312017-03-30 15:07:43 +05301013 };
1014
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301015 clock_aop: qcom,aopclk {
Odelu Kukatla80f617f2017-09-15 19:30:25 +05301016 compatible = "qcom,aop-qmp-clk-v1";
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301017 #clock-cells = <1>;
1018 mboxes = <&qmp_aop 0>;
1019 mbox-names = "qdss_clk";
1020 };
1021
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301022 slim_aud: slim@62dc0000 {
1023 cell-index = <1>;
1024 compatible = "qcom,slim-ngd";
1025 reg = <0x62dc0000 0x2c000>,
1026 <0x62d84000 0x2a000>;
1027 reg-names = "slimbus_physical", "slimbus_bam_physical";
1028 interrupts = <0 163 0>, <0 164 0>;
1029 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
1030 qcom,apps-ch-pipes = <0x780000>;
1031 qcom,ea-pc = <0x290>;
1032 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301033 qcom,iommu-s1-bypass;
1034
1035 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1036 compatible = "qcom,iommu-slim-ctrl-cb";
1037 iommus = <&apps_smmu 0x1826 0x0>,
1038 <&apps_smmu 0x182d 0x0>,
1039 <&apps_smmu 0x182e 0x1>,
1040 <&apps_smmu 0x1830 0x1>;
1041 };
1042
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301043 };
1044
1045 slim_qca: slim@62e40000 {
1046 cell-index = <3>;
1047 compatible = "qcom,slim-ngd";
1048 reg = <0x62e40000 0x2c000>,
1049 <0x62e04000 0x20000>;
1050 reg-names = "slimbus_physical", "slimbus_bam_physical";
1051 interrupts = <0 291 0>, <0 292 0>;
1052 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301053 status = "ok";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301054 qcom,iommu-s1-bypass;
1055
1056 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1057 compatible = "qcom,iommu-slim-ctrl-cb";
1058 iommus = <&apps_smmu 0x1833 0x0>;
1059 };
1060
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301061 /* Slimbus Slave DT for WCN3990 */
1062 btfmslim_codec: wcn3990 {
1063 compatible = "qcom,btfmslim_slave";
1064 elemental-addr = [00 01 20 02 17 02];
1065 qcom,btfm-slim-ifd = "btfmslim_slave_ifd";
1066 qcom,btfm-slim-ifd-elemental-addr = [00 00 20 02 17 02];
1067 };
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301068 };
1069
Imran Khan04f08312017-03-30 15:07:43 +05301070 wdog: qcom,wdt@17980000{
1071 compatible = "qcom,msm-watchdog";
1072 reg = <0x17980000 0x1000>;
1073 reg-names = "wdt-base";
Lingutla Chandrasekhar9fb9ba92017-10-08 21:59:19 +05301074 interrupts = <0 0 0>, <0 1 0>;
Imran Khan04f08312017-03-30 15:07:43 +05301075 qcom,bark-time = <11000>;
1076 qcom,pet-time = <10000>;
1077 qcom,ipi-ping;
1078 qcom,wakeup-enable;
1079 };
1080
1081 qcom,msm-rtb {
1082 compatible = "qcom,msm-rtb";
1083 qcom,rtb-size = <0x100000>;
1084 };
1085
1086 qcom,msm-imem@146bf000 {
1087 compatible = "qcom,msm-imem";
1088 reg = <0x146bf000 0x1000>;
1089 ranges = <0x0 0x146bf000 0x1000>;
1090 #address-cells = <1>;
1091 #size-cells = <1>;
1092
1093 mem_dump_table@10 {
1094 compatible = "qcom,msm-imem-mem_dump_table";
1095 reg = <0x10 8>;
1096 };
1097
1098 restart_reason@65c {
1099 compatible = "qcom,msm-imem-restart_reason";
1100 reg = <0x65c 4>;
1101 };
1102
1103 pil@94c {
1104 compatible = "qcom,msm-imem-pil";
1105 reg = <0x94c 200>;
1106 };
1107
1108 kaslr_offset@6d0 {
1109 compatible = "qcom,msm-imem-kaslr_offset";
1110 reg = <0x6d0 12>;
1111 };
Lingutla Chandrasekhar3c51f0b2017-09-12 14:21:21 +05301112
1113 boot_stats@6b0 {
1114 compatible = "qcom,msm-imem-boot_stats";
1115 reg = <0x6b0 0x20>;
1116 };
1117
1118 diag_dload@c8 {
1119 compatible = "qcom,msm-imem-diag-dload";
1120 reg = <0xc8 0xc8>;
1121 };
Imran Khan04f08312017-03-30 15:07:43 +05301122 };
1123
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301124 gpi_dma0: qcom,gpi-dma@0x800000 {
1125 #dma-cells = <6>;
1126 compatible = "qcom,gpi-dma";
1127 reg = <0x800000 0x60000>;
1128 reg-names = "gpi-top";
1129 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
1130 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
1131 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
1132 <0 256 0>;
1133 qcom,max-num-gpii = <13>;
1134 qcom,gpii-mask = <0xfa>;
1135 qcom,ev-factor = <2>;
1136 iommus = <&apps_smmu 0x0016 0x0>;
1137 status = "ok";
1138 };
1139
1140 gpi_dma1: qcom,gpi-dma@0xa00000 {
1141 #dma-cells = <6>;
1142 compatible = "qcom,gpi-dma";
1143 reg = <0xa00000 0x60000>;
1144 reg-names = "gpi-top";
1145 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
1146 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
1147 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
1148 <0 299 0>;
1149 qcom,max-num-gpii = <13>;
1150 qcom,gpii-mask = <0xfa>;
1151 qcom,ev-factor = <2>;
1152 iommus = <&apps_smmu 0x06d6 0x0>;
1153 status = "ok";
1154 };
1155
Imran Khan04f08312017-03-30 15:07:43 +05301156 cpuss_dump {
1157 compatible = "qcom,cpuss-dump";
1158 qcom,l1_i_cache0 {
1159 qcom,dump-node = <&L1_I_0>;
1160 qcom,dump-id = <0x60>;
1161 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301162 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301163 qcom,dump-node = <&L1_I_100>;
1164 qcom,dump-id = <0x61>;
1165 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301166 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301167 qcom,dump-node = <&L1_I_200>;
1168 qcom,dump-id = <0x62>;
1169 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301170 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301171 qcom,dump-node = <&L1_I_300>;
1172 qcom,dump-id = <0x63>;
1173 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301174 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301175 qcom,dump-node = <&L1_I_400>;
1176 qcom,dump-id = <0x64>;
1177 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301178 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301179 qcom,dump-node = <&L1_I_500>;
1180 qcom,dump-id = <0x65>;
1181 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301182 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301183 qcom,dump-node = <&L1_I_600>;
1184 qcom,dump-id = <0x66>;
1185 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301186 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301187 qcom,dump-node = <&L1_I_700>;
1188 qcom,dump-id = <0x67>;
1189 };
1190 qcom,l1_d_cache0 {
1191 qcom,dump-node = <&L1_D_0>;
1192 qcom,dump-id = <0x80>;
1193 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301194 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301195 qcom,dump-node = <&L1_D_100>;
1196 qcom,dump-id = <0x81>;
1197 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301198 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301199 qcom,dump-node = <&L1_D_200>;
1200 qcom,dump-id = <0x82>;
1201 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301202 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301203 qcom,dump-node = <&L1_D_300>;
1204 qcom,dump-id = <0x83>;
1205 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301206 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301207 qcom,dump-node = <&L1_D_400>;
1208 qcom,dump-id = <0x84>;
1209 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301210 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301211 qcom,dump-node = <&L1_D_500>;
1212 qcom,dump-id = <0x85>;
1213 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301214 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301215 qcom,dump-node = <&L1_D_600>;
1216 qcom,dump-id = <0x86>;
1217 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301218 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301219 qcom,dump-node = <&L1_D_700>;
1220 qcom,dump-id = <0x87>;
1221 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301222 qcom,llcc1_d_cache {
1223 qcom,dump-node = <&LLCC_1>;
1224 qcom,dump-id = <0x140>;
1225 };
1226 qcom,llcc2_d_cache {
1227 qcom,dump-node = <&LLCC_2>;
1228 qcom,dump-id = <0x141>;
1229 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301230 qcom,l1_tlb_dump0 {
1231 qcom,dump-node = <&L1_TLB_0>;
1232 qcom,dump-id = <0x20>;
1233 };
1234 qcom,l1_tlb_dump100 {
1235 qcom,dump-node = <&L1_TLB_100>;
1236 qcom,dump-id = <0x21>;
1237 };
1238 qcom,l1_tlb_dump200 {
1239 qcom,dump-node = <&L1_TLB_200>;
1240 qcom,dump-id = <0x22>;
1241 };
1242 qcom,l1_tlb_dump300 {
1243 qcom,dump-node = <&L1_TLB_300>;
1244 qcom,dump-id = <0x23>;
1245 };
1246 qcom,l1_tlb_dump400 {
1247 qcom,dump-node = <&L1_TLB_400>;
1248 qcom,dump-id = <0x24>;
1249 };
1250 qcom,l1_tlb_dump500 {
1251 qcom,dump-node = <&L1_TLB_500>;
1252 qcom,dump-id = <0x25>;
1253 };
1254 qcom,l1_tlb_dump600 {
1255 qcom,dump-node = <&L1_TLB_600>;
1256 qcom,dump-id = <0x26>;
1257 };
1258 qcom,l1_tlb_dump700 {
1259 qcom,dump-node = <&L1_TLB_700>;
1260 qcom,dump-id = <0x27>;
1261 };
Imran Khan04f08312017-03-30 15:07:43 +05301262 };
1263
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301264 mem_dump {
1265 compatible = "qcom,mem-dump";
1266 memory-region = <&dump_mem>;
1267
1268 rpmh_dump {
1269 qcom,dump-size = <0x2000000>;
1270 qcom,dump-id = <0xec>;
1271 };
1272
1273 rpm_sw_dump {
1274 qcom,dump-size = <0x28000>;
1275 qcom,dump-id = <0xea>;
1276 };
1277
1278 pmic_dump {
1279 qcom,dump-size = <0x10000>;
1280 qcom,dump-id = <0xe4>;
1281 };
1282
1283 tmc_etf_dump {
1284 qcom,dump-size = <0x10000>;
1285 qcom,dump-id = <0xf0>;
1286 };
1287
1288 tmc_etf_swao_dump {
1289 qcom,dump-size = <0x8400>;
1290 qcom,dump-id = <0xf1>;
1291 };
1292
1293 tmc_etr_reg_dump {
1294 qcom,dump-size = <0x1000>;
1295 qcom,dump-id = <0x100>;
1296 };
1297
1298 tmc_etf_reg_dump {
1299 qcom,dump-size = <0x1000>;
1300 qcom,dump-id = <0x101>;
1301 };
1302
1303 tmc_etf_swao_reg_dump {
1304 qcom,dump-size = <0x1000>;
1305 qcom,dump-id = <0x102>;
1306 };
1307
1308 misc_data_dump {
1309 qcom,dump-size = <0x1000>;
1310 qcom,dump-id = <0xe8>;
1311 };
1312
1313 power_regs_data_dump {
1314 qcom,dump-size = <0x100000>;
1315 qcom,dump-id = <0xed>;
1316 };
1317 };
1318
Imran Khan04f08312017-03-30 15:07:43 +05301319 kryo3xx-erp {
1320 compatible = "arm,arm64-kryo3xx-cpu-erp";
1321 interrupts = <1 6 4>,
1322 <1 7 4>,
1323 <0 34 4>,
1324 <0 35 4>;
1325
1326 interrupt-names = "l1-l2-faultirq",
1327 "l1-l2-errirq",
1328 "l3-scu-errirq",
1329 "l3-scu-faultirq";
1330 };
1331
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301332 qcom,ipc-spinlock@1f40000 {
1333 compatible = "qcom,ipc-spinlock-sfpb";
1334 reg = <0x1f40000 0x8000>;
1335 qcom,num-locks = <8>;
1336 };
1337
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301338 qcom,smem@86000000 {
1339 compatible = "qcom,smem";
1340 reg = <0x86000000 0x200000>,
1341 <0x17911008 0x4>,
1342 <0x778000 0x7000>,
1343 <0x1fd4000 0x8>;
1344 reg-names = "smem", "irq-reg-base", "aux-mem1",
1345 "smem_targ_info_reg";
1346 qcom,mpu-enabled;
1347 };
1348
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301349 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301350 compatible = "qcom,qmp-mbox";
1351 label = "aop";
1352 reg = <0xc300000 0x100000>,
1353 <0x1799000c 0x4>;
1354 reg-names = "msgram", "irq-reg-base";
1355 qcom,irq-mask = <0x1>;
1356 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301357 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301358 mbox-desc-offset = <0x0>;
1359 #mbox-cells = <1>;
1360 };
1361
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301362 qcom,glink-smem-native-xprt-modem@86000000 {
1363 compatible = "qcom,glink-smem-native-xprt";
1364 reg = <0x86000000 0x200000>,
1365 <0x1799000c 0x4>;
1366 reg-names = "smem", "irq-reg-base";
1367 qcom,irq-mask = <0x1000>;
1368 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1369 label = "mpss";
1370 };
1371
1372 qcom,glink-smem-native-xprt-adsp@86000000 {
1373 compatible = "qcom,glink-smem-native-xprt";
1374 reg = <0x86000000 0x200000>,
1375 <0x1799000c 0x4>;
1376 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301377 qcom,irq-mask = <0x1000000>;
1378 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301379 label = "lpass";
1380 qcom,qos-config = <&glink_qos_adsp>;
1381 qcom,ramp-time = <0xaf>;
1382 };
1383
1384 glink_qos_adsp: qcom,glink-qos-config-adsp {
1385 compatible = "qcom,glink-qos-config";
1386 qcom,flow-info = <0x3c 0x0>,
1387 <0x3c 0x0>,
1388 <0x3c 0x0>,
1389 <0x3c 0x0>;
1390 qcom,mtu-size = <0x800>;
1391 qcom,tput-stats-cycle = <0xa>;
1392 };
1393
1394 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1395 compatible = "qcom,glink-spi-xprt";
1396 label = "wdsp";
1397 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1398 qcom,qos-config = <&glink_qos_wdsp>;
1399 qcom,ramp-time = <0x10>,
1400 <0x20>,
1401 <0x30>,
1402 <0x40>;
1403 };
1404
1405 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1406 compatible = "qcom,glink-fifo-config";
1407 qcom,out-read-idx-reg = <0x12000>;
1408 qcom,out-write-idx-reg = <0x12004>;
1409 qcom,in-read-idx-reg = <0x1200C>;
1410 qcom,in-write-idx-reg = <0x12010>;
1411 };
1412
1413 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1414 compatible = "qcom,glink-qos-config";
1415 qcom,flow-info = <0x80 0x0>,
1416 <0x70 0x1>,
1417 <0x60 0x2>,
1418 <0x50 0x3>;
1419 qcom,mtu-size = <0x800>;
1420 qcom,tput-stats-cycle = <0xa>;
1421 };
1422
1423 qcom,glink-smem-native-xprt-cdsp@86000000 {
1424 compatible = "qcom,glink-smem-native-xprt";
1425 reg = <0x86000000 0x200000>,
1426 <0x1799000c 0x4>;
1427 reg-names = "smem", "irq-reg-base";
1428 qcom,irq-mask = <0x10>;
1429 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1430 label = "cdsp";
1431 };
1432
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301433 glink_mpss: qcom,glink-ssr-modem {
1434 compatible = "qcom,glink_ssr";
1435 label = "modem";
1436 qcom,edge = "mpss";
1437 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1438 qcom,xprt = "smem";
1439 };
1440
1441 glink_lpass: qcom,glink-ssr-adsp {
1442 compatible = "qcom,glink_ssr";
1443 label = "adsp";
1444 qcom,edge = "lpass";
1445 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1446 qcom,xprt = "smem";
1447 };
1448
1449 glink_cdsp: qcom,glink-ssr-cdsp {
1450 compatible = "qcom,glink_ssr";
1451 label = "cdsp";
1452 qcom,edge = "cdsp";
1453 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1454 qcom,xprt = "smem";
1455 };
1456
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301457 qcom,ipc_router {
1458 compatible = "qcom,ipc_router";
1459 qcom,node-id = <1>;
1460 };
1461
1462 qcom,ipc_router_modem_xprt {
1463 compatible = "qcom,ipc_router_glink_xprt";
1464 qcom,ch-name = "IPCRTR";
1465 qcom,xprt-remote = "mpss";
1466 qcom,glink-xprt = "smem";
1467 qcom,xprt-linkid = <1>;
1468 qcom,xprt-version = <1>;
1469 qcom,fragmented-data;
1470 };
1471
1472 qcom,ipc_router_q6_xprt {
1473 compatible = "qcom,ipc_router_glink_xprt";
1474 qcom,ch-name = "IPCRTR";
1475 qcom,xprt-remote = "lpass";
1476 qcom,glink-xprt = "smem";
1477 qcom,xprt-linkid = <1>;
1478 qcom,xprt-version = <1>;
1479 qcom,fragmented-data;
1480 };
1481
1482 qcom,ipc_router_cdsp_xprt {
1483 compatible = "qcom,ipc_router_glink_xprt";
1484 qcom,ch-name = "IPCRTR";
1485 qcom,xprt-remote = "cdsp";
1486 qcom,glink-xprt = "smem";
1487 qcom,xprt-linkid = <1>;
1488 qcom,xprt-version = <1>;
1489 qcom,fragmented-data;
1490 };
1491
Dhoat Harpal11d34482017-06-06 21:00:14 +05301492 qcom,glink_pkt {
1493 compatible = "qcom,glinkpkt";
1494
1495 qcom,glinkpkt-at-mdm0 {
1496 qcom,glinkpkt-transport = "smem";
1497 qcom,glinkpkt-edge = "mpss";
1498 qcom,glinkpkt-ch-name = "DS";
1499 qcom,glinkpkt-dev-name = "at_mdm0";
1500 };
1501
1502 qcom,glinkpkt-loopback_cntl {
1503 qcom,glinkpkt-transport = "lloop";
1504 qcom,glinkpkt-edge = "local";
1505 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1506 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1507 };
1508
1509 qcom,glinkpkt-loopback_data {
1510 qcom,glinkpkt-transport = "lloop";
1511 qcom,glinkpkt-edge = "local";
1512 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1513 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1514 };
1515
1516 qcom,glinkpkt-apr-apps2 {
1517 qcom,glinkpkt-transport = "smem";
1518 qcom,glinkpkt-edge = "adsp";
1519 qcom,glinkpkt-ch-name = "apr_apps2";
1520 qcom,glinkpkt-dev-name = "apr_apps2";
1521 };
1522
1523 qcom,glinkpkt-data40-cntl {
1524 qcom,glinkpkt-transport = "smem";
1525 qcom,glinkpkt-edge = "mpss";
1526 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1527 qcom,glinkpkt-dev-name = "smdcntl8";
1528 };
1529
1530 qcom,glinkpkt-data1 {
1531 qcom,glinkpkt-transport = "smem";
1532 qcom,glinkpkt-edge = "mpss";
1533 qcom,glinkpkt-ch-name = "DATA1";
1534 qcom,glinkpkt-dev-name = "smd7";
1535 };
1536
1537 qcom,glinkpkt-data4 {
1538 qcom,glinkpkt-transport = "smem";
1539 qcom,glinkpkt-edge = "mpss";
1540 qcom,glinkpkt-ch-name = "DATA4";
1541 qcom,glinkpkt-dev-name = "smd8";
1542 };
1543
1544 qcom,glinkpkt-data11 {
1545 qcom,glinkpkt-transport = "smem";
1546 qcom,glinkpkt-edge = "mpss";
1547 qcom,glinkpkt-ch-name = "DATA11";
1548 qcom,glinkpkt-dev-name = "smd11";
1549 };
1550 };
1551
Imran Khan04f08312017-03-30 15:07:43 +05301552 qcom,chd_sliver {
1553 compatible = "qcom,core-hang-detect";
1554 label = "silver";
1555 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1556 0x17e30058 0x17e40058 0x17e50058>;
1557 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1558 0x17e30060 0x17e40060 0x17e50060>;
1559 };
1560
1561 qcom,chd_gold {
1562 compatible = "qcom,core-hang-detect";
1563 label = "gold";
1564 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1565 qcom,config-arr = <0x17e60060 0x17e70060>;
1566 };
1567
1568 qcom,ghd {
1569 compatible = "qcom,gladiator-hang-detect-v2";
1570 qcom,threshold-arr = <0x1799041c 0x17990420>;
1571 qcom,config-reg = <0x17990434>;
1572 };
1573
1574 qcom,msm-gladiator-v3@17900000 {
1575 compatible = "qcom,msm-gladiator-v3";
1576 reg = <0x17900000 0xd080>;
1577 reg-names = "gladiator_base";
1578 interrupts = <0 17 0>;
1579 };
1580
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301581 eud: qcom,msm-eud@88e0000 {
1582 compatible = "qcom,msm-eud";
1583 interrupt-names = "eud_irq";
1584 interrupts = <GIC_SPI 492 IRQ_TYPE_LEVEL_HIGH>;
1585 reg = <0x88e0000 0x2000>;
1586 reg-names = "eud_base";
1587 status = "disabled";
1588 };
1589
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301590 qcom,llcc@1100000 {
1591 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1592 reg = <0x1100000 0x250000>;
1593 reg-names = "llcc_base";
1594 qcom,llcc-banks-off = <0x0 0x80000 >;
1595 qcom,llcc-broadcast-off = <0x200000>;
1596
1597 llcc: qcom,sdm670-llcc {
1598 compatible = "qcom,sdm670-llcc";
1599 #cache-cells = <1>;
1600 max-slices = <32>;
1601 qcom,dump-size = <0x80000>;
1602 };
1603
1604 qcom,llcc-erp {
1605 compatible = "qcom,llcc-erp";
1606 interrupt-names = "ecc_irq";
1607 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1608 };
1609
1610 qcom,llcc-amon {
1611 compatible = "qcom,llcc-amon";
1612 };
1613
1614 LLCC_1: llcc_1_dcache {
1615 qcom,dump-size = <0xd8000>;
1616 };
1617
1618 LLCC_2: llcc_2_dcache {
1619 qcom,dump-size = <0xd8000>;
1620 };
1621 };
1622
Maulik Shah210773d2017-06-15 09:49:12 +05301623 cmd_db: qcom,cmd-db@c3f000c {
1624 compatible = "qcom,cmd-db";
1625 reg = <0xc3f000c 0x8>;
1626 };
1627
Maulik Shahc77d1d22017-06-15 14:04:50 +05301628 apps_rsc: mailbox@179e0000 {
1629 compatible = "qcom,tcs-drv";
1630 label = "apps_rsc";
1631 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1632 interrupts = <0 5 0>;
1633 #mbox-cells = <1>;
1634 qcom,drv-id = <2>;
1635 qcom,tcs-config = <ACTIVE_TCS 2>,
1636 <SLEEP_TCS 3>,
1637 <WAKE_TCS 3>,
1638 <CONTROL_TCS 1>;
1639 };
1640
Maulik Shahda3941f2017-06-15 09:41:38 +05301641 disp_rsc: mailbox@af20000 {
1642 compatible = "qcom,tcs-drv";
1643 label = "display_rsc";
1644 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1645 interrupts = <0 129 0>;
1646 #mbox-cells = <1>;
1647 qcom,drv-id = <0>;
1648 qcom,tcs-config = <SLEEP_TCS 1>,
1649 <WAKE_TCS 1>,
1650 <ACTIVE_TCS 0>,
1651 <CONTROL_TCS 1>;
1652 };
1653
Maulik Shah0dd203f2017-06-15 09:44:59 +05301654 system_pm {
1655 compatible = "qcom,system-pm";
1656 mboxes = <&apps_rsc 0>;
1657 };
1658
Imran Khan04f08312017-03-30 15:07:43 +05301659 dcc: dcc_v2@10a2000 {
1660 compatible = "qcom,dcc_v2";
1661 reg = <0x10a2000 0x1000>,
1662 <0x10ae000 0x2000>;
1663 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301664
1665 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301666 };
1667
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301668 spmi_bus: qcom,spmi@c440000 {
1669 compatible = "qcom,spmi-pmic-arb";
1670 reg = <0xc440000 0x1100>,
1671 <0xc600000 0x2000000>,
1672 <0xe600000 0x100000>,
1673 <0xe700000 0xa0000>,
1674 <0xc40a000 0x26000>;
1675 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1676 interrupt-names = "periph_irq";
1677 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1678 qcom,ee = <0>;
1679 qcom,channel = <0>;
1680 #address-cells = <2>;
1681 #size-cells = <0>;
1682 interrupt-controller;
1683 #interrupt-cells = <4>;
1684 cell-index = <0>;
1685 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301686
1687 ufsphy_mem: ufsphy_mem@1d87000 {
1688 reg = <0x1d87000 0xe00>; /* PHY regs */
1689 reg-names = "phy_mem";
1690 #phy-cells = <0>;
1691
1692 lanes-per-direction = <1>;
1693
1694 clock-names = "ref_clk_src",
1695 "ref_clk",
1696 "ref_aux_clk";
1697 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1698 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1699 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1700
1701 status = "disabled";
1702 };
1703
1704 ufshc_mem: ufshc@1d84000 {
1705 compatible = "qcom,ufshc";
1706 reg = <0x1d84000 0x3000>;
1707 interrupts = <0 265 0>;
1708 phys = <&ufsphy_mem>;
1709 phy-names = "ufsphy";
1710
1711 lanes-per-direction = <1>;
1712 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1713
1714 clock-names =
1715 "core_clk",
1716 "bus_aggr_clk",
1717 "iface_clk",
1718 "core_clk_unipro",
1719 "core_clk_ice",
1720 "ref_clk",
1721 "tx_lane0_sync_clk",
1722 "rx_lane0_sync_clk";
1723 clocks =
1724 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1725 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1726 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1727 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1728 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1729 <&clock_rpmh RPMH_CXO_CLK>,
1730 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1731 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1732 freq-table-hz =
1733 <50000000 200000000>,
1734 <0 0>,
1735 <0 0>,
1736 <37500000 150000000>,
1737 <75000000 300000000>,
1738 <0 0>,
1739 <0 0>,
1740 <0 0>;
1741
Sayali Lokhandeaa3db742017-10-09 15:13:01 +05301742 non-removable;
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301743 qcom,msm-bus,name = "ufshc_mem";
1744 qcom,msm-bus,num-cases = <12>;
1745 qcom,msm-bus,num-paths = <2>;
1746 qcom,msm-bus,vectors-KBps =
1747 /*
1748 * During HS G3 UFS runs at nominal voltage corner, vote
1749 * higher bandwidth to push other buses in the data path
1750 * to run at nominal to achieve max throughput.
1751 * 4GBps pushes BIMC to run at nominal.
1752 * 200MBps pushes CNOC to run at nominal.
1753 * Vote for half of this bandwidth for HS G3 1-lane.
1754 * For max bandwidth, vote high enough to push the buses
1755 * to run in turbo voltage corner.
1756 */
1757 <123 512 0 0>, <1 757 0 0>, /* No vote */
1758 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1759 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1760 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1761 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1762 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1763 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1764 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1765 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1766 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1767 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1768 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1769
1770 qcom,bus-vector-names = "MIN",
1771 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1772 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1773 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1774 "MAX";
1775
1776 /* PM QoS */
1777 qcom,pm-qos-cpu-groups = <0x3f 0xC0>;
1778 qcom,pm-qos-cpu-group-latency-us = <70 70>;
1779 qcom,pm-qos-default-cpu = <0>;
1780
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301781 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1782 reset-names = "core_reset";
1783
1784 status = "disabled";
1785 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301786
1787 qcom,lpass@62400000 {
1788 compatible = "qcom,pil-tz-generic";
1789 reg = <0x62400000 0x00100>;
1790 interrupts = <0 162 1>;
1791
1792 vdd_cx-supply = <&pm660l_l9_level>;
1793 qcom,proxy-reg-names = "vdd_cx";
1794 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1795
1796 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1797 clock-names = "xo";
1798 qcom,proxy-clock-names = "xo";
1799
1800 qcom,pas-id = <1>;
1801 qcom,proxy-timeout-ms = <10000>;
1802 qcom,smem-id = <423>;
1803 qcom,sysmon-id = <1>;
1804 qcom,ssctl-instance-id = <0x14>;
1805 qcom,firmware-name = "adsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301806 qcom,signal-aop;
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301807 memory-region = <&pil_adsp_mem>;
1808
1809 /* GPIO inputs from lpass */
1810 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1811 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1812 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1813 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1814
1815 /* GPIO output to lpass */
1816 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301817
1818 mboxes = <&qmp_aop 0>;
1819 mbox-names = "adsp-pil";
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301820 status = "ok";
1821 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301822
Sahitya Tummala02e49182017-09-19 10:54:42 +05301823 qcom,rmtfs_sharedmem@0 {
1824 compatible = "qcom,sharedmem-uio";
1825 reg = <0x0 0x200000>;
1826 reg-names = "rmtfs";
1827 qcom,client-id = <0x00000001>;
1828 };
1829
Mohammed Javidf97a10e2017-10-08 13:11:26 +05301830 qcom,msm_gsi {
1831 compatible = "qcom,msm_gsi";
1832 };
1833
Mohammed Javid736c25c2017-06-19 13:23:18 +05301834 qcom,rmnet-ipa {
1835 compatible = "qcom,rmnet-ipa3";
1836 qcom,rmnet-ipa-ssr;
1837 qcom,ipa-loaduC;
1838 qcom,ipa-advertise-sg-support;
1839 qcom,ipa-napi-enable;
1840 };
1841
1842 ipa_hw: qcom,ipa@01e00000 {
1843 compatible = "qcom,ipa";
1844 reg = <0x1e00000 0x34000>,
1845 <0x1e04000 0x2c000>;
1846 reg-names = "ipa-base", "gsi-base";
1847 interrupts =
1848 <0 311 0>,
1849 <0 432 0>;
1850 interrupt-names = "ipa-irq", "gsi-irq";
1851 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1852 qcom,ipa-hw-mode = <1>;
1853 qcom,ee = <0>;
1854 qcom,use-ipa-tethering-bridge;
1855 qcom,modem-cfg-emb-pipe-flt;
1856 qcom,ipa-wdi2;
1857 qcom,use-64-bit-dma-mask;
1858 qcom,arm-smmu;
Mohammed Javid736c25c2017-06-19 13:23:18 +05301859 qcom,bandwidth-vote-for-ipa;
1860 qcom,msm-bus,name = "ipa";
1861 qcom,msm-bus,num-cases = <4>;
1862 qcom,msm-bus,num-paths = <4>;
1863 qcom,msm-bus,vectors-KBps =
1864 /* No vote */
1865 <90 512 0 0>,
1866 <90 585 0 0>,
1867 <1 676 0 0>,
1868 <143 777 0 0>,
1869 /* SVS */
1870 <90 512 80000 640000>,
1871 <90 585 80000 640000>,
1872 <1 676 80000 80000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301873 <143 777 0 150>, /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301874 /* NOMINAL */
1875 <90 512 206000 960000>,
1876 <90 585 206000 960000>,
1877 <1 676 206000 160000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301878 <143 777 0 300>, /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301879 /* TURBO */
1880 <90 512 206000 3600000>,
1881 <90 585 206000 3600000>,
1882 <1 676 206000 300000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301883 <143 777 0 355>; /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301884 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1885
1886 /* IPA RAM mmap */
1887 qcom,ipa-ram-mmap = <
1888 0x280 /* ofst_start; */
1889 0x0 /* nat_ofst; */
1890 0x0 /* nat_size; */
1891 0x288 /* v4_flt_hash_ofst; */
1892 0x78 /* v4_flt_hash_size; */
1893 0x4000 /* v4_flt_hash_size_ddr; */
1894 0x308 /* v4_flt_nhash_ofst; */
1895 0x78 /* v4_flt_nhash_size; */
1896 0x4000 /* v4_flt_nhash_size_ddr; */
1897 0x388 /* v6_flt_hash_ofst; */
1898 0x78 /* v6_flt_hash_size; */
1899 0x4000 /* v6_flt_hash_size_ddr; */
1900 0x408 /* v6_flt_nhash_ofst; */
1901 0x78 /* v6_flt_nhash_size; */
1902 0x4000 /* v6_flt_nhash_size_ddr; */
1903 0xf /* v4_rt_num_index; */
1904 0x0 /* v4_modem_rt_index_lo; */
1905 0x7 /* v4_modem_rt_index_hi; */
1906 0x8 /* v4_apps_rt_index_lo; */
1907 0xe /* v4_apps_rt_index_hi; */
1908 0x488 /* v4_rt_hash_ofst; */
1909 0x78 /* v4_rt_hash_size; */
1910 0x4000 /* v4_rt_hash_size_ddr; */
1911 0x508 /* v4_rt_nhash_ofst; */
1912 0x78 /* v4_rt_nhash_size; */
1913 0x4000 /* v4_rt_nhash_size_ddr; */
1914 0xf /* v6_rt_num_index; */
1915 0x0 /* v6_modem_rt_index_lo; */
1916 0x7 /* v6_modem_rt_index_hi; */
1917 0x8 /* v6_apps_rt_index_lo; */
1918 0xe /* v6_apps_rt_index_hi; */
1919 0x588 /* v6_rt_hash_ofst; */
1920 0x78 /* v6_rt_hash_size; */
1921 0x4000 /* v6_rt_hash_size_ddr; */
1922 0x608 /* v6_rt_nhash_ofst; */
1923 0x78 /* v6_rt_nhash_size; */
1924 0x4000 /* v6_rt_nhash_size_ddr; */
1925 0x688 /* modem_hdr_ofst; */
1926 0x140 /* modem_hdr_size; */
1927 0x7c8 /* apps_hdr_ofst; */
1928 0x0 /* apps_hdr_size; */
1929 0x800 /* apps_hdr_size_ddr; */
1930 0x7d0 /* modem_hdr_proc_ctx_ofst; */
1931 0x200 /* modem_hdr_proc_ctx_size; */
1932 0x9d0 /* apps_hdr_proc_ctx_ofst; */
1933 0x200 /* apps_hdr_proc_ctx_size; */
1934 0x0 /* apps_hdr_proc_ctx_size_ddr; */
1935 0x0 /* modem_comp_decomp_ofst; diff */
1936 0x0 /* modem_comp_decomp_size; diff */
1937 0xbd8 /* modem_ofst; */
1938 0x1024 /* modem_size; */
1939 0x2000 /* apps_v4_flt_hash_ofst; */
1940 0x0 /* apps_v4_flt_hash_size; */
1941 0x2000 /* apps_v4_flt_nhash_ofst; */
1942 0x0 /* apps_v4_flt_nhash_size; */
1943 0x2000 /* apps_v6_flt_hash_ofst; */
1944 0x0 /* apps_v6_flt_hash_size; */
1945 0x2000 /* apps_v6_flt_nhash_ofst; */
1946 0x0 /* apps_v6_flt_nhash_size; */
1947 0x80 /* uc_info_ofst; */
1948 0x200 /* uc_info_size; */
1949 0x2000 /* end_ofst; */
1950 0x2000 /* apps_v4_rt_hash_ofst; */
1951 0x0 /* apps_v4_rt_hash_size; */
1952 0x2000 /* apps_v4_rt_nhash_ofst; */
1953 0x0 /* apps_v4_rt_nhash_size; */
1954 0x2000 /* apps_v6_rt_hash_ofst; */
1955 0x0 /* apps_v6_rt_hash_size; */
1956 0x2000 /* apps_v6_rt_nhash_ofst; */
1957 0x0 /* apps_v6_rt_nhash_size; */
1958 0x1c00 /* uc_event_ring_ofst; */
1959 0x400 /* uc_event_ring_size; */
1960 >;
1961
1962 /* smp2p gpio information */
1963 qcom,smp2pgpio_map_ipa_1_out {
1964 compatible = "qcom,smp2pgpio-map-ipa-1-out";
1965 gpios = <&smp2pgpio_ipa_1_out 0 0>;
1966 };
1967
1968 qcom,smp2pgpio_map_ipa_1_in {
1969 compatible = "qcom,smp2pgpio-map-ipa-1-in";
1970 gpios = <&smp2pgpio_ipa_1_in 0 0>;
1971 };
1972
1973 ipa_smmu_ap: ipa_smmu_ap {
1974 compatible = "qcom,ipa-smmu-ap-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05301975 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05301976 iommus = <&apps_smmu 0x720 0x0>;
1977 qcom,iova-mapping = <0x20000000 0x40000000>;
1978 };
1979
1980 ipa_smmu_wlan: ipa_smmu_wlan {
1981 compatible = "qcom,ipa-smmu-wlan-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05301982 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05301983 iommus = <&apps_smmu 0x721 0x0>;
1984 };
1985
1986 ipa_smmu_uc: ipa_smmu_uc {
1987 compatible = "qcom,ipa-smmu-uc-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05301988 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05301989 iommus = <&apps_smmu 0x722 0x0>;
1990 qcom,iova-mapping = <0x40000000 0x20000000>;
1991 };
1992 };
1993
1994 qcom,ipa_fws {
1995 compatible = "qcom,pil-tz-generic";
1996 qcom,pas-id = <0xf>;
1997 qcom,firmware-name = "ipa_fws";
1998 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05301999
2000 pil_modem: qcom,mss@4080000 {
2001 compatible = "qcom,pil-q6v55-mss";
2002 reg = <0x4080000 0x100>,
2003 <0x1f63000 0x008>,
2004 <0x1f65000 0x008>,
2005 <0x1f64000 0x008>,
2006 <0x4180000 0x020>,
2007 <0xc2b0000 0x004>,
2008 <0xb2e0100 0x004>,
2009 <0x4180044 0x004>;
2010 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
2011 "halt_nc", "rmb_base", "restart_reg",
2012 "pdc_sync", "alt_reset";
2013
2014 clocks = <&clock_rpmh RPMH_CXO_CLK>,
2015 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
2016 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
2017 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
2018 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
2019 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
2020 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
2021 <&clock_gcc GCC_PRNG_AHB_CLK>;
2022 clock-names = "xo", "iface_clk", "bus_clk",
2023 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
2024 "mnoc_axi_clk", "prng_clk";
2025 qcom,proxy-clock-names = "xo", "prng_clk";
2026 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
2027 "gpll0_mss_clk", "snoc_axi_clk",
2028 "mnoc_axi_clk";
2029
2030 interrupts = <0 266 1>;
2031 vdd_cx-supply = <&pm660l_s3_level>;
2032 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
2033 vdd_mx-supply = <&pm660l_s1_level>;
2034 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Jitendra Sharma2e981ef2017-10-30 12:16:23 +05302035 vdd_mss-supply = <&pm660_s5_level>;
2036 vdd_mss-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302037 qcom,firmware-name = "modem";
2038 qcom,pil-self-auth;
2039 qcom,sysmon-id = <0>;
2040 qcom,ssctl-instance-id = <0x12>;
2041 qcom,override-acc;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302042 qcom,signal-aop;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302043 qcom,qdsp6v65-1-0;
Jitendra Sharma93dd7fc2017-10-14 17:38:55 +05302044 qcom,mss_pdc_offset = <9>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302045 status = "ok";
2046 memory-region = <&pil_modem_mem>;
2047 qcom,mem-protect-id = <0xF>;
2048
2049 /* GPIO inputs from mss */
2050 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
2051 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
2052 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
2053 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
2054 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
2055
2056 /* GPIO output to mss */
2057 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302058
2059 mboxes = <&qmp_aop 0>;
2060 mbox-names = "mss-pil";
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302061 qcom,mba-mem@0 {
2062 compatible = "qcom,pil-mba-mem";
2063 memory-region = <&pil_mba_mem>;
2064 };
2065 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05302066
2067 qcom,venus@aae0000 {
2068 compatible = "qcom,pil-tz-generic";
2069 reg = <0xaae0000 0x4000>;
2070
2071 vdd-supply = <&venus_gdsc>;
2072 qcom,proxy-reg-names = "vdd";
2073
2074 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
2075 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
2076 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
2077 clock-names = "core_clk", "iface_clk", "bus_clk";
2078 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
2079
2080 qcom,pas-id = <9>;
2081 qcom,msm-bus,name = "pil-venus";
2082 qcom,msm-bus,num-cases = <2>;
2083 qcom,msm-bus,num-paths = <1>;
2084 qcom,msm-bus,vectors-KBps =
2085 <63 512 0 0>,
2086 <63 512 0 304000>;
2087 qcom,proxy-timeout-ms = <100>;
2088 qcom,firmware-name = "venus";
2089 memory-region = <&pil_video_mem>;
2090 status = "ok";
2091 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05302092
2093 qcom,turing@8300000 {
2094 compatible = "qcom,pil-tz-generic";
2095 reg = <0x8300000 0x100000>;
2096 interrupts = <0 578 1>;
2097
2098 vdd_cx-supply = <&pm660l_s3_level>;
2099 qcom,proxy-reg-names = "vdd_cx";
2100 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2101
2102 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2103 clock-names = "xo";
2104 qcom,proxy-clock-names = "xo";
2105
2106 qcom,pas-id = <18>;
2107 qcom,proxy-timeout-ms = <10000>;
2108 qcom,smem-id = <601>;
2109 qcom,sysmon-id = <7>;
2110 qcom,ssctl-instance-id = <0x17>;
2111 qcom,firmware-name = "cdsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302112 qcom,signal-aop;
Gaurav Kohli106f4882017-06-29 12:29:12 +05302113 memory-region = <&pil_cdsp_mem>;
2114
2115 /* GPIO inputs from turing */
2116 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
2117 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
2118 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
2119 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
2120
2121 /* GPIO output to turing*/
2122 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302123
2124 mboxes = <&qmp_aop 0>;
2125 mbox-names = "cdsp-pil";
Gaurav Kohli106f4882017-06-29 12:29:12 +05302126 status = "ok";
2127 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05302128
2129 sdhc_1: sdhci@7c4000 {
2130 compatible = "qcom,sdhci-msm-v5";
2131 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
2132 reg-names = "hc_mem", "cmdq_mem";
2133
2134 interrupts = <0 641 0>, <0 644 0>;
2135 interrupt-names = "hc_irq", "pwr_irq";
2136
2137 qcom,bus-width = <8>;
2138 qcom,large-address-bus;
2139
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302140 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
2141 192000000 384000000>;
2142 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
2143
2144 qcom,devfreq,freq-table = <50000000 200000000>;
2145
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302146 qcom,msm-bus,name = "sdhc1";
2147 qcom,msm-bus,num-cases = <9>;
2148 qcom,msm-bus,num-paths = <2>;
2149 qcom,msm-bus,vectors-KBps =
2150 /* No vote */
Vijay Viswanath49024c22017-10-17 12:42:06 +05302151 <150 512 0 0>, <1 782 0 0>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302152 /* 400 KB/s*/
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302153 <150 512 1046 1600>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302154 <1 782 1600 1600>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302155 /* 20 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302156 <150 512 52286 80000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302157 <1 782 80000 80000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302158 /* 25 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302159 <150 512 65360 100000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302160 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302161 /* 50 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302162 <150 512 130718 200000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302163 <1 782 133320 133320>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302164 /* 100 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302165 <150 512 130718 200000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302166 <1 782 150000 150000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302167 /* 200 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302168 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302169 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302170 /* 400 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302171 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302172 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302173 /* Max. bandwidth */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302174 <150 512 1338562 4096000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302175 <1 782 1338562 4096000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302176 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2177 100000000 200000000 400000000 4294967295>;
2178
2179 /* PM QoS */
2180 qcom,pm-qos-irq-type = "affine_irq";
2181 qcom,pm-qos-irq-latency = <70 70>;
2182 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2183 qcom,pm-qos-cmdq-latency-us = <70 70>, <70 70>;
2184 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2185
Vijay Viswanatheac72722017-06-05 11:01:38 +05302186 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302187 <&clock_gcc GCC_SDCC1_APPS_CLK>,
Vijay Viswanath7e20ddc2017-10-07 14:23:38 +05302188 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
2189 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_CLK>;
2190 clock-names = "iface_clk", "core_clk", "ice_core_clk",
2191 "bus_aggr_clk";
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302192
2193 qcom,ice-clk-rates = <300000000 75000000>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302194
Vijay Viswanathd4dcf5f2017-10-17 15:42:00 +05302195 qcom,ddr-config = <0xC3040873>;
2196
Vijay Viswanatheac72722017-06-05 11:01:38 +05302197 qcom,nonremovable;
2198
2199 qcom,scaling-lower-bus-speed-mode = "DDR52";
2200 status = "disabled";
2201 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302202
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302203 sdhc_2: sdhci@8804000 {
2204 compatible = "qcom,sdhci-msm-v5";
2205 reg = <0x8804000 0x1000>;
2206 reg-names = "hc_mem";
2207
2208 interrupts = <0 204 0>, <0 222 0>;
2209 interrupt-names = "hc_irq", "pwr_irq";
2210
2211 qcom,bus-width = <4>;
2212 qcom,large-address-bus;
2213
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302214 qcom,clk-rates = <400000 20000000 25000000
2215 50000000 100000000 201500000>;
2216 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
2217 "SDR104";
2218
2219 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302220
2221 qcom,msm-bus,name = "sdhc2";
2222 qcom,msm-bus,num-cases = <8>;
2223 qcom,msm-bus,num-paths = <2>;
2224 qcom,msm-bus,vectors-KBps =
2225 /* No vote */
2226 <81 512 0 0>, <1 608 0 0>,
2227 /* 400 KB/s*/
2228 <81 512 1046 1600>,
2229 <1 608 1600 1600>,
2230 /* 20 MB/s */
2231 <81 512 52286 80000>,
2232 <1 608 80000 80000>,
2233 /* 25 MB/s */
2234 <81 512 65360 100000>,
2235 <1 608 100000 100000>,
2236 /* 50 MB/s */
2237 <81 512 130718 200000>,
2238 <1 608 133320 133320>,
2239 /* 100 MB/s */
2240 <81 512 261438 200000>,
2241 <1 608 150000 150000>,
2242 /* 200 MB/s */
2243 <81 512 261438 400000>,
2244 <1 608 300000 300000>,
2245 /* Max. bandwidth */
2246 <81 512 1338562 4096000>,
2247 <1 608 1338562 4096000>;
2248 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2249 100000000 200000000 4294967295>;
2250
2251 /* PM QoS */
2252 qcom,pm-qos-irq-type = "affine_irq";
2253 qcom,pm-qos-irq-latency = <70 70>;
2254 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2255 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2256
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302257 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
2258 <&clock_gcc GCC_SDCC2_APPS_CLK>;
2259 clock-names = "iface_clk", "core_clk";
2260
2261 status = "disabled";
2262 };
2263
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302264 qcom,msm-cdsp-loader {
2265 compatible = "qcom,cdsp-loader";
2266 qcom,proc-img-to-load = "cdsp";
2267 };
2268
2269 qcom,msm-adsprpc-mem {
2270 compatible = "qcom,msm-adsprpc-mem-region";
2271 memory-region = <&adsp_mem>;
2272 };
2273
2274 qcom,msm_fastrpc {
2275 compatible = "qcom,msm-fastrpc-compute";
2276
2277 qcom,msm_fastrpc_compute_cb1 {
2278 compatible = "qcom,msm-fastrpc-compute-cb";
2279 label = "cdsprpc-smd";
2280 iommus = <&apps_smmu 0x1421 0x30>;
2281 dma-coherent;
2282 };
2283 qcom,msm_fastrpc_compute_cb2 {
2284 compatible = "qcom,msm-fastrpc-compute-cb";
2285 label = "cdsprpc-smd";
2286 iommus = <&apps_smmu 0x1422 0x30>;
2287 dma-coherent;
2288 };
2289 qcom,msm_fastrpc_compute_cb3 {
2290 compatible = "qcom,msm-fastrpc-compute-cb";
2291 label = "cdsprpc-smd";
2292 iommus = <&apps_smmu 0x1423 0x30>;
2293 dma-coherent;
2294 };
2295 qcom,msm_fastrpc_compute_cb4 {
2296 compatible = "qcom,msm-fastrpc-compute-cb";
2297 label = "cdsprpc-smd";
2298 iommus = <&apps_smmu 0x1424 0x30>;
2299 dma-coherent;
2300 };
2301 qcom,msm_fastrpc_compute_cb5 {
2302 compatible = "qcom,msm-fastrpc-compute-cb";
2303 label = "cdsprpc-smd";
2304 iommus = <&apps_smmu 0x1425 0x30>;
2305 dma-coherent;
2306 };
2307 qcom,msm_fastrpc_compute_cb6 {
2308 compatible = "qcom,msm-fastrpc-compute-cb";
2309 label = "cdsprpc-smd";
2310 iommus = <&apps_smmu 0x1426 0x30>;
2311 dma-coherent;
2312 };
2313 qcom,msm_fastrpc_compute_cb7 {
2314 compatible = "qcom,msm-fastrpc-compute-cb";
2315 label = "cdsprpc-smd";
2316 qcom,secure-context-bank;
2317 iommus = <&apps_smmu 0x1429 0x30>;
2318 dma-coherent;
2319 };
2320 qcom,msm_fastrpc_compute_cb8 {
2321 compatible = "qcom,msm-fastrpc-compute-cb";
2322 label = "cdsprpc-smd";
2323 qcom,secure-context-bank;
2324 iommus = <&apps_smmu 0x142A 0x30>;
2325 dma-coherent;
2326 };
2327 qcom,msm_fastrpc_compute_cb9 {
2328 compatible = "qcom,msm-fastrpc-compute-cb";
2329 label = "adsprpc-smd";
2330 iommus = <&apps_smmu 0x1803 0x0>;
2331 dma-coherent;
2332 };
2333 qcom,msm_fastrpc_compute_cb10 {
2334 compatible = "qcom,msm-fastrpc-compute-cb";
2335 label = "adsprpc-smd";
2336 iommus = <&apps_smmu 0x1804 0x0>;
2337 dma-coherent;
2338 };
2339 qcom,msm_fastrpc_compute_cb11 {
2340 compatible = "qcom,msm-fastrpc-compute-cb";
2341 label = "adsprpc-smd";
2342 iommus = <&apps_smmu 0x1805 0x0>;
2343 dma-coherent;
2344 };
c_mtharu92125922017-10-16 14:06:39 +05302345 qcom,msm_fastrpc_compute_cb12 {
2346 compatible = "qcom,msm-fastrpc-compute-cb";
2347 label = "adsprpc-smd";
2348 iommus = <&apps_smmu 0x1806 0x0>;
2349 dma-coherent;
2350 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302351 };
Anurag Chouhan7563b532017-09-12 15:49:16 +05302352
Rupesh Tatiyaf2072952017-10-08 19:57:12 +05302353 bluetooth: bt_wcn3990 {
2354 compatible = "qca,wcn3990";
2355 qca,bt-vdd-core-supply = <&pm660_l9>;
2356 qca,bt-vdd-pa-supply = <&pm660_l6>;
2357 qca,bt-vdd-ldo-supply = <&pm660_l19>;
2358
2359 qca,bt-vdd-core-voltage-level = <1800000 1900000>;
2360 qca,bt-vdd-pa-voltage-level = <1304000 1370000>;
2361 qca,bt-vdd-ldo-voltage-level = <3312000 3400000>;
2362
2363 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
2364 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
2365 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
2366 };
2367
Anurag Chouhan7563b532017-09-12 15:49:16 +05302368 qcom,icnss@18800000 {
Anurag Chouhan7563b532017-09-12 15:49:16 +05302369 compatible = "qcom,icnss";
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302370 reg = <0x18800000 0x800000>,
2371 <0xa0000000 0x10000000>,
2372 <0xb0000000 0x10000>;
2373 reg-names = "membase", "smmu_iova_base", "smmu_iova_ipa";
2374 iommus = <&apps_smmu 0x0040 0x1>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302375 interrupts = <0 414 0 /* CE0 */ >,
2376 <0 415 0 /* CE1 */ >,
2377 <0 416 0 /* CE2 */ >,
2378 <0 417 0 /* CE3 */ >,
2379 <0 418 0 /* CE4 */ >,
2380 <0 419 0 /* CE5 */ >,
2381 <0 420 0 /* CE6 */ >,
2382 <0 421 0 /* CE7 */ >,
2383 <0 422 0 /* CE8 */ >,
2384 <0 423 0 /* CE9 */ >,
2385 <0 424 0 /* CE10 */ >,
2386 <0 425 0 /* CE11 */ >;
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302387 vdd-0.8-cx-mx-supply = <&pm660_l5>;
2388 vdd-1.8-xo-supply = <&pm660_l9>;
2389 vdd-1.3-rfa-supply = <&pm660_l6>;
2390 vdd-3.3-ch0-supply = <&pm660_l19>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302391 qcom,wlan-msa-memory = <0x100000>;
2392 qcom,smmu-s1-bypass;
2393 };
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302394
2395 cpubw: qcom,cpubw {
2396 compatible = "qcom,devbw";
2397 governor = "performance";
2398 qcom,src-dst-ports =
Santosh Mardidfc78812017-10-05 13:15:20 +05302399 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_EBI_CH0>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302400 qcom,active-only;
2401 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302402 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2403 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2404 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2405 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2406 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2407 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2408 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2409 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2410 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2411 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2412 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302413 };
2414
Santosh Mardidfc78812017-10-05 13:15:20 +05302415 bwmon: qcom,cpu-bwmon {
2416 compatible = "qcom,bimc-bwmon4";
2417 reg = <0x1436400 0x300>, <0x1436300 0x200>;
2418 reg-names = "base", "global_base";
2419 interrupts = <0 581 4>;
2420 qcom,mport = <0>;
Santosh Mardida0b0f82017-10-13 23:30:22 +05302421 qcom,count-unit = <0x10000>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302422 qcom,hw-timer-hz = <19200000>;
Santosh Mardidfc78812017-10-05 13:15:20 +05302423 qcom,target-dev = <&cpubw>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302424 };
2425
2426 memlat_cpu0: qcom,memlat-cpu0 {
2427 compatible = "qcom,devbw";
2428 governor = "powersave";
2429 qcom,src-dst-ports = <1 512>;
2430 qcom,active-only;
2431 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302432 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2433 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2434 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2435 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2436 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2437 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2438 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2439 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2440 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2441 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2442 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302443 };
2444
Santosh Mardi37a28af2017-10-12 13:03:31 +05302445 memlat_cpu6: qcom,memlat-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302446 compatible = "qcom,devbw";
2447 governor = "powersave";
2448 qcom,src-dst-ports = <1 512>;
2449 qcom,active-only;
2450 status = "ok";
2451 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302452 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2453 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2454 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2455 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2456 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2457 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2458 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2459 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2460 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2461 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2462 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302463 };
2464
2465 devfreq_memlat_0: qcom,cpu0-memlat-mon {
2466 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302467 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302468 qcom,target-dev = <&memlat_cpu0>;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302469 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302470 qcom,core-dev-table =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302471 < 748800 MHZ_TO_MBPS( 300, 4) >,
2472 < 998400 MHZ_TO_MBPS( 451, 4) >,
2473 < 1209600 MHZ_TO_MBPS( 547, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302474 < 1516800 MHZ_TO_MBPS( 768, 4) >,
2475 < 1708000 MHZ_TO_MBPS(1017, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302476 };
2477
Santosh Mardi37a28af2017-10-12 13:03:31 +05302478 devfreq_memlat_6: qcom,cpu6-memlat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302479 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302480 qcom,cpulist = <&CPU6 &CPU7>;
2481 qcom,target-dev = <&memlat_cpu6>;
2482 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302483 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302484 < 825600 MHZ_TO_MBPS( 300, 4) >,
2485 < 1132800 MHZ_TO_MBPS( 547, 4) >,
2486 < 1363200 MHZ_TO_MBPS(1017, 4) >,
2487 < 1996800 MHZ_TO_MBPS(1555, 4) >,
2488 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302489 };
2490
2491 l3_cpu0: qcom,l3-cpu0 {
2492 compatible = "devfreq-simple-dev";
2493 clock-names = "devfreq_clk";
2494 clocks = <&clock_cpucc L3_CLUSTER0_VOTE_CLK>;
2495 governor = "performance";
2496 };
2497
Santosh Mardi37a28af2017-10-12 13:03:31 +05302498 l3_cpu6: qcom,l3-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302499 compatible = "devfreq-simple-dev";
2500 clock-names = "devfreq_clk";
2501 clocks = <&clock_cpucc L3_CLUSTER1_VOTE_CLK>;
2502 governor = "performance";
2503 };
2504
2505 devfreq_l3lat_0: qcom,cpu0-l3lat-mon {
2506 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302507 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302508 qcom,target-dev = <&l3_cpu0>;
2509 qcom,cachemiss-ev = <0x17>;
2510 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302511 < 748800 556800000 >,
2512 < 998400 806400000 >,
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302513 < 1209660 940800000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302514 < 1516800 1190400000 >,
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302515 < 1612800 1382400000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302516 < 1708000 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302517 };
2518
Santosh Mardi37a28af2017-10-12 13:03:31 +05302519 devfreq_l3lat_6: qcom,cpu6-l3lat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302520 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302521 qcom,cpulist = <&CPU6 &CPU7>;
2522 qcom,target-dev = <&l3_cpu6>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302523 qcom,cachemiss-ev = <0x17>;
2524 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302525 < 1132800 556800000 >,
2526 < 1363200 806400000 >,
2527 < 1747200 940800000 >,
2528 < 1996800 1190400000 >,
2529 < 2457600 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302530 };
2531
2532 mincpubw: qcom,mincpubw {
2533 compatible = "qcom,devbw";
2534 governor = "powersave";
2535 qcom,src-dst-ports = <1 512>;
2536 qcom,active-only;
2537 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302538 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2539 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2540 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2541 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2542 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2543 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2544 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2545 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2546 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2547 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2548 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302549 };
2550
2551 devfreq-cpufreq {
2552 mincpubw-cpufreq {
2553 target-dev = <&mincpubw>;
2554 cpu-to-dev-map-0 =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302555 < 748800 MHZ_TO_MBPS( 300, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302556 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2557 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2558 < 1708000 MHZ_TO_MBPS( 768, 4) >;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302559 cpu-to-dev-map-6 =
Santosh Mardie49578c2017-10-27 11:24:45 +05302560 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2561 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2562 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2563 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2564 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302565 };
2566 };
Amit Nischal199f15d2017-09-12 10:58:51 +05302567
Raghavendra Rao Ananta28dd4502017-10-18 10:28:31 -07002568 cpu_pmu: cpu-pmu {
2569 compatible = "arm,armv8-pmuv3";
2570 qcom,irq-is-percpu;
2571 interrupts = <1 5 4>;
2572 };
2573
Amit Nischal199f15d2017-09-12 10:58:51 +05302574 gpu_gx_domain_addr: syscon@0x5091508 {
2575 compatible = "syscon";
2576 reg = <0x5091508 0x4>;
2577 };
2578
2579 gpu_gx_sw_reset: syscon@0x5091008 {
2580 compatible = "syscon";
2581 reg = <0x5091008 0x4>;
2582 };
Imran Khan04f08312017-03-30 15:07:43 +05302583};
2584
Ashay Jaiswal81940302017-09-20 15:17:58 +05302585#include "pm660.dtsi"
2586#include "pm660l.dtsi"
2587#include "sdm670-regulator.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +05302588#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302589#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302590#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302591#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302592
2593&usb30_prim_gdsc {
2594 status = "ok";
2595};
2596
2597&ufs_phy_gdsc {
2598 status = "ok";
2599};
2600
2601&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2602 status = "ok";
2603};
2604
2605&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2606 status = "ok";
2607};
2608
2609&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2610 status = "ok";
2611};
2612
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302613&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2614 status = "ok";
2615};
2616
2617&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2618 status = "ok";
2619};
2620
2621&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2622 status = "ok";
2623};
2624
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302625&bps_gdsc {
2626 status = "ok";
2627};
2628
2629&ife_0_gdsc {
2630 status = "ok";
2631};
2632
2633&ife_1_gdsc {
2634 status = "ok";
2635};
2636
2637&ipe_0_gdsc {
2638 status = "ok";
2639};
2640
2641&ipe_1_gdsc {
2642 status = "ok";
2643};
2644
2645&titan_top_gdsc {
2646 status = "ok";
2647};
2648
2649&mdss_core_gdsc {
2650 status = "ok";
2651};
2652
2653&gpu_cx_gdsc {
2654 status = "ok";
2655};
2656
2657&gpu_gx_gdsc {
2658 clock-names = "core_root_clk";
2659 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2660 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302661 parent-supply = <&pm660l_s2_level>;
Amit Nischal199f15d2017-09-12 10:58:51 +05302662 domain-addr = <&gpu_gx_domain_addr>;
2663 sw-reset = <&gpu_gx_sw_reset>;
2664 qcom,reset-aon-logic;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302665 status = "ok";
2666};
2667
2668&vcodec0_gdsc {
2669 qcom,support-hw-trigger;
2670 status = "ok";
2671};
2672
2673&vcodec1_gdsc {
2674 qcom,support-hw-trigger;
2675 status = "ok";
2676};
2677
2678&venus_gdsc {
2679 status = "ok";
2680};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302681
Sandeep Panda229db242017-10-03 11:32:29 +05302682&mdss_dsi0 {
2683 qcom,core-supply-entries {
2684 #address-cells = <1>;
2685 #size-cells = <0>;
2686
2687 qcom,core-supply-entry@0 {
2688 reg = <0>;
2689 qcom,supply-name = "refgen";
2690 qcom,supply-min-voltage = <0>;
2691 qcom,supply-max-voltage = <0>;
2692 qcom,supply-enable-load = <0>;
2693 qcom,supply-disable-load = <0>;
2694 };
2695 };
2696};
2697
2698&mdss_dsi1 {
2699 qcom,core-supply-entries {
2700 #address-cells = <1>;
2701 #size-cells = <0>;
2702
2703 qcom,core-supply-entry@0 {
2704 reg = <0>;
2705 qcom,supply-name = "refgen";
2706 qcom,supply-min-voltage = <0>;
2707 qcom,supply-max-voltage = <0>;
2708 qcom,supply-enable-load = <0>;
2709 qcom,supply-disable-load = <0>;
2710 };
2711 };
2712};
2713
Padmanabhan Komanduru07137332017-10-20 12:53:23 +05302714&sde_dp {
2715 qcom,core-supply-entries {
2716 #address-cells = <1>;
2717 #size-cells = <0>;
2718
2719 qcom,core-supply-entry@0 {
2720 reg = <0>;
2721 qcom,supply-name = "refgen";
2722 qcom,supply-min-voltage = <0>;
2723 qcom,supply-max-voltage = <0>;
2724 qcom,supply-enable-load = <0>;
2725 qcom,supply-disable-load = <0>;
2726 };
2727 };
2728};
2729
Rohit Kumar14051282017-07-12 11:18:48 +05302730#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05302731#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05302732#include "sdm670-gpu.dtsi"
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +05302733#include "sdm670-thermal.dtsi"
Odelu Kukatlaf197e382017-07-04 19:47:35 +05302734#include "sdm670-bus.dtsi"
Tirupathi Reddyf805ac72017-10-12 14:22:17 +05302735
2736&pm660_div_clk {
2737 status = "ok";
2738};