blob: 4d38f95457bc373e1677ee02bca9db0c3c153a55 [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 Kondeti80872462017-11-06 08:57:45 +0530357 1708800 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 Kondeti80872462017-11-06 08:57:45 +0530398 1708800 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
monisingfb2cb762017-12-19 14:40:49 +0530449 vbmeta {
450 compatible = "android,vbmeta";
451 parts = "vbmeta,boot,system,vendor,dtbo";
452 };
453
Imran Khan5381c932017-08-02 11:27:07 +0530454 fstab {
455 compatible = "android,fstab";
456 vendor {
457 compatible = "android,vendor";
458 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
459 type = "ext4";
460 mnt_flags = "ro,barrier=1,discard";
AnilKumar Chimata0d646ab2017-10-25 22:09:03 +0530461 fsmgr_flags = "wait,slotselect,avb";
Imran Khan5381c932017-08-02 11:27:07 +0530462 };
463 };
464 };
465 };
466
Imran Khan04f08312017-03-30 15:07:43 +0530467 reserved-memory {
468 #address-cells = <2>;
469 #size-cells = <2>;
470 ranges;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530471
Vijayanand Jitta0ef73982017-12-11 11:19:29 +0530472 hyp_region: hyp_region@85700000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530473 compatible = "removed-dma-pool";
474 no-map;
Vijayanand Jitta0ef73982017-12-11 11:19:29 +0530475 reg = <0 0x85700000 0 0x600000>;
476 };
477
478 xbl_region: xbl_region@85e00000 {
479 compatible = "removed-dma-pool";
480 no-map;
481 reg = <0 0x85e00000 0 0x100000>;
482 };
483
484 removed_region: removed_region@85fc0000 {
485 compatible = "removed-dma-pool";
486 no-map;
487 reg = <0 0x85fc0000 0 0x2f40000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530488 };
489
490 pil_camera_mem: camera_region@8ab00000 {
491 compatible = "removed-dma-pool";
492 no-map;
493 reg = <0 0x8ab00000 0 0x500000>;
494 };
495
496 pil_modem_mem: modem_region@8b000000 {
497 compatible = "removed-dma-pool";
498 no-map;
499 reg = <0 0x8b000000 0 0x7e00000>;
500 };
501
502 pil_video_mem: pil_video_region@92e00000 {
503 compatible = "removed-dma-pool";
504 no-map;
505 reg = <0 0x92e00000 0 0x500000>;
506 };
507
Prakash Guptac97a6a32017-11-21 17:46:55 +0530508 wlan_msa_mem: wlan_msa_region@93300000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530509 compatible = "removed-dma-pool";
510 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530511 reg = <0 0x93300000 0 0x100000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530512 };
513
Prakash Guptac97a6a32017-11-21 17:46:55 +0530514 pil_cdsp_mem: cdsp_regions@93400000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530515 compatible = "removed-dma-pool";
516 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530517 reg = <0 0x93400000 0 0x800000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530518 };
519
Prakash Guptac97a6a32017-11-21 17:46:55 +0530520 pil_mba_mem: pil_mba_region@0x93c00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530521 compatible = "removed-dma-pool";
522 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530523 reg = <0 0x93c00000 0 0x200000>;
524 };
525
526 pil_adsp_mem: pil_adsp_region@93e00000 {
527 compatible = "removed-dma-pool";
528 no-map;
529 reg = <0 0x93e00000 0 0x1e00000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530530 };
531
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530532 adsp_mem: adsp_region {
533 compatible = "shared-dma-pool";
534 alloc-ranges = <0 0x00000000 0 0xffffffff>;
535 reusable;
536 alignment = <0 0x400000>;
537 size = <0 0xc00000>;
538 };
539
540 qseecom_mem: qseecom_region {
541 compatible = "shared-dma-pool";
542 alloc-ranges = <0 0x00000000 0 0xffffffff>;
Prakash Guptafdeeca12017-08-14 15:06:46 -0700543 no-map;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530544 alignment = <0 0x400000>;
545 size = <0 0x1400000>;
546 };
547
548 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
549 compatible = "shared-dma-pool";
550 alloc-ranges = <0 0x00000000 0 0xffffffff>; /* 32-bit */
551 reusable;
552 alignment = <0 0x400000>;
553 size = <0 0x800000>;
554 };
555
556 secure_display_memory: secure_display_region {
557 compatible = "shared-dma-pool";
558 alloc-ranges = <0 0x00000000 0 0xffffffff>;
559 reusable;
560 alignment = <0 0x400000>;
561 size = <0 0x5c00000>;
562 };
563
Jayant Shekharb59d1692017-11-10 14:21:40 +0530564 cont_splash_memory: cont_splash_region@9d400000 {
565 reg = <0x0 0x9d400000 0x0 0x02400000>;
566 label = "cont_splash_region";
567 };
568
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +0530569 dump_mem: mem_dump_region {
570 compatible = "shared-dma-pool";
571 reusable;
572 size = <0 0x2400000>;
573 };
574
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530575 /* global autoconfigured region for contiguous allocations */
576 linux,cma {
577 compatible = "shared-dma-pool";
578 alloc-ranges = <0 0x00000000 0 0xffffffff>;
579 reusable;
580 alignment = <0 0x400000>;
581 size = <0 0x2000000>;
582 linux,cma-default;
583 };
Imran Khan04f08312017-03-30 15:07:43 +0530584 };
585};
586
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530587#include "sdm670-ion.dtsi"
588
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530589#include "sdm670-smp2p.dtsi"
590
c_mtharuce962e42017-12-05 22:41:17 +0530591#include "msm-rdbg.dtsi"
592
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530593#include "sdm670-qupv3.dtsi"
594
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530595#include "sdm670-coresight.dtsi"
Manikanta Kanamarlapudid4abc602017-08-28 19:23:41 +0530596
597#include "sdm670-vidc.dtsi"
598
Raviteja Tamatame97849a2017-09-12 20:25:50 +0530599#include "sdm670-sde-pll.dtsi"
600
601#include "sdm670-sde.dtsi"
602
Imran Khan04f08312017-03-30 15:07:43 +0530603&soc {
604 #address-cells = <1>;
605 #size-cells = <1>;
606 ranges = <0 0 0 0xffffffff>;
607 compatible = "simple-bus";
608
Saranya Chidura0e8b4262017-10-04 13:06:26 +0530609 jtag_mm0: jtagmm@7040000 {
610 compatible = "qcom,jtagv8-mm";
611 reg = <0x7040000 0x1000>;
612 reg-names = "etm-base";
613
614 clocks = <&clock_aop QDSS_CLK>;
615 clock-names = "core_clk";
616
617 qcom,coresight-jtagmm-cpu = <&CPU0>;
618 };
619
620 jtag_mm1: jtagmm@7140000 {
621 compatible = "qcom,jtagv8-mm";
622 reg = <0x7140000 0x1000>;
623 reg-names = "etm-base";
624
625 clocks = <&clock_aop QDSS_CLK>;
626 clock-names = "core_clk";
627
628 qom,coresight-jtagmm-cpu = <&CPU1>;
629 };
630
631 jtag_mm2: jtagmm@7240000 {
632 compatible = "qcom,jtagv8-mm";
633 reg = <0x7240000 0x1000>;
634 reg-names = "etm-base";
635
636 clocks = <&clock_aop QDSS_CLK>;
637 clock-names = "core_clk";
638
639 qcom,coresight-jtagmm-cpu = <&CPU2>;
640 };
641
642 jtag_mm3: jtagmm@7340000 {
643 compatible = "qcom,jtagv8-mm";
644 reg = <0x7340000 0x1000>;
645 reg-names = "etm-base";
646
647 clocks = <&clock_aop QDSS_CLK>;
648 clock-names = "core_clk";
649
650 qcom,coresight-jtagmm-cpu = <&CPU3>;
651 };
652
653 jtag_mm4: jtagmm@7440000 {
654 compatible = "qcom,jtagv8-mm";
655 reg = <0x7440000 0x1000>;
656 reg-names = "etm-base";
657
658 clocks = <&clock_aop QDSS_CLK>;
659 clock-names = "core_clk";
660
661 qcom,coresight-jtagmm-cpu = <&CPU4>;
662 };
663
664 jtag_mm5: jtagmm@7540000 {
665 compatible = "qcom,jtagv8-mm";
666 reg = <0x7540000 0x1000>;
667 reg-names = "etm-base";
668
669 clocks = <&clock_aop QDSS_CLK>;
670 clock-names = "core_clk";
671
672 qcom,coresight-jtagmm-cpu = <&CPU5>;
673 };
674
675 jtag_mm6: jtagmm@7640000 {
676 compatible = "qcom,jtagv8-mm";
677 reg = <0x7640000 0x1000>;
678 reg-names = "etm-base";
679
680 clocks = <&clock_aop QDSS_CLK>;
681 clock-names = "core_clk";
682
683 qcom,coresight-jtagmm-cpu = <&CPU6>;
684 };
685
686 jtag_mm7: jtagmm@7740000 {
687 compatible = "qcom,jtagv8-mm";
688 reg = <0x7740000 0x1000>;
689 reg-names = "etm-base";
690
691 clocks = <&clock_aop QDSS_CLK>;
692 clock-names = "core_clk";
693
694 qcom,coresight-jtagmm-cpu = <&CPU7>;
695 };
696
Imran Khan04f08312017-03-30 15:07:43 +0530697 intc: interrupt-controller@17a00000 {
698 compatible = "arm,gic-v3";
699 #interrupt-cells = <3>;
700 interrupt-controller;
701 #redistributor-regions = <1>;
702 redistributor-stride = <0x0 0x20000>;
703 reg = <0x17a00000 0x10000>, /* GICD */
704 <0x17a60000 0x100000>; /* GICR * 8 */
705 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530706 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530707 };
708
Raghavendra Kakarla04f032162017-12-08 19:11:54 +0530709 pdc: interrupt-controller@b220000{
710 compatible = "qcom,pdc-sdm670";
711 reg = <0xb220000 0x400>;
712 #interrupt-cells = <3>;
713 interrupt-parent = <&intc>;
714 interrupt-controller;
715 };
716
Imran Khan04f08312017-03-30 15:07:43 +0530717 timer {
718 compatible = "arm,armv8-timer";
719 interrupts = <1 1 0xf08>,
720 <1 2 0xf08>,
721 <1 3 0xf08>,
722 <1 0 0xf08>;
723 clock-frequency = <19200000>;
724 };
725
Manoj Prabhu B95b1bc72017-11-17 15:09:29 +0530726 qcom,memshare {
727 compatible = "qcom,memshare";
728
729 qcom,client_1 {
730 compatible = "qcom,memshare-peripheral";
731 qcom,peripheral-size = <0x0>;
732 qcom,client-id = <0>;
733 qcom,allocate-boot-time;
734 label = "modem";
735 };
736
737 qcom,client_2 {
738 compatible = "qcom,memshare-peripheral";
739 qcom,peripheral-size = <0x0>;
740 qcom,client-id = <2>;
741 label = "modem";
742 };
743
744 mem_client_3_size: qcom,client_3 {
745 compatible = "qcom,memshare-peripheral";
746 qcom,peripheral-size = <0x500000>;
747 qcom,client-id = <1>;
748 label = "modem";
749 };
750 };
751
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530752 qcom,sps {
753 compatible = "qcom,msm_sps_4k";
754 qcom,pipe-attr-ee;
755 };
756
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530757 qcom_cedev: qcedev@1de0000 {
758 compatible = "qcom,qcedev";
759 reg = <0x1de0000 0x20000>,
760 <0x1dc4000 0x24000>;
761 reg-names = "crypto-base","crypto-bam-base";
762 interrupts = <0 272 0>;
763 qcom,bam-pipe-pair = <3>;
764 qcom,ce-hw-instance = <0>;
765 qcom,ce-device = <0>;
766 qcom,ce-hw-shared;
767 qcom,bam-ee = <0>;
768 qcom,msm-bus,name = "qcedev-noc";
769 qcom,msm-bus,num-cases = <2>;
770 qcom,msm-bus,num-paths = <1>;
771 qcom,msm-bus,vectors-KBps =
772 <125 512 0 0>,
773 <125 512 393600 393600>;
774 clock-names = "core_clk_src", "core_clk",
775 "iface_clk", "bus_clk";
776 clocks = <&clock_gcc GCC_CE1_CLK>,
777 <&clock_gcc GCC_CE1_CLK>,
778 <&clock_gcc GCC_CE1_AHB_CLK>,
779 <&clock_gcc GCC_CE1_AXI_CLK>;
780 qcom,ce-opp-freq = <171430000>;
781 qcom,request-bw-before-clk;
mohamed sunfeer4b2ca442017-11-07 14:46:45 +0530782 qcom,smmu-s1-enable;
mohamed sunfeerdce9b922017-11-11 22:14:58 +0530783 iommus = <&apps_smmu 0x706 0x1>,
784 <&apps_smmu 0x716 0x1>;
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530785 };
786
787 qcom_crypto: qcrypto@1de0000 {
788 compatible = "qcom,qcrypto";
789 reg = <0x1de0000 0x20000>,
790 <0x1dc4000 0x24000>;
791 reg-names = "crypto-base","crypto-bam-base";
792 interrupts = <0 272 0>;
793 qcom,bam-pipe-pair = <2>;
794 qcom,ce-hw-instance = <0>;
795 qcom,ce-device = <0>;
796 qcom,bam-ee = <0>;
797 qcom,ce-hw-shared;
798 qcom,clk-mgmt-sus-res;
799 qcom,msm-bus,name = "qcrypto-noc";
800 qcom,msm-bus,num-cases = <2>;
801 qcom,msm-bus,num-paths = <1>;
802 qcom,msm-bus,vectors-KBps =
803 <125 512 0 0>,
804 <125 512 393600 393600>;
805 clock-names = "core_clk_src", "core_clk",
806 "iface_clk", "bus_clk";
807 clocks = <&clock_gcc GCC_CE1_CLK>,
808 <&clock_gcc GCC_CE1_CLK>,
809 <&clock_gcc GCC_CE1_AHB_CLK>,
810 <&clock_gcc GCC_CE1_AXI_CLK>;
811 qcom,ce-opp-freq = <171430000>;
812 qcom,request-bw-before-clk;
813 qcom,use-sw-aes-cbc-ecb-ctr-algo;
814 qcom,use-sw-aes-xts-algo;
815 qcom,use-sw-aes-ccm-algo;
816 qcom,use-sw-aead-algo;
817 qcom,use-sw-ahash-algo;
818 qcom,use-sw-hmac-algo;
mohamed sunfeer4b2ca442017-11-07 14:46:45 +0530819 qcom,smmu-s1-enable;
mohamed sunfeerdce9b922017-11-11 22:14:58 +0530820 iommus = <&apps_smmu 0x704 0x1>,
821 <&apps_smmu 0x714 0x1>;
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530822 };
823
Abir Ghoshb849ab22017-09-19 13:03:11 +0530824 qcom,qbt1000 {
825 compatible = "qcom,qbt1000";
826 clock-names = "core", "iface";
827 clock-frequency = <25000000>;
828 qcom,ipc-gpio = <&tlmm 121 0>;
829 qcom,finger-detect-gpio = <&tlmm 122 0>;
830 };
831
mohamed sunfeer71b31322017-09-20 00:46:46 +0530832 qcom_seecom: qseecom@86d00000 {
833 compatible = "qcom,qseecom";
834 reg = <0x86d00000 0x2200000>;
835 reg-names = "secapp-region";
836 qcom,hlos-num-ce-hw-instances = <1>;
837 qcom,hlos-ce-hw-instance = <0>;
838 qcom,qsee-ce-hw-instance = <0>;
839 qcom,disk-encrypt-pipe-pair = <2>;
840 qcom,support-fde;
841 qcom,no-clock-support;
Neeraj Soni7c4254c2017-11-15 11:13:14 +0530842 qcom,fde-key-size;
mohamed sunfeer71b31322017-09-20 00:46:46 +0530843 qcom,appsbl-qseecom-support;
844 qcom,msm-bus,name = "qseecom-noc";
845 qcom,msm-bus,num-cases = <4>;
846 qcom,msm-bus,num-paths = <1>;
847 qcom,msm-bus,vectors-KBps =
848 <125 512 0 0>,
849 <125 512 200000 400000>,
850 <125 512 300000 800000>,
851 <125 512 400000 1000000>;
852 clock-names = "core_clk_src", "core_clk",
853 "iface_clk", "bus_clk";
854 clocks = <&clock_gcc GCC_CE1_CLK>,
855 <&clock_gcc GCC_CE1_CLK>,
856 <&clock_gcc GCC_CE1_AHB_CLK>,
857 <&clock_gcc GCC_CE1_AXI_CLK>;
858 qcom,ce-opp-freq = <171430000>;
859 qcom,qsee-reentrancy-support = <2>;
860 };
861
mohamed sunfeer732f7572017-09-19 19:51:11 +0530862 qcom_tzlog: tz-log@146bf720 {
863 compatible = "qcom,tz-log";
864 reg = <0x146bf720 0x3000>;
865 qcom,hyplog-enabled;
866 hyplog-address-offset = <0x410>;
867 hyplog-size-offset = <0x414>;
868 };
869
mohamed sunfeer2228b242017-09-19 19:10:08 +0530870 qcom_rng: qrng@793000{
871 compatible = "qcom,msm-rng";
872 reg = <0x793000 0x1000>;
873 qcom,msm-rng-iface-clk;
874 qcom,no-qrng-config;
875 qcom,msm-bus,name = "msm-rng-noc";
876 qcom,msm-bus,num-cases = <2>;
877 qcom,msm-bus,num-paths = <1>;
878 qcom,msm-bus,vectors-KBps =
879 <1 618 0 0>, /* No vote */
880 <1 618 0 800>; /* 100 KHz */
881 clocks = <&clock_gcc GCC_PRNG_AHB_CLK>;
882 clock-names = "iface_clk";
883 };
884
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +0530885 thermal_zones: thermal-zones {};
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530886
887 tsens0: tsens@c222000 {
888 compatible = "qcom,tsens24xx";
889 reg = <0xc222000 0x4>,
890 <0xc263000 0x1ff>;
891 reg-names = "tsens_srot_physical",
892 "tsens_tm_physical";
893 interrupts = <0 506 0>, <0 508 0>;
894 interrupt-names = "tsens-upper-lower", "tsens-critical";
895 #thermal-sensor-cells = <1>;
896 };
897
898 tsens1: tsens@c223000 {
899 compatible = "qcom,tsens24xx";
900 reg = <0xc223000 0x4>,
901 <0xc265000 0x1ff>;
902 reg-names = "tsens_srot_physical",
903 "tsens_tm_physical";
904 interrupts = <0 507 0>, <0 509 0>;
905 interrupt-names = "tsens-upper-lower", "tsens-critical";
906 #thermal-sensor-cells = <1>;
907 };
908
Imran Khan04f08312017-03-30 15:07:43 +0530909 timer@0x17c90000{
910 #address-cells = <1>;
911 #size-cells = <1>;
912 ranges;
913 compatible = "arm,armv7-timer-mem";
914 reg = <0x17c90000 0x1000>;
915 clock-frequency = <19200000>;
916
917 frame@0x17ca0000 {
918 frame-number = <0>;
919 interrupts = <0 7 0x4>,
920 <0 6 0x4>;
921 reg = <0x17ca0000 0x1000>,
922 <0x17cb0000 0x1000>;
923 };
924
925 frame@17cc0000 {
926 frame-number = <1>;
927 interrupts = <0 8 0x4>;
928 reg = <0x17cc0000 0x1000>;
929 status = "disabled";
930 };
931
932 frame@17cd0000 {
933 frame-number = <2>;
934 interrupts = <0 9 0x4>;
935 reg = <0x17cd0000 0x1000>;
936 status = "disabled";
937 };
938
939 frame@17ce0000 {
940 frame-number = <3>;
941 interrupts = <0 10 0x4>;
942 reg = <0x17ce0000 0x1000>;
943 status = "disabled";
944 };
945
946 frame@17cf0000 {
947 frame-number = <4>;
948 interrupts = <0 11 0x4>;
949 reg = <0x17cf0000 0x1000>;
950 status = "disabled";
951 };
952
953 frame@17d00000 {
954 frame-number = <5>;
955 interrupts = <0 12 0x4>;
956 reg = <0x17d00000 0x1000>;
957 status = "disabled";
958 };
959
960 frame@17d10000 {
961 frame-number = <6>;
962 interrupts = <0 13 0x4>;
963 reg = <0x17d10000 0x1000>;
964 status = "disabled";
965 };
966 };
967
968 restart@10ac000 {
969 compatible = "qcom,pshold";
970 reg = <0xC264000 0x4>,
971 <0x1fd3000 0x4>;
972 reg-names = "pshold-base", "tcsr-boot-misc-detect";
973 };
974
Maulik Shah6bf7d5d2017-07-27 09:48:42 +0530975 aop-msg-client {
976 compatible = "qcom,debugfs-qmp-client";
977 mboxes = <&qmp_aop 0>;
978 mbox-names = "aop";
979 };
980
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530981 clock_rpmh: qcom,rpmhclk {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530982 compatible = "qcom,rpmh-clk-sdm670";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530983 #clock-cells = <1>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530984 mboxes = <&apps_rsc 0>;
985 mbox-names = "apps";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530986 };
987
988 clock_gcc: qcom,gcc@100000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530989 compatible = "qcom,gcc-sdm670", "syscon";
990 reg = <0x100000 0x1f0000>;
991 reg-names = "cc_base";
992 vdd_cx-supply = <&pm660l_s3_level>;
993 vdd_cx_ao-supply = <&pm660l_s3_level_ao>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530994 #clock-cells = <1>;
995 #reset-cells = <1>;
996 };
997
998 clock_videocc: qcom,videocc@ab00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530999 compatible = "qcom,video_cc-sdm670", "syscon";
1000 reg = <0xab00000 0x10000>;
1001 reg-names = "cc_base";
1002 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301003 #clock-cells = <1>;
1004 #reset-cells = <1>;
1005 };
1006
1007 clock_camcc: qcom,camcc@ad00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301008 compatible = "qcom,cam_cc-sdm670", "syscon";
1009 reg = <0xad00000 0x10000>;
1010 reg-names = "cc_base";
1011 vdd_cx-supply = <&pm660l_s3_level>;
1012 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301013 #clock-cells = <1>;
1014 #reset-cells = <1>;
1015 };
1016
1017 clock_dispcc: qcom,dispcc@af00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301018 compatible = "qcom,dispcc-sdm670", "syscon";
1019 reg = <0xaf00000 0x10000>;
1020 reg-names = "cc_base";
1021 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301022 #clock-cells = <1>;
1023 #reset-cells = <1>;
1024 };
1025
1026 clock_gpucc: qcom,gpucc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301027 compatible = "qcom,gpucc-sdm670", "syscon";
1028 reg = <0x5090000 0x9000>;
1029 reg-names = "cc_base";
1030 vdd_cx-supply = <&pm660l_s3_level>;
1031 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +05301032 qcom,gpu_cc_gmu_clk_src-opp-handle = <&gmu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301033 #clock-cells = <1>;
1034 #reset-cells = <1>;
1035 };
1036
1037 clock_gfx: qcom,gfxcc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301038 compatible = "qcom,gfxcc-sdm670";
1039 reg = <0x5090000 0x9000>;
1040 reg-names = "cc_base";
1041 vdd_gfx-supply = <&pm660l_s2_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +05301042 qcom,gpu_cc_gx_gfx3d_clk_src-opp-handle = <&msm_gpu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301043 #clock-cells = <1>;
1044 #reset-cells = <1>;
1045 };
1046
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301047 cpucc_debug: syscon@17970018 {
1048 compatible = "syscon";
1049 reg = <0x17970018 0x4>;
1050 };
1051
1052 clock_debug: qcom,cc-debug {
1053 compatible = "qcom,debugcc-sdm845";
1054 qcom,cc-count = <5>;
1055 qcom,gcc = <&clock_gcc>;
1056 qcom,videocc = <&clock_videocc>;
1057 qcom,camcc = <&clock_camcc>;
1058 qcom,dispcc = <&clock_dispcc>;
1059 qcom,gpucc = <&clock_gpucc>;
1060 qcom,cpucc = <&cpucc_debug>;
1061 clock-names = "xo_clk_src";
1062 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1063 #clock-cells = <1>;
1064 };
1065
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301066 clock_cpucc: qcom,cpucc@0x17d41000 {
1067 compatible = "qcom,clk-cpu-osm-sdm670";
1068 reg = <0x17d41000 0x1400>,
1069 <0x17d43000 0x1400>,
David Collins1e048402017-11-29 15:43:09 -08001070 <0x17d45800 0x1400>;
1071 reg-names = "osm_l3_base", "osm_pwrcl_base", "osm_perfcl_base";
Deepak Katragadda02617bd2017-11-10 16:03:43 -08001072 vdd_l3_mx_ao-supply = <&pm660l_s1_level_ao>;
1073 vdd_pwrcl_mx_ao-supply = <&pm660l_s1_level_ao>;
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301074
Odelu Kukatla86c179e2017-12-12 19:10:23 +05301075 qcom,mx-turbo-freq = <1440000000 1708000000 3300000001>;
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301076 l3-devs = <&l3_cpu0 &l3_cpu6>;
1077
1078 clock-names = "xo_ao";
1079 clocks = <&clock_rpmh RPMH_CXO_CLK_A>;
Imran Khan04f08312017-03-30 15:07:43 +05301080 #clock-cells = <1>;
Imran Khan04f08312017-03-30 15:07:43 +05301081 };
1082
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301083 clock_aop: qcom,aopclk {
Odelu Kukatla80f617f2017-09-15 19:30:25 +05301084 compatible = "qcom,aop-qmp-clk-v1";
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301085 #clock-cells = <1>;
1086 mboxes = <&qmp_aop 0>;
1087 mbox-names = "qdss_clk";
1088 };
1089
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301090 slim_aud: slim@62dc0000 {
1091 cell-index = <1>;
1092 compatible = "qcom,slim-ngd";
1093 reg = <0x62dc0000 0x2c000>,
1094 <0x62d84000 0x2a000>;
1095 reg-names = "slimbus_physical", "slimbus_bam_physical";
1096 interrupts = <0 163 0>, <0 164 0>;
1097 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
1098 qcom,apps-ch-pipes = <0x780000>;
1099 qcom,ea-pc = <0x290>;
1100 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301101 qcom,iommu-s1-bypass;
1102
1103 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1104 compatible = "qcom,iommu-slim-ctrl-cb";
1105 iommus = <&apps_smmu 0x1826 0x0>,
1106 <&apps_smmu 0x182d 0x0>,
1107 <&apps_smmu 0x182e 0x1>,
1108 <&apps_smmu 0x1830 0x1>;
1109 };
1110
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301111 };
1112
1113 slim_qca: slim@62e40000 {
1114 cell-index = <3>;
1115 compatible = "qcom,slim-ngd";
1116 reg = <0x62e40000 0x2c000>,
1117 <0x62e04000 0x20000>;
1118 reg-names = "slimbus_physical", "slimbus_bam_physical";
1119 interrupts = <0 291 0>, <0 292 0>;
1120 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301121 status = "ok";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301122 qcom,iommu-s1-bypass;
1123
1124 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1125 compatible = "qcom,iommu-slim-ctrl-cb";
1126 iommus = <&apps_smmu 0x1833 0x0>;
1127 };
1128
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301129 /* Slimbus Slave DT for WCN3990 */
1130 btfmslim_codec: wcn3990 {
1131 compatible = "qcom,btfmslim_slave";
1132 elemental-addr = [00 01 20 02 17 02];
1133 qcom,btfm-slim-ifd = "btfmslim_slave_ifd";
1134 qcom,btfm-slim-ifd-elemental-addr = [00 00 20 02 17 02];
1135 };
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301136 };
1137
Imran Khan04f08312017-03-30 15:07:43 +05301138 wdog: qcom,wdt@17980000{
1139 compatible = "qcom,msm-watchdog";
1140 reg = <0x17980000 0x1000>;
1141 reg-names = "wdt-base";
Lingutla Chandrasekhar9fb9ba92017-10-08 21:59:19 +05301142 interrupts = <0 0 0>, <0 1 0>;
Imran Khan04f08312017-03-30 15:07:43 +05301143 qcom,bark-time = <11000>;
Neeraj Upadhyaydbc184d2017-12-07 16:05:39 +05301144 qcom,pet-time = <9360>;
Imran Khan04f08312017-03-30 15:07:43 +05301145 qcom,ipi-ping;
1146 qcom,wakeup-enable;
1147 };
1148
1149 qcom,msm-rtb {
1150 compatible = "qcom,msm-rtb";
1151 qcom,rtb-size = <0x100000>;
1152 };
1153
Lingutla Chandrasekhar4d78d722017-11-10 16:03:44 +05301154 qcom,mpm2-sleep-counter@c221000 {
1155 compatible = "qcom,mpm2-sleep-counter";
1156 reg = <0x0c221000 0x1000>;
1157 clock-frequency = <32768>;
1158 };
1159
Imran Khan04f08312017-03-30 15:07:43 +05301160 qcom,msm-imem@146bf000 {
1161 compatible = "qcom,msm-imem";
1162 reg = <0x146bf000 0x1000>;
1163 ranges = <0x0 0x146bf000 0x1000>;
1164 #address-cells = <1>;
1165 #size-cells = <1>;
1166
1167 mem_dump_table@10 {
1168 compatible = "qcom,msm-imem-mem_dump_table";
1169 reg = <0x10 8>;
1170 };
1171
Lingutla Chandrasekharfa5c13f2017-09-25 11:01:58 +05301172 dload_type@1c {
1173 compatible = "qcom,msm-imem-dload-type";
1174 reg = <0x1c 0x4>;
1175 };
1176
Imran Khan04f08312017-03-30 15:07:43 +05301177 restart_reason@65c {
1178 compatible = "qcom,msm-imem-restart_reason";
1179 reg = <0x65c 4>;
1180 };
1181
1182 pil@94c {
1183 compatible = "qcom,msm-imem-pil";
1184 reg = <0x94c 200>;
1185 };
1186
1187 kaslr_offset@6d0 {
1188 compatible = "qcom,msm-imem-kaslr_offset";
1189 reg = <0x6d0 12>;
1190 };
Lingutla Chandrasekhar3c51f0b2017-09-12 14:21:21 +05301191
1192 boot_stats@6b0 {
1193 compatible = "qcom,msm-imem-boot_stats";
1194 reg = <0x6b0 0x20>;
1195 };
1196
1197 diag_dload@c8 {
1198 compatible = "qcom,msm-imem-diag-dload";
1199 reg = <0xc8 0xc8>;
1200 };
Imran Khan04f08312017-03-30 15:07:43 +05301201 };
1202
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301203 gpi_dma0: qcom,gpi-dma@0x800000 {
Jishnu Prakashfb619282017-11-06 11:07:53 +05301204 #dma-cells = <5>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301205 compatible = "qcom,gpi-dma";
1206 reg = <0x800000 0x60000>;
1207 reg-names = "gpi-top";
1208 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
1209 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
1210 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
1211 <0 256 0>;
1212 qcom,max-num-gpii = <13>;
1213 qcom,gpii-mask = <0xfa>;
1214 qcom,ev-factor = <2>;
1215 iommus = <&apps_smmu 0x0016 0x0>;
Jishnu Prakash71f42792017-11-02 16:04:21 +05301216 qcom,smmu-cfg = <0x1>;
1217 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301218 status = "ok";
1219 };
1220
1221 gpi_dma1: qcom,gpi-dma@0xa00000 {
Jishnu Prakashfb619282017-11-06 11:07:53 +05301222 #dma-cells = <5>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301223 compatible = "qcom,gpi-dma";
1224 reg = <0xa00000 0x60000>;
1225 reg-names = "gpi-top";
1226 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
1227 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
1228 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
1229 <0 299 0>;
1230 qcom,max-num-gpii = <13>;
1231 qcom,gpii-mask = <0xfa>;
1232 qcom,ev-factor = <2>;
Jishnu Prakash71f42792017-11-02 16:04:21 +05301233 qcom,smmu-cfg = <0x1>;
1234 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301235 iommus = <&apps_smmu 0x06d6 0x0>;
1236 status = "ok";
1237 };
1238
Imran Khan04f08312017-03-30 15:07:43 +05301239 cpuss_dump {
1240 compatible = "qcom,cpuss-dump";
1241 qcom,l1_i_cache0 {
1242 qcom,dump-node = <&L1_I_0>;
1243 qcom,dump-id = <0x60>;
1244 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301245 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301246 qcom,dump-node = <&L1_I_100>;
1247 qcom,dump-id = <0x61>;
1248 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301249 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301250 qcom,dump-node = <&L1_I_200>;
1251 qcom,dump-id = <0x62>;
1252 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301253 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301254 qcom,dump-node = <&L1_I_300>;
1255 qcom,dump-id = <0x63>;
1256 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301257 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301258 qcom,dump-node = <&L1_I_400>;
1259 qcom,dump-id = <0x64>;
1260 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301261 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301262 qcom,dump-node = <&L1_I_500>;
1263 qcom,dump-id = <0x65>;
1264 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301265 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301266 qcom,dump-node = <&L1_I_600>;
1267 qcom,dump-id = <0x66>;
1268 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301269 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301270 qcom,dump-node = <&L1_I_700>;
1271 qcom,dump-id = <0x67>;
1272 };
1273 qcom,l1_d_cache0 {
1274 qcom,dump-node = <&L1_D_0>;
1275 qcom,dump-id = <0x80>;
1276 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301277 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301278 qcom,dump-node = <&L1_D_100>;
1279 qcom,dump-id = <0x81>;
1280 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301281 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301282 qcom,dump-node = <&L1_D_200>;
1283 qcom,dump-id = <0x82>;
1284 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301285 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301286 qcom,dump-node = <&L1_D_300>;
1287 qcom,dump-id = <0x83>;
1288 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301289 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301290 qcom,dump-node = <&L1_D_400>;
1291 qcom,dump-id = <0x84>;
1292 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301293 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301294 qcom,dump-node = <&L1_D_500>;
1295 qcom,dump-id = <0x85>;
1296 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301297 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301298 qcom,dump-node = <&L1_D_600>;
1299 qcom,dump-id = <0x86>;
1300 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301301 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301302 qcom,dump-node = <&L1_D_700>;
1303 qcom,dump-id = <0x87>;
1304 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301305 qcom,llcc1_d_cache {
1306 qcom,dump-node = <&LLCC_1>;
1307 qcom,dump-id = <0x140>;
1308 };
1309 qcom,llcc2_d_cache {
1310 qcom,dump-node = <&LLCC_2>;
1311 qcom,dump-id = <0x141>;
1312 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301313 qcom,l1_tlb_dump0 {
1314 qcom,dump-node = <&L1_TLB_0>;
1315 qcom,dump-id = <0x20>;
1316 };
1317 qcom,l1_tlb_dump100 {
1318 qcom,dump-node = <&L1_TLB_100>;
1319 qcom,dump-id = <0x21>;
1320 };
1321 qcom,l1_tlb_dump200 {
1322 qcom,dump-node = <&L1_TLB_200>;
1323 qcom,dump-id = <0x22>;
1324 };
1325 qcom,l1_tlb_dump300 {
1326 qcom,dump-node = <&L1_TLB_300>;
1327 qcom,dump-id = <0x23>;
1328 };
1329 qcom,l1_tlb_dump400 {
1330 qcom,dump-node = <&L1_TLB_400>;
1331 qcom,dump-id = <0x24>;
1332 };
1333 qcom,l1_tlb_dump500 {
1334 qcom,dump-node = <&L1_TLB_500>;
1335 qcom,dump-id = <0x25>;
1336 };
1337 qcom,l1_tlb_dump600 {
1338 qcom,dump-node = <&L1_TLB_600>;
1339 qcom,dump-id = <0x26>;
1340 };
1341 qcom,l1_tlb_dump700 {
1342 qcom,dump-node = <&L1_TLB_700>;
1343 qcom,dump-id = <0x27>;
1344 };
Imran Khan04f08312017-03-30 15:07:43 +05301345 };
1346
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301347 mem_dump {
1348 compatible = "qcom,mem-dump";
1349 memory-region = <&dump_mem>;
1350
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301351 rpmh {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301352 qcom,dump-size = <0x2000000>;
1353 qcom,dump-id = <0xec>;
1354 };
1355
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301356 rpm_sw {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301357 qcom,dump-size = <0x28000>;
1358 qcom,dump-id = <0xea>;
1359 };
1360
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301361 pmic {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301362 qcom,dump-size = <0x10000>;
1363 qcom,dump-id = <0xe4>;
1364 };
1365
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301366 tmc_etf {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301367 qcom,dump-size = <0x10000>;
1368 qcom,dump-id = <0xf0>;
1369 };
1370
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301371 tmc_etfswao {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301372 qcom,dump-size = <0x8400>;
1373 qcom,dump-id = <0xf1>;
1374 };
1375
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301376 tmc_etr_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301377 qcom,dump-size = <0x1000>;
1378 qcom,dump-id = <0x100>;
1379 };
1380
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301381 tmc_etf_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301382 qcom,dump-size = <0x1000>;
1383 qcom,dump-id = <0x101>;
1384 };
1385
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301386 etfswao_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301387 qcom,dump-size = <0x1000>;
1388 qcom,dump-id = <0x102>;
1389 };
1390
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301391 misc_data {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301392 qcom,dump-size = <0x1000>;
1393 qcom,dump-id = <0xe8>;
1394 };
1395
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301396 power_regs {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301397 qcom,dump-size = <0x100000>;
1398 qcom,dump-id = <0xed>;
1399 };
1400 };
1401
Imran Khan04f08312017-03-30 15:07:43 +05301402 kryo3xx-erp {
1403 compatible = "arm,arm64-kryo3xx-cpu-erp";
1404 interrupts = <1 6 4>,
1405 <1 7 4>,
1406 <0 34 4>,
1407 <0 35 4>;
1408
1409 interrupt-names = "l1-l2-faultirq",
1410 "l1-l2-errirq",
1411 "l3-scu-errirq",
1412 "l3-scu-faultirq";
1413 };
1414
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301415 qcom,ipc-spinlock@1f40000 {
1416 compatible = "qcom,ipc-spinlock-sfpb";
1417 reg = <0x1f40000 0x8000>;
1418 qcom,num-locks = <8>;
1419 };
1420
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301421 qcom,smem@86000000 {
1422 compatible = "qcom,smem";
1423 reg = <0x86000000 0x200000>,
1424 <0x17911008 0x4>,
1425 <0x778000 0x7000>,
1426 <0x1fd4000 0x8>;
1427 reg-names = "smem", "irq-reg-base", "aux-mem1",
1428 "smem_targ_info_reg";
1429 qcom,mpu-enabled;
1430 };
1431
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301432 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301433 compatible = "qcom,qmp-mbox";
1434 label = "aop";
1435 reg = <0xc300000 0x100000>,
1436 <0x1799000c 0x4>;
1437 reg-names = "msgram", "irq-reg-base";
1438 qcom,irq-mask = <0x1>;
1439 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301440 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301441 mbox-desc-offset = <0x0>;
1442 #mbox-cells = <1>;
1443 };
1444
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301445 qcom,glink-smem-native-xprt-modem@86000000 {
1446 compatible = "qcom,glink-smem-native-xprt";
1447 reg = <0x86000000 0x200000>,
1448 <0x1799000c 0x4>;
1449 reg-names = "smem", "irq-reg-base";
1450 qcom,irq-mask = <0x1000>;
1451 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1452 label = "mpss";
1453 };
1454
1455 qcom,glink-smem-native-xprt-adsp@86000000 {
1456 compatible = "qcom,glink-smem-native-xprt";
1457 reg = <0x86000000 0x200000>,
1458 <0x1799000c 0x4>;
1459 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301460 qcom,irq-mask = <0x1000000>;
1461 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301462 label = "lpass";
1463 qcom,qos-config = <&glink_qos_adsp>;
1464 qcom,ramp-time = <0xaf>;
1465 };
1466
1467 glink_qos_adsp: qcom,glink-qos-config-adsp {
1468 compatible = "qcom,glink-qos-config";
1469 qcom,flow-info = <0x3c 0x0>,
1470 <0x3c 0x0>,
1471 <0x3c 0x0>,
1472 <0x3c 0x0>;
1473 qcom,mtu-size = <0x800>;
1474 qcom,tput-stats-cycle = <0xa>;
1475 };
1476
1477 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1478 compatible = "qcom,glink-spi-xprt";
1479 label = "wdsp";
1480 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1481 qcom,qos-config = <&glink_qos_wdsp>;
1482 qcom,ramp-time = <0x10>,
1483 <0x20>,
1484 <0x30>,
1485 <0x40>;
1486 };
1487
1488 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1489 compatible = "qcom,glink-fifo-config";
1490 qcom,out-read-idx-reg = <0x12000>;
1491 qcom,out-write-idx-reg = <0x12004>;
1492 qcom,in-read-idx-reg = <0x1200C>;
1493 qcom,in-write-idx-reg = <0x12010>;
1494 };
1495
1496 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1497 compatible = "qcom,glink-qos-config";
1498 qcom,flow-info = <0x80 0x0>,
1499 <0x70 0x1>,
1500 <0x60 0x2>,
1501 <0x50 0x3>;
1502 qcom,mtu-size = <0x800>;
1503 qcom,tput-stats-cycle = <0xa>;
1504 };
1505
1506 qcom,glink-smem-native-xprt-cdsp@86000000 {
1507 compatible = "qcom,glink-smem-native-xprt";
1508 reg = <0x86000000 0x200000>,
1509 <0x1799000c 0x4>;
1510 reg-names = "smem", "irq-reg-base";
1511 qcom,irq-mask = <0x10>;
1512 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1513 label = "cdsp";
1514 };
1515
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301516 glink_mpss: qcom,glink-ssr-modem {
1517 compatible = "qcom,glink_ssr";
1518 label = "modem";
1519 qcom,edge = "mpss";
1520 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1521 qcom,xprt = "smem";
1522 };
1523
1524 glink_lpass: qcom,glink-ssr-adsp {
1525 compatible = "qcom,glink_ssr";
1526 label = "adsp";
1527 qcom,edge = "lpass";
1528 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1529 qcom,xprt = "smem";
1530 };
1531
1532 glink_cdsp: qcom,glink-ssr-cdsp {
1533 compatible = "qcom,glink_ssr";
1534 label = "cdsp";
1535 qcom,edge = "cdsp";
1536 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1537 qcom,xprt = "smem";
1538 };
1539
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301540 qcom,ipc_router {
1541 compatible = "qcom,ipc_router";
1542 qcom,node-id = <1>;
1543 };
1544
1545 qcom,ipc_router_modem_xprt {
1546 compatible = "qcom,ipc_router_glink_xprt";
1547 qcom,ch-name = "IPCRTR";
1548 qcom,xprt-remote = "mpss";
1549 qcom,glink-xprt = "smem";
1550 qcom,xprt-linkid = <1>;
1551 qcom,xprt-version = <1>;
1552 qcom,fragmented-data;
1553 };
1554
1555 qcom,ipc_router_q6_xprt {
1556 compatible = "qcom,ipc_router_glink_xprt";
1557 qcom,ch-name = "IPCRTR";
1558 qcom,xprt-remote = "lpass";
1559 qcom,glink-xprt = "smem";
1560 qcom,xprt-linkid = <1>;
1561 qcom,xprt-version = <1>;
1562 qcom,fragmented-data;
1563 };
1564
1565 qcom,ipc_router_cdsp_xprt {
1566 compatible = "qcom,ipc_router_glink_xprt";
1567 qcom,ch-name = "IPCRTR";
1568 qcom,xprt-remote = "cdsp";
1569 qcom,glink-xprt = "smem";
1570 qcom,xprt-linkid = <1>;
1571 qcom,xprt-version = <1>;
1572 qcom,fragmented-data;
1573 };
1574
Dhoat Harpal11d34482017-06-06 21:00:14 +05301575 qcom,glink_pkt {
1576 compatible = "qcom,glinkpkt";
1577
1578 qcom,glinkpkt-at-mdm0 {
1579 qcom,glinkpkt-transport = "smem";
1580 qcom,glinkpkt-edge = "mpss";
1581 qcom,glinkpkt-ch-name = "DS";
1582 qcom,glinkpkt-dev-name = "at_mdm0";
1583 };
1584
1585 qcom,glinkpkt-loopback_cntl {
1586 qcom,glinkpkt-transport = "lloop";
1587 qcom,glinkpkt-edge = "local";
1588 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1589 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1590 };
1591
1592 qcom,glinkpkt-loopback_data {
1593 qcom,glinkpkt-transport = "lloop";
1594 qcom,glinkpkt-edge = "local";
1595 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1596 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1597 };
1598
1599 qcom,glinkpkt-apr-apps2 {
1600 qcom,glinkpkt-transport = "smem";
1601 qcom,glinkpkt-edge = "adsp";
1602 qcom,glinkpkt-ch-name = "apr_apps2";
1603 qcom,glinkpkt-dev-name = "apr_apps2";
1604 };
1605
1606 qcom,glinkpkt-data40-cntl {
1607 qcom,glinkpkt-transport = "smem";
1608 qcom,glinkpkt-edge = "mpss";
1609 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1610 qcom,glinkpkt-dev-name = "smdcntl8";
1611 };
1612
1613 qcom,glinkpkt-data1 {
1614 qcom,glinkpkt-transport = "smem";
1615 qcom,glinkpkt-edge = "mpss";
1616 qcom,glinkpkt-ch-name = "DATA1";
1617 qcom,glinkpkt-dev-name = "smd7";
1618 };
1619
1620 qcom,glinkpkt-data4 {
1621 qcom,glinkpkt-transport = "smem";
1622 qcom,glinkpkt-edge = "mpss";
1623 qcom,glinkpkt-ch-name = "DATA4";
1624 qcom,glinkpkt-dev-name = "smd8";
1625 };
1626
1627 qcom,glinkpkt-data11 {
1628 qcom,glinkpkt-transport = "smem";
1629 qcom,glinkpkt-edge = "mpss";
1630 qcom,glinkpkt-ch-name = "DATA11";
1631 qcom,glinkpkt-dev-name = "smd11";
1632 };
1633 };
1634
Imran Khan04f08312017-03-30 15:07:43 +05301635 qcom,chd_sliver {
1636 compatible = "qcom,core-hang-detect";
1637 label = "silver";
1638 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1639 0x17e30058 0x17e40058 0x17e50058>;
1640 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1641 0x17e30060 0x17e40060 0x17e50060>;
1642 };
1643
1644 qcom,chd_gold {
1645 compatible = "qcom,core-hang-detect";
1646 label = "gold";
1647 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1648 qcom,config-arr = <0x17e60060 0x17e70060>;
1649 };
1650
1651 qcom,ghd {
1652 compatible = "qcom,gladiator-hang-detect-v2";
1653 qcom,threshold-arr = <0x1799041c 0x17990420>;
1654 qcom,config-reg = <0x17990434>;
1655 };
1656
1657 qcom,msm-gladiator-v3@17900000 {
1658 compatible = "qcom,msm-gladiator-v3";
1659 reg = <0x17900000 0xd080>;
1660 reg-names = "gladiator_base";
1661 interrupts = <0 17 0>;
1662 };
1663
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301664 eud: qcom,msm-eud@88e0000 {
1665 compatible = "qcom,msm-eud";
1666 interrupt-names = "eud_irq";
1667 interrupts = <GIC_SPI 492 IRQ_TYPE_LEVEL_HIGH>;
1668 reg = <0x88e0000 0x2000>;
1669 reg-names = "eud_base";
Lingutla Chandrasekhar5422daf2017-10-26 11:27:32 +05301670 clocks = <&clock_gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>;
1671 clock-names = "cfg_ahb_clk";
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301672 };
1673
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301674 qcom,llcc@1100000 {
1675 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1676 reg = <0x1100000 0x250000>;
1677 reg-names = "llcc_base";
1678 qcom,llcc-banks-off = <0x0 0x80000 >;
1679 qcom,llcc-broadcast-off = <0x200000>;
1680
1681 llcc: qcom,sdm670-llcc {
1682 compatible = "qcom,sdm670-llcc";
1683 #cache-cells = <1>;
1684 max-slices = <32>;
1685 qcom,dump-size = <0x80000>;
1686 };
1687
Sankaran Nampoothiri0c5dac02017-11-06 11:53:52 +05301688 qcom,llcc-perfmon {
1689 compatible = "qcom,llcc-perfmon";
1690 };
1691
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301692 qcom,llcc-erp {
1693 compatible = "qcom,llcc-erp";
1694 interrupt-names = "ecc_irq";
1695 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1696 };
1697
1698 qcom,llcc-amon {
1699 compatible = "qcom,llcc-amon";
1700 };
1701
1702 LLCC_1: llcc_1_dcache {
1703 qcom,dump-size = <0xd8000>;
1704 };
1705
1706 LLCC_2: llcc_2_dcache {
1707 qcom,dump-size = <0xd8000>;
1708 };
1709 };
1710
Maulik Shah210773d2017-06-15 09:49:12 +05301711 cmd_db: qcom,cmd-db@c3f000c {
1712 compatible = "qcom,cmd-db";
1713 reg = <0xc3f000c 0x8>;
1714 };
1715
Maulik Shahc77d1d22017-06-15 14:04:50 +05301716 apps_rsc: mailbox@179e0000 {
1717 compatible = "qcom,tcs-drv";
1718 label = "apps_rsc";
1719 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1720 interrupts = <0 5 0>;
1721 #mbox-cells = <1>;
1722 qcom,drv-id = <2>;
1723 qcom,tcs-config = <ACTIVE_TCS 2>,
1724 <SLEEP_TCS 3>,
1725 <WAKE_TCS 3>,
1726 <CONTROL_TCS 1>;
1727 };
1728
Maulik Shahda3941f2017-06-15 09:41:38 +05301729 disp_rsc: mailbox@af20000 {
1730 compatible = "qcom,tcs-drv";
1731 label = "display_rsc";
1732 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1733 interrupts = <0 129 0>;
1734 #mbox-cells = <1>;
1735 qcom,drv-id = <0>;
1736 qcom,tcs-config = <SLEEP_TCS 1>,
1737 <WAKE_TCS 1>,
1738 <ACTIVE_TCS 0>,
1739 <CONTROL_TCS 1>;
1740 };
1741
Maulik Shah0dd203f2017-06-15 09:44:59 +05301742 system_pm {
1743 compatible = "qcom,system-pm";
1744 mboxes = <&apps_rsc 0>;
1745 };
1746
Imran Khan04f08312017-03-30 15:07:43 +05301747 dcc: dcc_v2@10a2000 {
1748 compatible = "qcom,dcc_v2";
1749 reg = <0x10a2000 0x1000>,
1750 <0x10ae000 0x2000>;
1751 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301752
1753 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301754 };
1755
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301756 spmi_bus: qcom,spmi@c440000 {
1757 compatible = "qcom,spmi-pmic-arb";
1758 reg = <0xc440000 0x1100>,
1759 <0xc600000 0x2000000>,
1760 <0xe600000 0x100000>,
1761 <0xe700000 0xa0000>,
1762 <0xc40a000 0x26000>;
1763 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1764 interrupt-names = "periph_irq";
1765 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1766 qcom,ee = <0>;
1767 qcom,channel = <0>;
1768 #address-cells = <2>;
1769 #size-cells = <0>;
1770 interrupt-controller;
1771 #interrupt-cells = <4>;
1772 cell-index = <0>;
1773 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301774
1775 ufsphy_mem: ufsphy_mem@1d87000 {
1776 reg = <0x1d87000 0xe00>; /* PHY regs */
1777 reg-names = "phy_mem";
1778 #phy-cells = <0>;
1779
1780 lanes-per-direction = <1>;
1781
1782 clock-names = "ref_clk_src",
1783 "ref_clk",
1784 "ref_aux_clk";
1785 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1786 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1787 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1788
1789 status = "disabled";
1790 };
1791
1792 ufshc_mem: ufshc@1d84000 {
1793 compatible = "qcom,ufshc";
1794 reg = <0x1d84000 0x3000>;
1795 interrupts = <0 265 0>;
1796 phys = <&ufsphy_mem>;
1797 phy-names = "ufsphy";
1798
1799 lanes-per-direction = <1>;
1800 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1801
1802 clock-names =
1803 "core_clk",
1804 "bus_aggr_clk",
1805 "iface_clk",
1806 "core_clk_unipro",
1807 "core_clk_ice",
1808 "ref_clk",
1809 "tx_lane0_sync_clk",
1810 "rx_lane0_sync_clk";
1811 clocks =
1812 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1813 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1814 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1815 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1816 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1817 <&clock_rpmh RPMH_CXO_CLK>,
1818 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1819 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1820 freq-table-hz =
1821 <50000000 200000000>,
1822 <0 0>,
1823 <0 0>,
1824 <37500000 150000000>,
1825 <75000000 300000000>,
1826 <0 0>,
1827 <0 0>,
1828 <0 0>;
1829
Sayali Lokhandeaa3db742017-10-09 15:13:01 +05301830 non-removable;
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301831 qcom,msm-bus,name = "ufshc_mem";
1832 qcom,msm-bus,num-cases = <12>;
1833 qcom,msm-bus,num-paths = <2>;
1834 qcom,msm-bus,vectors-KBps =
1835 /*
1836 * During HS G3 UFS runs at nominal voltage corner, vote
1837 * higher bandwidth to push other buses in the data path
1838 * to run at nominal to achieve max throughput.
1839 * 4GBps pushes BIMC to run at nominal.
1840 * 200MBps pushes CNOC to run at nominal.
1841 * Vote for half of this bandwidth for HS G3 1-lane.
1842 * For max bandwidth, vote high enough to push the buses
1843 * to run in turbo voltage corner.
1844 */
1845 <123 512 0 0>, <1 757 0 0>, /* No vote */
1846 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1847 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1848 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1849 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1850 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1851 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1852 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1853 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1854 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1855 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1856 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1857
1858 qcom,bus-vector-names = "MIN",
1859 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1860 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1861 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1862 "MAX";
1863
1864 /* PM QoS */
1865 qcom,pm-qos-cpu-groups = <0x3f 0xC0>;
1866 qcom,pm-qos-cpu-group-latency-us = <70 70>;
1867 qcom,pm-qos-default-cpu = <0>;
1868
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301869 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1870 reset-names = "core_reset";
1871
1872 status = "disabled";
1873 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301874
1875 qcom,lpass@62400000 {
1876 compatible = "qcom,pil-tz-generic";
1877 reg = <0x62400000 0x00100>;
1878 interrupts = <0 162 1>;
1879
1880 vdd_cx-supply = <&pm660l_l9_level>;
1881 qcom,proxy-reg-names = "vdd_cx";
1882 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1883
1884 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1885 clock-names = "xo";
1886 qcom,proxy-clock-names = "xo";
1887
1888 qcom,pas-id = <1>;
1889 qcom,proxy-timeout-ms = <10000>;
1890 qcom,smem-id = <423>;
1891 qcom,sysmon-id = <1>;
1892 qcom,ssctl-instance-id = <0x14>;
1893 qcom,firmware-name = "adsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301894 qcom,signal-aop;
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301895 memory-region = <&pil_adsp_mem>;
1896
1897 /* GPIO inputs from lpass */
1898 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1899 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1900 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1901 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1902
1903 /* GPIO output to lpass */
1904 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301905
1906 mboxes = <&qmp_aop 0>;
1907 mbox-names = "adsp-pil";
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301908 status = "ok";
1909 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301910
Sahitya Tummala02e49182017-09-19 10:54:42 +05301911 qcom,rmtfs_sharedmem@0 {
1912 compatible = "qcom,sharedmem-uio";
1913 reg = <0x0 0x200000>;
1914 reg-names = "rmtfs";
1915 qcom,client-id = <0x00000001>;
Sahitya Tummala57f7b572017-10-23 10:29:03 +05301916 qcom,guard-memory;
Sahitya Tummala02e49182017-09-19 10:54:42 +05301917 };
1918
Mohammed Javidf97a10e2017-10-08 13:11:26 +05301919 qcom,msm_gsi {
1920 compatible = "qcom,msm_gsi";
1921 };
1922
Mohammed Javid736c25c2017-06-19 13:23:18 +05301923 qcom,rmnet-ipa {
1924 compatible = "qcom,rmnet-ipa3";
1925 qcom,rmnet-ipa-ssr;
1926 qcom,ipa-loaduC;
1927 qcom,ipa-advertise-sg-support;
1928 qcom,ipa-napi-enable;
1929 };
1930
1931 ipa_hw: qcom,ipa@01e00000 {
1932 compatible = "qcom,ipa";
1933 reg = <0x1e00000 0x34000>,
1934 <0x1e04000 0x2c000>;
1935 reg-names = "ipa-base", "gsi-base";
1936 interrupts =
1937 <0 311 0>,
1938 <0 432 0>;
1939 interrupt-names = "ipa-irq", "gsi-irq";
1940 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1941 qcom,ipa-hw-mode = <1>;
1942 qcom,ee = <0>;
1943 qcom,use-ipa-tethering-bridge;
1944 qcom,modem-cfg-emb-pipe-flt;
1945 qcom,ipa-wdi2;
1946 qcom,use-64-bit-dma-mask;
1947 qcom,arm-smmu;
Mohammed Javid736c25c2017-06-19 13:23:18 +05301948 qcom,bandwidth-vote-for-ipa;
1949 qcom,msm-bus,name = "ipa";
1950 qcom,msm-bus,num-cases = <4>;
1951 qcom,msm-bus,num-paths = <4>;
1952 qcom,msm-bus,vectors-KBps =
1953 /* No vote */
1954 <90 512 0 0>,
1955 <90 585 0 0>,
1956 <1 676 0 0>,
1957 <143 777 0 0>,
1958 /* SVS */
1959 <90 512 80000 640000>,
1960 <90 585 80000 640000>,
1961 <1 676 80000 80000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301962 <143 777 0 150>, /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301963 /* NOMINAL */
1964 <90 512 206000 960000>,
1965 <90 585 206000 960000>,
1966 <1 676 206000 160000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301967 <143 777 0 300>, /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301968 /* TURBO */
1969 <90 512 206000 3600000>,
1970 <90 585 206000 3600000>,
1971 <1 676 206000 300000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301972 <143 777 0 355>; /* IB defined for IPA clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301973 qcom,bus-vector-names = "MIN", "SVS", "NOMINAL", "TURBO";
1974
1975 /* IPA RAM mmap */
1976 qcom,ipa-ram-mmap = <
1977 0x280 /* ofst_start; */
1978 0x0 /* nat_ofst; */
1979 0x0 /* nat_size; */
1980 0x288 /* v4_flt_hash_ofst; */
1981 0x78 /* v4_flt_hash_size; */
1982 0x4000 /* v4_flt_hash_size_ddr; */
1983 0x308 /* v4_flt_nhash_ofst; */
1984 0x78 /* v4_flt_nhash_size; */
1985 0x4000 /* v4_flt_nhash_size_ddr; */
1986 0x388 /* v6_flt_hash_ofst; */
1987 0x78 /* v6_flt_hash_size; */
1988 0x4000 /* v6_flt_hash_size_ddr; */
1989 0x408 /* v6_flt_nhash_ofst; */
1990 0x78 /* v6_flt_nhash_size; */
1991 0x4000 /* v6_flt_nhash_size_ddr; */
1992 0xf /* v4_rt_num_index; */
1993 0x0 /* v4_modem_rt_index_lo; */
1994 0x7 /* v4_modem_rt_index_hi; */
1995 0x8 /* v4_apps_rt_index_lo; */
1996 0xe /* v4_apps_rt_index_hi; */
1997 0x488 /* v4_rt_hash_ofst; */
1998 0x78 /* v4_rt_hash_size; */
1999 0x4000 /* v4_rt_hash_size_ddr; */
2000 0x508 /* v4_rt_nhash_ofst; */
2001 0x78 /* v4_rt_nhash_size; */
2002 0x4000 /* v4_rt_nhash_size_ddr; */
2003 0xf /* v6_rt_num_index; */
2004 0x0 /* v6_modem_rt_index_lo; */
2005 0x7 /* v6_modem_rt_index_hi; */
2006 0x8 /* v6_apps_rt_index_lo; */
2007 0xe /* v6_apps_rt_index_hi; */
2008 0x588 /* v6_rt_hash_ofst; */
2009 0x78 /* v6_rt_hash_size; */
2010 0x4000 /* v6_rt_hash_size_ddr; */
2011 0x608 /* v6_rt_nhash_ofst; */
2012 0x78 /* v6_rt_nhash_size; */
2013 0x4000 /* v6_rt_nhash_size_ddr; */
2014 0x688 /* modem_hdr_ofst; */
2015 0x140 /* modem_hdr_size; */
2016 0x7c8 /* apps_hdr_ofst; */
2017 0x0 /* apps_hdr_size; */
2018 0x800 /* apps_hdr_size_ddr; */
2019 0x7d0 /* modem_hdr_proc_ctx_ofst; */
2020 0x200 /* modem_hdr_proc_ctx_size; */
2021 0x9d0 /* apps_hdr_proc_ctx_ofst; */
2022 0x200 /* apps_hdr_proc_ctx_size; */
2023 0x0 /* apps_hdr_proc_ctx_size_ddr; */
2024 0x0 /* modem_comp_decomp_ofst; diff */
2025 0x0 /* modem_comp_decomp_size; diff */
2026 0xbd8 /* modem_ofst; */
2027 0x1024 /* modem_size; */
2028 0x2000 /* apps_v4_flt_hash_ofst; */
2029 0x0 /* apps_v4_flt_hash_size; */
2030 0x2000 /* apps_v4_flt_nhash_ofst; */
2031 0x0 /* apps_v4_flt_nhash_size; */
2032 0x2000 /* apps_v6_flt_hash_ofst; */
2033 0x0 /* apps_v6_flt_hash_size; */
2034 0x2000 /* apps_v6_flt_nhash_ofst; */
2035 0x0 /* apps_v6_flt_nhash_size; */
2036 0x80 /* uc_info_ofst; */
2037 0x200 /* uc_info_size; */
2038 0x2000 /* end_ofst; */
2039 0x2000 /* apps_v4_rt_hash_ofst; */
2040 0x0 /* apps_v4_rt_hash_size; */
2041 0x2000 /* apps_v4_rt_nhash_ofst; */
2042 0x0 /* apps_v4_rt_nhash_size; */
2043 0x2000 /* apps_v6_rt_hash_ofst; */
2044 0x0 /* apps_v6_rt_hash_size; */
2045 0x2000 /* apps_v6_rt_nhash_ofst; */
2046 0x0 /* apps_v6_rt_nhash_size; */
2047 0x1c00 /* uc_event_ring_ofst; */
2048 0x400 /* uc_event_ring_size; */
2049 >;
2050
2051 /* smp2p gpio information */
2052 qcom,smp2pgpio_map_ipa_1_out {
2053 compatible = "qcom,smp2pgpio-map-ipa-1-out";
2054 gpios = <&smp2pgpio_ipa_1_out 0 0>;
2055 };
2056
2057 qcom,smp2pgpio_map_ipa_1_in {
2058 compatible = "qcom,smp2pgpio-map-ipa-1-in";
2059 gpios = <&smp2pgpio_ipa_1_in 0 0>;
2060 };
2061
2062 ipa_smmu_ap: ipa_smmu_ap {
2063 compatible = "qcom,ipa-smmu-ap-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302064 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302065 iommus = <&apps_smmu 0x720 0x0>;
2066 qcom,iova-mapping = <0x20000000 0x40000000>;
2067 };
2068
2069 ipa_smmu_wlan: ipa_smmu_wlan {
2070 compatible = "qcom,ipa-smmu-wlan-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302071 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302072 iommus = <&apps_smmu 0x721 0x0>;
2073 };
2074
2075 ipa_smmu_uc: ipa_smmu_uc {
2076 compatible = "qcom,ipa-smmu-uc-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302077 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302078 iommus = <&apps_smmu 0x722 0x0>;
2079 qcom,iova-mapping = <0x40000000 0x20000000>;
2080 };
2081 };
2082
2083 qcom,ipa_fws {
2084 compatible = "qcom,pil-tz-generic";
2085 qcom,pas-id = <0xf>;
2086 qcom,firmware-name = "ipa_fws";
2087 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302088
2089 pil_modem: qcom,mss@4080000 {
2090 compatible = "qcom,pil-q6v55-mss";
2091 reg = <0x4080000 0x100>,
2092 <0x1f63000 0x008>,
2093 <0x1f65000 0x008>,
2094 <0x1f64000 0x008>,
2095 <0x4180000 0x020>,
2096 <0xc2b0000 0x004>,
2097 <0xb2e0100 0x004>,
2098 <0x4180044 0x004>;
2099 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
2100 "halt_nc", "rmb_base", "restart_reg",
2101 "pdc_sync", "alt_reset";
2102
2103 clocks = <&clock_rpmh RPMH_CXO_CLK>,
2104 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
2105 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
2106 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
2107 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
2108 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
2109 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
2110 <&clock_gcc GCC_PRNG_AHB_CLK>;
2111 clock-names = "xo", "iface_clk", "bus_clk",
2112 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
2113 "mnoc_axi_clk", "prng_clk";
2114 qcom,proxy-clock-names = "xo", "prng_clk";
2115 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
2116 "gpll0_mss_clk", "snoc_axi_clk",
2117 "mnoc_axi_clk";
2118
2119 interrupts = <0 266 1>;
2120 vdd_cx-supply = <&pm660l_s3_level>;
2121 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
2122 vdd_mx-supply = <&pm660l_s1_level>;
2123 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Jitendra Sharma2e981ef2017-10-30 12:16:23 +05302124 vdd_mss-supply = <&pm660_s5_level>;
2125 vdd_mss-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302126 qcom,firmware-name = "modem";
2127 qcom,pil-self-auth;
2128 qcom,sysmon-id = <0>;
2129 qcom,ssctl-instance-id = <0x12>;
2130 qcom,override-acc;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302131 qcom,signal-aop;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302132 qcom,qdsp6v65-1-0;
Jitendra Sharma93dd7fc2017-10-14 17:38:55 +05302133 qcom,mss_pdc_offset = <9>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302134 status = "ok";
2135 memory-region = <&pil_modem_mem>;
2136 qcom,mem-protect-id = <0xF>;
2137
2138 /* GPIO inputs from mss */
2139 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
2140 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
2141 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
2142 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
2143 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
2144
2145 /* GPIO output to mss */
2146 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302147
2148 mboxes = <&qmp_aop 0>;
2149 mbox-names = "mss-pil";
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302150 qcom,mba-mem@0 {
2151 compatible = "qcom,pil-mba-mem";
2152 memory-region = <&pil_mba_mem>;
2153 };
2154 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05302155
2156 qcom,venus@aae0000 {
2157 compatible = "qcom,pil-tz-generic";
2158 reg = <0xaae0000 0x4000>;
2159
2160 vdd-supply = <&venus_gdsc>;
2161 qcom,proxy-reg-names = "vdd";
2162
2163 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
2164 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
2165 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
2166 clock-names = "core_clk", "iface_clk", "bus_clk";
2167 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
2168
2169 qcom,pas-id = <9>;
2170 qcom,msm-bus,name = "pil-venus";
2171 qcom,msm-bus,num-cases = <2>;
2172 qcom,msm-bus,num-paths = <1>;
2173 qcom,msm-bus,vectors-KBps =
2174 <63 512 0 0>,
2175 <63 512 0 304000>;
2176 qcom,proxy-timeout-ms = <100>;
2177 qcom,firmware-name = "venus";
2178 memory-region = <&pil_video_mem>;
2179 status = "ok";
2180 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05302181
2182 qcom,turing@8300000 {
2183 compatible = "qcom,pil-tz-generic";
2184 reg = <0x8300000 0x100000>;
2185 interrupts = <0 578 1>;
2186
2187 vdd_cx-supply = <&pm660l_s3_level>;
2188 qcom,proxy-reg-names = "vdd_cx";
2189 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2190
2191 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2192 clock-names = "xo";
2193 qcom,proxy-clock-names = "xo";
2194
2195 qcom,pas-id = <18>;
2196 qcom,proxy-timeout-ms = <10000>;
2197 qcom,smem-id = <601>;
2198 qcom,sysmon-id = <7>;
2199 qcom,ssctl-instance-id = <0x17>;
2200 qcom,firmware-name = "cdsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302201 qcom,signal-aop;
Gaurav Kohli106f4882017-06-29 12:29:12 +05302202 memory-region = <&pil_cdsp_mem>;
2203
2204 /* GPIO inputs from turing */
2205 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
2206 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
2207 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
2208 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
2209
2210 /* GPIO output to turing*/
2211 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302212
2213 mboxes = <&qmp_aop 0>;
2214 mbox-names = "cdsp-pil";
Gaurav Kohli106f4882017-06-29 12:29:12 +05302215 status = "ok";
2216 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05302217
Neeraj Soni27efd652017-11-01 18:17:58 +05302218 sdcc1_ice: sdcc1ice@7c8000 {
2219 compatible = "qcom,ice";
2220 reg = <0x7c8000 0x8000>;
2221 qcom,enable-ice-clk;
2222 clock-names = "ice_core_clk_src", "ice_core_clk",
2223 "bus_clk", "iface_clk";
2224 clocks = <&clock_gcc GCC_SDCC1_ICE_CORE_CLK_SRC>,
2225 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
2226 <&clock_gcc GCC_SDCC1_APPS_CLK>,
2227 <&clock_gcc GCC_SDCC1_AHB_CLK>;
2228 qcom,op-freq-hz = <300000000>, <0>, <0>, <0>;
2229 qcom,msm-bus,name = "sdcc_ice_noc";
2230 qcom,msm-bus,num-cases = <2>;
2231 qcom,msm-bus,num-paths = <1>;
2232 qcom,msm-bus,vectors-KBps =
2233 <150 512 0 0>, /* No vote */
2234 <150 512 1000 0>; /* Max. bandwidth */
2235 qcom,bus-vector-names = "MIN",
2236 "MAX";
2237 qcom,instance-type = "sdcc";
2238 };
2239
Vijay Viswanatheac72722017-06-05 11:01:38 +05302240 sdhc_1: sdhci@7c4000 {
2241 compatible = "qcom,sdhci-msm-v5";
2242 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
2243 reg-names = "hc_mem", "cmdq_mem";
2244
2245 interrupts = <0 641 0>, <0 644 0>;
2246 interrupt-names = "hc_irq", "pwr_irq";
2247
2248 qcom,bus-width = <8>;
2249 qcom,large-address-bus;
Neeraj Soni27efd652017-11-01 18:17:58 +05302250 sdhc-msm-crypto = <&sdcc1_ice>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302251
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302252 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
2253 192000000 384000000>;
Vijay Viswanath01db23a2017-11-09 15:46:22 +05302254 qcom,bus-aggr-clk-rates = <50000000 50000000 50000000 50000000
2255 100000000 200000000 200000000>;
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302256 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
2257
2258 qcom,devfreq,freq-table = <50000000 200000000>;
2259
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302260 qcom,msm-bus,name = "sdhc1";
2261 qcom,msm-bus,num-cases = <9>;
2262 qcom,msm-bus,num-paths = <2>;
2263 qcom,msm-bus,vectors-KBps =
2264 /* No vote */
Vijay Viswanath49024c22017-10-17 12:42:06 +05302265 <150 512 0 0>, <1 782 0 0>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302266 /* 400 KB/s*/
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302267 <150 512 1046 1600>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302268 <1 782 1600 1600>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302269 /* 20 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302270 <150 512 52286 80000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302271 <1 782 80000 80000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302272 /* 25 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302273 <150 512 65360 100000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302274 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302275 /* 50 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302276 <150 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302277 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302278 /* 100 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302279 <150 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302280 <1 782 130000 130000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302281 /* 200 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302282 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302283 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302284 /* 400 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302285 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302286 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302287 /* Max. bandwidth */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302288 <150 512 1338562 4096000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302289 <1 782 1338562 4096000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302290 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2291 100000000 200000000 400000000 4294967295>;
2292
2293 /* PM QoS */
2294 qcom,pm-qos-irq-type = "affine_irq";
2295 qcom,pm-qos-irq-latency = <70 70>;
2296 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2297 qcom,pm-qos-cmdq-latency-us = <70 70>, <70 70>;
2298 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2299
Vijay Viswanatheac72722017-06-05 11:01:38 +05302300 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302301 <&clock_gcc GCC_SDCC1_APPS_CLK>,
Vijay Viswanath7e20ddc2017-10-07 14:23:38 +05302302 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
2303 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_CLK>;
2304 clock-names = "iface_clk", "core_clk", "ice_core_clk",
2305 "bus_aggr_clk";
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302306
2307 qcom,ice-clk-rates = <300000000 75000000>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302308
Vijay Viswanathd4dcf5f2017-10-17 15:42:00 +05302309 qcom,ddr-config = <0xC3040873>;
2310
Vijay Viswanatheac72722017-06-05 11:01:38 +05302311 qcom,nonremovable;
2312
Vijay Viswanatheac72722017-06-05 11:01:38 +05302313 status = "disabled";
2314 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302315
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302316 sdhc_2: sdhci@8804000 {
2317 compatible = "qcom,sdhci-msm-v5";
2318 reg = <0x8804000 0x1000>;
2319 reg-names = "hc_mem";
2320
2321 interrupts = <0 204 0>, <0 222 0>;
2322 interrupt-names = "hc_irq", "pwr_irq";
2323
2324 qcom,bus-width = <4>;
2325 qcom,large-address-bus;
2326
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302327 qcom,clk-rates = <400000 20000000 25000000
2328 50000000 100000000 201500000>;
2329 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
2330 "SDR104";
2331
2332 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302333
2334 qcom,msm-bus,name = "sdhc2";
2335 qcom,msm-bus,num-cases = <8>;
2336 qcom,msm-bus,num-paths = <2>;
2337 qcom,msm-bus,vectors-KBps =
2338 /* No vote */
2339 <81 512 0 0>, <1 608 0 0>,
2340 /* 400 KB/s*/
2341 <81 512 1046 1600>,
2342 <1 608 1600 1600>,
2343 /* 20 MB/s */
2344 <81 512 52286 80000>,
2345 <1 608 80000 80000>,
2346 /* 25 MB/s */
2347 <81 512 65360 100000>,
2348 <1 608 100000 100000>,
2349 /* 50 MB/s */
2350 <81 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302351 <1 608 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302352 /* 100 MB/s */
2353 <81 512 261438 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302354 <1 608 130000 130000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302355 /* 200 MB/s */
2356 <81 512 261438 400000>,
2357 <1 608 300000 300000>,
2358 /* Max. bandwidth */
2359 <81 512 1338562 4096000>,
2360 <1 608 1338562 4096000>;
2361 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2362 100000000 200000000 4294967295>;
2363
2364 /* PM QoS */
2365 qcom,pm-qos-irq-type = "affine_irq";
2366 qcom,pm-qos-irq-latency = <70 70>;
2367 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2368 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2369
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302370 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
2371 <&clock_gcc GCC_SDCC2_APPS_CLK>;
2372 clock-names = "iface_clk", "core_clk";
2373
2374 status = "disabled";
2375 };
2376
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302377 qcom,msm-cdsp-loader {
2378 compatible = "qcom,cdsp-loader";
2379 qcom,proc-img-to-load = "cdsp";
2380 };
2381
2382 qcom,msm-adsprpc-mem {
2383 compatible = "qcom,msm-adsprpc-mem-region";
2384 memory-region = <&adsp_mem>;
2385 };
2386
2387 qcom,msm_fastrpc {
2388 compatible = "qcom,msm-fastrpc-compute";
c_mtharu268ebce2017-11-16 16:01:41 +05302389 qcom,adsp-remoteheap-vmid = <37>;
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302390
2391 qcom,msm_fastrpc_compute_cb1 {
2392 compatible = "qcom,msm-fastrpc-compute-cb";
2393 label = "cdsprpc-smd";
2394 iommus = <&apps_smmu 0x1421 0x30>;
2395 dma-coherent;
2396 };
2397 qcom,msm_fastrpc_compute_cb2 {
2398 compatible = "qcom,msm-fastrpc-compute-cb";
2399 label = "cdsprpc-smd";
2400 iommus = <&apps_smmu 0x1422 0x30>;
2401 dma-coherent;
2402 };
2403 qcom,msm_fastrpc_compute_cb3 {
2404 compatible = "qcom,msm-fastrpc-compute-cb";
2405 label = "cdsprpc-smd";
2406 iommus = <&apps_smmu 0x1423 0x30>;
2407 dma-coherent;
2408 };
2409 qcom,msm_fastrpc_compute_cb4 {
2410 compatible = "qcom,msm-fastrpc-compute-cb";
2411 label = "cdsprpc-smd";
2412 iommus = <&apps_smmu 0x1424 0x30>;
2413 dma-coherent;
2414 };
2415 qcom,msm_fastrpc_compute_cb5 {
2416 compatible = "qcom,msm-fastrpc-compute-cb";
2417 label = "cdsprpc-smd";
2418 iommus = <&apps_smmu 0x1425 0x30>;
2419 dma-coherent;
2420 };
2421 qcom,msm_fastrpc_compute_cb6 {
2422 compatible = "qcom,msm-fastrpc-compute-cb";
2423 label = "cdsprpc-smd";
2424 iommus = <&apps_smmu 0x1426 0x30>;
2425 dma-coherent;
2426 };
2427 qcom,msm_fastrpc_compute_cb7 {
2428 compatible = "qcom,msm-fastrpc-compute-cb";
2429 label = "cdsprpc-smd";
2430 qcom,secure-context-bank;
2431 iommus = <&apps_smmu 0x1429 0x30>;
2432 dma-coherent;
2433 };
2434 qcom,msm_fastrpc_compute_cb8 {
2435 compatible = "qcom,msm-fastrpc-compute-cb";
2436 label = "cdsprpc-smd";
2437 qcom,secure-context-bank;
2438 iommus = <&apps_smmu 0x142A 0x30>;
2439 dma-coherent;
2440 };
2441 qcom,msm_fastrpc_compute_cb9 {
2442 compatible = "qcom,msm-fastrpc-compute-cb";
2443 label = "adsprpc-smd";
2444 iommus = <&apps_smmu 0x1803 0x0>;
2445 dma-coherent;
2446 };
2447 qcom,msm_fastrpc_compute_cb10 {
2448 compatible = "qcom,msm-fastrpc-compute-cb";
2449 label = "adsprpc-smd";
2450 iommus = <&apps_smmu 0x1804 0x0>;
2451 dma-coherent;
2452 };
2453 qcom,msm_fastrpc_compute_cb11 {
2454 compatible = "qcom,msm-fastrpc-compute-cb";
2455 label = "adsprpc-smd";
2456 iommus = <&apps_smmu 0x1805 0x0>;
2457 dma-coherent;
2458 };
c_mtharu92125922017-10-16 14:06:39 +05302459 qcom,msm_fastrpc_compute_cb12 {
2460 compatible = "qcom,msm-fastrpc-compute-cb";
2461 label = "adsprpc-smd";
2462 iommus = <&apps_smmu 0x1806 0x0>;
2463 dma-coherent;
2464 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302465 };
Anurag Chouhan7563b532017-09-12 15:49:16 +05302466
Rupesh Tatiyaf2072952017-10-08 19:57:12 +05302467 bluetooth: bt_wcn3990 {
2468 compatible = "qca,wcn3990";
2469 qca,bt-vdd-core-supply = <&pm660_l9>;
2470 qca,bt-vdd-pa-supply = <&pm660_l6>;
2471 qca,bt-vdd-ldo-supply = <&pm660_l19>;
2472
2473 qca,bt-vdd-core-voltage-level = <1800000 1900000>;
2474 qca,bt-vdd-pa-voltage-level = <1304000 1370000>;
2475 qca,bt-vdd-ldo-voltage-level = <3312000 3400000>;
2476
2477 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
2478 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
2479 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
2480 };
2481
Anurag Chouhan7563b532017-09-12 15:49:16 +05302482 qcom,icnss@18800000 {
Anurag Chouhan7563b532017-09-12 15:49:16 +05302483 compatible = "qcom,icnss";
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302484 reg = <0x18800000 0x800000>,
2485 <0xa0000000 0x10000000>,
2486 <0xb0000000 0x10000>;
2487 reg-names = "membase", "smmu_iova_base", "smmu_iova_ipa";
2488 iommus = <&apps_smmu 0x0040 0x1>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302489 interrupts = <0 414 0 /* CE0 */ >,
2490 <0 415 0 /* CE1 */ >,
2491 <0 416 0 /* CE2 */ >,
2492 <0 417 0 /* CE3 */ >,
2493 <0 418 0 /* CE4 */ >,
2494 <0 419 0 /* CE5 */ >,
2495 <0 420 0 /* CE6 */ >,
2496 <0 421 0 /* CE7 */ >,
2497 <0 422 0 /* CE8 */ >,
2498 <0 423 0 /* CE9 */ >,
2499 <0 424 0 /* CE10 */ >,
2500 <0 425 0 /* CE11 */ >;
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302501 vdd-0.8-cx-mx-supply = <&pm660_l5>;
2502 vdd-1.8-xo-supply = <&pm660_l9>;
2503 vdd-1.3-rfa-supply = <&pm660_l6>;
2504 vdd-3.3-ch0-supply = <&pm660_l19>;
Hardik Kantilal Patel25c05b42017-12-08 11:10:27 +05302505 qcom,vdd-3.3-ch0-config = <3000000 3312000>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302506 qcom,wlan-msa-memory = <0x100000>;
Anurag Chouhana4f55db2017-11-22 16:35:27 +05302507 qcom,wlan-msa-fixed-region = <&wlan_msa_mem>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302508 qcom,smmu-s1-bypass;
2509 };
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302510
2511 cpubw: qcom,cpubw {
2512 compatible = "qcom,devbw";
2513 governor = "performance";
2514 qcom,src-dst-ports =
Santosh Mardidfc78812017-10-05 13:15:20 +05302515 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_EBI_CH0>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302516 qcom,active-only;
2517 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302518 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2519 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2520 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2521 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2522 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2523 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2524 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2525 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2526 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2527 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2528 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302529 };
2530
Santosh Mardidfc78812017-10-05 13:15:20 +05302531 bwmon: qcom,cpu-bwmon {
2532 compatible = "qcom,bimc-bwmon4";
2533 reg = <0x1436400 0x300>, <0x1436300 0x200>;
2534 reg-names = "base", "global_base";
2535 interrupts = <0 581 4>;
2536 qcom,mport = <0>;
Santosh Mardida0b0f82017-10-13 23:30:22 +05302537 qcom,count-unit = <0x10000>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302538 qcom,hw-timer-hz = <19200000>;
Santosh Mardidfc78812017-10-05 13:15:20 +05302539 qcom,target-dev = <&cpubw>;
Santosh Mardi94519132017-11-15 14:51:25 +05302540 qcom,byte-mid-mask = <0xe000>;
2541 qcom,byte-mid-match = <0xe000>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302542 };
2543
2544 memlat_cpu0: qcom,memlat-cpu0 {
2545 compatible = "qcom,devbw";
2546 governor = "powersave";
2547 qcom,src-dst-ports = <1 512>;
2548 qcom,active-only;
2549 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302550 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2551 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2552 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2553 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2554 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2555 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2556 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2557 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2558 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2559 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2560 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302561 };
2562
Santosh Mardi37a28af2017-10-12 13:03:31 +05302563 memlat_cpu6: qcom,memlat-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302564 compatible = "qcom,devbw";
2565 governor = "powersave";
2566 qcom,src-dst-ports = <1 512>;
2567 qcom,active-only;
2568 status = "ok";
2569 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302570 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2571 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2572 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2573 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2574 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2575 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2576 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2577 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2578 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2579 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2580 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302581 };
2582
Odelu Kukatlafe8d3302017-11-17 10:54:32 +05302583 snoc_cnoc_keepalive: qcom,snoc_cnoc_keepalive {
2584 compatible = "qcom,devbw";
2585 governor = "powersave";
2586 qcom,src-dst-ports = <139 627>;
2587 qcom,active-only;
2588 status = "ok";
2589 qcom,bw-tbl =
2590 < 1 >;
2591 };
2592
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302593 devfreq_memlat_0: qcom,cpu0-memlat-mon {
2594 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302595 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302596 qcom,target-dev = <&memlat_cpu0>;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302597 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302598 qcom,core-dev-table =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302599 < 748800 MHZ_TO_MBPS( 300, 4) >,
2600 < 998400 MHZ_TO_MBPS( 451, 4) >,
2601 < 1209600 MHZ_TO_MBPS( 547, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302602 < 1516800 MHZ_TO_MBPS( 768, 4) >,
2603 < 1708000 MHZ_TO_MBPS(1017, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302604 };
2605
Santosh Mardi37a28af2017-10-12 13:03:31 +05302606 devfreq_memlat_6: qcom,cpu6-memlat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302607 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302608 qcom,cpulist = <&CPU6 &CPU7>;
2609 qcom,target-dev = <&memlat_cpu6>;
2610 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302611 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302612 < 825600 MHZ_TO_MBPS( 300, 4) >,
2613 < 1132800 MHZ_TO_MBPS( 547, 4) >,
2614 < 1363200 MHZ_TO_MBPS(1017, 4) >,
2615 < 1996800 MHZ_TO_MBPS(1555, 4) >,
2616 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302617 };
2618
2619 l3_cpu0: qcom,l3-cpu0 {
2620 compatible = "devfreq-simple-dev";
2621 clock-names = "devfreq_clk";
2622 clocks = <&clock_cpucc L3_CLUSTER0_VOTE_CLK>;
2623 governor = "performance";
2624 };
2625
Santosh Mardi37a28af2017-10-12 13:03:31 +05302626 l3_cpu6: qcom,l3-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302627 compatible = "devfreq-simple-dev";
2628 clock-names = "devfreq_clk";
2629 clocks = <&clock_cpucc L3_CLUSTER1_VOTE_CLK>;
2630 governor = "performance";
2631 };
2632
2633 devfreq_l3lat_0: qcom,cpu0-l3lat-mon {
2634 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302635 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302636 qcom,target-dev = <&l3_cpu0>;
2637 qcom,cachemiss-ev = <0x17>;
2638 qcom,core-dev-table =
Santosh Mardi10d45032017-11-02 17:25:54 +05302639 < 576000 300000000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302640 < 748800 556800000 >,
2641 < 998400 806400000 >,
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302642 < 1209660 940800000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302643 < 1516800 1190400000 >,
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302644 < 1612800 1382400000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302645 < 1708000 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302646 };
2647
Santosh Mardi37a28af2017-10-12 13:03:31 +05302648 devfreq_l3lat_6: qcom,cpu6-l3lat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302649 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302650 qcom,cpulist = <&CPU6 &CPU7>;
2651 qcom,target-dev = <&l3_cpu6>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302652 qcom,cachemiss-ev = <0x17>;
2653 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302654 < 1132800 556800000 >,
2655 < 1363200 806400000 >,
2656 < 1747200 940800000 >,
2657 < 1996800 1190400000 >,
2658 < 2457600 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302659 };
2660
2661 mincpubw: qcom,mincpubw {
2662 compatible = "qcom,devbw";
2663 governor = "powersave";
2664 qcom,src-dst-ports = <1 512>;
2665 qcom,active-only;
2666 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302667 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2668 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2669 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2670 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2671 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2672 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2673 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2674 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2675 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2676 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2677 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302678 };
2679
2680 devfreq-cpufreq {
2681 mincpubw-cpufreq {
2682 target-dev = <&mincpubw>;
2683 cpu-to-dev-map-0 =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302684 < 748800 MHZ_TO_MBPS( 300, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302685 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2686 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2687 < 1708000 MHZ_TO_MBPS( 768, 4) >;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302688 cpu-to-dev-map-6 =
Santosh Mardie49578c2017-10-27 11:24:45 +05302689 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2690 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2691 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2692 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2693 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302694 };
2695 };
Amit Nischal199f15d2017-09-12 10:58:51 +05302696
Jonathan Avilac7a6fd52017-10-12 15:24:05 -07002697 mincpu0bw: qcom,mincpu0bw {
2698 compatible = "qcom,devbw";
2699 governor = "powersave";
2700 qcom,src-dst-ports = <1 512>;
2701 qcom,active-only;
2702 qcom,bw-tbl =
2703 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2704 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2705 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2706 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2707 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2708 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2709 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2710 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2711 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2712 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2713 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
2714 };
2715
2716 mincpu6bw: qcom,mincpu6bw {
2717 compatible = "qcom,devbw";
2718 governor = "powersave";
2719 qcom,src-dst-ports = <1 512>;
2720 qcom,active-only;
2721 qcom,bw-tbl =
2722 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2723 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2724 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2725 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2726 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2727 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2728 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2729 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2730 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2731 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2732 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
2733 };
2734
2735 devfreq_compute0: qcom,devfreq-compute0 {
2736 compatible = "qcom,arm-cpu-mon";
2737 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
2738 qcom,target-dev = <&mincpu0bw>;
2739 qcom,core-dev-table =
2740 < 748800 MHZ_TO_MBPS( 300, 4) >,
2741 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2742 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2743 < 1708000 MHZ_TO_MBPS( 768, 4) >;
2744 };
2745
2746 devfreq_compute6: qcom,devfreq-compute6 {
2747 compatible = "qcom,arm-cpu-mon";
2748 qcom,cpulist = <&CPU6 &CPU7>;
2749 qcom,target-dev = <&mincpu6bw>;
2750 qcom,core-dev-table =
2751 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2752 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2753 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2754 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2755 < 2457600 MHZ_TO_MBPS(1804, 4) >;
2756 };
2757
Raghavendra Rao Ananta28dd4502017-10-18 10:28:31 -07002758 cpu_pmu: cpu-pmu {
2759 compatible = "arm,armv8-pmuv3";
2760 qcom,irq-is-percpu;
2761 interrupts = <1 5 4>;
2762 };
2763
Amit Nischal199f15d2017-09-12 10:58:51 +05302764 gpu_gx_domain_addr: syscon@0x5091508 {
2765 compatible = "syscon";
2766 reg = <0x5091508 0x4>;
2767 };
2768
2769 gpu_gx_sw_reset: syscon@0x5091008 {
2770 compatible = "syscon";
2771 reg = <0x5091008 0x4>;
2772 };
Imran Khan04f08312017-03-30 15:07:43 +05302773};
2774
Ashay Jaiswal81940302017-09-20 15:17:58 +05302775#include "pm660.dtsi"
2776#include "pm660l.dtsi"
2777#include "sdm670-regulator.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +05302778#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302779#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302780#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302781#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302782
2783&usb30_prim_gdsc {
2784 status = "ok";
2785};
2786
2787&ufs_phy_gdsc {
2788 status = "ok";
2789};
2790
2791&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2792 status = "ok";
2793};
2794
2795&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2796 status = "ok";
2797};
2798
2799&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2800 status = "ok";
2801};
2802
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302803&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2804 status = "ok";
2805};
2806
2807&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2808 status = "ok";
2809};
2810
2811&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2812 status = "ok";
2813};
2814
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302815&bps_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302816 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302817 status = "ok";
2818};
2819
2820&ife_0_gdsc {
2821 status = "ok";
2822};
2823
2824&ife_1_gdsc {
2825 status = "ok";
2826};
2827
2828&ipe_0_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302829 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302830 status = "ok";
2831};
2832
2833&ipe_1_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302834 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302835 status = "ok";
2836};
2837
2838&titan_top_gdsc {
2839 status = "ok";
2840};
2841
2842&mdss_core_gdsc {
2843 status = "ok";
Sandeep Pandaae888352017-11-15 13:15:31 +05302844 proxy-supply = <&mdss_core_gdsc>;
2845 qcom,proxy-consumer-enable;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302846};
2847
2848&gpu_cx_gdsc {
2849 status = "ok";
2850};
2851
2852&gpu_gx_gdsc {
2853 clock-names = "core_root_clk";
2854 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2855 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302856 parent-supply = <&pm660l_s2_level>;
Amit Nischal199f15d2017-09-12 10:58:51 +05302857 domain-addr = <&gpu_gx_domain_addr>;
2858 sw-reset = <&gpu_gx_sw_reset>;
2859 qcom,reset-aon-logic;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302860 status = "ok";
2861};
2862
2863&vcodec0_gdsc {
2864 qcom,support-hw-trigger;
2865 status = "ok";
2866};
2867
2868&vcodec1_gdsc {
2869 qcom,support-hw-trigger;
2870 status = "ok";
2871};
2872
2873&venus_gdsc {
2874 status = "ok";
2875};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302876
Sandeep Panda229db242017-10-03 11:32:29 +05302877&mdss_dsi0 {
2878 qcom,core-supply-entries {
2879 #address-cells = <1>;
2880 #size-cells = <0>;
2881
2882 qcom,core-supply-entry@0 {
2883 reg = <0>;
2884 qcom,supply-name = "refgen";
2885 qcom,supply-min-voltage = <0>;
2886 qcom,supply-max-voltage = <0>;
2887 qcom,supply-enable-load = <0>;
2888 qcom,supply-disable-load = <0>;
2889 };
2890 };
2891};
2892
2893&mdss_dsi1 {
2894 qcom,core-supply-entries {
2895 #address-cells = <1>;
2896 #size-cells = <0>;
2897
2898 qcom,core-supply-entry@0 {
2899 reg = <0>;
2900 qcom,supply-name = "refgen";
2901 qcom,supply-min-voltage = <0>;
2902 qcom,supply-max-voltage = <0>;
2903 qcom,supply-enable-load = <0>;
2904 qcom,supply-disable-load = <0>;
2905 };
2906 };
2907};
2908
Padmanabhan Komanduru07137332017-10-20 12:53:23 +05302909&sde_dp {
2910 qcom,core-supply-entries {
2911 #address-cells = <1>;
2912 #size-cells = <0>;
2913
2914 qcom,core-supply-entry@0 {
2915 reg = <0>;
2916 qcom,supply-name = "refgen";
2917 qcom,supply-min-voltage = <0>;
2918 qcom,supply-max-voltage = <0>;
2919 qcom,supply-enable-load = <0>;
2920 qcom,supply-disable-load = <0>;
2921 };
2922 };
2923};
2924
Rohit Kumar14051282017-07-12 11:18:48 +05302925#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05302926#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05302927#include "sdm670-gpu.dtsi"
Suresh Vankadara402d0ca2017-10-26 22:54:54 +05302928#include "sdm670-camera.dtsi"
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +05302929#include "sdm670-thermal.dtsi"
Odelu Kukatlaf197e382017-07-04 19:47:35 +05302930#include "sdm670-bus.dtsi"
Tirupathi Reddyf805ac72017-10-12 14:22:17 +05302931
2932&pm660_div_clk {
2933 status = "ok";
2934};
Tirupathi Reddy53b92a62017-10-26 13:57:42 +05302935
2936&qupv3_se10_i2c {
2937 nx30p6093: nx30p6093@36 {
2938 status = "disabled";
2939 compatible = "nxp,nx30p6093";
2940 reg = <0x36>;
2941 interrupt-parent = <&tlmm>;
2942 interrupts = <5 IRQ_TYPE_NONE>;
2943 nxp,long-wakeup-sec = <28800>; /* 8 hours */
2944 nxp,short-wakeup-ms = <180000>; /* 3 mins */
2945 pinctrl-names = "default";
2946 pinctrl-0 = <&nx30p6093_intr_default>;
2947 };
2948};