blob: bafa6984233f83d2e9adfa0903ec24f115538f6e [file] [log] [blame]
Zhen Kong0ebe1bc32018-01-02 14:53:51 -08001/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Imran Khan04f08312017-03-30 15:07:43 +05302 *
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
Zhen Kong0ebe1bc32018-01-02 14:53:51 -0800548 qseecom_ta_mem: qseecom_ta_region {
549 compatible = "shared-dma-pool";
550 alloc-ranges = <0 0x00000000 0 0xffffffff>;
551 reusable;
552 alignment = <0 0x400000>;
553 size = <0 0x1000000>;
554 };
555
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530556 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
557 compatible = "shared-dma-pool";
558 alloc-ranges = <0 0x00000000 0 0xffffffff>; /* 32-bit */
559 reusable;
560 alignment = <0 0x400000>;
561 size = <0 0x800000>;
562 };
563
564 secure_display_memory: secure_display_region {
565 compatible = "shared-dma-pool";
566 alloc-ranges = <0 0x00000000 0 0xffffffff>;
567 reusable;
568 alignment = <0 0x400000>;
569 size = <0 0x5c00000>;
570 };
571
Jayant Shekharb59d1692017-11-10 14:21:40 +0530572 cont_splash_memory: cont_splash_region@9d400000 {
573 reg = <0x0 0x9d400000 0x0 0x02400000>;
574 label = "cont_splash_region";
575 };
576
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +0530577 dump_mem: mem_dump_region {
578 compatible = "shared-dma-pool";
579 reusable;
580 size = <0 0x2400000>;
581 };
582
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530583 /* global autoconfigured region for contiguous allocations */
584 linux,cma {
585 compatible = "shared-dma-pool";
586 alloc-ranges = <0 0x00000000 0 0xffffffff>;
587 reusable;
588 alignment = <0 0x400000>;
589 size = <0 0x2000000>;
590 linux,cma-default;
591 };
Imran Khan04f08312017-03-30 15:07:43 +0530592 };
593};
594
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530595#include "sdm670-ion.dtsi"
596
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530597#include "sdm670-smp2p.dtsi"
598
c_mtharuce962e42017-12-05 22:41:17 +0530599#include "msm-rdbg.dtsi"
600
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530601#include "sdm670-qupv3.dtsi"
602
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530603#include "sdm670-coresight.dtsi"
Manikanta Kanamarlapudid4abc602017-08-28 19:23:41 +0530604
605#include "sdm670-vidc.dtsi"
606
Raviteja Tamatame97849a2017-09-12 20:25:50 +0530607#include "sdm670-sde-pll.dtsi"
608
609#include "sdm670-sde.dtsi"
610
Imran Khan04f08312017-03-30 15:07:43 +0530611&soc {
612 #address-cells = <1>;
613 #size-cells = <1>;
614 ranges = <0 0 0 0xffffffff>;
615 compatible = "simple-bus";
616
Saranya Chidura0e8b4262017-10-04 13:06:26 +0530617 jtag_mm0: jtagmm@7040000 {
618 compatible = "qcom,jtagv8-mm";
619 reg = <0x7040000 0x1000>;
620 reg-names = "etm-base";
621
622 clocks = <&clock_aop QDSS_CLK>;
623 clock-names = "core_clk";
624
625 qcom,coresight-jtagmm-cpu = <&CPU0>;
626 };
627
628 jtag_mm1: jtagmm@7140000 {
629 compatible = "qcom,jtagv8-mm";
630 reg = <0x7140000 0x1000>;
631 reg-names = "etm-base";
632
633 clocks = <&clock_aop QDSS_CLK>;
634 clock-names = "core_clk";
635
636 qom,coresight-jtagmm-cpu = <&CPU1>;
637 };
638
639 jtag_mm2: jtagmm@7240000 {
640 compatible = "qcom,jtagv8-mm";
641 reg = <0x7240000 0x1000>;
642 reg-names = "etm-base";
643
644 clocks = <&clock_aop QDSS_CLK>;
645 clock-names = "core_clk";
646
647 qcom,coresight-jtagmm-cpu = <&CPU2>;
648 };
649
650 jtag_mm3: jtagmm@7340000 {
651 compatible = "qcom,jtagv8-mm";
652 reg = <0x7340000 0x1000>;
653 reg-names = "etm-base";
654
655 clocks = <&clock_aop QDSS_CLK>;
656 clock-names = "core_clk";
657
658 qcom,coresight-jtagmm-cpu = <&CPU3>;
659 };
660
661 jtag_mm4: jtagmm@7440000 {
662 compatible = "qcom,jtagv8-mm";
663 reg = <0x7440000 0x1000>;
664 reg-names = "etm-base";
665
666 clocks = <&clock_aop QDSS_CLK>;
667 clock-names = "core_clk";
668
669 qcom,coresight-jtagmm-cpu = <&CPU4>;
670 };
671
672 jtag_mm5: jtagmm@7540000 {
673 compatible = "qcom,jtagv8-mm";
674 reg = <0x7540000 0x1000>;
675 reg-names = "etm-base";
676
677 clocks = <&clock_aop QDSS_CLK>;
678 clock-names = "core_clk";
679
680 qcom,coresight-jtagmm-cpu = <&CPU5>;
681 };
682
683 jtag_mm6: jtagmm@7640000 {
684 compatible = "qcom,jtagv8-mm";
685 reg = <0x7640000 0x1000>;
686 reg-names = "etm-base";
687
688 clocks = <&clock_aop QDSS_CLK>;
689 clock-names = "core_clk";
690
691 qcom,coresight-jtagmm-cpu = <&CPU6>;
692 };
693
694 jtag_mm7: jtagmm@7740000 {
695 compatible = "qcom,jtagv8-mm";
696 reg = <0x7740000 0x1000>;
697 reg-names = "etm-base";
698
699 clocks = <&clock_aop QDSS_CLK>;
700 clock-names = "core_clk";
701
702 qcom,coresight-jtagmm-cpu = <&CPU7>;
703 };
704
Imran Khan04f08312017-03-30 15:07:43 +0530705 intc: interrupt-controller@17a00000 {
706 compatible = "arm,gic-v3";
707 #interrupt-cells = <3>;
708 interrupt-controller;
709 #redistributor-regions = <1>;
710 redistributor-stride = <0x0 0x20000>;
711 reg = <0x17a00000 0x10000>, /* GICD */
712 <0x17a60000 0x100000>; /* GICR * 8 */
713 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530714 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530715 };
716
Raghavendra Kakarla04f032162017-12-08 19:11:54 +0530717 pdc: interrupt-controller@b220000{
718 compatible = "qcom,pdc-sdm670";
719 reg = <0xb220000 0x400>;
720 #interrupt-cells = <3>;
721 interrupt-parent = <&intc>;
722 interrupt-controller;
723 };
724
Imran Khan04f08312017-03-30 15:07:43 +0530725 timer {
726 compatible = "arm,armv8-timer";
727 interrupts = <1 1 0xf08>,
728 <1 2 0xf08>,
729 <1 3 0xf08>,
730 <1 0 0xf08>;
731 clock-frequency = <19200000>;
732 };
733
Manoj Prabhu B95b1bc72017-11-17 15:09:29 +0530734 qcom,memshare {
735 compatible = "qcom,memshare";
736
737 qcom,client_1 {
738 compatible = "qcom,memshare-peripheral";
739 qcom,peripheral-size = <0x0>;
740 qcom,client-id = <0>;
741 qcom,allocate-boot-time;
742 label = "modem";
743 };
744
745 qcom,client_2 {
746 compatible = "qcom,memshare-peripheral";
747 qcom,peripheral-size = <0x0>;
748 qcom,client-id = <2>;
749 label = "modem";
750 };
751
752 mem_client_3_size: qcom,client_3 {
753 compatible = "qcom,memshare-peripheral";
754 qcom,peripheral-size = <0x500000>;
755 qcom,client-id = <1>;
Manoj Prabhu B991f9222018-01-03 19:13:56 +0530756 qcom,allocate-boot-time;
Manoj Prabhu B95b1bc72017-11-17 15:09:29 +0530757 label = "modem";
758 };
759 };
760
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530761 qcom,sps {
762 compatible = "qcom,msm_sps_4k";
763 qcom,pipe-attr-ee;
764 };
765
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530766 qcom_cedev: qcedev@1de0000 {
767 compatible = "qcom,qcedev";
768 reg = <0x1de0000 0x20000>,
769 <0x1dc4000 0x24000>;
770 reg-names = "crypto-base","crypto-bam-base";
771 interrupts = <0 272 0>;
772 qcom,bam-pipe-pair = <3>;
773 qcom,ce-hw-instance = <0>;
774 qcom,ce-device = <0>;
775 qcom,ce-hw-shared;
776 qcom,bam-ee = <0>;
777 qcom,msm-bus,name = "qcedev-noc";
778 qcom,msm-bus,num-cases = <2>;
779 qcom,msm-bus,num-paths = <1>;
780 qcom,msm-bus,vectors-KBps =
781 <125 512 0 0>,
782 <125 512 393600 393600>;
783 clock-names = "core_clk_src", "core_clk",
784 "iface_clk", "bus_clk";
785 clocks = <&clock_gcc GCC_CE1_CLK>,
786 <&clock_gcc GCC_CE1_CLK>,
787 <&clock_gcc GCC_CE1_AHB_CLK>,
788 <&clock_gcc GCC_CE1_AXI_CLK>;
789 qcom,ce-opp-freq = <171430000>;
790 qcom,request-bw-before-clk;
mohamed sunfeer4b2ca442017-11-07 14:46:45 +0530791 qcom,smmu-s1-enable;
mohamed sunfeerdce9b922017-11-11 22:14:58 +0530792 iommus = <&apps_smmu 0x706 0x1>,
793 <&apps_smmu 0x716 0x1>;
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530794 };
795
796 qcom_crypto: qcrypto@1de0000 {
797 compatible = "qcom,qcrypto";
798 reg = <0x1de0000 0x20000>,
799 <0x1dc4000 0x24000>;
800 reg-names = "crypto-base","crypto-bam-base";
801 interrupts = <0 272 0>;
802 qcom,bam-pipe-pair = <2>;
803 qcom,ce-hw-instance = <0>;
804 qcom,ce-device = <0>;
805 qcom,bam-ee = <0>;
806 qcom,ce-hw-shared;
807 qcom,clk-mgmt-sus-res;
808 qcom,msm-bus,name = "qcrypto-noc";
809 qcom,msm-bus,num-cases = <2>;
810 qcom,msm-bus,num-paths = <1>;
811 qcom,msm-bus,vectors-KBps =
812 <125 512 0 0>,
813 <125 512 393600 393600>;
814 clock-names = "core_clk_src", "core_clk",
815 "iface_clk", "bus_clk";
816 clocks = <&clock_gcc GCC_CE1_CLK>,
817 <&clock_gcc GCC_CE1_CLK>,
818 <&clock_gcc GCC_CE1_AHB_CLK>,
819 <&clock_gcc GCC_CE1_AXI_CLK>;
820 qcom,ce-opp-freq = <171430000>;
821 qcom,request-bw-before-clk;
822 qcom,use-sw-aes-cbc-ecb-ctr-algo;
823 qcom,use-sw-aes-xts-algo;
824 qcom,use-sw-aes-ccm-algo;
825 qcom,use-sw-aead-algo;
826 qcom,use-sw-ahash-algo;
827 qcom,use-sw-hmac-algo;
mohamed sunfeer4b2ca442017-11-07 14:46:45 +0530828 qcom,smmu-s1-enable;
mohamed sunfeerdce9b922017-11-11 22:14:58 +0530829 iommus = <&apps_smmu 0x704 0x1>,
830 <&apps_smmu 0x714 0x1>;
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530831 };
832
Abir Ghoshb849ab22017-09-19 13:03:11 +0530833 qcom,qbt1000 {
834 compatible = "qcom,qbt1000";
835 clock-names = "core", "iface";
836 clock-frequency = <25000000>;
837 qcom,ipc-gpio = <&tlmm 121 0>;
838 qcom,finger-detect-gpio = <&tlmm 122 0>;
839 };
840
mohamed sunfeer71b31322017-09-20 00:46:46 +0530841 qcom_seecom: qseecom@86d00000 {
842 compatible = "qcom,qseecom";
843 reg = <0x86d00000 0x2200000>;
844 reg-names = "secapp-region";
845 qcom,hlos-num-ce-hw-instances = <1>;
846 qcom,hlos-ce-hw-instance = <0>;
847 qcom,qsee-ce-hw-instance = <0>;
848 qcom,disk-encrypt-pipe-pair = <2>;
849 qcom,support-fde;
850 qcom,no-clock-support;
Neeraj Soni7c4254c2017-11-15 11:13:14 +0530851 qcom,fde-key-size;
mohamed sunfeer71b31322017-09-20 00:46:46 +0530852 qcom,appsbl-qseecom-support;
853 qcom,msm-bus,name = "qseecom-noc";
854 qcom,msm-bus,num-cases = <4>;
855 qcom,msm-bus,num-paths = <1>;
856 qcom,msm-bus,vectors-KBps =
857 <125 512 0 0>,
858 <125 512 200000 400000>,
859 <125 512 300000 800000>,
860 <125 512 400000 1000000>;
861 clock-names = "core_clk_src", "core_clk",
862 "iface_clk", "bus_clk";
863 clocks = <&clock_gcc GCC_CE1_CLK>,
864 <&clock_gcc GCC_CE1_CLK>,
865 <&clock_gcc GCC_CE1_AHB_CLK>,
866 <&clock_gcc GCC_CE1_AXI_CLK>;
867 qcom,ce-opp-freq = <171430000>;
868 qcom,qsee-reentrancy-support = <2>;
869 };
870
mohamed sunfeer732f7572017-09-19 19:51:11 +0530871 qcom_tzlog: tz-log@146bf720 {
872 compatible = "qcom,tz-log";
873 reg = <0x146bf720 0x3000>;
874 qcom,hyplog-enabled;
875 hyplog-address-offset = <0x410>;
876 hyplog-size-offset = <0x414>;
877 };
878
mohamed sunfeer2228b242017-09-19 19:10:08 +0530879 qcom_rng: qrng@793000{
880 compatible = "qcom,msm-rng";
881 reg = <0x793000 0x1000>;
882 qcom,msm-rng-iface-clk;
883 qcom,no-qrng-config;
884 qcom,msm-bus,name = "msm-rng-noc";
885 qcom,msm-bus,num-cases = <2>;
886 qcom,msm-bus,num-paths = <1>;
887 qcom,msm-bus,vectors-KBps =
888 <1 618 0 0>, /* No vote */
889 <1 618 0 800>; /* 100 KHz */
890 clocks = <&clock_gcc GCC_PRNG_AHB_CLK>;
891 clock-names = "iface_clk";
892 };
893
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +0530894 thermal_zones: thermal-zones {};
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530895
896 tsens0: tsens@c222000 {
897 compatible = "qcom,tsens24xx";
898 reg = <0xc222000 0x4>,
899 <0xc263000 0x1ff>;
900 reg-names = "tsens_srot_physical",
901 "tsens_tm_physical";
902 interrupts = <0 506 0>, <0 508 0>;
903 interrupt-names = "tsens-upper-lower", "tsens-critical";
904 #thermal-sensor-cells = <1>;
905 };
906
907 tsens1: tsens@c223000 {
908 compatible = "qcom,tsens24xx";
909 reg = <0xc223000 0x4>,
910 <0xc265000 0x1ff>;
911 reg-names = "tsens_srot_physical",
912 "tsens_tm_physical";
913 interrupts = <0 507 0>, <0 509 0>;
914 interrupt-names = "tsens-upper-lower", "tsens-critical";
915 #thermal-sensor-cells = <1>;
916 };
917
Imran Khan04f08312017-03-30 15:07:43 +0530918 timer@0x17c90000{
919 #address-cells = <1>;
920 #size-cells = <1>;
921 ranges;
922 compatible = "arm,armv7-timer-mem";
923 reg = <0x17c90000 0x1000>;
924 clock-frequency = <19200000>;
925
926 frame@0x17ca0000 {
927 frame-number = <0>;
928 interrupts = <0 7 0x4>,
929 <0 6 0x4>;
930 reg = <0x17ca0000 0x1000>,
931 <0x17cb0000 0x1000>;
932 };
933
934 frame@17cc0000 {
935 frame-number = <1>;
936 interrupts = <0 8 0x4>;
937 reg = <0x17cc0000 0x1000>;
938 status = "disabled";
939 };
940
941 frame@17cd0000 {
942 frame-number = <2>;
943 interrupts = <0 9 0x4>;
944 reg = <0x17cd0000 0x1000>;
945 status = "disabled";
946 };
947
948 frame@17ce0000 {
949 frame-number = <3>;
950 interrupts = <0 10 0x4>;
951 reg = <0x17ce0000 0x1000>;
952 status = "disabled";
953 };
954
955 frame@17cf0000 {
956 frame-number = <4>;
957 interrupts = <0 11 0x4>;
958 reg = <0x17cf0000 0x1000>;
959 status = "disabled";
960 };
961
962 frame@17d00000 {
963 frame-number = <5>;
964 interrupts = <0 12 0x4>;
965 reg = <0x17d00000 0x1000>;
966 status = "disabled";
967 };
968
969 frame@17d10000 {
970 frame-number = <6>;
971 interrupts = <0 13 0x4>;
972 reg = <0x17d10000 0x1000>;
973 status = "disabled";
974 };
975 };
976
977 restart@10ac000 {
978 compatible = "qcom,pshold";
979 reg = <0xC264000 0x4>,
980 <0x1fd3000 0x4>;
981 reg-names = "pshold-base", "tcsr-boot-misc-detect";
982 };
983
Maulik Shah6bf7d5d2017-07-27 09:48:42 +0530984 aop-msg-client {
985 compatible = "qcom,debugfs-qmp-client";
986 mboxes = <&qmp_aop 0>;
987 mbox-names = "aop";
988 };
989
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530990 clock_rpmh: qcom,rpmhclk {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530991 compatible = "qcom,rpmh-clk-sdm670";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530992 #clock-cells = <1>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530993 mboxes = <&apps_rsc 0>;
994 mbox-names = "apps";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +0530995 };
996
997 clock_gcc: qcom,gcc@100000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +0530998 compatible = "qcom,gcc-sdm670", "syscon";
999 reg = <0x100000 0x1f0000>;
1000 reg-names = "cc_base";
1001 vdd_cx-supply = <&pm660l_s3_level>;
1002 vdd_cx_ao-supply = <&pm660l_s3_level_ao>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301003 #clock-cells = <1>;
1004 #reset-cells = <1>;
1005 };
1006
1007 clock_videocc: qcom,videocc@ab00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301008 compatible = "qcom,video_cc-sdm670", "syscon";
1009 reg = <0xab00000 0x10000>;
1010 reg-names = "cc_base";
1011 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301012 #clock-cells = <1>;
1013 #reset-cells = <1>;
1014 };
1015
1016 clock_camcc: qcom,camcc@ad00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301017 compatible = "qcom,cam_cc-sdm670", "syscon";
1018 reg = <0xad00000 0x10000>;
1019 reg-names = "cc_base";
1020 vdd_cx-supply = <&pm660l_s3_level>;
1021 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301022 #clock-cells = <1>;
1023 #reset-cells = <1>;
1024 };
1025
1026 clock_dispcc: qcom,dispcc@af00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301027 compatible = "qcom,dispcc-sdm670", "syscon";
1028 reg = <0xaf00000 0x10000>;
1029 reg-names = "cc_base";
1030 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301031 #clock-cells = <1>;
1032 #reset-cells = <1>;
1033 };
1034
1035 clock_gpucc: qcom,gpucc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301036 compatible = "qcom,gpucc-sdm670", "syscon";
1037 reg = <0x5090000 0x9000>;
1038 reg-names = "cc_base";
1039 vdd_cx-supply = <&pm660l_s3_level>;
1040 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +05301041 qcom,gpu_cc_gmu_clk_src-opp-handle = <&gmu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301042 #clock-cells = <1>;
1043 #reset-cells = <1>;
1044 };
1045
1046 clock_gfx: qcom,gfxcc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301047 compatible = "qcom,gfxcc-sdm670";
1048 reg = <0x5090000 0x9000>;
1049 reg-names = "cc_base";
1050 vdd_gfx-supply = <&pm660l_s2_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +05301051 qcom,gpu_cc_gx_gfx3d_clk_src-opp-handle = <&msm_gpu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301052 #clock-cells = <1>;
1053 #reset-cells = <1>;
1054 };
1055
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301056 cpucc_debug: syscon@17970018 {
1057 compatible = "syscon";
1058 reg = <0x17970018 0x4>;
1059 };
1060
1061 clock_debug: qcom,cc-debug {
1062 compatible = "qcom,debugcc-sdm845";
1063 qcom,cc-count = <5>;
1064 qcom,gcc = <&clock_gcc>;
1065 qcom,videocc = <&clock_videocc>;
1066 qcom,camcc = <&clock_camcc>;
1067 qcom,dispcc = <&clock_dispcc>;
1068 qcom,gpucc = <&clock_gpucc>;
1069 qcom,cpucc = <&cpucc_debug>;
1070 clock-names = "xo_clk_src";
1071 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1072 #clock-cells = <1>;
1073 };
1074
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301075 clock_cpucc: qcom,cpucc@0x17d41000 {
1076 compatible = "qcom,clk-cpu-osm-sdm670";
1077 reg = <0x17d41000 0x1400>,
1078 <0x17d43000 0x1400>,
David Collins1e048402017-11-29 15:43:09 -08001079 <0x17d45800 0x1400>;
1080 reg-names = "osm_l3_base", "osm_pwrcl_base", "osm_perfcl_base";
Deepak Katragadda02617bd2017-11-10 16:03:43 -08001081 vdd_l3_mx_ao-supply = <&pm660l_s1_level_ao>;
1082 vdd_pwrcl_mx_ao-supply = <&pm660l_s1_level_ao>;
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301083
Odelu Kukatla86c179e2017-12-12 19:10:23 +05301084 qcom,mx-turbo-freq = <1440000000 1708000000 3300000001>;
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301085 l3-devs = <&l3_cpu0 &l3_cpu6>;
1086
1087 clock-names = "xo_ao";
1088 clocks = <&clock_rpmh RPMH_CXO_CLK_A>;
Imran Khan04f08312017-03-30 15:07:43 +05301089 #clock-cells = <1>;
Imran Khan04f08312017-03-30 15:07:43 +05301090 };
1091
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301092 clock_aop: qcom,aopclk {
Odelu Kukatla80f617f2017-09-15 19:30:25 +05301093 compatible = "qcom,aop-qmp-clk-v1";
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301094 #clock-cells = <1>;
1095 mboxes = <&qmp_aop 0>;
1096 mbox-names = "qdss_clk";
1097 };
1098
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301099 slim_aud: slim@62dc0000 {
1100 cell-index = <1>;
1101 compatible = "qcom,slim-ngd";
1102 reg = <0x62dc0000 0x2c000>,
1103 <0x62d84000 0x2a000>;
1104 reg-names = "slimbus_physical", "slimbus_bam_physical";
1105 interrupts = <0 163 0>, <0 164 0>;
1106 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
1107 qcom,apps-ch-pipes = <0x780000>;
1108 qcom,ea-pc = <0x290>;
1109 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301110 qcom,iommu-s1-bypass;
1111
1112 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1113 compatible = "qcom,iommu-slim-ctrl-cb";
1114 iommus = <&apps_smmu 0x1826 0x0>,
1115 <&apps_smmu 0x182d 0x0>,
1116 <&apps_smmu 0x182e 0x1>,
1117 <&apps_smmu 0x1830 0x1>;
1118 };
1119
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301120 };
1121
1122 slim_qca: slim@62e40000 {
1123 cell-index = <3>;
1124 compatible = "qcom,slim-ngd";
1125 reg = <0x62e40000 0x2c000>,
1126 <0x62e04000 0x20000>;
1127 reg-names = "slimbus_physical", "slimbus_bam_physical";
1128 interrupts = <0 291 0>, <0 292 0>;
1129 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301130 status = "ok";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301131 qcom,iommu-s1-bypass;
1132
1133 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1134 compatible = "qcom,iommu-slim-ctrl-cb";
1135 iommus = <&apps_smmu 0x1833 0x0>;
1136 };
1137
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301138 /* Slimbus Slave DT for WCN3990 */
1139 btfmslim_codec: wcn3990 {
1140 compatible = "qcom,btfmslim_slave";
1141 elemental-addr = [00 01 20 02 17 02];
1142 qcom,btfm-slim-ifd = "btfmslim_slave_ifd";
1143 qcom,btfm-slim-ifd-elemental-addr = [00 00 20 02 17 02];
1144 };
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301145 };
1146
Imran Khan04f08312017-03-30 15:07:43 +05301147 wdog: qcom,wdt@17980000{
1148 compatible = "qcom,msm-watchdog";
1149 reg = <0x17980000 0x1000>;
1150 reg-names = "wdt-base";
Lingutla Chandrasekhar9fb9ba92017-10-08 21:59:19 +05301151 interrupts = <0 0 0>, <0 1 0>;
Imran Khan04f08312017-03-30 15:07:43 +05301152 qcom,bark-time = <11000>;
Neeraj Upadhyaydbc184d2017-12-07 16:05:39 +05301153 qcom,pet-time = <9360>;
Imran Khan04f08312017-03-30 15:07:43 +05301154 qcom,ipi-ping;
1155 qcom,wakeup-enable;
1156 };
1157
1158 qcom,msm-rtb {
1159 compatible = "qcom,msm-rtb";
1160 qcom,rtb-size = <0x100000>;
1161 };
1162
Lingutla Chandrasekhar4d78d722017-11-10 16:03:44 +05301163 qcom,mpm2-sleep-counter@c221000 {
1164 compatible = "qcom,mpm2-sleep-counter";
1165 reg = <0x0c221000 0x1000>;
1166 clock-frequency = <32768>;
1167 };
1168
Imran Khan04f08312017-03-30 15:07:43 +05301169 qcom,msm-imem@146bf000 {
1170 compatible = "qcom,msm-imem";
1171 reg = <0x146bf000 0x1000>;
1172 ranges = <0x0 0x146bf000 0x1000>;
1173 #address-cells = <1>;
1174 #size-cells = <1>;
1175
1176 mem_dump_table@10 {
1177 compatible = "qcom,msm-imem-mem_dump_table";
1178 reg = <0x10 8>;
1179 };
1180
Lingutla Chandrasekharfa5c13f2017-09-25 11:01:58 +05301181 dload_type@1c {
1182 compatible = "qcom,msm-imem-dload-type";
1183 reg = <0x1c 0x4>;
1184 };
1185
Imran Khan04f08312017-03-30 15:07:43 +05301186 restart_reason@65c {
1187 compatible = "qcom,msm-imem-restart_reason";
1188 reg = <0x65c 4>;
1189 };
1190
1191 pil@94c {
1192 compatible = "qcom,msm-imem-pil";
1193 reg = <0x94c 200>;
1194 };
1195
1196 kaslr_offset@6d0 {
1197 compatible = "qcom,msm-imem-kaslr_offset";
1198 reg = <0x6d0 12>;
1199 };
Lingutla Chandrasekhar3c51f0b2017-09-12 14:21:21 +05301200
1201 boot_stats@6b0 {
1202 compatible = "qcom,msm-imem-boot_stats";
1203 reg = <0x6b0 0x20>;
1204 };
1205
1206 diag_dload@c8 {
1207 compatible = "qcom,msm-imem-diag-dload";
1208 reg = <0xc8 0xc8>;
1209 };
Imran Khan04f08312017-03-30 15:07:43 +05301210 };
1211
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301212 gpi_dma0: qcom,gpi-dma@0x800000 {
Jishnu Prakashfb619282017-11-06 11:07:53 +05301213 #dma-cells = <5>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301214 compatible = "qcom,gpi-dma";
1215 reg = <0x800000 0x60000>;
1216 reg-names = "gpi-top";
1217 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
1218 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
1219 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
1220 <0 256 0>;
1221 qcom,max-num-gpii = <13>;
1222 qcom,gpii-mask = <0xfa>;
1223 qcom,ev-factor = <2>;
1224 iommus = <&apps_smmu 0x0016 0x0>;
Jishnu Prakash71f42792017-11-02 16:04:21 +05301225 qcom,smmu-cfg = <0x1>;
1226 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301227 status = "ok";
1228 };
1229
1230 gpi_dma1: qcom,gpi-dma@0xa00000 {
Jishnu Prakashfb619282017-11-06 11:07:53 +05301231 #dma-cells = <5>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301232 compatible = "qcom,gpi-dma";
1233 reg = <0xa00000 0x60000>;
1234 reg-names = "gpi-top";
1235 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
1236 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
1237 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
1238 <0 299 0>;
1239 qcom,max-num-gpii = <13>;
1240 qcom,gpii-mask = <0xfa>;
1241 qcom,ev-factor = <2>;
Jishnu Prakash71f42792017-11-02 16:04:21 +05301242 qcom,smmu-cfg = <0x1>;
1243 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301244 iommus = <&apps_smmu 0x06d6 0x0>;
1245 status = "ok";
1246 };
1247
Imran Khan04f08312017-03-30 15:07:43 +05301248 cpuss_dump {
1249 compatible = "qcom,cpuss-dump";
1250 qcom,l1_i_cache0 {
1251 qcom,dump-node = <&L1_I_0>;
1252 qcom,dump-id = <0x60>;
1253 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301254 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301255 qcom,dump-node = <&L1_I_100>;
1256 qcom,dump-id = <0x61>;
1257 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301258 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301259 qcom,dump-node = <&L1_I_200>;
1260 qcom,dump-id = <0x62>;
1261 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301262 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301263 qcom,dump-node = <&L1_I_300>;
1264 qcom,dump-id = <0x63>;
1265 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301266 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301267 qcom,dump-node = <&L1_I_400>;
1268 qcom,dump-id = <0x64>;
1269 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301270 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301271 qcom,dump-node = <&L1_I_500>;
1272 qcom,dump-id = <0x65>;
1273 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301274 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301275 qcom,dump-node = <&L1_I_600>;
1276 qcom,dump-id = <0x66>;
1277 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301278 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301279 qcom,dump-node = <&L1_I_700>;
1280 qcom,dump-id = <0x67>;
1281 };
1282 qcom,l1_d_cache0 {
1283 qcom,dump-node = <&L1_D_0>;
1284 qcom,dump-id = <0x80>;
1285 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301286 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301287 qcom,dump-node = <&L1_D_100>;
1288 qcom,dump-id = <0x81>;
1289 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301290 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301291 qcom,dump-node = <&L1_D_200>;
1292 qcom,dump-id = <0x82>;
1293 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301294 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301295 qcom,dump-node = <&L1_D_300>;
1296 qcom,dump-id = <0x83>;
1297 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301298 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301299 qcom,dump-node = <&L1_D_400>;
1300 qcom,dump-id = <0x84>;
1301 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301302 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301303 qcom,dump-node = <&L1_D_500>;
1304 qcom,dump-id = <0x85>;
1305 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301306 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301307 qcom,dump-node = <&L1_D_600>;
1308 qcom,dump-id = <0x86>;
1309 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301310 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301311 qcom,dump-node = <&L1_D_700>;
1312 qcom,dump-id = <0x87>;
1313 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301314 qcom,llcc1_d_cache {
1315 qcom,dump-node = <&LLCC_1>;
1316 qcom,dump-id = <0x140>;
1317 };
1318 qcom,llcc2_d_cache {
1319 qcom,dump-node = <&LLCC_2>;
1320 qcom,dump-id = <0x141>;
1321 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301322 qcom,l1_tlb_dump0 {
1323 qcom,dump-node = <&L1_TLB_0>;
1324 qcom,dump-id = <0x20>;
1325 };
1326 qcom,l1_tlb_dump100 {
1327 qcom,dump-node = <&L1_TLB_100>;
1328 qcom,dump-id = <0x21>;
1329 };
1330 qcom,l1_tlb_dump200 {
1331 qcom,dump-node = <&L1_TLB_200>;
1332 qcom,dump-id = <0x22>;
1333 };
1334 qcom,l1_tlb_dump300 {
1335 qcom,dump-node = <&L1_TLB_300>;
1336 qcom,dump-id = <0x23>;
1337 };
1338 qcom,l1_tlb_dump400 {
1339 qcom,dump-node = <&L1_TLB_400>;
1340 qcom,dump-id = <0x24>;
1341 };
1342 qcom,l1_tlb_dump500 {
1343 qcom,dump-node = <&L1_TLB_500>;
1344 qcom,dump-id = <0x25>;
1345 };
1346 qcom,l1_tlb_dump600 {
1347 qcom,dump-node = <&L1_TLB_600>;
1348 qcom,dump-id = <0x26>;
1349 };
1350 qcom,l1_tlb_dump700 {
1351 qcom,dump-node = <&L1_TLB_700>;
1352 qcom,dump-id = <0x27>;
1353 };
Imran Khan04f08312017-03-30 15:07:43 +05301354 };
1355
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301356 mem_dump {
1357 compatible = "qcom,mem-dump";
1358 memory-region = <&dump_mem>;
1359
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301360 rpmh {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301361 qcom,dump-size = <0x2000000>;
1362 qcom,dump-id = <0xec>;
1363 };
1364
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301365 rpm_sw {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301366 qcom,dump-size = <0x28000>;
1367 qcom,dump-id = <0xea>;
1368 };
1369
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301370 pmic {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301371 qcom,dump-size = <0x10000>;
1372 qcom,dump-id = <0xe4>;
1373 };
1374
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301375 tmc_etf {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301376 qcom,dump-size = <0x10000>;
1377 qcom,dump-id = <0xf0>;
1378 };
1379
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301380 tmc_etfswao {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301381 qcom,dump-size = <0x8400>;
1382 qcom,dump-id = <0xf1>;
1383 };
1384
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301385 tmc_etr_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301386 qcom,dump-size = <0x1000>;
1387 qcom,dump-id = <0x100>;
1388 };
1389
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301390 tmc_etf_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301391 qcom,dump-size = <0x1000>;
1392 qcom,dump-id = <0x101>;
1393 };
1394
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301395 etfswao_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301396 qcom,dump-size = <0x1000>;
1397 qcom,dump-id = <0x102>;
1398 };
1399
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301400 misc_data {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301401 qcom,dump-size = <0x1000>;
1402 qcom,dump-id = <0xe8>;
1403 };
1404
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301405 power_regs {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301406 qcom,dump-size = <0x100000>;
1407 qcom,dump-id = <0xed>;
1408 };
1409 };
1410
Imran Khan04f08312017-03-30 15:07:43 +05301411 kryo3xx-erp {
1412 compatible = "arm,arm64-kryo3xx-cpu-erp";
1413 interrupts = <1 6 4>,
1414 <1 7 4>,
1415 <0 34 4>,
1416 <0 35 4>;
1417
1418 interrupt-names = "l1-l2-faultirq",
1419 "l1-l2-errirq",
1420 "l3-scu-errirq",
1421 "l3-scu-faultirq";
1422 };
1423
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301424 qcom,ipc-spinlock@1f40000 {
1425 compatible = "qcom,ipc-spinlock-sfpb";
1426 reg = <0x1f40000 0x8000>;
1427 qcom,num-locks = <8>;
1428 };
1429
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301430 qcom,smem@86000000 {
1431 compatible = "qcom,smem";
1432 reg = <0x86000000 0x200000>,
1433 <0x17911008 0x4>,
1434 <0x778000 0x7000>,
1435 <0x1fd4000 0x8>;
1436 reg-names = "smem", "irq-reg-base", "aux-mem1",
1437 "smem_targ_info_reg";
1438 qcom,mpu-enabled;
1439 };
1440
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301441 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301442 compatible = "qcom,qmp-mbox";
1443 label = "aop";
1444 reg = <0xc300000 0x100000>,
1445 <0x1799000c 0x4>;
1446 reg-names = "msgram", "irq-reg-base";
1447 qcom,irq-mask = <0x1>;
1448 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301449 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301450 mbox-desc-offset = <0x0>;
1451 #mbox-cells = <1>;
1452 };
1453
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301454 qcom,glink-smem-native-xprt-modem@86000000 {
1455 compatible = "qcom,glink-smem-native-xprt";
1456 reg = <0x86000000 0x200000>,
1457 <0x1799000c 0x4>;
1458 reg-names = "smem", "irq-reg-base";
1459 qcom,irq-mask = <0x1000>;
1460 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1461 label = "mpss";
1462 };
1463
1464 qcom,glink-smem-native-xprt-adsp@86000000 {
1465 compatible = "qcom,glink-smem-native-xprt";
1466 reg = <0x86000000 0x200000>,
1467 <0x1799000c 0x4>;
1468 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301469 qcom,irq-mask = <0x1000000>;
1470 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301471 label = "lpass";
1472 qcom,qos-config = <&glink_qos_adsp>;
1473 qcom,ramp-time = <0xaf>;
1474 };
1475
1476 glink_qos_adsp: qcom,glink-qos-config-adsp {
1477 compatible = "qcom,glink-qos-config";
1478 qcom,flow-info = <0x3c 0x0>,
1479 <0x3c 0x0>,
1480 <0x3c 0x0>,
1481 <0x3c 0x0>;
1482 qcom,mtu-size = <0x800>;
1483 qcom,tput-stats-cycle = <0xa>;
1484 };
1485
1486 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1487 compatible = "qcom,glink-spi-xprt";
1488 label = "wdsp";
1489 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1490 qcom,qos-config = <&glink_qos_wdsp>;
1491 qcom,ramp-time = <0x10>,
1492 <0x20>,
1493 <0x30>,
1494 <0x40>;
1495 };
1496
1497 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1498 compatible = "qcom,glink-fifo-config";
1499 qcom,out-read-idx-reg = <0x12000>;
1500 qcom,out-write-idx-reg = <0x12004>;
1501 qcom,in-read-idx-reg = <0x1200C>;
1502 qcom,in-write-idx-reg = <0x12010>;
1503 };
1504
1505 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1506 compatible = "qcom,glink-qos-config";
1507 qcom,flow-info = <0x80 0x0>,
1508 <0x70 0x1>,
1509 <0x60 0x2>,
1510 <0x50 0x3>;
1511 qcom,mtu-size = <0x800>;
1512 qcom,tput-stats-cycle = <0xa>;
1513 };
1514
1515 qcom,glink-smem-native-xprt-cdsp@86000000 {
1516 compatible = "qcom,glink-smem-native-xprt";
1517 reg = <0x86000000 0x200000>,
1518 <0x1799000c 0x4>;
1519 reg-names = "smem", "irq-reg-base";
1520 qcom,irq-mask = <0x10>;
1521 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1522 label = "cdsp";
1523 };
1524
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301525 glink_mpss: qcom,glink-ssr-modem {
1526 compatible = "qcom,glink_ssr";
1527 label = "modem";
1528 qcom,edge = "mpss";
1529 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1530 qcom,xprt = "smem";
1531 };
1532
1533 glink_lpass: qcom,glink-ssr-adsp {
1534 compatible = "qcom,glink_ssr";
1535 label = "adsp";
1536 qcom,edge = "lpass";
1537 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1538 qcom,xprt = "smem";
1539 };
1540
1541 glink_cdsp: qcom,glink-ssr-cdsp {
1542 compatible = "qcom,glink_ssr";
1543 label = "cdsp";
1544 qcom,edge = "cdsp";
1545 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1546 qcom,xprt = "smem";
1547 };
1548
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301549 qcom,ipc_router {
1550 compatible = "qcom,ipc_router";
1551 qcom,node-id = <1>;
1552 };
1553
1554 qcom,ipc_router_modem_xprt {
1555 compatible = "qcom,ipc_router_glink_xprt";
1556 qcom,ch-name = "IPCRTR";
1557 qcom,xprt-remote = "mpss";
1558 qcom,glink-xprt = "smem";
1559 qcom,xprt-linkid = <1>;
1560 qcom,xprt-version = <1>;
1561 qcom,fragmented-data;
1562 };
1563
1564 qcom,ipc_router_q6_xprt {
1565 compatible = "qcom,ipc_router_glink_xprt";
1566 qcom,ch-name = "IPCRTR";
1567 qcom,xprt-remote = "lpass";
1568 qcom,glink-xprt = "smem";
1569 qcom,xprt-linkid = <1>;
1570 qcom,xprt-version = <1>;
1571 qcom,fragmented-data;
1572 };
1573
1574 qcom,ipc_router_cdsp_xprt {
1575 compatible = "qcom,ipc_router_glink_xprt";
1576 qcom,ch-name = "IPCRTR";
1577 qcom,xprt-remote = "cdsp";
1578 qcom,glink-xprt = "smem";
1579 qcom,xprt-linkid = <1>;
1580 qcom,xprt-version = <1>;
1581 qcom,fragmented-data;
1582 };
1583
Dhoat Harpal11d34482017-06-06 21:00:14 +05301584 qcom,glink_pkt {
1585 compatible = "qcom,glinkpkt";
1586
1587 qcom,glinkpkt-at-mdm0 {
1588 qcom,glinkpkt-transport = "smem";
1589 qcom,glinkpkt-edge = "mpss";
1590 qcom,glinkpkt-ch-name = "DS";
1591 qcom,glinkpkt-dev-name = "at_mdm0";
1592 };
1593
1594 qcom,glinkpkt-loopback_cntl {
1595 qcom,glinkpkt-transport = "lloop";
1596 qcom,glinkpkt-edge = "local";
1597 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1598 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1599 };
1600
1601 qcom,glinkpkt-loopback_data {
1602 qcom,glinkpkt-transport = "lloop";
1603 qcom,glinkpkt-edge = "local";
1604 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1605 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1606 };
1607
1608 qcom,glinkpkt-apr-apps2 {
1609 qcom,glinkpkt-transport = "smem";
1610 qcom,glinkpkt-edge = "adsp";
1611 qcom,glinkpkt-ch-name = "apr_apps2";
1612 qcom,glinkpkt-dev-name = "apr_apps2";
1613 };
1614
1615 qcom,glinkpkt-data40-cntl {
1616 qcom,glinkpkt-transport = "smem";
1617 qcom,glinkpkt-edge = "mpss";
1618 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1619 qcom,glinkpkt-dev-name = "smdcntl8";
1620 };
1621
1622 qcom,glinkpkt-data1 {
1623 qcom,glinkpkt-transport = "smem";
1624 qcom,glinkpkt-edge = "mpss";
1625 qcom,glinkpkt-ch-name = "DATA1";
1626 qcom,glinkpkt-dev-name = "smd7";
1627 };
1628
1629 qcom,glinkpkt-data4 {
1630 qcom,glinkpkt-transport = "smem";
1631 qcom,glinkpkt-edge = "mpss";
1632 qcom,glinkpkt-ch-name = "DATA4";
1633 qcom,glinkpkt-dev-name = "smd8";
1634 };
1635
1636 qcom,glinkpkt-data11 {
1637 qcom,glinkpkt-transport = "smem";
1638 qcom,glinkpkt-edge = "mpss";
1639 qcom,glinkpkt-ch-name = "DATA11";
1640 qcom,glinkpkt-dev-name = "smd11";
1641 };
1642 };
1643
Imran Khan04f08312017-03-30 15:07:43 +05301644 qcom,chd_sliver {
1645 compatible = "qcom,core-hang-detect";
1646 label = "silver";
1647 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1648 0x17e30058 0x17e40058 0x17e50058>;
1649 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1650 0x17e30060 0x17e40060 0x17e50060>;
1651 };
1652
1653 qcom,chd_gold {
1654 compatible = "qcom,core-hang-detect";
1655 label = "gold";
1656 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1657 qcom,config-arr = <0x17e60060 0x17e70060>;
1658 };
1659
1660 qcom,ghd {
1661 compatible = "qcom,gladiator-hang-detect-v2";
1662 qcom,threshold-arr = <0x1799041c 0x17990420>;
1663 qcom,config-reg = <0x17990434>;
1664 };
1665
1666 qcom,msm-gladiator-v3@17900000 {
1667 compatible = "qcom,msm-gladiator-v3";
1668 reg = <0x17900000 0xd080>;
1669 reg-names = "gladiator_base";
1670 interrupts = <0 17 0>;
1671 };
1672
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301673 eud: qcom,msm-eud@88e0000 {
1674 compatible = "qcom,msm-eud";
1675 interrupt-names = "eud_irq";
1676 interrupts = <GIC_SPI 492 IRQ_TYPE_LEVEL_HIGH>;
1677 reg = <0x88e0000 0x2000>;
1678 reg-names = "eud_base";
Lingutla Chandrasekhar5422daf2017-10-26 11:27:32 +05301679 clocks = <&clock_gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>;
1680 clock-names = "cfg_ahb_clk";
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301681 };
1682
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301683 qcom,llcc@1100000 {
1684 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1685 reg = <0x1100000 0x250000>;
1686 reg-names = "llcc_base";
1687 qcom,llcc-banks-off = <0x0 0x80000 >;
1688 qcom,llcc-broadcast-off = <0x200000>;
1689
1690 llcc: qcom,sdm670-llcc {
1691 compatible = "qcom,sdm670-llcc";
1692 #cache-cells = <1>;
1693 max-slices = <32>;
1694 qcom,dump-size = <0x80000>;
1695 };
1696
Sankaran Nampoothiri0c5dac02017-11-06 11:53:52 +05301697 qcom,llcc-perfmon {
1698 compatible = "qcom,llcc-perfmon";
1699 };
1700
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301701 qcom,llcc-erp {
1702 compatible = "qcom,llcc-erp";
1703 interrupt-names = "ecc_irq";
1704 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1705 };
1706
1707 qcom,llcc-amon {
1708 compatible = "qcom,llcc-amon";
1709 };
1710
1711 LLCC_1: llcc_1_dcache {
1712 qcom,dump-size = <0xd8000>;
1713 };
1714
1715 LLCC_2: llcc_2_dcache {
1716 qcom,dump-size = <0xd8000>;
1717 };
1718 };
1719
Maulik Shah210773d2017-06-15 09:49:12 +05301720 cmd_db: qcom,cmd-db@c3f000c {
1721 compatible = "qcom,cmd-db";
1722 reg = <0xc3f000c 0x8>;
1723 };
1724
Maulik Shahc77d1d22017-06-15 14:04:50 +05301725 apps_rsc: mailbox@179e0000 {
1726 compatible = "qcom,tcs-drv";
1727 label = "apps_rsc";
1728 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1729 interrupts = <0 5 0>;
1730 #mbox-cells = <1>;
1731 qcom,drv-id = <2>;
1732 qcom,tcs-config = <ACTIVE_TCS 2>,
1733 <SLEEP_TCS 3>,
1734 <WAKE_TCS 3>,
1735 <CONTROL_TCS 1>;
1736 };
1737
Maulik Shahda3941f2017-06-15 09:41:38 +05301738 disp_rsc: mailbox@af20000 {
1739 compatible = "qcom,tcs-drv";
1740 label = "display_rsc";
1741 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1742 interrupts = <0 129 0>;
1743 #mbox-cells = <1>;
1744 qcom,drv-id = <0>;
1745 qcom,tcs-config = <SLEEP_TCS 1>,
1746 <WAKE_TCS 1>,
1747 <ACTIVE_TCS 0>,
1748 <CONTROL_TCS 1>;
1749 };
1750
Maulik Shah0dd203f2017-06-15 09:44:59 +05301751 system_pm {
1752 compatible = "qcom,system-pm";
1753 mboxes = <&apps_rsc 0>;
1754 };
1755
Imran Khan04f08312017-03-30 15:07:43 +05301756 dcc: dcc_v2@10a2000 {
1757 compatible = "qcom,dcc_v2";
1758 reg = <0x10a2000 0x1000>,
1759 <0x10ae000 0x2000>;
1760 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301761
1762 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301763 };
1764
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301765 spmi_bus: qcom,spmi@c440000 {
1766 compatible = "qcom,spmi-pmic-arb";
1767 reg = <0xc440000 0x1100>,
1768 <0xc600000 0x2000000>,
1769 <0xe600000 0x100000>,
1770 <0xe700000 0xa0000>,
1771 <0xc40a000 0x26000>;
1772 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1773 interrupt-names = "periph_irq";
1774 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1775 qcom,ee = <0>;
1776 qcom,channel = <0>;
1777 #address-cells = <2>;
1778 #size-cells = <0>;
1779 interrupt-controller;
1780 #interrupt-cells = <4>;
1781 cell-index = <0>;
1782 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301783
1784 ufsphy_mem: ufsphy_mem@1d87000 {
1785 reg = <0x1d87000 0xe00>; /* PHY regs */
1786 reg-names = "phy_mem";
1787 #phy-cells = <0>;
1788
1789 lanes-per-direction = <1>;
1790
1791 clock-names = "ref_clk_src",
1792 "ref_clk",
1793 "ref_aux_clk";
1794 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1795 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1796 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1797
1798 status = "disabled";
1799 };
1800
1801 ufshc_mem: ufshc@1d84000 {
1802 compatible = "qcom,ufshc";
1803 reg = <0x1d84000 0x3000>;
1804 interrupts = <0 265 0>;
1805 phys = <&ufsphy_mem>;
1806 phy-names = "ufsphy";
1807
1808 lanes-per-direction = <1>;
1809 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1810
1811 clock-names =
1812 "core_clk",
1813 "bus_aggr_clk",
1814 "iface_clk",
1815 "core_clk_unipro",
1816 "core_clk_ice",
1817 "ref_clk",
1818 "tx_lane0_sync_clk",
1819 "rx_lane0_sync_clk";
1820 clocks =
1821 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1822 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1823 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1824 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1825 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1826 <&clock_rpmh RPMH_CXO_CLK>,
1827 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1828 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1829 freq-table-hz =
1830 <50000000 200000000>,
1831 <0 0>,
1832 <0 0>,
1833 <37500000 150000000>,
1834 <75000000 300000000>,
1835 <0 0>,
1836 <0 0>,
1837 <0 0>;
1838
Sayali Lokhandeaa3db742017-10-09 15:13:01 +05301839 non-removable;
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301840 qcom,msm-bus,name = "ufshc_mem";
1841 qcom,msm-bus,num-cases = <12>;
1842 qcom,msm-bus,num-paths = <2>;
1843 qcom,msm-bus,vectors-KBps =
1844 /*
1845 * During HS G3 UFS runs at nominal voltage corner, vote
1846 * higher bandwidth to push other buses in the data path
1847 * to run at nominal to achieve max throughput.
1848 * 4GBps pushes BIMC to run at nominal.
1849 * 200MBps pushes CNOC to run at nominal.
1850 * Vote for half of this bandwidth for HS G3 1-lane.
1851 * For max bandwidth, vote high enough to push the buses
1852 * to run in turbo voltage corner.
1853 */
1854 <123 512 0 0>, <1 757 0 0>, /* No vote */
1855 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1856 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1857 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1858 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1859 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1860 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1861 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1862 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1863 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1864 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1865 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1866
1867 qcom,bus-vector-names = "MIN",
1868 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1869 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1870 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1871 "MAX";
1872
1873 /* PM QoS */
1874 qcom,pm-qos-cpu-groups = <0x3f 0xC0>;
1875 qcom,pm-qos-cpu-group-latency-us = <70 70>;
1876 qcom,pm-qos-default-cpu = <0>;
1877
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301878 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1879 reset-names = "core_reset";
1880
1881 status = "disabled";
1882 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301883
1884 qcom,lpass@62400000 {
1885 compatible = "qcom,pil-tz-generic";
1886 reg = <0x62400000 0x00100>;
1887 interrupts = <0 162 1>;
1888
1889 vdd_cx-supply = <&pm660l_l9_level>;
1890 qcom,proxy-reg-names = "vdd_cx";
1891 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1892
1893 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1894 clock-names = "xo";
1895 qcom,proxy-clock-names = "xo";
1896
1897 qcom,pas-id = <1>;
1898 qcom,proxy-timeout-ms = <10000>;
1899 qcom,smem-id = <423>;
1900 qcom,sysmon-id = <1>;
1901 qcom,ssctl-instance-id = <0x14>;
1902 qcom,firmware-name = "adsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301903 qcom,signal-aop;
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301904 memory-region = <&pil_adsp_mem>;
1905
1906 /* GPIO inputs from lpass */
1907 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1908 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1909 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1910 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1911
1912 /* GPIO output to lpass */
1913 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301914
1915 mboxes = <&qmp_aop 0>;
1916 mbox-names = "adsp-pil";
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301917 status = "ok";
1918 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301919
Sahitya Tummala02e49182017-09-19 10:54:42 +05301920 qcom,rmtfs_sharedmem@0 {
1921 compatible = "qcom,sharedmem-uio";
1922 reg = <0x0 0x200000>;
1923 reg-names = "rmtfs";
1924 qcom,client-id = <0x00000001>;
Sahitya Tummala57f7b572017-10-23 10:29:03 +05301925 qcom,guard-memory;
Sahitya Tummala02e49182017-09-19 10:54:42 +05301926 };
1927
Mohammed Javidf97a10e2017-10-08 13:11:26 +05301928 qcom,msm_gsi {
1929 compatible = "qcom,msm_gsi";
1930 };
1931
Mohammed Javid736c25c2017-06-19 13:23:18 +05301932 qcom,rmnet-ipa {
1933 compatible = "qcom,rmnet-ipa3";
1934 qcom,rmnet-ipa-ssr;
1935 qcom,ipa-loaduC;
1936 qcom,ipa-advertise-sg-support;
1937 qcom,ipa-napi-enable;
1938 };
1939
1940 ipa_hw: qcom,ipa@01e00000 {
1941 compatible = "qcom,ipa";
1942 reg = <0x1e00000 0x34000>,
1943 <0x1e04000 0x2c000>;
1944 reg-names = "ipa-base", "gsi-base";
1945 interrupts =
1946 <0 311 0>,
1947 <0 432 0>;
1948 interrupt-names = "ipa-irq", "gsi-irq";
1949 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1950 qcom,ipa-hw-mode = <1>;
1951 qcom,ee = <0>;
1952 qcom,use-ipa-tethering-bridge;
1953 qcom,modem-cfg-emb-pipe-flt;
1954 qcom,ipa-wdi2;
1955 qcom,use-64-bit-dma-mask;
1956 qcom,arm-smmu;
Mohammed Javid736c25c2017-06-19 13:23:18 +05301957 qcom,bandwidth-vote-for-ipa;
1958 qcom,msm-bus,name = "ipa";
Mohammed Javid963acd02018-01-17 12:59:40 +05301959 qcom,msm-bus,num-cases = <5>;
Mohammed Javid736c25c2017-06-19 13:23:18 +05301960 qcom,msm-bus,num-paths = <4>;
1961 qcom,msm-bus,vectors-KBps =
1962 /* No vote */
1963 <90 512 0 0>,
1964 <90 585 0 0>,
1965 <1 676 0 0>,
1966 <143 777 0 0>,
Mohammed Javid963acd02018-01-17 12:59:40 +05301967 /* SVS2 */
1968 <90 512 80000 600000>,
1969 <90 585 80000 350000>,
1970 <1 676 40000 40000>, /*gcc_config_noc_clk_src */
1971 <143 777 0 75>, /* IB defined for IPA2X_clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301972 /* SVS */
1973 <90 512 80000 640000>,
1974 <90 585 80000 640000>,
1975 <1 676 80000 80000>,
Mohammed Javid963acd02018-01-17 12:59:40 +05301976 <143 777 0 150>, /* IB defined for IPA2X_clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301977 /* NOMINAL */
1978 <90 512 206000 960000>,
1979 <90 585 206000 960000>,
1980 <1 676 206000 160000>,
Mohammed Javid963acd02018-01-17 12:59:40 +05301981 <143 777 0 300>, /* IB defined for IPA2X_clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05301982 /* TURBO */
1983 <90 512 206000 3600000>,
1984 <90 585 206000 3600000>,
1985 <1 676 206000 300000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05301986 <143 777 0 355>; /* IB defined for IPA clk in MHz*/
Mohammed Javid963acd02018-01-17 12:59:40 +05301987 qcom,bus-vector-names =
1988 "MIN", "SVS2", "SVS", "NOMINAL", "TURBO";
Mohammed Javid736c25c2017-06-19 13:23:18 +05301989
1990 /* IPA RAM mmap */
1991 qcom,ipa-ram-mmap = <
1992 0x280 /* ofst_start; */
1993 0x0 /* nat_ofst; */
1994 0x0 /* nat_size; */
1995 0x288 /* v4_flt_hash_ofst; */
1996 0x78 /* v4_flt_hash_size; */
1997 0x4000 /* v4_flt_hash_size_ddr; */
1998 0x308 /* v4_flt_nhash_ofst; */
1999 0x78 /* v4_flt_nhash_size; */
2000 0x4000 /* v4_flt_nhash_size_ddr; */
2001 0x388 /* v6_flt_hash_ofst; */
2002 0x78 /* v6_flt_hash_size; */
2003 0x4000 /* v6_flt_hash_size_ddr; */
2004 0x408 /* v6_flt_nhash_ofst; */
2005 0x78 /* v6_flt_nhash_size; */
2006 0x4000 /* v6_flt_nhash_size_ddr; */
2007 0xf /* v4_rt_num_index; */
2008 0x0 /* v4_modem_rt_index_lo; */
2009 0x7 /* v4_modem_rt_index_hi; */
2010 0x8 /* v4_apps_rt_index_lo; */
2011 0xe /* v4_apps_rt_index_hi; */
2012 0x488 /* v4_rt_hash_ofst; */
2013 0x78 /* v4_rt_hash_size; */
2014 0x4000 /* v4_rt_hash_size_ddr; */
2015 0x508 /* v4_rt_nhash_ofst; */
2016 0x78 /* v4_rt_nhash_size; */
2017 0x4000 /* v4_rt_nhash_size_ddr; */
2018 0xf /* v6_rt_num_index; */
2019 0x0 /* v6_modem_rt_index_lo; */
2020 0x7 /* v6_modem_rt_index_hi; */
2021 0x8 /* v6_apps_rt_index_lo; */
2022 0xe /* v6_apps_rt_index_hi; */
2023 0x588 /* v6_rt_hash_ofst; */
2024 0x78 /* v6_rt_hash_size; */
2025 0x4000 /* v6_rt_hash_size_ddr; */
2026 0x608 /* v6_rt_nhash_ofst; */
2027 0x78 /* v6_rt_nhash_size; */
2028 0x4000 /* v6_rt_nhash_size_ddr; */
2029 0x688 /* modem_hdr_ofst; */
2030 0x140 /* modem_hdr_size; */
2031 0x7c8 /* apps_hdr_ofst; */
2032 0x0 /* apps_hdr_size; */
2033 0x800 /* apps_hdr_size_ddr; */
2034 0x7d0 /* modem_hdr_proc_ctx_ofst; */
2035 0x200 /* modem_hdr_proc_ctx_size; */
2036 0x9d0 /* apps_hdr_proc_ctx_ofst; */
2037 0x200 /* apps_hdr_proc_ctx_size; */
2038 0x0 /* apps_hdr_proc_ctx_size_ddr; */
2039 0x0 /* modem_comp_decomp_ofst; diff */
2040 0x0 /* modem_comp_decomp_size; diff */
2041 0xbd8 /* modem_ofst; */
2042 0x1024 /* modem_size; */
2043 0x2000 /* apps_v4_flt_hash_ofst; */
2044 0x0 /* apps_v4_flt_hash_size; */
2045 0x2000 /* apps_v4_flt_nhash_ofst; */
2046 0x0 /* apps_v4_flt_nhash_size; */
2047 0x2000 /* apps_v6_flt_hash_ofst; */
2048 0x0 /* apps_v6_flt_hash_size; */
2049 0x2000 /* apps_v6_flt_nhash_ofst; */
2050 0x0 /* apps_v6_flt_nhash_size; */
2051 0x80 /* uc_info_ofst; */
2052 0x200 /* uc_info_size; */
2053 0x2000 /* end_ofst; */
2054 0x2000 /* apps_v4_rt_hash_ofst; */
2055 0x0 /* apps_v4_rt_hash_size; */
2056 0x2000 /* apps_v4_rt_nhash_ofst; */
2057 0x0 /* apps_v4_rt_nhash_size; */
2058 0x2000 /* apps_v6_rt_hash_ofst; */
2059 0x0 /* apps_v6_rt_hash_size; */
2060 0x2000 /* apps_v6_rt_nhash_ofst; */
2061 0x0 /* apps_v6_rt_nhash_size; */
2062 0x1c00 /* uc_event_ring_ofst; */
2063 0x400 /* uc_event_ring_size; */
2064 >;
2065
2066 /* smp2p gpio information */
2067 qcom,smp2pgpio_map_ipa_1_out {
2068 compatible = "qcom,smp2pgpio-map-ipa-1-out";
2069 gpios = <&smp2pgpio_ipa_1_out 0 0>;
2070 };
2071
2072 qcom,smp2pgpio_map_ipa_1_in {
2073 compatible = "qcom,smp2pgpio-map-ipa-1-in";
2074 gpios = <&smp2pgpio_ipa_1_in 0 0>;
2075 };
2076
2077 ipa_smmu_ap: ipa_smmu_ap {
2078 compatible = "qcom,ipa-smmu-ap-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302079 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302080 iommus = <&apps_smmu 0x720 0x0>;
2081 qcom,iova-mapping = <0x20000000 0x40000000>;
2082 };
2083
2084 ipa_smmu_wlan: ipa_smmu_wlan {
2085 compatible = "qcom,ipa-smmu-wlan-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302086 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302087 iommus = <&apps_smmu 0x721 0x0>;
2088 };
2089
2090 ipa_smmu_uc: ipa_smmu_uc {
2091 compatible = "qcom,ipa-smmu-uc-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302092 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302093 iommus = <&apps_smmu 0x722 0x0>;
2094 qcom,iova-mapping = <0x40000000 0x20000000>;
2095 };
2096 };
2097
2098 qcom,ipa_fws {
2099 compatible = "qcom,pil-tz-generic";
2100 qcom,pas-id = <0xf>;
2101 qcom,firmware-name = "ipa_fws";
2102 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302103
2104 pil_modem: qcom,mss@4080000 {
2105 compatible = "qcom,pil-q6v55-mss";
2106 reg = <0x4080000 0x100>,
2107 <0x1f63000 0x008>,
2108 <0x1f65000 0x008>,
2109 <0x1f64000 0x008>,
2110 <0x4180000 0x020>,
2111 <0xc2b0000 0x004>,
2112 <0xb2e0100 0x004>,
2113 <0x4180044 0x004>;
2114 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
2115 "halt_nc", "rmb_base", "restart_reg",
2116 "pdc_sync", "alt_reset";
2117
2118 clocks = <&clock_rpmh RPMH_CXO_CLK>,
2119 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
2120 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
2121 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
2122 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
2123 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
2124 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
2125 <&clock_gcc GCC_PRNG_AHB_CLK>;
2126 clock-names = "xo", "iface_clk", "bus_clk",
2127 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
2128 "mnoc_axi_clk", "prng_clk";
2129 qcom,proxy-clock-names = "xo", "prng_clk";
2130 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
2131 "gpll0_mss_clk", "snoc_axi_clk",
2132 "mnoc_axi_clk";
2133
2134 interrupts = <0 266 1>;
2135 vdd_cx-supply = <&pm660l_s3_level>;
2136 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
2137 vdd_mx-supply = <&pm660l_s1_level>;
2138 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Jitendra Sharma2e981ef2017-10-30 12:16:23 +05302139 vdd_mss-supply = <&pm660_s5_level>;
2140 vdd_mss-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302141 qcom,firmware-name = "modem";
2142 qcom,pil-self-auth;
2143 qcom,sysmon-id = <0>;
Avaneesh Kumar Dwivedi8d336612017-11-09 16:48:25 +05302144 qcom,minidump-id = <3>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302145 qcom,ssctl-instance-id = <0x12>;
2146 qcom,override-acc;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302147 qcom,signal-aop;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302148 qcom,qdsp6v65-1-0;
Jitendra Sharma93dd7fc2017-10-14 17:38:55 +05302149 qcom,mss_pdc_offset = <9>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302150 status = "ok";
2151 memory-region = <&pil_modem_mem>;
2152 qcom,mem-protect-id = <0xF>;
2153
2154 /* GPIO inputs from mss */
2155 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
2156 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
2157 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
2158 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
2159 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
2160
2161 /* GPIO output to mss */
2162 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302163
2164 mboxes = <&qmp_aop 0>;
2165 mbox-names = "mss-pil";
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302166 qcom,mba-mem@0 {
2167 compatible = "qcom,pil-mba-mem";
2168 memory-region = <&pil_mba_mem>;
2169 };
2170 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05302171
2172 qcom,venus@aae0000 {
2173 compatible = "qcom,pil-tz-generic";
2174 reg = <0xaae0000 0x4000>;
2175
2176 vdd-supply = <&venus_gdsc>;
2177 qcom,proxy-reg-names = "vdd";
2178
2179 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
2180 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
2181 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
2182 clock-names = "core_clk", "iface_clk", "bus_clk";
2183 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
2184
2185 qcom,pas-id = <9>;
2186 qcom,msm-bus,name = "pil-venus";
2187 qcom,msm-bus,num-cases = <2>;
2188 qcom,msm-bus,num-paths = <1>;
2189 qcom,msm-bus,vectors-KBps =
2190 <63 512 0 0>,
2191 <63 512 0 304000>;
2192 qcom,proxy-timeout-ms = <100>;
2193 qcom,firmware-name = "venus";
2194 memory-region = <&pil_video_mem>;
2195 status = "ok";
2196 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05302197
2198 qcom,turing@8300000 {
2199 compatible = "qcom,pil-tz-generic";
2200 reg = <0x8300000 0x100000>;
2201 interrupts = <0 578 1>;
2202
2203 vdd_cx-supply = <&pm660l_s3_level>;
2204 qcom,proxy-reg-names = "vdd_cx";
2205 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2206
2207 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2208 clock-names = "xo";
2209 qcom,proxy-clock-names = "xo";
2210
2211 qcom,pas-id = <18>;
2212 qcom,proxy-timeout-ms = <10000>;
2213 qcom,smem-id = <601>;
2214 qcom,sysmon-id = <7>;
2215 qcom,ssctl-instance-id = <0x17>;
2216 qcom,firmware-name = "cdsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302217 qcom,signal-aop;
Gaurav Kohli106f4882017-06-29 12:29:12 +05302218 memory-region = <&pil_cdsp_mem>;
2219
2220 /* GPIO inputs from turing */
2221 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
2222 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
2223 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
2224 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
2225
2226 /* GPIO output to turing*/
2227 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302228
2229 mboxes = <&qmp_aop 0>;
2230 mbox-names = "cdsp-pil";
Gaurav Kohli106f4882017-06-29 12:29:12 +05302231 status = "ok";
2232 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05302233
Neeraj Soni27efd652017-11-01 18:17:58 +05302234 sdcc1_ice: sdcc1ice@7c8000 {
2235 compatible = "qcom,ice";
2236 reg = <0x7c8000 0x8000>;
2237 qcom,enable-ice-clk;
2238 clock-names = "ice_core_clk_src", "ice_core_clk",
2239 "bus_clk", "iface_clk";
2240 clocks = <&clock_gcc GCC_SDCC1_ICE_CORE_CLK_SRC>,
2241 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
2242 <&clock_gcc GCC_SDCC1_APPS_CLK>,
2243 <&clock_gcc GCC_SDCC1_AHB_CLK>;
2244 qcom,op-freq-hz = <300000000>, <0>, <0>, <0>;
2245 qcom,msm-bus,name = "sdcc_ice_noc";
2246 qcom,msm-bus,num-cases = <2>;
2247 qcom,msm-bus,num-paths = <1>;
2248 qcom,msm-bus,vectors-KBps =
2249 <150 512 0 0>, /* No vote */
2250 <150 512 1000 0>; /* Max. bandwidth */
2251 qcom,bus-vector-names = "MIN",
2252 "MAX";
2253 qcom,instance-type = "sdcc";
2254 };
2255
Vijay Viswanatheac72722017-06-05 11:01:38 +05302256 sdhc_1: sdhci@7c4000 {
2257 compatible = "qcom,sdhci-msm-v5";
2258 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
2259 reg-names = "hc_mem", "cmdq_mem";
2260
2261 interrupts = <0 641 0>, <0 644 0>;
2262 interrupt-names = "hc_irq", "pwr_irq";
2263
2264 qcom,bus-width = <8>;
2265 qcom,large-address-bus;
Neeraj Soni27efd652017-11-01 18:17:58 +05302266 sdhc-msm-crypto = <&sdcc1_ice>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302267
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302268 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
2269 192000000 384000000>;
Vijay Viswanath01db23a2017-11-09 15:46:22 +05302270 qcom,bus-aggr-clk-rates = <50000000 50000000 50000000 50000000
2271 100000000 200000000 200000000>;
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302272 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
2273
2274 qcom,devfreq,freq-table = <50000000 200000000>;
2275
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302276 qcom,msm-bus,name = "sdhc1";
2277 qcom,msm-bus,num-cases = <9>;
2278 qcom,msm-bus,num-paths = <2>;
2279 qcom,msm-bus,vectors-KBps =
2280 /* No vote */
Vijay Viswanath49024c22017-10-17 12:42:06 +05302281 <150 512 0 0>, <1 782 0 0>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302282 /* 400 KB/s*/
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302283 <150 512 1046 1600>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302284 <1 782 1600 1600>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302285 /* 20 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302286 <150 512 52286 80000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302287 <1 782 80000 80000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302288 /* 25 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302289 <150 512 65360 100000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302290 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302291 /* 50 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302292 <150 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302293 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302294 /* 100 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302295 <150 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302296 <1 782 130000 130000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302297 /* 200 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302298 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302299 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302300 /* 400 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302301 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302302 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302303 /* Max. bandwidth */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302304 <150 512 1338562 4096000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302305 <1 782 1338562 4096000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302306 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2307 100000000 200000000 400000000 4294967295>;
2308
2309 /* PM QoS */
2310 qcom,pm-qos-irq-type = "affine_irq";
2311 qcom,pm-qos-irq-latency = <70 70>;
2312 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2313 qcom,pm-qos-cmdq-latency-us = <70 70>, <70 70>;
2314 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2315
Vijay Viswanatheac72722017-06-05 11:01:38 +05302316 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302317 <&clock_gcc GCC_SDCC1_APPS_CLK>,
Vijay Viswanath7e20ddc2017-10-07 14:23:38 +05302318 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
2319 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_CLK>;
2320 clock-names = "iface_clk", "core_clk", "ice_core_clk",
2321 "bus_aggr_clk";
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302322
2323 qcom,ice-clk-rates = <300000000 75000000>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302324
Vijay Viswanathd4dcf5f2017-10-17 15:42:00 +05302325 qcom,ddr-config = <0xC3040873>;
2326
Vijay Viswanatheac72722017-06-05 11:01:38 +05302327 qcom,nonremovable;
2328
Vijay Viswanatheac72722017-06-05 11:01:38 +05302329 status = "disabled";
2330 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302331
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302332 sdhc_2: sdhci@8804000 {
2333 compatible = "qcom,sdhci-msm-v5";
2334 reg = <0x8804000 0x1000>;
2335 reg-names = "hc_mem";
2336
2337 interrupts = <0 204 0>, <0 222 0>;
2338 interrupt-names = "hc_irq", "pwr_irq";
2339
2340 qcom,bus-width = <4>;
2341 qcom,large-address-bus;
2342
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302343 qcom,clk-rates = <400000 20000000 25000000
2344 50000000 100000000 201500000>;
2345 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
2346 "SDR104";
2347
2348 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302349
2350 qcom,msm-bus,name = "sdhc2";
2351 qcom,msm-bus,num-cases = <8>;
2352 qcom,msm-bus,num-paths = <2>;
2353 qcom,msm-bus,vectors-KBps =
2354 /* No vote */
2355 <81 512 0 0>, <1 608 0 0>,
2356 /* 400 KB/s*/
2357 <81 512 1046 1600>,
2358 <1 608 1600 1600>,
2359 /* 20 MB/s */
2360 <81 512 52286 80000>,
2361 <1 608 80000 80000>,
2362 /* 25 MB/s */
2363 <81 512 65360 100000>,
2364 <1 608 100000 100000>,
2365 /* 50 MB/s */
2366 <81 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302367 <1 608 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302368 /* 100 MB/s */
2369 <81 512 261438 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302370 <1 608 130000 130000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302371 /* 200 MB/s */
2372 <81 512 261438 400000>,
2373 <1 608 300000 300000>,
2374 /* Max. bandwidth */
2375 <81 512 1338562 4096000>,
2376 <1 608 1338562 4096000>;
2377 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2378 100000000 200000000 4294967295>;
2379
2380 /* PM QoS */
2381 qcom,pm-qos-irq-type = "affine_irq";
2382 qcom,pm-qos-irq-latency = <70 70>;
2383 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2384 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2385
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302386 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
2387 <&clock_gcc GCC_SDCC2_APPS_CLK>;
2388 clock-names = "iface_clk", "core_clk";
2389
2390 status = "disabled";
2391 };
2392
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302393 qcom,msm-cdsp-loader {
2394 compatible = "qcom,cdsp-loader";
2395 qcom,proc-img-to-load = "cdsp";
2396 };
2397
2398 qcom,msm-adsprpc-mem {
2399 compatible = "qcom,msm-adsprpc-mem-region";
2400 memory-region = <&adsp_mem>;
2401 };
2402
2403 qcom,msm_fastrpc {
2404 compatible = "qcom,msm-fastrpc-compute";
Tharun Kumar Merugubbebad12017-12-21 16:33:03 +05302405 qcom,adsp-remoteheap-vmid = <22 37>;
Tharun Kumar Merugu1cb19c62018-01-18 12:20:16 +05302406 qcom,fastrpc-adsp-audio-pdr;
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302407
2408 qcom,msm_fastrpc_compute_cb1 {
2409 compatible = "qcom,msm-fastrpc-compute-cb";
2410 label = "cdsprpc-smd";
2411 iommus = <&apps_smmu 0x1421 0x30>;
2412 dma-coherent;
2413 };
2414 qcom,msm_fastrpc_compute_cb2 {
2415 compatible = "qcom,msm-fastrpc-compute-cb";
2416 label = "cdsprpc-smd";
2417 iommus = <&apps_smmu 0x1422 0x30>;
2418 dma-coherent;
2419 };
2420 qcom,msm_fastrpc_compute_cb3 {
2421 compatible = "qcom,msm-fastrpc-compute-cb";
2422 label = "cdsprpc-smd";
2423 iommus = <&apps_smmu 0x1423 0x30>;
2424 dma-coherent;
2425 };
2426 qcom,msm_fastrpc_compute_cb4 {
2427 compatible = "qcom,msm-fastrpc-compute-cb";
2428 label = "cdsprpc-smd";
2429 iommus = <&apps_smmu 0x1424 0x30>;
2430 dma-coherent;
2431 };
2432 qcom,msm_fastrpc_compute_cb5 {
2433 compatible = "qcom,msm-fastrpc-compute-cb";
2434 label = "cdsprpc-smd";
2435 iommus = <&apps_smmu 0x1425 0x30>;
2436 dma-coherent;
2437 };
2438 qcom,msm_fastrpc_compute_cb6 {
2439 compatible = "qcom,msm-fastrpc-compute-cb";
2440 label = "cdsprpc-smd";
2441 iommus = <&apps_smmu 0x1426 0x30>;
2442 dma-coherent;
2443 };
2444 qcom,msm_fastrpc_compute_cb7 {
2445 compatible = "qcom,msm-fastrpc-compute-cb";
2446 label = "cdsprpc-smd";
2447 qcom,secure-context-bank;
2448 iommus = <&apps_smmu 0x1429 0x30>;
2449 dma-coherent;
2450 };
2451 qcom,msm_fastrpc_compute_cb8 {
2452 compatible = "qcom,msm-fastrpc-compute-cb";
2453 label = "cdsprpc-smd";
2454 qcom,secure-context-bank;
2455 iommus = <&apps_smmu 0x142A 0x30>;
2456 dma-coherent;
2457 };
2458 qcom,msm_fastrpc_compute_cb9 {
2459 compatible = "qcom,msm-fastrpc-compute-cb";
2460 label = "adsprpc-smd";
2461 iommus = <&apps_smmu 0x1803 0x0>;
2462 dma-coherent;
2463 };
2464 qcom,msm_fastrpc_compute_cb10 {
2465 compatible = "qcom,msm-fastrpc-compute-cb";
2466 label = "adsprpc-smd";
2467 iommus = <&apps_smmu 0x1804 0x0>;
2468 dma-coherent;
2469 };
2470 qcom,msm_fastrpc_compute_cb11 {
2471 compatible = "qcom,msm-fastrpc-compute-cb";
2472 label = "adsprpc-smd";
2473 iommus = <&apps_smmu 0x1805 0x0>;
2474 dma-coherent;
2475 };
c_mtharu92125922017-10-16 14:06:39 +05302476 qcom,msm_fastrpc_compute_cb12 {
2477 compatible = "qcom,msm-fastrpc-compute-cb";
2478 label = "adsprpc-smd";
2479 iommus = <&apps_smmu 0x1806 0x0>;
2480 dma-coherent;
2481 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302482 };
Anurag Chouhan7563b532017-09-12 15:49:16 +05302483
Rupesh Tatiyaf2072952017-10-08 19:57:12 +05302484 bluetooth: bt_wcn3990 {
2485 compatible = "qca,wcn3990";
2486 qca,bt-vdd-core-supply = <&pm660_l9>;
2487 qca,bt-vdd-pa-supply = <&pm660_l6>;
2488 qca,bt-vdd-ldo-supply = <&pm660_l19>;
2489
2490 qca,bt-vdd-core-voltage-level = <1800000 1900000>;
2491 qca,bt-vdd-pa-voltage-level = <1304000 1370000>;
2492 qca,bt-vdd-ldo-voltage-level = <3312000 3400000>;
2493
2494 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
2495 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
2496 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
2497 };
2498
Anurag Chouhan7563b532017-09-12 15:49:16 +05302499 qcom,icnss@18800000 {
Anurag Chouhan7563b532017-09-12 15:49:16 +05302500 compatible = "qcom,icnss";
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302501 reg = <0x18800000 0x800000>,
2502 <0xa0000000 0x10000000>,
2503 <0xb0000000 0x10000>;
2504 reg-names = "membase", "smmu_iova_base", "smmu_iova_ipa";
2505 iommus = <&apps_smmu 0x0040 0x1>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302506 interrupts = <0 414 0 /* CE0 */ >,
2507 <0 415 0 /* CE1 */ >,
2508 <0 416 0 /* CE2 */ >,
2509 <0 417 0 /* CE3 */ >,
2510 <0 418 0 /* CE4 */ >,
2511 <0 419 0 /* CE5 */ >,
2512 <0 420 0 /* CE6 */ >,
2513 <0 421 0 /* CE7 */ >,
2514 <0 422 0 /* CE8 */ >,
2515 <0 423 0 /* CE9 */ >,
2516 <0 424 0 /* CE10 */ >,
2517 <0 425 0 /* CE11 */ >;
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302518 vdd-0.8-cx-mx-supply = <&pm660_l5>;
2519 vdd-1.8-xo-supply = <&pm660_l9>;
2520 vdd-1.3-rfa-supply = <&pm660_l6>;
2521 vdd-3.3-ch0-supply = <&pm660_l19>;
Hardik Kantilal Patel25c05b42017-12-08 11:10:27 +05302522 qcom,vdd-3.3-ch0-config = <3000000 3312000>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302523 qcom,wlan-msa-memory = <0x100000>;
Anurag Chouhana4f55db2017-11-22 16:35:27 +05302524 qcom,wlan-msa-fixed-region = <&wlan_msa_mem>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302525 qcom,smmu-s1-bypass;
2526 };
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302527
2528 cpubw: qcom,cpubw {
2529 compatible = "qcom,devbw";
2530 governor = "performance";
2531 qcom,src-dst-ports =
Santosh Mardidfc78812017-10-05 13:15:20 +05302532 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_EBI_CH0>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302533 qcom,active-only;
2534 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302535 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2536 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2537 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2538 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2539 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2540 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2541 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2542 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2543 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2544 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2545 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302546 };
2547
Santosh Mardidfc78812017-10-05 13:15:20 +05302548 bwmon: qcom,cpu-bwmon {
2549 compatible = "qcom,bimc-bwmon4";
2550 reg = <0x1436400 0x300>, <0x1436300 0x200>;
2551 reg-names = "base", "global_base";
2552 interrupts = <0 581 4>;
2553 qcom,mport = <0>;
Santosh Mardida0b0f82017-10-13 23:30:22 +05302554 qcom,count-unit = <0x10000>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302555 qcom,hw-timer-hz = <19200000>;
Santosh Mardidfc78812017-10-05 13:15:20 +05302556 qcom,target-dev = <&cpubw>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302557 };
2558
2559 memlat_cpu0: qcom,memlat-cpu0 {
2560 compatible = "qcom,devbw";
2561 governor = "powersave";
2562 qcom,src-dst-ports = <1 512>;
2563 qcom,active-only;
2564 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302565 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2566 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2567 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2568 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2569 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2570 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2571 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2572 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2573 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2574 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2575 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302576 };
2577
Santosh Mardi37a28af2017-10-12 13:03:31 +05302578 memlat_cpu6: qcom,memlat-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302579 compatible = "qcom,devbw";
2580 governor = "powersave";
2581 qcom,src-dst-ports = <1 512>;
2582 qcom,active-only;
2583 status = "ok";
2584 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302585 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2586 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2587 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2588 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2589 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2590 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2591 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2592 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2593 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2594 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2595 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302596 };
2597
Odelu Kukatlafe8d3302017-11-17 10:54:32 +05302598 snoc_cnoc_keepalive: qcom,snoc_cnoc_keepalive {
2599 compatible = "qcom,devbw";
2600 governor = "powersave";
2601 qcom,src-dst-ports = <139 627>;
2602 qcom,active-only;
2603 status = "ok";
2604 qcom,bw-tbl =
2605 < 1 >;
2606 };
2607
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302608 devfreq_memlat_0: qcom,cpu0-memlat-mon {
2609 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302610 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302611 qcom,target-dev = <&memlat_cpu0>;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302612 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302613 qcom,core-dev-table =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302614 < 748800 MHZ_TO_MBPS( 300, 4) >,
2615 < 998400 MHZ_TO_MBPS( 451, 4) >,
2616 < 1209600 MHZ_TO_MBPS( 547, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302617 < 1516800 MHZ_TO_MBPS( 768, 4) >,
2618 < 1708000 MHZ_TO_MBPS(1017, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302619 };
2620
Santosh Mardi37a28af2017-10-12 13:03:31 +05302621 devfreq_memlat_6: qcom,cpu6-memlat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302622 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302623 qcom,cpulist = <&CPU6 &CPU7>;
2624 qcom,target-dev = <&memlat_cpu6>;
2625 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302626 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302627 < 825600 MHZ_TO_MBPS( 300, 4) >,
2628 < 1132800 MHZ_TO_MBPS( 547, 4) >,
2629 < 1363200 MHZ_TO_MBPS(1017, 4) >,
2630 < 1996800 MHZ_TO_MBPS(1555, 4) >,
2631 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302632 };
2633
2634 l3_cpu0: qcom,l3-cpu0 {
2635 compatible = "devfreq-simple-dev";
2636 clock-names = "devfreq_clk";
2637 clocks = <&clock_cpucc L3_CLUSTER0_VOTE_CLK>;
2638 governor = "performance";
2639 };
2640
Santosh Mardi37a28af2017-10-12 13:03:31 +05302641 l3_cpu6: qcom,l3-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302642 compatible = "devfreq-simple-dev";
2643 clock-names = "devfreq_clk";
2644 clocks = <&clock_cpucc L3_CLUSTER1_VOTE_CLK>;
2645 governor = "performance";
2646 };
2647
2648 devfreq_l3lat_0: qcom,cpu0-l3lat-mon {
2649 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302650 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302651 qcom,target-dev = <&l3_cpu0>;
2652 qcom,cachemiss-ev = <0x17>;
2653 qcom,core-dev-table =
Santosh Mardi10d45032017-11-02 17:25:54 +05302654 < 576000 300000000 >,
Santosh Mardi831cc872018-01-11 14:52:32 +05302655 < 998400 556800000 >,
2656 < 1209660 844800000 >,
2657 < 1516800 940800000 >,
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302658 < 1612800 1382400000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302659 < 1708000 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302660 };
2661
Santosh Mardi37a28af2017-10-12 13:03:31 +05302662 devfreq_l3lat_6: qcom,cpu6-l3lat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302663 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302664 qcom,cpulist = <&CPU6 &CPU7>;
2665 qcom,target-dev = <&l3_cpu6>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302666 qcom,cachemiss-ev = <0x17>;
2667 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302668 < 1132800 556800000 >,
2669 < 1363200 806400000 >,
2670 < 1747200 940800000 >,
2671 < 1996800 1190400000 >,
2672 < 2457600 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302673 };
2674
2675 mincpubw: qcom,mincpubw {
2676 compatible = "qcom,devbw";
2677 governor = "powersave";
2678 qcom,src-dst-ports = <1 512>;
2679 qcom,active-only;
2680 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302681 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2682 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2683 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2684 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2685 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2686 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2687 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2688 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2689 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2690 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2691 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302692 };
2693
2694 devfreq-cpufreq {
2695 mincpubw-cpufreq {
2696 target-dev = <&mincpubw>;
2697 cpu-to-dev-map-0 =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302698 < 748800 MHZ_TO_MBPS( 300, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302699 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2700 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2701 < 1708000 MHZ_TO_MBPS( 768, 4) >;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302702 cpu-to-dev-map-6 =
Santosh Mardie49578c2017-10-27 11:24:45 +05302703 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2704 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2705 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2706 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2707 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302708 };
2709 };
Amit Nischal199f15d2017-09-12 10:58:51 +05302710
Jonathan Avilac7a6fd52017-10-12 15:24:05 -07002711 mincpu0bw: qcom,mincpu0bw {
2712 compatible = "qcom,devbw";
2713 governor = "powersave";
2714 qcom,src-dst-ports = <1 512>;
2715 qcom,active-only;
2716 qcom,bw-tbl =
2717 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2718 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2719 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2720 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2721 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2722 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2723 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2724 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2725 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2726 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2727 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
2728 };
2729
2730 mincpu6bw: qcom,mincpu6bw {
2731 compatible = "qcom,devbw";
2732 governor = "powersave";
2733 qcom,src-dst-ports = <1 512>;
2734 qcom,active-only;
2735 qcom,bw-tbl =
2736 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2737 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2738 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2739 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2740 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2741 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2742 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2743 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2744 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2745 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2746 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
2747 };
2748
2749 devfreq_compute0: qcom,devfreq-compute0 {
2750 compatible = "qcom,arm-cpu-mon";
2751 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
2752 qcom,target-dev = <&mincpu0bw>;
2753 qcom,core-dev-table =
2754 < 748800 MHZ_TO_MBPS( 300, 4) >,
2755 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2756 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2757 < 1708000 MHZ_TO_MBPS( 768, 4) >;
2758 };
2759
2760 devfreq_compute6: qcom,devfreq-compute6 {
2761 compatible = "qcom,arm-cpu-mon";
2762 qcom,cpulist = <&CPU6 &CPU7>;
2763 qcom,target-dev = <&mincpu6bw>;
2764 qcom,core-dev-table =
2765 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2766 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2767 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2768 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2769 < 2457600 MHZ_TO_MBPS(1804, 4) >;
2770 };
2771
Raghavendra Rao Ananta28dd4502017-10-18 10:28:31 -07002772 cpu_pmu: cpu-pmu {
2773 compatible = "arm,armv8-pmuv3";
2774 qcom,irq-is-percpu;
2775 interrupts = <1 5 4>;
2776 };
2777
Amit Nischal199f15d2017-09-12 10:58:51 +05302778 gpu_gx_domain_addr: syscon@0x5091508 {
2779 compatible = "syscon";
2780 reg = <0x5091508 0x4>;
2781 };
2782
2783 gpu_gx_sw_reset: syscon@0x5091008 {
2784 compatible = "syscon";
2785 reg = <0x5091008 0x4>;
2786 };
Imran Khan04f08312017-03-30 15:07:43 +05302787};
2788
Ashay Jaiswal81940302017-09-20 15:17:58 +05302789#include "pm660.dtsi"
2790#include "pm660l.dtsi"
2791#include "sdm670-regulator.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +05302792#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302793#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302794#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302795#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302796
2797&usb30_prim_gdsc {
2798 status = "ok";
2799};
2800
2801&ufs_phy_gdsc {
2802 status = "ok";
2803};
2804
2805&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2806 status = "ok";
2807};
2808
2809&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2810 status = "ok";
2811};
2812
2813&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2814 status = "ok";
2815};
2816
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302817&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2818 status = "ok";
2819};
2820
2821&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2822 status = "ok";
2823};
2824
2825&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2826 status = "ok";
2827};
2828
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302829&bps_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302830 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302831 status = "ok";
2832};
2833
2834&ife_0_gdsc {
2835 status = "ok";
2836};
2837
2838&ife_1_gdsc {
2839 status = "ok";
2840};
2841
2842&ipe_0_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302843 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302844 status = "ok";
2845};
2846
2847&ipe_1_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302848 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302849 status = "ok";
2850};
2851
2852&titan_top_gdsc {
2853 status = "ok";
2854};
2855
2856&mdss_core_gdsc {
2857 status = "ok";
Sandeep Pandaae888352017-11-15 13:15:31 +05302858 proxy-supply = <&mdss_core_gdsc>;
2859 qcom,proxy-consumer-enable;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302860};
2861
2862&gpu_cx_gdsc {
2863 status = "ok";
2864};
2865
2866&gpu_gx_gdsc {
2867 clock-names = "core_root_clk";
2868 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2869 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302870 parent-supply = <&pm660l_s2_level>;
Amit Nischal199f15d2017-09-12 10:58:51 +05302871 domain-addr = <&gpu_gx_domain_addr>;
2872 sw-reset = <&gpu_gx_sw_reset>;
2873 qcom,reset-aon-logic;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302874 status = "ok";
2875};
2876
2877&vcodec0_gdsc {
2878 qcom,support-hw-trigger;
2879 status = "ok";
2880};
2881
2882&vcodec1_gdsc {
2883 qcom,support-hw-trigger;
2884 status = "ok";
2885};
2886
2887&venus_gdsc {
2888 status = "ok";
2889};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302890
Sandeep Panda229db242017-10-03 11:32:29 +05302891&mdss_dsi0 {
2892 qcom,core-supply-entries {
2893 #address-cells = <1>;
2894 #size-cells = <0>;
2895
2896 qcom,core-supply-entry@0 {
2897 reg = <0>;
2898 qcom,supply-name = "refgen";
2899 qcom,supply-min-voltage = <0>;
2900 qcom,supply-max-voltage = <0>;
2901 qcom,supply-enable-load = <0>;
2902 qcom,supply-disable-load = <0>;
2903 };
2904 };
2905};
2906
2907&mdss_dsi1 {
2908 qcom,core-supply-entries {
2909 #address-cells = <1>;
2910 #size-cells = <0>;
2911
2912 qcom,core-supply-entry@0 {
2913 reg = <0>;
2914 qcom,supply-name = "refgen";
2915 qcom,supply-min-voltage = <0>;
2916 qcom,supply-max-voltage = <0>;
2917 qcom,supply-enable-load = <0>;
2918 qcom,supply-disable-load = <0>;
2919 };
2920 };
2921};
2922
Padmanabhan Komanduru07137332017-10-20 12:53:23 +05302923&sde_dp {
2924 qcom,core-supply-entries {
2925 #address-cells = <1>;
2926 #size-cells = <0>;
2927
2928 qcom,core-supply-entry@0 {
2929 reg = <0>;
2930 qcom,supply-name = "refgen";
2931 qcom,supply-min-voltage = <0>;
2932 qcom,supply-max-voltage = <0>;
2933 qcom,supply-enable-load = <0>;
2934 qcom,supply-disable-load = <0>;
2935 };
2936 };
2937};
2938
Rohit Kumar14051282017-07-12 11:18:48 +05302939#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05302940#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05302941#include "sdm670-gpu.dtsi"
Suresh Vankadara402d0ca2017-10-26 22:54:54 +05302942#include "sdm670-camera.dtsi"
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +05302943#include "sdm670-thermal.dtsi"
Odelu Kukatlaf197e382017-07-04 19:47:35 +05302944#include "sdm670-bus.dtsi"
Tirupathi Reddyf805ac72017-10-12 14:22:17 +05302945
2946&pm660_div_clk {
2947 status = "ok";
2948};
Tirupathi Reddy53b92a62017-10-26 13:57:42 +05302949
2950&qupv3_se10_i2c {
2951 nx30p6093: nx30p6093@36 {
2952 status = "disabled";
2953 compatible = "nxp,nx30p6093";
2954 reg = <0x36>;
2955 interrupt-parent = <&tlmm>;
2956 interrupts = <5 IRQ_TYPE_NONE>;
2957 nxp,long-wakeup-sec = <28800>; /* 8 hours */
2958 nxp,short-wakeup-ms = <180000>; /* 3 mins */
2959 pinctrl-names = "default";
2960 pinctrl-0 = <&nx30p6093_intr_default>;
2961 };
2962};