blob: 050231267f3e637a73a58cf010c33c2342b2e6d4 [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 Kondeti865e7562017-11-06 08:57:45 +0530371 1536000 586
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530372 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 Kondeti865e7562017-11-06 08:57:45 +0530412 1536000 58
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530413 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
Prakash Guptac97a6a32017-11-21 17:46:55 +0530491 wlan_msa_mem: wlan_msa_region@93300000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530492 compatible = "removed-dma-pool";
493 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530494 reg = <0 0x93300000 0 0x100000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530495 };
496
Prakash Guptac97a6a32017-11-21 17:46:55 +0530497 pil_cdsp_mem: cdsp_regions@93400000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530498 compatible = "removed-dma-pool";
499 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530500 reg = <0 0x93400000 0 0x800000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530501 };
502
Prakash Guptac97a6a32017-11-21 17:46:55 +0530503 pil_mba_mem: pil_mba_region@0x93c00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530504 compatible = "removed-dma-pool";
505 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530506 reg = <0 0x93c00000 0 0x200000>;
507 };
508
509 pil_adsp_mem: pil_adsp_region@93e00000 {
510 compatible = "removed-dma-pool";
511 no-map;
512 reg = <0 0x93e00000 0 0x1e00000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530513 };
514
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530515 adsp_mem: adsp_region {
516 compatible = "shared-dma-pool";
517 alloc-ranges = <0 0x00000000 0 0xffffffff>;
518 reusable;
519 alignment = <0 0x400000>;
520 size = <0 0xc00000>;
521 };
522
523 qseecom_mem: qseecom_region {
524 compatible = "shared-dma-pool";
525 alloc-ranges = <0 0x00000000 0 0xffffffff>;
Prakash Guptafdeeca12017-08-14 15:06:46 -0700526 no-map;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530527 alignment = <0 0x400000>;
528 size = <0 0x1400000>;
529 };
530
531 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
532 compatible = "shared-dma-pool";
533 alloc-ranges = <0 0x00000000 0 0xffffffff>; /* 32-bit */
534 reusable;
535 alignment = <0 0x400000>;
536 size = <0 0x800000>;
537 };
538
539 secure_display_memory: secure_display_region {
540 compatible = "shared-dma-pool";
541 alloc-ranges = <0 0x00000000 0 0xffffffff>;
542 reusable;
543 alignment = <0 0x400000>;
544 size = <0 0x5c00000>;
545 };
546
Jayant Shekharb59d1692017-11-10 14:21:40 +0530547 cont_splash_memory: cont_splash_region@9d400000 {
548 reg = <0x0 0x9d400000 0x0 0x02400000>;
549 label = "cont_splash_region";
550 };
551
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +0530552 dump_mem: mem_dump_region {
553 compatible = "shared-dma-pool";
554 reusable;
555 size = <0 0x2400000>;
556 };
557
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530558 /* global autoconfigured region for contiguous allocations */
559 linux,cma {
560 compatible = "shared-dma-pool";
561 alloc-ranges = <0 0x00000000 0 0xffffffff>;
562 reusable;
563 alignment = <0 0x400000>;
564 size = <0 0x2000000>;
565 linux,cma-default;
566 };
Imran Khan04f08312017-03-30 15:07:43 +0530567 };
568};
569
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530570#include "sdm670-ion.dtsi"
571
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530572#include "sdm670-smp2p.dtsi"
573
c_mtharuce962e42017-12-05 22:41:17 +0530574#include "msm-rdbg.dtsi"
575
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530576#include "sdm670-qupv3.dtsi"
577
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530578#include "sdm670-coresight.dtsi"
Manikanta Kanamarlapudid4abc602017-08-28 19:23:41 +0530579
580#include "sdm670-vidc.dtsi"
581
Raviteja Tamatame97849a2017-09-12 20:25:50 +0530582#include "sdm670-sde-pll.dtsi"
583
584#include "sdm670-sde.dtsi"
585
Imran Khan04f08312017-03-30 15:07:43 +0530586&soc {
587 #address-cells = <1>;
588 #size-cells = <1>;
589 ranges = <0 0 0 0xffffffff>;
590 compatible = "simple-bus";
591
Saranya Chidura0e8b4262017-10-04 13:06:26 +0530592 jtag_mm0: jtagmm@7040000 {
593 compatible = "qcom,jtagv8-mm";
594 reg = <0x7040000 0x1000>;
595 reg-names = "etm-base";
596
597 clocks = <&clock_aop QDSS_CLK>;
598 clock-names = "core_clk";
599
600 qcom,coresight-jtagmm-cpu = <&CPU0>;
601 };
602
603 jtag_mm1: jtagmm@7140000 {
604 compatible = "qcom,jtagv8-mm";
605 reg = <0x7140000 0x1000>;
606 reg-names = "etm-base";
607
608 clocks = <&clock_aop QDSS_CLK>;
609 clock-names = "core_clk";
610
611 qom,coresight-jtagmm-cpu = <&CPU1>;
612 };
613
614 jtag_mm2: jtagmm@7240000 {
615 compatible = "qcom,jtagv8-mm";
616 reg = <0x7240000 0x1000>;
617 reg-names = "etm-base";
618
619 clocks = <&clock_aop QDSS_CLK>;
620 clock-names = "core_clk";
621
622 qcom,coresight-jtagmm-cpu = <&CPU2>;
623 };
624
625 jtag_mm3: jtagmm@7340000 {
626 compatible = "qcom,jtagv8-mm";
627 reg = <0x7340000 0x1000>;
628 reg-names = "etm-base";
629
630 clocks = <&clock_aop QDSS_CLK>;
631 clock-names = "core_clk";
632
633 qcom,coresight-jtagmm-cpu = <&CPU3>;
634 };
635
636 jtag_mm4: jtagmm@7440000 {
637 compatible = "qcom,jtagv8-mm";
638 reg = <0x7440000 0x1000>;
639 reg-names = "etm-base";
640
641 clocks = <&clock_aop QDSS_CLK>;
642 clock-names = "core_clk";
643
644 qcom,coresight-jtagmm-cpu = <&CPU4>;
645 };
646
647 jtag_mm5: jtagmm@7540000 {
648 compatible = "qcom,jtagv8-mm";
649 reg = <0x7540000 0x1000>;
650 reg-names = "etm-base";
651
652 clocks = <&clock_aop QDSS_CLK>;
653 clock-names = "core_clk";
654
655 qcom,coresight-jtagmm-cpu = <&CPU5>;
656 };
657
658 jtag_mm6: jtagmm@7640000 {
659 compatible = "qcom,jtagv8-mm";
660 reg = <0x7640000 0x1000>;
661 reg-names = "etm-base";
662
663 clocks = <&clock_aop QDSS_CLK>;
664 clock-names = "core_clk";
665
666 qcom,coresight-jtagmm-cpu = <&CPU6>;
667 };
668
669 jtag_mm7: jtagmm@7740000 {
670 compatible = "qcom,jtagv8-mm";
671 reg = <0x7740000 0x1000>;
672 reg-names = "etm-base";
673
674 clocks = <&clock_aop QDSS_CLK>;
675 clock-names = "core_clk";
676
677 qcom,coresight-jtagmm-cpu = <&CPU7>;
678 };
679
Imran Khan04f08312017-03-30 15:07:43 +0530680 intc: interrupt-controller@17a00000 {
681 compatible = "arm,gic-v3";
682 #interrupt-cells = <3>;
683 interrupt-controller;
684 #redistributor-regions = <1>;
685 redistributor-stride = <0x0 0x20000>;
686 reg = <0x17a00000 0x10000>, /* GICD */
687 <0x17a60000 0x100000>; /* GICR * 8 */
688 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530689 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530690 };
691
692 timer {
693 compatible = "arm,armv8-timer";
694 interrupts = <1 1 0xf08>,
695 <1 2 0xf08>,
696 <1 3 0xf08>,
697 <1 0 0xf08>;
698 clock-frequency = <19200000>;
699 };
700
Manoj Prabhu B95b1bc72017-11-17 15:09:29 +0530701 qcom,memshare {
702 compatible = "qcom,memshare";
703
704 qcom,client_1 {
705 compatible = "qcom,memshare-peripheral";
706 qcom,peripheral-size = <0x0>;
707 qcom,client-id = <0>;
708 qcom,allocate-boot-time;
709 label = "modem";
710 };
711
712 qcom,client_2 {
713 compatible = "qcom,memshare-peripheral";
714 qcom,peripheral-size = <0x0>;
715 qcom,client-id = <2>;
716 label = "modem";
717 };
718
719 mem_client_3_size: qcom,client_3 {
720 compatible = "qcom,memshare-peripheral";
721 qcom,peripheral-size = <0x500000>;
722 qcom,client-id = <1>;
723 label = "modem";
724 };
725 };
726
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530727 qcom,sps {
728 compatible = "qcom,msm_sps_4k";
729 qcom,pipe-attr-ee;
730 };
731
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530732 qcom_cedev: qcedev@1de0000 {
733 compatible = "qcom,qcedev";
734 reg = <0x1de0000 0x20000>,
735 <0x1dc4000 0x24000>;
736 reg-names = "crypto-base","crypto-bam-base";
737 interrupts = <0 272 0>;
738 qcom,bam-pipe-pair = <3>;
739 qcom,ce-hw-instance = <0>;
740 qcom,ce-device = <0>;
741 qcom,ce-hw-shared;
742 qcom,bam-ee = <0>;
743 qcom,msm-bus,name = "qcedev-noc";
744 qcom,msm-bus,num-cases = <2>;
745 qcom,msm-bus,num-paths = <1>;
746 qcom,msm-bus,vectors-KBps =
747 <125 512 0 0>,
748 <125 512 393600 393600>;
749 clock-names = "core_clk_src", "core_clk",
750 "iface_clk", "bus_clk";
751 clocks = <&clock_gcc GCC_CE1_CLK>,
752 <&clock_gcc GCC_CE1_CLK>,
753 <&clock_gcc GCC_CE1_AHB_CLK>,
754 <&clock_gcc GCC_CE1_AXI_CLK>;
755 qcom,ce-opp-freq = <171430000>;
756 qcom,request-bw-before-clk;
mohamed sunfeer4b2ca442017-11-07 14:46:45 +0530757 qcom,smmu-s1-enable;
mohamed sunfeerdce9b922017-11-11 22:14:58 +0530758 iommus = <&apps_smmu 0x706 0x1>,
759 <&apps_smmu 0x716 0x1>;
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530760 };
761
762 qcom_crypto: qcrypto@1de0000 {
763 compatible = "qcom,qcrypto";
764 reg = <0x1de0000 0x20000>,
765 <0x1dc4000 0x24000>;
766 reg-names = "crypto-base","crypto-bam-base";
767 interrupts = <0 272 0>;
768 qcom,bam-pipe-pair = <2>;
769 qcom,ce-hw-instance = <0>;
770 qcom,ce-device = <0>;
771 qcom,bam-ee = <0>;
772 qcom,ce-hw-shared;
773 qcom,clk-mgmt-sus-res;
774 qcom,msm-bus,name = "qcrypto-noc";
775 qcom,msm-bus,num-cases = <2>;
776 qcom,msm-bus,num-paths = <1>;
777 qcom,msm-bus,vectors-KBps =
778 <125 512 0 0>,
779 <125 512 393600 393600>;
780 clock-names = "core_clk_src", "core_clk",
781 "iface_clk", "bus_clk";
782 clocks = <&clock_gcc GCC_CE1_CLK>,
783 <&clock_gcc GCC_CE1_CLK>,
784 <&clock_gcc GCC_CE1_AHB_CLK>,
785 <&clock_gcc GCC_CE1_AXI_CLK>;
786 qcom,ce-opp-freq = <171430000>;
787 qcom,request-bw-before-clk;
788 qcom,use-sw-aes-cbc-ecb-ctr-algo;
789 qcom,use-sw-aes-xts-algo;
790 qcom,use-sw-aes-ccm-algo;
791 qcom,use-sw-aead-algo;
792 qcom,use-sw-ahash-algo;
793 qcom,use-sw-hmac-algo;
mohamed sunfeer4b2ca442017-11-07 14:46:45 +0530794 qcom,smmu-s1-enable;
mohamed sunfeerdce9b922017-11-11 22:14:58 +0530795 iommus = <&apps_smmu 0x704 0x1>,
796 <&apps_smmu 0x714 0x1>;
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530797 };
798
Abir Ghoshb849ab22017-09-19 13:03:11 +0530799 qcom,qbt1000 {
800 compatible = "qcom,qbt1000";
801 clock-names = "core", "iface";
802 clock-frequency = <25000000>;
803 qcom,ipc-gpio = <&tlmm 121 0>;
804 qcom,finger-detect-gpio = <&tlmm 122 0>;
805 };
806
mohamed sunfeer71b31322017-09-20 00:46:46 +0530807 qcom_seecom: qseecom@86d00000 {
808 compatible = "qcom,qseecom";
809 reg = <0x86d00000 0x2200000>;
810 reg-names = "secapp-region";
811 qcom,hlos-num-ce-hw-instances = <1>;
812 qcom,hlos-ce-hw-instance = <0>;
813 qcom,qsee-ce-hw-instance = <0>;
814 qcom,disk-encrypt-pipe-pair = <2>;
815 qcom,support-fde;
816 qcom,no-clock-support;
Neeraj Soni7c4254c2017-11-15 11:13:14 +0530817 qcom,fde-key-size;
mohamed sunfeer71b31322017-09-20 00:46:46 +0530818 qcom,appsbl-qseecom-support;
819 qcom,msm-bus,name = "qseecom-noc";
820 qcom,msm-bus,num-cases = <4>;
821 qcom,msm-bus,num-paths = <1>;
822 qcom,msm-bus,vectors-KBps =
823 <125 512 0 0>,
824 <125 512 200000 400000>,
825 <125 512 300000 800000>,
826 <125 512 400000 1000000>;
827 clock-names = "core_clk_src", "core_clk",
828 "iface_clk", "bus_clk";
829 clocks = <&clock_gcc GCC_CE1_CLK>,
830 <&clock_gcc GCC_CE1_CLK>,
831 <&clock_gcc GCC_CE1_AHB_CLK>,
832 <&clock_gcc GCC_CE1_AXI_CLK>;
833 qcom,ce-opp-freq = <171430000>;
834 qcom,qsee-reentrancy-support = <2>;
835 };
836
mohamed sunfeer732f7572017-09-19 19:51:11 +0530837 qcom_tzlog: tz-log@146bf720 {
838 compatible = "qcom,tz-log";
839 reg = <0x146bf720 0x3000>;
840 qcom,hyplog-enabled;
841 hyplog-address-offset = <0x410>;
842 hyplog-size-offset = <0x414>;
843 };
844
mohamed sunfeer2228b242017-09-19 19:10:08 +0530845 qcom_rng: qrng@793000{
846 compatible = "qcom,msm-rng";
847 reg = <0x793000 0x1000>;
848 qcom,msm-rng-iface-clk;
849 qcom,no-qrng-config;
850 qcom,msm-bus,name = "msm-rng-noc";
851 qcom,msm-bus,num-cases = <2>;
852 qcom,msm-bus,num-paths = <1>;
853 qcom,msm-bus,vectors-KBps =
854 <1 618 0 0>, /* No vote */
855 <1 618 0 800>; /* 100 KHz */
856 clocks = <&clock_gcc GCC_PRNG_AHB_CLK>;
857 clock-names = "iface_clk";
858 };
859
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +0530860 thermal_zones: thermal-zones {};
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530861
862 tsens0: tsens@c222000 {
863 compatible = "qcom,tsens24xx";
864 reg = <0xc222000 0x4>,
865 <0xc263000 0x1ff>;
866 reg-names = "tsens_srot_physical",
867 "tsens_tm_physical";
868 interrupts = <0 506 0>, <0 508 0>;
869 interrupt-names = "tsens-upper-lower", "tsens-critical";
870 #thermal-sensor-cells = <1>;
871 };
872
873 tsens1: tsens@c223000 {
874 compatible = "qcom,tsens24xx";
875 reg = <0xc223000 0x4>,
876 <0xc265000 0x1ff>;
877 reg-names = "tsens_srot_physical",
878 "tsens_tm_physical";
879 interrupts = <0 507 0>, <0 509 0>;
880 interrupt-names = "tsens-upper-lower", "tsens-critical";
881 #thermal-sensor-cells = <1>;
882 };
883
Imran Khan04f08312017-03-30 15:07:43 +0530884 timer@0x17c90000{
885 #address-cells = <1>;
886 #size-cells = <1>;
887 ranges;
888 compatible = "arm,armv7-timer-mem";
889 reg = <0x17c90000 0x1000>;
890 clock-frequency = <19200000>;
891
892 frame@0x17ca0000 {
893 frame-number = <0>;
894 interrupts = <0 7 0x4>,
895 <0 6 0x4>;
896 reg = <0x17ca0000 0x1000>,
897 <0x17cb0000 0x1000>;
898 };
899
900 frame@17cc0000 {
901 frame-number = <1>;
902 interrupts = <0 8 0x4>;
903 reg = <0x17cc0000 0x1000>;
904 status = "disabled";
905 };
906
907 frame@17cd0000 {
908 frame-number = <2>;
909 interrupts = <0 9 0x4>;
910 reg = <0x17cd0000 0x1000>;
911 status = "disabled";
912 };
913
914 frame@17ce0000 {
915 frame-number = <3>;
916 interrupts = <0 10 0x4>;
917 reg = <0x17ce0000 0x1000>;
918 status = "disabled";
919 };
920
921 frame@17cf0000 {
922 frame-number = <4>;
923 interrupts = <0 11 0x4>;
924 reg = <0x17cf0000 0x1000>;
925 status = "disabled";
926 };
927
928 frame@17d00000 {
929 frame-number = <5>;
930 interrupts = <0 12 0x4>;
931 reg = <0x17d00000 0x1000>;
932 status = "disabled";
933 };
934
935 frame@17d10000 {
936 frame-number = <6>;
937 interrupts = <0 13 0x4>;
938 reg = <0x17d10000 0x1000>;
939 status = "disabled";
940 };
941 };
942
943 restart@10ac000 {
944 compatible = "qcom,pshold";
945 reg = <0xC264000 0x4>,
946 <0x1fd3000 0x4>;
947 reg-names = "pshold-base", "tcsr-boot-misc-detect";
948 };
949
Maulik Shah6bf7d5d2017-07-27 09:48:42 +0530950 aop-msg-client {
951 compatible = "qcom,debugfs-qmp-client";
952 mboxes = <&qmp_aop 0>;
953 mbox-names = "aop";
954 };
955
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530956 clock_rpmh: qcom,rpmhclk {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530957 compatible = "qcom,rpmh-clk-sdm670";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530958 #clock-cells = <1>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530959 mboxes = <&apps_rsc 0>;
960 mbox-names = "apps";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530961 };
962
963 clock_gcc: qcom,gcc@100000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530964 compatible = "qcom,gcc-sdm670", "syscon";
965 reg = <0x100000 0x1f0000>;
966 reg-names = "cc_base";
967 vdd_cx-supply = <&pm660l_s3_level>;
968 vdd_cx_ao-supply = <&pm660l_s3_level_ao>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530969 #clock-cells = <1>;
970 #reset-cells = <1>;
971 };
972
973 clock_videocc: qcom,videocc@ab00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530974 compatible = "qcom,video_cc-sdm670", "syscon";
975 reg = <0xab00000 0x10000>;
976 reg-names = "cc_base";
977 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530978 #clock-cells = <1>;
979 #reset-cells = <1>;
980 };
981
982 clock_camcc: qcom,camcc@ad00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530983 compatible = "qcom,cam_cc-sdm670", "syscon";
984 reg = <0xad00000 0x10000>;
985 reg-names = "cc_base";
986 vdd_cx-supply = <&pm660l_s3_level>;
987 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530988 #clock-cells = <1>;
989 #reset-cells = <1>;
990 };
991
992 clock_dispcc: qcom,dispcc@af00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530993 compatible = "qcom,dispcc-sdm670", "syscon";
994 reg = <0xaf00000 0x10000>;
995 reg-names = "cc_base";
996 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530997 #clock-cells = <1>;
998 #reset-cells = <1>;
999 };
1000
1001 clock_gpucc: qcom,gpucc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301002 compatible = "qcom,gpucc-sdm670", "syscon";
1003 reg = <0x5090000 0x9000>;
1004 reg-names = "cc_base";
1005 vdd_cx-supply = <&pm660l_s3_level>;
1006 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +05301007 qcom,gpu_cc_gmu_clk_src-opp-handle = <&gmu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301008 #clock-cells = <1>;
1009 #reset-cells = <1>;
1010 };
1011
1012 clock_gfx: qcom,gfxcc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301013 compatible = "qcom,gfxcc-sdm670";
1014 reg = <0x5090000 0x9000>;
1015 reg-names = "cc_base";
1016 vdd_gfx-supply = <&pm660l_s2_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +05301017 qcom,gpu_cc_gx_gfx3d_clk_src-opp-handle = <&msm_gpu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301018 #clock-cells = <1>;
1019 #reset-cells = <1>;
1020 };
1021
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301022 cpucc_debug: syscon@17970018 {
1023 compatible = "syscon";
1024 reg = <0x17970018 0x4>;
1025 };
1026
1027 clock_debug: qcom,cc-debug {
1028 compatible = "qcom,debugcc-sdm845";
1029 qcom,cc-count = <5>;
1030 qcom,gcc = <&clock_gcc>;
1031 qcom,videocc = <&clock_videocc>;
1032 qcom,camcc = <&clock_camcc>;
1033 qcom,dispcc = <&clock_dispcc>;
1034 qcom,gpucc = <&clock_gpucc>;
1035 qcom,cpucc = <&cpucc_debug>;
1036 clock-names = "xo_clk_src";
1037 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1038 #clock-cells = <1>;
1039 };
1040
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301041 clock_cpucc: qcom,cpucc@0x17d41000 {
1042 compatible = "qcom,clk-cpu-osm-sdm670";
1043 reg = <0x17d41000 0x1400>,
1044 <0x17d43000 0x1400>,
David Collins1e048402017-11-29 15:43:09 -08001045 <0x17d45800 0x1400>;
1046 reg-names = "osm_l3_base", "osm_pwrcl_base", "osm_perfcl_base";
Deepak Katragadda02617bd2017-11-10 16:03:43 -08001047 vdd_l3_mx_ao-supply = <&pm660l_s1_level_ao>;
1048 vdd_pwrcl_mx_ao-supply = <&pm660l_s1_level_ao>;
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301049
David Collins1e048402017-11-29 15:43:09 -08001050 qcom,mx-turbo-freq = <3300000001 3300000001 3300000001>;
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301051 l3-devs = <&l3_cpu0 &l3_cpu6>;
1052
1053 clock-names = "xo_ao";
1054 clocks = <&clock_rpmh RPMH_CXO_CLK_A>;
Imran Khan04f08312017-03-30 15:07:43 +05301055 #clock-cells = <1>;
Imran Khan04f08312017-03-30 15:07:43 +05301056 };
1057
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301058 clock_aop: qcom,aopclk {
Odelu Kukatla80f617f2017-09-15 19:30:25 +05301059 compatible = "qcom,aop-qmp-clk-v1";
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301060 #clock-cells = <1>;
1061 mboxes = <&qmp_aop 0>;
1062 mbox-names = "qdss_clk";
1063 };
1064
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301065 slim_aud: slim@62dc0000 {
1066 cell-index = <1>;
1067 compatible = "qcom,slim-ngd";
1068 reg = <0x62dc0000 0x2c000>,
1069 <0x62d84000 0x2a000>;
1070 reg-names = "slimbus_physical", "slimbus_bam_physical";
1071 interrupts = <0 163 0>, <0 164 0>;
1072 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
1073 qcom,apps-ch-pipes = <0x780000>;
1074 qcom,ea-pc = <0x290>;
1075 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301076 qcom,iommu-s1-bypass;
1077
1078 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1079 compatible = "qcom,iommu-slim-ctrl-cb";
1080 iommus = <&apps_smmu 0x1826 0x0>,
1081 <&apps_smmu 0x182d 0x0>,
1082 <&apps_smmu 0x182e 0x1>,
1083 <&apps_smmu 0x1830 0x1>;
1084 };
1085
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301086 };
1087
1088 slim_qca: slim@62e40000 {
1089 cell-index = <3>;
1090 compatible = "qcom,slim-ngd";
1091 reg = <0x62e40000 0x2c000>,
1092 <0x62e04000 0x20000>;
1093 reg-names = "slimbus_physical", "slimbus_bam_physical";
1094 interrupts = <0 291 0>, <0 292 0>;
1095 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301096 status = "ok";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301097 qcom,iommu-s1-bypass;
1098
1099 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1100 compatible = "qcom,iommu-slim-ctrl-cb";
1101 iommus = <&apps_smmu 0x1833 0x0>;
1102 };
1103
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301104 /* Slimbus Slave DT for WCN3990 */
1105 btfmslim_codec: wcn3990 {
1106 compatible = "qcom,btfmslim_slave";
1107 elemental-addr = [00 01 20 02 17 02];
1108 qcom,btfm-slim-ifd = "btfmslim_slave_ifd";
1109 qcom,btfm-slim-ifd-elemental-addr = [00 00 20 02 17 02];
1110 };
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301111 };
1112
Imran Khan04f08312017-03-30 15:07:43 +05301113 wdog: qcom,wdt@17980000{
1114 compatible = "qcom,msm-watchdog";
1115 reg = <0x17980000 0x1000>;
1116 reg-names = "wdt-base";
Lingutla Chandrasekhar9fb9ba92017-10-08 21:59:19 +05301117 interrupts = <0 0 0>, <0 1 0>;
Imran Khan04f08312017-03-30 15:07:43 +05301118 qcom,bark-time = <11000>;
Neeraj Upadhyaydbc184d2017-12-07 16:05:39 +05301119 qcom,pet-time = <9360>;
Imran Khan04f08312017-03-30 15:07:43 +05301120 qcom,ipi-ping;
1121 qcom,wakeup-enable;
1122 };
1123
1124 qcom,msm-rtb {
1125 compatible = "qcom,msm-rtb";
1126 qcom,rtb-size = <0x100000>;
1127 };
1128
Lingutla Chandrasekhar4d78d722017-11-10 16:03:44 +05301129 qcom,mpm2-sleep-counter@c221000 {
1130 compatible = "qcom,mpm2-sleep-counter";
1131 reg = <0x0c221000 0x1000>;
1132 clock-frequency = <32768>;
1133 };
1134
Imran Khan04f08312017-03-30 15:07:43 +05301135 qcom,msm-imem@146bf000 {
1136 compatible = "qcom,msm-imem";
1137 reg = <0x146bf000 0x1000>;
1138 ranges = <0x0 0x146bf000 0x1000>;
1139 #address-cells = <1>;
1140 #size-cells = <1>;
1141
1142 mem_dump_table@10 {
1143 compatible = "qcom,msm-imem-mem_dump_table";
1144 reg = <0x10 8>;
1145 };
1146
Lingutla Chandrasekharfa5c13f2017-09-25 11:01:58 +05301147 dload_type@1c {
1148 compatible = "qcom,msm-imem-dload-type";
1149 reg = <0x1c 0x4>;
1150 };
1151
Imran Khan04f08312017-03-30 15:07:43 +05301152 restart_reason@65c {
1153 compatible = "qcom,msm-imem-restart_reason";
1154 reg = <0x65c 4>;
1155 };
1156
1157 pil@94c {
1158 compatible = "qcom,msm-imem-pil";
1159 reg = <0x94c 200>;
1160 };
1161
1162 kaslr_offset@6d0 {
1163 compatible = "qcom,msm-imem-kaslr_offset";
1164 reg = <0x6d0 12>;
1165 };
Lingutla Chandrasekhar3c51f0b2017-09-12 14:21:21 +05301166
1167 boot_stats@6b0 {
1168 compatible = "qcom,msm-imem-boot_stats";
1169 reg = <0x6b0 0x20>;
1170 };
1171
1172 diag_dload@c8 {
1173 compatible = "qcom,msm-imem-diag-dload";
1174 reg = <0xc8 0xc8>;
1175 };
Imran Khan04f08312017-03-30 15:07:43 +05301176 };
1177
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301178 gpi_dma0: qcom,gpi-dma@0x800000 {
Jishnu Prakashfb619282017-11-06 11:07:53 +05301179 #dma-cells = <5>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301180 compatible = "qcom,gpi-dma";
1181 reg = <0x800000 0x60000>;
1182 reg-names = "gpi-top";
1183 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
1184 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
1185 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
1186 <0 256 0>;
1187 qcom,max-num-gpii = <13>;
1188 qcom,gpii-mask = <0xfa>;
1189 qcom,ev-factor = <2>;
1190 iommus = <&apps_smmu 0x0016 0x0>;
Jishnu Prakash71f42792017-11-02 16:04:21 +05301191 qcom,smmu-cfg = <0x1>;
1192 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301193 status = "ok";
1194 };
1195
1196 gpi_dma1: qcom,gpi-dma@0xa00000 {
Jishnu Prakashfb619282017-11-06 11:07:53 +05301197 #dma-cells = <5>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301198 compatible = "qcom,gpi-dma";
1199 reg = <0xa00000 0x60000>;
1200 reg-names = "gpi-top";
1201 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
1202 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
1203 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
1204 <0 299 0>;
1205 qcom,max-num-gpii = <13>;
1206 qcom,gpii-mask = <0xfa>;
1207 qcom,ev-factor = <2>;
Jishnu Prakash71f42792017-11-02 16:04:21 +05301208 qcom,smmu-cfg = <0x1>;
1209 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301210 iommus = <&apps_smmu 0x06d6 0x0>;
1211 status = "ok";
1212 };
1213
Imran Khan04f08312017-03-30 15:07:43 +05301214 cpuss_dump {
1215 compatible = "qcom,cpuss-dump";
1216 qcom,l1_i_cache0 {
1217 qcom,dump-node = <&L1_I_0>;
1218 qcom,dump-id = <0x60>;
1219 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301220 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301221 qcom,dump-node = <&L1_I_100>;
1222 qcom,dump-id = <0x61>;
1223 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301224 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301225 qcom,dump-node = <&L1_I_200>;
1226 qcom,dump-id = <0x62>;
1227 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301228 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301229 qcom,dump-node = <&L1_I_300>;
1230 qcom,dump-id = <0x63>;
1231 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301232 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301233 qcom,dump-node = <&L1_I_400>;
1234 qcom,dump-id = <0x64>;
1235 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301236 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301237 qcom,dump-node = <&L1_I_500>;
1238 qcom,dump-id = <0x65>;
1239 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301240 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301241 qcom,dump-node = <&L1_I_600>;
1242 qcom,dump-id = <0x66>;
1243 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301244 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301245 qcom,dump-node = <&L1_I_700>;
1246 qcom,dump-id = <0x67>;
1247 };
1248 qcom,l1_d_cache0 {
1249 qcom,dump-node = <&L1_D_0>;
1250 qcom,dump-id = <0x80>;
1251 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301252 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301253 qcom,dump-node = <&L1_D_100>;
1254 qcom,dump-id = <0x81>;
1255 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301256 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301257 qcom,dump-node = <&L1_D_200>;
1258 qcom,dump-id = <0x82>;
1259 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301260 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301261 qcom,dump-node = <&L1_D_300>;
1262 qcom,dump-id = <0x83>;
1263 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301264 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301265 qcom,dump-node = <&L1_D_400>;
1266 qcom,dump-id = <0x84>;
1267 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301268 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301269 qcom,dump-node = <&L1_D_500>;
1270 qcom,dump-id = <0x85>;
1271 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301272 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301273 qcom,dump-node = <&L1_D_600>;
1274 qcom,dump-id = <0x86>;
1275 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301276 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301277 qcom,dump-node = <&L1_D_700>;
1278 qcom,dump-id = <0x87>;
1279 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301280 qcom,llcc1_d_cache {
1281 qcom,dump-node = <&LLCC_1>;
1282 qcom,dump-id = <0x140>;
1283 };
1284 qcom,llcc2_d_cache {
1285 qcom,dump-node = <&LLCC_2>;
1286 qcom,dump-id = <0x141>;
1287 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301288 qcom,l1_tlb_dump0 {
1289 qcom,dump-node = <&L1_TLB_0>;
1290 qcom,dump-id = <0x20>;
1291 };
1292 qcom,l1_tlb_dump100 {
1293 qcom,dump-node = <&L1_TLB_100>;
1294 qcom,dump-id = <0x21>;
1295 };
1296 qcom,l1_tlb_dump200 {
1297 qcom,dump-node = <&L1_TLB_200>;
1298 qcom,dump-id = <0x22>;
1299 };
1300 qcom,l1_tlb_dump300 {
1301 qcom,dump-node = <&L1_TLB_300>;
1302 qcom,dump-id = <0x23>;
1303 };
1304 qcom,l1_tlb_dump400 {
1305 qcom,dump-node = <&L1_TLB_400>;
1306 qcom,dump-id = <0x24>;
1307 };
1308 qcom,l1_tlb_dump500 {
1309 qcom,dump-node = <&L1_TLB_500>;
1310 qcom,dump-id = <0x25>;
1311 };
1312 qcom,l1_tlb_dump600 {
1313 qcom,dump-node = <&L1_TLB_600>;
1314 qcom,dump-id = <0x26>;
1315 };
1316 qcom,l1_tlb_dump700 {
1317 qcom,dump-node = <&L1_TLB_700>;
1318 qcom,dump-id = <0x27>;
1319 };
Imran Khan04f08312017-03-30 15:07:43 +05301320 };
1321
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301322 mem_dump {
1323 compatible = "qcom,mem-dump";
1324 memory-region = <&dump_mem>;
1325
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301326 rpmh {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301327 qcom,dump-size = <0x2000000>;
1328 qcom,dump-id = <0xec>;
1329 };
1330
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301331 rpm_sw {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301332 qcom,dump-size = <0x28000>;
1333 qcom,dump-id = <0xea>;
1334 };
1335
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301336 pmic {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301337 qcom,dump-size = <0x10000>;
1338 qcom,dump-id = <0xe4>;
1339 };
1340
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301341 tmc_etf {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301342 qcom,dump-size = <0x10000>;
1343 qcom,dump-id = <0xf0>;
1344 };
1345
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301346 tmc_etfswao {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301347 qcom,dump-size = <0x8400>;
1348 qcom,dump-id = <0xf1>;
1349 };
1350
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301351 tmc_etr_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301352 qcom,dump-size = <0x1000>;
1353 qcom,dump-id = <0x100>;
1354 };
1355
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301356 tmc_etf_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301357 qcom,dump-size = <0x1000>;
1358 qcom,dump-id = <0x101>;
1359 };
1360
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301361 etfswao_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301362 qcom,dump-size = <0x1000>;
1363 qcom,dump-id = <0x102>;
1364 };
1365
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301366 misc_data {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301367 qcom,dump-size = <0x1000>;
1368 qcom,dump-id = <0xe8>;
1369 };
1370
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301371 power_regs {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301372 qcom,dump-size = <0x100000>;
1373 qcom,dump-id = <0xed>;
1374 };
1375 };
1376
Imran Khan04f08312017-03-30 15:07:43 +05301377 kryo3xx-erp {
1378 compatible = "arm,arm64-kryo3xx-cpu-erp";
1379 interrupts = <1 6 4>,
1380 <1 7 4>,
1381 <0 34 4>,
1382 <0 35 4>;
1383
1384 interrupt-names = "l1-l2-faultirq",
1385 "l1-l2-errirq",
1386 "l3-scu-errirq",
1387 "l3-scu-faultirq";
1388 };
1389
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301390 qcom,ipc-spinlock@1f40000 {
1391 compatible = "qcom,ipc-spinlock-sfpb";
1392 reg = <0x1f40000 0x8000>;
1393 qcom,num-locks = <8>;
1394 };
1395
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301396 qcom,smem@86000000 {
1397 compatible = "qcom,smem";
1398 reg = <0x86000000 0x200000>,
1399 <0x17911008 0x4>,
1400 <0x778000 0x7000>,
1401 <0x1fd4000 0x8>;
1402 reg-names = "smem", "irq-reg-base", "aux-mem1",
1403 "smem_targ_info_reg";
1404 qcom,mpu-enabled;
1405 };
1406
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301407 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301408 compatible = "qcom,qmp-mbox";
1409 label = "aop";
1410 reg = <0xc300000 0x100000>,
1411 <0x1799000c 0x4>;
1412 reg-names = "msgram", "irq-reg-base";
1413 qcom,irq-mask = <0x1>;
1414 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301415 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301416 mbox-desc-offset = <0x0>;
1417 #mbox-cells = <1>;
1418 };
1419
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301420 qcom,glink-smem-native-xprt-modem@86000000 {
1421 compatible = "qcom,glink-smem-native-xprt";
1422 reg = <0x86000000 0x200000>,
1423 <0x1799000c 0x4>;
1424 reg-names = "smem", "irq-reg-base";
1425 qcom,irq-mask = <0x1000>;
1426 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1427 label = "mpss";
1428 };
1429
1430 qcom,glink-smem-native-xprt-adsp@86000000 {
1431 compatible = "qcom,glink-smem-native-xprt";
1432 reg = <0x86000000 0x200000>,
1433 <0x1799000c 0x4>;
1434 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301435 qcom,irq-mask = <0x1000000>;
1436 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301437 label = "lpass";
1438 qcom,qos-config = <&glink_qos_adsp>;
1439 qcom,ramp-time = <0xaf>;
1440 };
1441
1442 glink_qos_adsp: qcom,glink-qos-config-adsp {
1443 compatible = "qcom,glink-qos-config";
1444 qcom,flow-info = <0x3c 0x0>,
1445 <0x3c 0x0>,
1446 <0x3c 0x0>,
1447 <0x3c 0x0>;
1448 qcom,mtu-size = <0x800>;
1449 qcom,tput-stats-cycle = <0xa>;
1450 };
1451
1452 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1453 compatible = "qcom,glink-spi-xprt";
1454 label = "wdsp";
1455 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1456 qcom,qos-config = <&glink_qos_wdsp>;
1457 qcom,ramp-time = <0x10>,
1458 <0x20>,
1459 <0x30>,
1460 <0x40>;
1461 };
1462
1463 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1464 compatible = "qcom,glink-fifo-config";
1465 qcom,out-read-idx-reg = <0x12000>;
1466 qcom,out-write-idx-reg = <0x12004>;
1467 qcom,in-read-idx-reg = <0x1200C>;
1468 qcom,in-write-idx-reg = <0x12010>;
1469 };
1470
1471 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1472 compatible = "qcom,glink-qos-config";
1473 qcom,flow-info = <0x80 0x0>,
1474 <0x70 0x1>,
1475 <0x60 0x2>,
1476 <0x50 0x3>;
1477 qcom,mtu-size = <0x800>;
1478 qcom,tput-stats-cycle = <0xa>;
1479 };
1480
1481 qcom,glink-smem-native-xprt-cdsp@86000000 {
1482 compatible = "qcom,glink-smem-native-xprt";
1483 reg = <0x86000000 0x200000>,
1484 <0x1799000c 0x4>;
1485 reg-names = "smem", "irq-reg-base";
1486 qcom,irq-mask = <0x10>;
1487 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1488 label = "cdsp";
1489 };
1490
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301491 glink_mpss: qcom,glink-ssr-modem {
1492 compatible = "qcom,glink_ssr";
1493 label = "modem";
1494 qcom,edge = "mpss";
1495 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1496 qcom,xprt = "smem";
1497 };
1498
1499 glink_lpass: qcom,glink-ssr-adsp {
1500 compatible = "qcom,glink_ssr";
1501 label = "adsp";
1502 qcom,edge = "lpass";
1503 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1504 qcom,xprt = "smem";
1505 };
1506
1507 glink_cdsp: qcom,glink-ssr-cdsp {
1508 compatible = "qcom,glink_ssr";
1509 label = "cdsp";
1510 qcom,edge = "cdsp";
1511 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1512 qcom,xprt = "smem";
1513 };
1514
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301515 qcom,ipc_router {
1516 compatible = "qcom,ipc_router";
1517 qcom,node-id = <1>;
1518 };
1519
1520 qcom,ipc_router_modem_xprt {
1521 compatible = "qcom,ipc_router_glink_xprt";
1522 qcom,ch-name = "IPCRTR";
1523 qcom,xprt-remote = "mpss";
1524 qcom,glink-xprt = "smem";
1525 qcom,xprt-linkid = <1>;
1526 qcom,xprt-version = <1>;
1527 qcom,fragmented-data;
1528 };
1529
1530 qcom,ipc_router_q6_xprt {
1531 compatible = "qcom,ipc_router_glink_xprt";
1532 qcom,ch-name = "IPCRTR";
1533 qcom,xprt-remote = "lpass";
1534 qcom,glink-xprt = "smem";
1535 qcom,xprt-linkid = <1>;
1536 qcom,xprt-version = <1>;
1537 qcom,fragmented-data;
1538 };
1539
1540 qcom,ipc_router_cdsp_xprt {
1541 compatible = "qcom,ipc_router_glink_xprt";
1542 qcom,ch-name = "IPCRTR";
1543 qcom,xprt-remote = "cdsp";
1544 qcom,glink-xprt = "smem";
1545 qcom,xprt-linkid = <1>;
1546 qcom,xprt-version = <1>;
1547 qcom,fragmented-data;
1548 };
1549
Dhoat Harpal11d34482017-06-06 21:00:14 +05301550 qcom,glink_pkt {
1551 compatible = "qcom,glinkpkt";
1552
1553 qcom,glinkpkt-at-mdm0 {
1554 qcom,glinkpkt-transport = "smem";
1555 qcom,glinkpkt-edge = "mpss";
1556 qcom,glinkpkt-ch-name = "DS";
1557 qcom,glinkpkt-dev-name = "at_mdm0";
1558 };
1559
1560 qcom,glinkpkt-loopback_cntl {
1561 qcom,glinkpkt-transport = "lloop";
1562 qcom,glinkpkt-edge = "local";
1563 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1564 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1565 };
1566
1567 qcom,glinkpkt-loopback_data {
1568 qcom,glinkpkt-transport = "lloop";
1569 qcom,glinkpkt-edge = "local";
1570 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1571 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1572 };
1573
1574 qcom,glinkpkt-apr-apps2 {
1575 qcom,glinkpkt-transport = "smem";
1576 qcom,glinkpkt-edge = "adsp";
1577 qcom,glinkpkt-ch-name = "apr_apps2";
1578 qcom,glinkpkt-dev-name = "apr_apps2";
1579 };
1580
1581 qcom,glinkpkt-data40-cntl {
1582 qcom,glinkpkt-transport = "smem";
1583 qcom,glinkpkt-edge = "mpss";
1584 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1585 qcom,glinkpkt-dev-name = "smdcntl8";
1586 };
1587
1588 qcom,glinkpkt-data1 {
1589 qcom,glinkpkt-transport = "smem";
1590 qcom,glinkpkt-edge = "mpss";
1591 qcom,glinkpkt-ch-name = "DATA1";
1592 qcom,glinkpkt-dev-name = "smd7";
1593 };
1594
1595 qcom,glinkpkt-data4 {
1596 qcom,glinkpkt-transport = "smem";
1597 qcom,glinkpkt-edge = "mpss";
1598 qcom,glinkpkt-ch-name = "DATA4";
1599 qcom,glinkpkt-dev-name = "smd8";
1600 };
1601
1602 qcom,glinkpkt-data11 {
1603 qcom,glinkpkt-transport = "smem";
1604 qcom,glinkpkt-edge = "mpss";
1605 qcom,glinkpkt-ch-name = "DATA11";
1606 qcom,glinkpkt-dev-name = "smd11";
1607 };
1608 };
1609
Imran Khan04f08312017-03-30 15:07:43 +05301610 qcom,chd_sliver {
1611 compatible = "qcom,core-hang-detect";
1612 label = "silver";
1613 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1614 0x17e30058 0x17e40058 0x17e50058>;
1615 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1616 0x17e30060 0x17e40060 0x17e50060>;
1617 };
1618
1619 qcom,chd_gold {
1620 compatible = "qcom,core-hang-detect";
1621 label = "gold";
1622 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1623 qcom,config-arr = <0x17e60060 0x17e70060>;
1624 };
1625
1626 qcom,ghd {
1627 compatible = "qcom,gladiator-hang-detect-v2";
1628 qcom,threshold-arr = <0x1799041c 0x17990420>;
1629 qcom,config-reg = <0x17990434>;
1630 };
1631
1632 qcom,msm-gladiator-v3@17900000 {
1633 compatible = "qcom,msm-gladiator-v3";
1634 reg = <0x17900000 0xd080>;
1635 reg-names = "gladiator_base";
1636 interrupts = <0 17 0>;
1637 };
1638
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301639 eud: qcom,msm-eud@88e0000 {
1640 compatible = "qcom,msm-eud";
1641 interrupt-names = "eud_irq";
1642 interrupts = <GIC_SPI 492 IRQ_TYPE_LEVEL_HIGH>;
1643 reg = <0x88e0000 0x2000>;
1644 reg-names = "eud_base";
Lingutla Chandrasekhar5422daf2017-10-26 11:27:32 +05301645 clocks = <&clock_gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>;
1646 clock-names = "cfg_ahb_clk";
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301647 };
1648
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301649 qcom,llcc@1100000 {
1650 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1651 reg = <0x1100000 0x250000>;
1652 reg-names = "llcc_base";
1653 qcom,llcc-banks-off = <0x0 0x80000 >;
1654 qcom,llcc-broadcast-off = <0x200000>;
1655
1656 llcc: qcom,sdm670-llcc {
1657 compatible = "qcom,sdm670-llcc";
1658 #cache-cells = <1>;
1659 max-slices = <32>;
1660 qcom,dump-size = <0x80000>;
1661 };
1662
Sankaran Nampoothiri0c5dac02017-11-06 11:53:52 +05301663 qcom,llcc-perfmon {
1664 compatible = "qcom,llcc-perfmon";
1665 };
1666
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301667 qcom,llcc-erp {
1668 compatible = "qcom,llcc-erp";
1669 interrupt-names = "ecc_irq";
1670 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1671 };
1672
1673 qcom,llcc-amon {
1674 compatible = "qcom,llcc-amon";
1675 };
1676
1677 LLCC_1: llcc_1_dcache {
1678 qcom,dump-size = <0xd8000>;
1679 };
1680
1681 LLCC_2: llcc_2_dcache {
1682 qcom,dump-size = <0xd8000>;
1683 };
1684 };
1685
Maulik Shah210773d2017-06-15 09:49:12 +05301686 cmd_db: qcom,cmd-db@c3f000c {
1687 compatible = "qcom,cmd-db";
1688 reg = <0xc3f000c 0x8>;
1689 };
1690
Maulik Shahc77d1d22017-06-15 14:04:50 +05301691 apps_rsc: mailbox@179e0000 {
1692 compatible = "qcom,tcs-drv";
1693 label = "apps_rsc";
1694 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1695 interrupts = <0 5 0>;
1696 #mbox-cells = <1>;
1697 qcom,drv-id = <2>;
1698 qcom,tcs-config = <ACTIVE_TCS 2>,
1699 <SLEEP_TCS 3>,
1700 <WAKE_TCS 3>,
1701 <CONTROL_TCS 1>;
1702 };
1703
Maulik Shahda3941f2017-06-15 09:41:38 +05301704 disp_rsc: mailbox@af20000 {
1705 compatible = "qcom,tcs-drv";
1706 label = "display_rsc";
1707 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1708 interrupts = <0 129 0>;
1709 #mbox-cells = <1>;
1710 qcom,drv-id = <0>;
1711 qcom,tcs-config = <SLEEP_TCS 1>,
1712 <WAKE_TCS 1>,
1713 <ACTIVE_TCS 0>,
1714 <CONTROL_TCS 1>;
1715 };
1716
Maulik Shah0dd203f2017-06-15 09:44:59 +05301717 system_pm {
1718 compatible = "qcom,system-pm";
1719 mboxes = <&apps_rsc 0>;
1720 };
1721
Imran Khan04f08312017-03-30 15:07:43 +05301722 dcc: dcc_v2@10a2000 {
1723 compatible = "qcom,dcc_v2";
1724 reg = <0x10a2000 0x1000>,
1725 <0x10ae000 0x2000>;
1726 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301727
1728 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301729 };
1730
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301731 spmi_bus: qcom,spmi@c440000 {
1732 compatible = "qcom,spmi-pmic-arb";
1733 reg = <0xc440000 0x1100>,
1734 <0xc600000 0x2000000>,
1735 <0xe600000 0x100000>,
1736 <0xe700000 0xa0000>,
1737 <0xc40a000 0x26000>;
1738 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1739 interrupt-names = "periph_irq";
1740 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1741 qcom,ee = <0>;
1742 qcom,channel = <0>;
1743 #address-cells = <2>;
1744 #size-cells = <0>;
1745 interrupt-controller;
1746 #interrupt-cells = <4>;
1747 cell-index = <0>;
1748 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301749
1750 ufsphy_mem: ufsphy_mem@1d87000 {
1751 reg = <0x1d87000 0xe00>; /* PHY regs */
1752 reg-names = "phy_mem";
1753 #phy-cells = <0>;
1754
1755 lanes-per-direction = <1>;
1756
1757 clock-names = "ref_clk_src",
1758 "ref_clk",
1759 "ref_aux_clk";
1760 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1761 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1762 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1763
1764 status = "disabled";
1765 };
1766
1767 ufshc_mem: ufshc@1d84000 {
1768 compatible = "qcom,ufshc";
1769 reg = <0x1d84000 0x3000>;
1770 interrupts = <0 265 0>;
1771 phys = <&ufsphy_mem>;
1772 phy-names = "ufsphy";
1773
1774 lanes-per-direction = <1>;
1775 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1776
1777 clock-names =
1778 "core_clk",
1779 "bus_aggr_clk",
1780 "iface_clk",
1781 "core_clk_unipro",
1782 "core_clk_ice",
1783 "ref_clk",
1784 "tx_lane0_sync_clk",
1785 "rx_lane0_sync_clk";
1786 clocks =
1787 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1788 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1789 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1790 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1791 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1792 <&clock_rpmh RPMH_CXO_CLK>,
1793 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1794 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1795 freq-table-hz =
1796 <50000000 200000000>,
1797 <0 0>,
1798 <0 0>,
1799 <37500000 150000000>,
1800 <75000000 300000000>,
1801 <0 0>,
1802 <0 0>,
1803 <0 0>;
1804
Sayali Lokhandeaa3db742017-10-09 15:13:01 +05301805 non-removable;
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301806 qcom,msm-bus,name = "ufshc_mem";
1807 qcom,msm-bus,num-cases = <12>;
1808 qcom,msm-bus,num-paths = <2>;
1809 qcom,msm-bus,vectors-KBps =
1810 /*
1811 * During HS G3 UFS runs at nominal voltage corner, vote
1812 * higher bandwidth to push other buses in the data path
1813 * to run at nominal to achieve max throughput.
1814 * 4GBps pushes BIMC to run at nominal.
1815 * 200MBps pushes CNOC to run at nominal.
1816 * Vote for half of this bandwidth for HS G3 1-lane.
1817 * For max bandwidth, vote high enough to push the buses
1818 * to run in turbo voltage corner.
1819 */
1820 <123 512 0 0>, <1 757 0 0>, /* No vote */
1821 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1822 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1823 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1824 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1825 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1826 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1827 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1828 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1829 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1830 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1831 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1832
1833 qcom,bus-vector-names = "MIN",
1834 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1835 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1836 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1837 "MAX";
1838
1839 /* PM QoS */
1840 qcom,pm-qos-cpu-groups = <0x3f 0xC0>;
1841 qcom,pm-qos-cpu-group-latency-us = <70 70>;
1842 qcom,pm-qos-default-cpu = <0>;
1843
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301844 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1845 reset-names = "core_reset";
1846
1847 status = "disabled";
1848 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301849
1850 qcom,lpass@62400000 {
1851 compatible = "qcom,pil-tz-generic";
1852 reg = <0x62400000 0x00100>;
1853 interrupts = <0 162 1>;
1854
1855 vdd_cx-supply = <&pm660l_l9_level>;
1856 qcom,proxy-reg-names = "vdd_cx";
1857 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1858
1859 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1860 clock-names = "xo";
1861 qcom,proxy-clock-names = "xo";
1862
1863 qcom,pas-id = <1>;
1864 qcom,proxy-timeout-ms = <10000>;
1865 qcom,smem-id = <423>;
1866 qcom,sysmon-id = <1>;
1867 qcom,ssctl-instance-id = <0x14>;
1868 qcom,firmware-name = "adsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301869 qcom,signal-aop;
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301870 memory-region = <&pil_adsp_mem>;
1871
1872 /* GPIO inputs from lpass */
1873 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1874 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1875 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1876 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1877
1878 /* GPIO output to lpass */
1879 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301880
1881 mboxes = <&qmp_aop 0>;
1882 mbox-names = "adsp-pil";
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301883 status = "ok";
1884 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301885
Sahitya Tummala02e49182017-09-19 10:54:42 +05301886 qcom,rmtfs_sharedmem@0 {
1887 compatible = "qcom,sharedmem-uio";
1888 reg = <0x0 0x200000>;
1889 reg-names = "rmtfs";
1890 qcom,client-id = <0x00000001>;
Sahitya Tummala57f7b572017-10-23 10:29:03 +05301891 qcom,guard-memory;
Sahitya Tummala02e49182017-09-19 10:54:42 +05301892 };
1893
Mohammed Javidf97a10e2017-10-08 13:11:26 +05301894 qcom,msm_gsi {
1895 compatible = "qcom,msm_gsi";
1896 };
1897
Mohammed Javid736c25c2017-06-19 13:23:18 +05301898 qcom,rmnet-ipa {
1899 compatible = "qcom,rmnet-ipa3";
1900 qcom,rmnet-ipa-ssr;
1901 qcom,ipa-loaduC;
1902 qcom,ipa-advertise-sg-support;
1903 qcom,ipa-napi-enable;
1904 };
1905
1906 ipa_hw: qcom,ipa@01e00000 {
1907 compatible = "qcom,ipa";
1908 reg = <0x1e00000 0x34000>,
1909 <0x1e04000 0x2c000>;
1910 reg-names = "ipa-base", "gsi-base";
1911 interrupts =
1912 <0 311 0>,
1913 <0 432 0>;
1914 interrupt-names = "ipa-irq", "gsi-irq";
1915 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1916 qcom,ipa-hw-mode = <1>;
1917 qcom,ee = <0>;
1918 qcom,use-ipa-tethering-bridge;
1919 qcom,modem-cfg-emb-pipe-flt;
1920 qcom,ipa-wdi2;
1921 qcom,use-64-bit-dma-mask;
1922 qcom,arm-smmu;
Mohammed Javid736c25c2017-06-19 13:23:18 +05301923 qcom,bandwidth-vote-for-ipa;
1924 qcom,msm-bus,name = "ipa";
1925 qcom,msm-bus,num-cases = <4>;
1926 qcom,msm-bus,num-paths = <4>;
1927 qcom,msm-bus,vectors-KBps =
1928 /* No vote */
1929 <90 512 0 0>,
1930 <90 585 0 0>,
1931 <1 676 0 0>,
1932 <143 777 0 0>,
1933 /* SVS */
1934 <90 512 80000 640000>,
1935 <90 585 80000 640000>,
1936 <1 676 80000 80000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301937 <143 777 0 150>, /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301938 /* NOMINAL */
1939 <90 512 206000 960000>,
1940 <90 585 206000 960000>,
1941 <1 676 206000 160000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301942 <143 777 0 300>, /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301943 /* TURBO */
1944 <90 512 206000 3600000>,
1945 <90 585 206000 3600000>,
1946 <1 676 206000 300000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301947 <143 777 0 355>; /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301948 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1949
1950 /* IPA RAM mmap */
1951 qcom,ipa-ram-mmap = <
1952 0x280 /* ofst_start; */
1953 0x0 /* nat_ofst; */
1954 0x0 /* nat_size; */
1955 0x288 /* v4_flt_hash_ofst; */
1956 0x78 /* v4_flt_hash_size; */
1957 0x4000 /* v4_flt_hash_size_ddr; */
1958 0x308 /* v4_flt_nhash_ofst; */
1959 0x78 /* v4_flt_nhash_size; */
1960 0x4000 /* v4_flt_nhash_size_ddr; */
1961 0x388 /* v6_flt_hash_ofst; */
1962 0x78 /* v6_flt_hash_size; */
1963 0x4000 /* v6_flt_hash_size_ddr; */
1964 0x408 /* v6_flt_nhash_ofst; */
1965 0x78 /* v6_flt_nhash_size; */
1966 0x4000 /* v6_flt_nhash_size_ddr; */
1967 0xf /* v4_rt_num_index; */
1968 0x0 /* v4_modem_rt_index_lo; */
1969 0x7 /* v4_modem_rt_index_hi; */
1970 0x8 /* v4_apps_rt_index_lo; */
1971 0xe /* v4_apps_rt_index_hi; */
1972 0x488 /* v4_rt_hash_ofst; */
1973 0x78 /* v4_rt_hash_size; */
1974 0x4000 /* v4_rt_hash_size_ddr; */
1975 0x508 /* v4_rt_nhash_ofst; */
1976 0x78 /* v4_rt_nhash_size; */
1977 0x4000 /* v4_rt_nhash_size_ddr; */
1978 0xf /* v6_rt_num_index; */
1979 0x0 /* v6_modem_rt_index_lo; */
1980 0x7 /* v6_modem_rt_index_hi; */
1981 0x8 /* v6_apps_rt_index_lo; */
1982 0xe /* v6_apps_rt_index_hi; */
1983 0x588 /* v6_rt_hash_ofst; */
1984 0x78 /* v6_rt_hash_size; */
1985 0x4000 /* v6_rt_hash_size_ddr; */
1986 0x608 /* v6_rt_nhash_ofst; */
1987 0x78 /* v6_rt_nhash_size; */
1988 0x4000 /* v6_rt_nhash_size_ddr; */
1989 0x688 /* modem_hdr_ofst; */
1990 0x140 /* modem_hdr_size; */
1991 0x7c8 /* apps_hdr_ofst; */
1992 0x0 /* apps_hdr_size; */
1993 0x800 /* apps_hdr_size_ddr; */
1994 0x7d0 /* modem_hdr_proc_ctx_ofst; */
1995 0x200 /* modem_hdr_proc_ctx_size; */
1996 0x9d0 /* apps_hdr_proc_ctx_ofst; */
1997 0x200 /* apps_hdr_proc_ctx_size; */
1998 0x0 /* apps_hdr_proc_ctx_size_ddr; */
1999 0x0 /* modem_comp_decomp_ofst; diff */
2000 0x0 /* modem_comp_decomp_size; diff */
2001 0xbd8 /* modem_ofst; */
2002 0x1024 /* modem_size; */
2003 0x2000 /* apps_v4_flt_hash_ofst; */
2004 0x0 /* apps_v4_flt_hash_size; */
2005 0x2000 /* apps_v4_flt_nhash_ofst; */
2006 0x0 /* apps_v4_flt_nhash_size; */
2007 0x2000 /* apps_v6_flt_hash_ofst; */
2008 0x0 /* apps_v6_flt_hash_size; */
2009 0x2000 /* apps_v6_flt_nhash_ofst; */
2010 0x0 /* apps_v6_flt_nhash_size; */
2011 0x80 /* uc_info_ofst; */
2012 0x200 /* uc_info_size; */
2013 0x2000 /* end_ofst; */
2014 0x2000 /* apps_v4_rt_hash_ofst; */
2015 0x0 /* apps_v4_rt_hash_size; */
2016 0x2000 /* apps_v4_rt_nhash_ofst; */
2017 0x0 /* apps_v4_rt_nhash_size; */
2018 0x2000 /* apps_v6_rt_hash_ofst; */
2019 0x0 /* apps_v6_rt_hash_size; */
2020 0x2000 /* apps_v6_rt_nhash_ofst; */
2021 0x0 /* apps_v6_rt_nhash_size; */
2022 0x1c00 /* uc_event_ring_ofst; */
2023 0x400 /* uc_event_ring_size; */
2024 >;
2025
2026 /* smp2p gpio information */
2027 qcom,smp2pgpio_map_ipa_1_out {
2028 compatible = "qcom,smp2pgpio-map-ipa-1-out";
2029 gpios = <&smp2pgpio_ipa_1_out 0 0>;
2030 };
2031
2032 qcom,smp2pgpio_map_ipa_1_in {
2033 compatible = "qcom,smp2pgpio-map-ipa-1-in";
2034 gpios = <&smp2pgpio_ipa_1_in 0 0>;
2035 };
2036
2037 ipa_smmu_ap: ipa_smmu_ap {
2038 compatible = "qcom,ipa-smmu-ap-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302039 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302040 iommus = <&apps_smmu 0x720 0x0>;
2041 qcom,iova-mapping = <0x20000000 0x40000000>;
2042 };
2043
2044 ipa_smmu_wlan: ipa_smmu_wlan {
2045 compatible = "qcom,ipa-smmu-wlan-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302046 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302047 iommus = <&apps_smmu 0x721 0x0>;
2048 };
2049
2050 ipa_smmu_uc: ipa_smmu_uc {
2051 compatible = "qcom,ipa-smmu-uc-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302052 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302053 iommus = <&apps_smmu 0x722 0x0>;
2054 qcom,iova-mapping = <0x40000000 0x20000000>;
2055 };
2056 };
2057
2058 qcom,ipa_fws {
2059 compatible = "qcom,pil-tz-generic";
2060 qcom,pas-id = <0xf>;
2061 qcom,firmware-name = "ipa_fws";
2062 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302063
2064 pil_modem: qcom,mss@4080000 {
2065 compatible = "qcom,pil-q6v55-mss";
2066 reg = <0x4080000 0x100>,
2067 <0x1f63000 0x008>,
2068 <0x1f65000 0x008>,
2069 <0x1f64000 0x008>,
2070 <0x4180000 0x020>,
2071 <0xc2b0000 0x004>,
2072 <0xb2e0100 0x004>,
2073 <0x4180044 0x004>;
2074 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
2075 "halt_nc", "rmb_base", "restart_reg",
2076 "pdc_sync", "alt_reset";
2077
2078 clocks = <&clock_rpmh RPMH_CXO_CLK>,
2079 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
2080 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
2081 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
2082 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
2083 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
2084 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
2085 <&clock_gcc GCC_PRNG_AHB_CLK>;
2086 clock-names = "xo", "iface_clk", "bus_clk",
2087 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
2088 "mnoc_axi_clk", "prng_clk";
2089 qcom,proxy-clock-names = "xo", "prng_clk";
2090 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
2091 "gpll0_mss_clk", "snoc_axi_clk",
2092 "mnoc_axi_clk";
2093
2094 interrupts = <0 266 1>;
2095 vdd_cx-supply = <&pm660l_s3_level>;
2096 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
2097 vdd_mx-supply = <&pm660l_s1_level>;
2098 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Jitendra Sharma2e981ef2017-10-30 12:16:23 +05302099 vdd_mss-supply = <&pm660_s5_level>;
2100 vdd_mss-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302101 qcom,firmware-name = "modem";
2102 qcom,pil-self-auth;
2103 qcom,sysmon-id = <0>;
2104 qcom,ssctl-instance-id = <0x12>;
2105 qcom,override-acc;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302106 qcom,signal-aop;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302107 qcom,qdsp6v65-1-0;
Jitendra Sharma93dd7fc2017-10-14 17:38:55 +05302108 qcom,mss_pdc_offset = <9>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302109 status = "ok";
2110 memory-region = <&pil_modem_mem>;
2111 qcom,mem-protect-id = <0xF>;
2112
2113 /* GPIO inputs from mss */
2114 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
2115 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
2116 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
2117 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
2118 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
2119
2120 /* GPIO output to mss */
2121 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302122
2123 mboxes = <&qmp_aop 0>;
2124 mbox-names = "mss-pil";
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302125 qcom,mba-mem@0 {
2126 compatible = "qcom,pil-mba-mem";
2127 memory-region = <&pil_mba_mem>;
2128 };
2129 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05302130
2131 qcom,venus@aae0000 {
2132 compatible = "qcom,pil-tz-generic";
2133 reg = <0xaae0000 0x4000>;
2134
2135 vdd-supply = <&venus_gdsc>;
2136 qcom,proxy-reg-names = "vdd";
2137
2138 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
2139 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
2140 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
2141 clock-names = "core_clk", "iface_clk", "bus_clk";
2142 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
2143
2144 qcom,pas-id = <9>;
2145 qcom,msm-bus,name = "pil-venus";
2146 qcom,msm-bus,num-cases = <2>;
2147 qcom,msm-bus,num-paths = <1>;
2148 qcom,msm-bus,vectors-KBps =
2149 <63 512 0 0>,
2150 <63 512 0 304000>;
2151 qcom,proxy-timeout-ms = <100>;
2152 qcom,firmware-name = "venus";
2153 memory-region = <&pil_video_mem>;
2154 status = "ok";
2155 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05302156
2157 qcom,turing@8300000 {
2158 compatible = "qcom,pil-tz-generic";
2159 reg = <0x8300000 0x100000>;
2160 interrupts = <0 578 1>;
2161
2162 vdd_cx-supply = <&pm660l_s3_level>;
2163 qcom,proxy-reg-names = "vdd_cx";
2164 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2165
2166 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2167 clock-names = "xo";
2168 qcom,proxy-clock-names = "xo";
2169
2170 qcom,pas-id = <18>;
2171 qcom,proxy-timeout-ms = <10000>;
2172 qcom,smem-id = <601>;
2173 qcom,sysmon-id = <7>;
2174 qcom,ssctl-instance-id = <0x17>;
2175 qcom,firmware-name = "cdsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302176 qcom,signal-aop;
Gaurav Kohli106f4882017-06-29 12:29:12 +05302177 memory-region = <&pil_cdsp_mem>;
2178
2179 /* GPIO inputs from turing */
2180 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
2181 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
2182 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
2183 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
2184
2185 /* GPIO output to turing*/
2186 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302187
2188 mboxes = <&qmp_aop 0>;
2189 mbox-names = "cdsp-pil";
Gaurav Kohli106f4882017-06-29 12:29:12 +05302190 status = "ok";
2191 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05302192
Neeraj Soni27efd652017-11-01 18:17:58 +05302193 sdcc1_ice: sdcc1ice@7c8000 {
2194 compatible = "qcom,ice";
2195 reg = <0x7c8000 0x8000>;
2196 qcom,enable-ice-clk;
2197 clock-names = "ice_core_clk_src", "ice_core_clk",
2198 "bus_clk", "iface_clk";
2199 clocks = <&clock_gcc GCC_SDCC1_ICE_CORE_CLK_SRC>,
2200 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
2201 <&clock_gcc GCC_SDCC1_APPS_CLK>,
2202 <&clock_gcc GCC_SDCC1_AHB_CLK>;
2203 qcom,op-freq-hz = <300000000>, <0>, <0>, <0>;
2204 qcom,msm-bus,name = "sdcc_ice_noc";
2205 qcom,msm-bus,num-cases = <2>;
2206 qcom,msm-bus,num-paths = <1>;
2207 qcom,msm-bus,vectors-KBps =
2208 <150 512 0 0>, /* No vote */
2209 <150 512 1000 0>; /* Max. bandwidth */
2210 qcom,bus-vector-names = "MIN",
2211 "MAX";
2212 qcom,instance-type = "sdcc";
2213 };
2214
Vijay Viswanatheac72722017-06-05 11:01:38 +05302215 sdhc_1: sdhci@7c4000 {
2216 compatible = "qcom,sdhci-msm-v5";
2217 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
2218 reg-names = "hc_mem", "cmdq_mem";
2219
2220 interrupts = <0 641 0>, <0 644 0>;
2221 interrupt-names = "hc_irq", "pwr_irq";
2222
2223 qcom,bus-width = <8>;
2224 qcom,large-address-bus;
Neeraj Soni27efd652017-11-01 18:17:58 +05302225 sdhc-msm-crypto = <&sdcc1_ice>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302226
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302227 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
2228 192000000 384000000>;
Vijay Viswanath01db23a2017-11-09 15:46:22 +05302229 qcom,bus-aggr-clk-rates = <50000000 50000000 50000000 50000000
2230 100000000 200000000 200000000>;
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302231 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
2232
2233 qcom,devfreq,freq-table = <50000000 200000000>;
2234
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302235 qcom,msm-bus,name = "sdhc1";
2236 qcom,msm-bus,num-cases = <9>;
2237 qcom,msm-bus,num-paths = <2>;
2238 qcom,msm-bus,vectors-KBps =
2239 /* No vote */
Vijay Viswanath49024c22017-10-17 12:42:06 +05302240 <150 512 0 0>, <1 782 0 0>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302241 /* 400 KB/s*/
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302242 <150 512 1046 1600>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302243 <1 782 1600 1600>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302244 /* 20 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302245 <150 512 52286 80000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302246 <1 782 80000 80000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302247 /* 25 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302248 <150 512 65360 100000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302249 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302250 /* 50 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302251 <150 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302252 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302253 /* 100 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302254 <150 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302255 <1 782 130000 130000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302256 /* 200 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302257 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302258 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302259 /* 400 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302260 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302261 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302262 /* Max. bandwidth */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302263 <150 512 1338562 4096000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302264 <1 782 1338562 4096000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302265 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2266 100000000 200000000 400000000 4294967295>;
2267
2268 /* PM QoS */
2269 qcom,pm-qos-irq-type = "affine_irq";
2270 qcom,pm-qos-irq-latency = <70 70>;
2271 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2272 qcom,pm-qos-cmdq-latency-us = <70 70>, <70 70>;
2273 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2274
Vijay Viswanatheac72722017-06-05 11:01:38 +05302275 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302276 <&clock_gcc GCC_SDCC1_APPS_CLK>,
Vijay Viswanath7e20ddc2017-10-07 14:23:38 +05302277 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
2278 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_CLK>;
2279 clock-names = "iface_clk", "core_clk", "ice_core_clk",
2280 "bus_aggr_clk";
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302281
2282 qcom,ice-clk-rates = <300000000 75000000>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302283
Vijay Viswanathd4dcf5f2017-10-17 15:42:00 +05302284 qcom,ddr-config = <0xC3040873>;
2285
Vijay Viswanatheac72722017-06-05 11:01:38 +05302286 qcom,nonremovable;
2287
Vijay Viswanatheac72722017-06-05 11:01:38 +05302288 status = "disabled";
2289 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302290
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302291 sdhc_2: sdhci@8804000 {
2292 compatible = "qcom,sdhci-msm-v5";
2293 reg = <0x8804000 0x1000>;
2294 reg-names = "hc_mem";
2295
2296 interrupts = <0 204 0>, <0 222 0>;
2297 interrupt-names = "hc_irq", "pwr_irq";
2298
2299 qcom,bus-width = <4>;
2300 qcom,large-address-bus;
2301
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302302 qcom,clk-rates = <400000 20000000 25000000
2303 50000000 100000000 201500000>;
2304 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
2305 "SDR104";
2306
2307 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302308
2309 qcom,msm-bus,name = "sdhc2";
2310 qcom,msm-bus,num-cases = <8>;
2311 qcom,msm-bus,num-paths = <2>;
2312 qcom,msm-bus,vectors-KBps =
2313 /* No vote */
2314 <81 512 0 0>, <1 608 0 0>,
2315 /* 400 KB/s*/
2316 <81 512 1046 1600>,
2317 <1 608 1600 1600>,
2318 /* 20 MB/s */
2319 <81 512 52286 80000>,
2320 <1 608 80000 80000>,
2321 /* 25 MB/s */
2322 <81 512 65360 100000>,
2323 <1 608 100000 100000>,
2324 /* 50 MB/s */
2325 <81 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302326 <1 608 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302327 /* 100 MB/s */
2328 <81 512 261438 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302329 <1 608 130000 130000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302330 /* 200 MB/s */
2331 <81 512 261438 400000>,
2332 <1 608 300000 300000>,
2333 /* Max. bandwidth */
2334 <81 512 1338562 4096000>,
2335 <1 608 1338562 4096000>;
2336 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2337 100000000 200000000 4294967295>;
2338
2339 /* PM QoS */
2340 qcom,pm-qos-irq-type = "affine_irq";
2341 qcom,pm-qos-irq-latency = <70 70>;
2342 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2343 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2344
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302345 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
2346 <&clock_gcc GCC_SDCC2_APPS_CLK>;
2347 clock-names = "iface_clk", "core_clk";
2348
2349 status = "disabled";
2350 };
2351
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302352 qcom,msm-cdsp-loader {
2353 compatible = "qcom,cdsp-loader";
2354 qcom,proc-img-to-load = "cdsp";
2355 };
2356
2357 qcom,msm-adsprpc-mem {
2358 compatible = "qcom,msm-adsprpc-mem-region";
2359 memory-region = <&adsp_mem>;
2360 };
2361
2362 qcom,msm_fastrpc {
2363 compatible = "qcom,msm-fastrpc-compute";
c_mtharu268ebce2017-11-16 16:01:41 +05302364 qcom,adsp-remoteheap-vmid = <37>;
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302365
2366 qcom,msm_fastrpc_compute_cb1 {
2367 compatible = "qcom,msm-fastrpc-compute-cb";
2368 label = "cdsprpc-smd";
2369 iommus = <&apps_smmu 0x1421 0x30>;
2370 dma-coherent;
2371 };
2372 qcom,msm_fastrpc_compute_cb2 {
2373 compatible = "qcom,msm-fastrpc-compute-cb";
2374 label = "cdsprpc-smd";
2375 iommus = <&apps_smmu 0x1422 0x30>;
2376 dma-coherent;
2377 };
2378 qcom,msm_fastrpc_compute_cb3 {
2379 compatible = "qcom,msm-fastrpc-compute-cb";
2380 label = "cdsprpc-smd";
2381 iommus = <&apps_smmu 0x1423 0x30>;
2382 dma-coherent;
2383 };
2384 qcom,msm_fastrpc_compute_cb4 {
2385 compatible = "qcom,msm-fastrpc-compute-cb";
2386 label = "cdsprpc-smd";
2387 iommus = <&apps_smmu 0x1424 0x30>;
2388 dma-coherent;
2389 };
2390 qcom,msm_fastrpc_compute_cb5 {
2391 compatible = "qcom,msm-fastrpc-compute-cb";
2392 label = "cdsprpc-smd";
2393 iommus = <&apps_smmu 0x1425 0x30>;
2394 dma-coherent;
2395 };
2396 qcom,msm_fastrpc_compute_cb6 {
2397 compatible = "qcom,msm-fastrpc-compute-cb";
2398 label = "cdsprpc-smd";
2399 iommus = <&apps_smmu 0x1426 0x30>;
2400 dma-coherent;
2401 };
2402 qcom,msm_fastrpc_compute_cb7 {
2403 compatible = "qcom,msm-fastrpc-compute-cb";
2404 label = "cdsprpc-smd";
2405 qcom,secure-context-bank;
2406 iommus = <&apps_smmu 0x1429 0x30>;
2407 dma-coherent;
2408 };
2409 qcom,msm_fastrpc_compute_cb8 {
2410 compatible = "qcom,msm-fastrpc-compute-cb";
2411 label = "cdsprpc-smd";
2412 qcom,secure-context-bank;
2413 iommus = <&apps_smmu 0x142A 0x30>;
2414 dma-coherent;
2415 };
2416 qcom,msm_fastrpc_compute_cb9 {
2417 compatible = "qcom,msm-fastrpc-compute-cb";
2418 label = "adsprpc-smd";
2419 iommus = <&apps_smmu 0x1803 0x0>;
2420 dma-coherent;
2421 };
2422 qcom,msm_fastrpc_compute_cb10 {
2423 compatible = "qcom,msm-fastrpc-compute-cb";
2424 label = "adsprpc-smd";
2425 iommus = <&apps_smmu 0x1804 0x0>;
2426 dma-coherent;
2427 };
2428 qcom,msm_fastrpc_compute_cb11 {
2429 compatible = "qcom,msm-fastrpc-compute-cb";
2430 label = "adsprpc-smd";
2431 iommus = <&apps_smmu 0x1805 0x0>;
2432 dma-coherent;
2433 };
c_mtharu92125922017-10-16 14:06:39 +05302434 qcom,msm_fastrpc_compute_cb12 {
2435 compatible = "qcom,msm-fastrpc-compute-cb";
2436 label = "adsprpc-smd";
2437 iommus = <&apps_smmu 0x1806 0x0>;
2438 dma-coherent;
2439 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302440 };
Anurag Chouhan7563b532017-09-12 15:49:16 +05302441
Rupesh Tatiyaf2072952017-10-08 19:57:12 +05302442 bluetooth: bt_wcn3990 {
2443 compatible = "qca,wcn3990";
2444 qca,bt-vdd-core-supply = <&pm660_l9>;
2445 qca,bt-vdd-pa-supply = <&pm660_l6>;
2446 qca,bt-vdd-ldo-supply = <&pm660_l19>;
2447
2448 qca,bt-vdd-core-voltage-level = <1800000 1900000>;
2449 qca,bt-vdd-pa-voltage-level = <1304000 1370000>;
2450 qca,bt-vdd-ldo-voltage-level = <3312000 3400000>;
2451
2452 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
2453 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
2454 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
2455 };
2456
Anurag Chouhan7563b532017-09-12 15:49:16 +05302457 qcom,icnss@18800000 {
Anurag Chouhan7563b532017-09-12 15:49:16 +05302458 compatible = "qcom,icnss";
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302459 reg = <0x18800000 0x800000>,
2460 <0xa0000000 0x10000000>,
2461 <0xb0000000 0x10000>;
2462 reg-names = "membase", "smmu_iova_base", "smmu_iova_ipa";
2463 iommus = <&apps_smmu 0x0040 0x1>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302464 interrupts = <0 414 0 /* CE0 */ >,
2465 <0 415 0 /* CE1 */ >,
2466 <0 416 0 /* CE2 */ >,
2467 <0 417 0 /* CE3 */ >,
2468 <0 418 0 /* CE4 */ >,
2469 <0 419 0 /* CE5 */ >,
2470 <0 420 0 /* CE6 */ >,
2471 <0 421 0 /* CE7 */ >,
2472 <0 422 0 /* CE8 */ >,
2473 <0 423 0 /* CE9 */ >,
2474 <0 424 0 /* CE10 */ >,
2475 <0 425 0 /* CE11 */ >;
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302476 vdd-0.8-cx-mx-supply = <&pm660_l5>;
2477 vdd-1.8-xo-supply = <&pm660_l9>;
2478 vdd-1.3-rfa-supply = <&pm660_l6>;
2479 vdd-3.3-ch0-supply = <&pm660_l19>;
Hardik Kantilal Patel25c05b42017-12-08 11:10:27 +05302480 qcom,vdd-3.3-ch0-config = <3000000 3312000>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302481 qcom,wlan-msa-memory = <0x100000>;
Anurag Chouhana4f55db2017-11-22 16:35:27 +05302482 qcom,wlan-msa-fixed-region = <&wlan_msa_mem>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302483 qcom,smmu-s1-bypass;
2484 };
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302485
2486 cpubw: qcom,cpubw {
2487 compatible = "qcom,devbw";
2488 governor = "performance";
2489 qcom,src-dst-ports =
Santosh Mardidfc78812017-10-05 13:15:20 +05302490 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_EBI_CH0>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302491 qcom,active-only;
2492 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302493 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2494 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2495 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2496 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2497 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2498 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2499 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2500 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2501 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2502 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2503 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302504 };
2505
Santosh Mardidfc78812017-10-05 13:15:20 +05302506 bwmon: qcom,cpu-bwmon {
2507 compatible = "qcom,bimc-bwmon4";
2508 reg = <0x1436400 0x300>, <0x1436300 0x200>;
2509 reg-names = "base", "global_base";
2510 interrupts = <0 581 4>;
2511 qcom,mport = <0>;
Santosh Mardida0b0f82017-10-13 23:30:22 +05302512 qcom,count-unit = <0x10000>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302513 qcom,hw-timer-hz = <19200000>;
Santosh Mardidfc78812017-10-05 13:15:20 +05302514 qcom,target-dev = <&cpubw>;
Santosh Mardi94519132017-11-15 14:51:25 +05302515 qcom,byte-mid-mask = <0xe000>;
2516 qcom,byte-mid-match = <0xe000>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302517 };
2518
2519 memlat_cpu0: qcom,memlat-cpu0 {
2520 compatible = "qcom,devbw";
2521 governor = "powersave";
2522 qcom,src-dst-ports = <1 512>;
2523 qcom,active-only;
2524 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302525 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2526 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2527 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2528 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2529 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2530 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2531 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2532 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2533 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2534 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2535 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302536 };
2537
Santosh Mardi37a28af2017-10-12 13:03:31 +05302538 memlat_cpu6: qcom,memlat-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302539 compatible = "qcom,devbw";
2540 governor = "powersave";
2541 qcom,src-dst-ports = <1 512>;
2542 qcom,active-only;
2543 status = "ok";
2544 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302545 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2546 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2547 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2548 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2549 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2550 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2551 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2552 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2553 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2554 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2555 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302556 };
2557
Odelu Kukatlafe8d3302017-11-17 10:54:32 +05302558 snoc_cnoc_keepalive: qcom,snoc_cnoc_keepalive {
2559 compatible = "qcom,devbw";
2560 governor = "powersave";
2561 qcom,src-dst-ports = <139 627>;
2562 qcom,active-only;
2563 status = "ok";
2564 qcom,bw-tbl =
2565 < 1 >;
2566 };
2567
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302568 devfreq_memlat_0: qcom,cpu0-memlat-mon {
2569 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302570 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302571 qcom,target-dev = <&memlat_cpu0>;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302572 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302573 qcom,core-dev-table =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302574 < 748800 MHZ_TO_MBPS( 300, 4) >,
2575 < 998400 MHZ_TO_MBPS( 451, 4) >,
2576 < 1209600 MHZ_TO_MBPS( 547, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302577 < 1516800 MHZ_TO_MBPS( 768, 4) >,
2578 < 1708000 MHZ_TO_MBPS(1017, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302579 };
2580
Santosh Mardi37a28af2017-10-12 13:03:31 +05302581 devfreq_memlat_6: qcom,cpu6-memlat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302582 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302583 qcom,cpulist = <&CPU6 &CPU7>;
2584 qcom,target-dev = <&memlat_cpu6>;
2585 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302586 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302587 < 825600 MHZ_TO_MBPS( 300, 4) >,
2588 < 1132800 MHZ_TO_MBPS( 547, 4) >,
2589 < 1363200 MHZ_TO_MBPS(1017, 4) >,
2590 < 1996800 MHZ_TO_MBPS(1555, 4) >,
2591 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302592 };
2593
2594 l3_cpu0: qcom,l3-cpu0 {
2595 compatible = "devfreq-simple-dev";
2596 clock-names = "devfreq_clk";
2597 clocks = <&clock_cpucc L3_CLUSTER0_VOTE_CLK>;
2598 governor = "performance";
2599 };
2600
Santosh Mardi37a28af2017-10-12 13:03:31 +05302601 l3_cpu6: qcom,l3-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302602 compatible = "devfreq-simple-dev";
2603 clock-names = "devfreq_clk";
2604 clocks = <&clock_cpucc L3_CLUSTER1_VOTE_CLK>;
2605 governor = "performance";
2606 };
2607
2608 devfreq_l3lat_0: qcom,cpu0-l3lat-mon {
2609 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302610 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302611 qcom,target-dev = <&l3_cpu0>;
2612 qcom,cachemiss-ev = <0x17>;
2613 qcom,core-dev-table =
Santosh Mardi10d45032017-11-02 17:25:54 +05302614 < 576000 300000000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302615 < 748800 556800000 >,
2616 < 998400 806400000 >,
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302617 < 1209660 940800000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302618 < 1516800 1190400000 >,
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302619 < 1612800 1382400000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302620 < 1708000 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302621 };
2622
Santosh Mardi37a28af2017-10-12 13:03:31 +05302623 devfreq_l3lat_6: qcom,cpu6-l3lat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302624 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302625 qcom,cpulist = <&CPU6 &CPU7>;
2626 qcom,target-dev = <&l3_cpu6>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302627 qcom,cachemiss-ev = <0x17>;
2628 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302629 < 1132800 556800000 >,
2630 < 1363200 806400000 >,
2631 < 1747200 940800000 >,
2632 < 1996800 1190400000 >,
2633 < 2457600 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302634 };
2635
2636 mincpubw: qcom,mincpubw {
2637 compatible = "qcom,devbw";
2638 governor = "powersave";
2639 qcom,src-dst-ports = <1 512>;
2640 qcom,active-only;
2641 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302642 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2643 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2644 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2645 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2646 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2647 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2648 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2649 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2650 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2651 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2652 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302653 };
2654
2655 devfreq-cpufreq {
2656 mincpubw-cpufreq {
2657 target-dev = <&mincpubw>;
2658 cpu-to-dev-map-0 =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302659 < 748800 MHZ_TO_MBPS( 300, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302660 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2661 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2662 < 1708000 MHZ_TO_MBPS( 768, 4) >;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302663 cpu-to-dev-map-6 =
Santosh Mardie49578c2017-10-27 11:24:45 +05302664 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2665 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2666 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2667 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2668 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302669 };
2670 };
Amit Nischal199f15d2017-09-12 10:58:51 +05302671
Jonathan Avilac7a6fd52017-10-12 15:24:05 -07002672 mincpu0bw: qcom,mincpu0bw {
2673 compatible = "qcom,devbw";
2674 governor = "powersave";
2675 qcom,src-dst-ports = <1 512>;
2676 qcom,active-only;
2677 qcom,bw-tbl =
2678 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2679 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2680 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2681 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2682 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2683 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2684 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2685 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2686 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2687 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2688 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
2689 };
2690
2691 mincpu6bw: qcom,mincpu6bw {
2692 compatible = "qcom,devbw";
2693 governor = "powersave";
2694 qcom,src-dst-ports = <1 512>;
2695 qcom,active-only;
2696 qcom,bw-tbl =
2697 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2698 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2699 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2700 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2701 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2702 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2703 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2704 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2705 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2706 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2707 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
2708 };
2709
2710 devfreq_compute0: qcom,devfreq-compute0 {
2711 compatible = "qcom,arm-cpu-mon";
2712 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
2713 qcom,target-dev = <&mincpu0bw>;
2714 qcom,core-dev-table =
2715 < 748800 MHZ_TO_MBPS( 300, 4) >,
2716 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2717 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2718 < 1708000 MHZ_TO_MBPS( 768, 4) >;
2719 };
2720
2721 devfreq_compute6: qcom,devfreq-compute6 {
2722 compatible = "qcom,arm-cpu-mon";
2723 qcom,cpulist = <&CPU6 &CPU7>;
2724 qcom,target-dev = <&mincpu6bw>;
2725 qcom,core-dev-table =
2726 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2727 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2728 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2729 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2730 < 2457600 MHZ_TO_MBPS(1804, 4) >;
2731 };
2732
Raghavendra Rao Ananta28dd4502017-10-18 10:28:31 -07002733 cpu_pmu: cpu-pmu {
2734 compatible = "arm,armv8-pmuv3";
2735 qcom,irq-is-percpu;
2736 interrupts = <1 5 4>;
2737 };
2738
Amit Nischal199f15d2017-09-12 10:58:51 +05302739 gpu_gx_domain_addr: syscon@0x5091508 {
2740 compatible = "syscon";
2741 reg = <0x5091508 0x4>;
2742 };
2743
2744 gpu_gx_sw_reset: syscon@0x5091008 {
2745 compatible = "syscon";
2746 reg = <0x5091008 0x4>;
2747 };
Imran Khan04f08312017-03-30 15:07:43 +05302748};
2749
Ashay Jaiswal81940302017-09-20 15:17:58 +05302750#include "pm660.dtsi"
2751#include "pm660l.dtsi"
2752#include "sdm670-regulator.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +05302753#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302754#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302755#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302756#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302757
2758&usb30_prim_gdsc {
2759 status = "ok";
2760};
2761
2762&ufs_phy_gdsc {
2763 status = "ok";
2764};
2765
2766&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2767 status = "ok";
2768};
2769
2770&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2771 status = "ok";
2772};
2773
2774&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2775 status = "ok";
2776};
2777
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302778&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2779 status = "ok";
2780};
2781
2782&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2783 status = "ok";
2784};
2785
2786&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2787 status = "ok";
2788};
2789
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302790&bps_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302791 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302792 status = "ok";
2793};
2794
2795&ife_0_gdsc {
2796 status = "ok";
2797};
2798
2799&ife_1_gdsc {
2800 status = "ok";
2801};
2802
2803&ipe_0_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302804 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302805 status = "ok";
2806};
2807
2808&ipe_1_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302809 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302810 status = "ok";
2811};
2812
2813&titan_top_gdsc {
2814 status = "ok";
2815};
2816
2817&mdss_core_gdsc {
2818 status = "ok";
Sandeep Pandaae888352017-11-15 13:15:31 +05302819 proxy-supply = <&mdss_core_gdsc>;
2820 qcom,proxy-consumer-enable;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302821};
2822
2823&gpu_cx_gdsc {
2824 status = "ok";
2825};
2826
2827&gpu_gx_gdsc {
2828 clock-names = "core_root_clk";
2829 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2830 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302831 parent-supply = <&pm660l_s2_level>;
Amit Nischal199f15d2017-09-12 10:58:51 +05302832 domain-addr = <&gpu_gx_domain_addr>;
2833 sw-reset = <&gpu_gx_sw_reset>;
2834 qcom,reset-aon-logic;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302835 status = "ok";
2836};
2837
2838&vcodec0_gdsc {
2839 qcom,support-hw-trigger;
2840 status = "ok";
2841};
2842
2843&vcodec1_gdsc {
2844 qcom,support-hw-trigger;
2845 status = "ok";
2846};
2847
2848&venus_gdsc {
2849 status = "ok";
2850};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302851
Sandeep Panda229db242017-10-03 11:32:29 +05302852&mdss_dsi0 {
2853 qcom,core-supply-entries {
2854 #address-cells = <1>;
2855 #size-cells = <0>;
2856
2857 qcom,core-supply-entry@0 {
2858 reg = <0>;
2859 qcom,supply-name = "refgen";
2860 qcom,supply-min-voltage = <0>;
2861 qcom,supply-max-voltage = <0>;
2862 qcom,supply-enable-load = <0>;
2863 qcom,supply-disable-load = <0>;
2864 };
2865 };
2866};
2867
2868&mdss_dsi1 {
2869 qcom,core-supply-entries {
2870 #address-cells = <1>;
2871 #size-cells = <0>;
2872
2873 qcom,core-supply-entry@0 {
2874 reg = <0>;
2875 qcom,supply-name = "refgen";
2876 qcom,supply-min-voltage = <0>;
2877 qcom,supply-max-voltage = <0>;
2878 qcom,supply-enable-load = <0>;
2879 qcom,supply-disable-load = <0>;
2880 };
2881 };
2882};
2883
Padmanabhan Komanduru07137332017-10-20 12:53:23 +05302884&sde_dp {
2885 qcom,core-supply-entries {
2886 #address-cells = <1>;
2887 #size-cells = <0>;
2888
2889 qcom,core-supply-entry@0 {
2890 reg = <0>;
2891 qcom,supply-name = "refgen";
2892 qcom,supply-min-voltage = <0>;
2893 qcom,supply-max-voltage = <0>;
2894 qcom,supply-enable-load = <0>;
2895 qcom,supply-disable-load = <0>;
2896 };
2897 };
2898};
2899
Rohit Kumar14051282017-07-12 11:18:48 +05302900#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05302901#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05302902#include "sdm670-gpu.dtsi"
Suresh Vankadara402d0ca2017-10-26 22:54:54 +05302903#include "sdm670-camera.dtsi"
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +05302904#include "sdm670-thermal.dtsi"
Odelu Kukatlaf197e382017-07-04 19:47:35 +05302905#include "sdm670-bus.dtsi"
Tirupathi Reddyf805ac72017-10-12 14:22:17 +05302906
2907&pm660_div_clk {
2908 status = "ok";
2909};