blob: af44079094e9bd11737aa2dbd29d2dc200985370 [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 = <
Lingutla Chandrasekharf9eeb282018-10-30 14:24:55 +0530360 12 10 8 6 4
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530361 >;
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 Kondetid019a602017-11-06 08:57:45 +0530375 2016000 865
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530376 2054400 876
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530377 2169600 900
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530378 2208000 924
379 2361600 948
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530380 2400000 1170
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530381 2457600 1200
382 2515200 1300
383 2611200 1400
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530384 >;
385 idle-cost-data = <
Lingutla Chandrasekharf9eeb282018-10-30 14:24:55 +0530386 100 80 60 40 20
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530387 >;
388 };
389 CLUSTER_COST_0: cluster-cost0 {
390 busy-cost-data = <
Lingutla Chandrasekharf9eeb282018-10-30 14:24:55 +0530391 300000 6
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530392 576000 7
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530393 748800 8
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530394 998400 9
395 1209600 10
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530396 1324800 13
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530397 1516800 15
398 1612800 16
Pavankumar Kondeti80872462017-11-06 08:57:45 +0530399 1708800 19
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530400 >;
401 idle-cost-data = <
Lingutla Chandrasekharf9eeb282018-10-30 14:24:55 +0530402 5 4 3 2 1
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530403 >;
404 };
405 CLUSTER_COST_1: cluster-cost1 {
406 busy-cost-data = <
407 300000 25
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530408 652800 30
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530409 825600 33
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530410 979200 38
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530411 1132800 40
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530412 1363200 44
Pavankumar Kondeti865e7562017-11-06 08:57:45 +0530413 1536000 58
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530414 1747200 64
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530415 1843200 65
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530416 1996800 69
Pavankumar Kondetid019a602017-11-06 08:57:45 +0530417 2016000 85
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530418 2054400 87
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530419 2169600 90
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530420 2208000 92
421 2361600 94
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530422 2400000 117
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530423 2457600 120
424 2515200 130
425 2611200 140
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530426 >;
427 idle-cost-data = <
Lingutla Chandrasekharf9eeb282018-10-30 14:24:55 +0530428 5 4 3 2 1
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530429 >;
430 };
431 };
432
Imran Khan04f08312017-03-30 15:07:43 +0530433 psci {
434 compatible = "arm,psci-1.0";
435 method = "smc";
436 };
437
438 soc: soc { };
439
Imran Khanb1066fa2017-08-01 17:20:22 +0530440 vendor: vendor {
441 #address-cells = <1>;
442 #size-cells = <1>;
443 ranges = <0 0 0 0xffffffff>;
444 compatible = "simple-bus";
445 };
446
Imran Khan5381c932017-08-02 11:27:07 +0530447 firmware: firmware {
448 android {
449 compatible = "android,firmware";
450
monisingfb2cb762017-12-19 14:40:49 +0530451 vbmeta {
452 compatible = "android,vbmeta";
453 parts = "vbmeta,boot,system,vendor,dtbo";
454 };
455
Imran Khan5381c932017-08-02 11:27:07 +0530456 fstab {
457 compatible = "android,fstab";
458 vendor {
459 compatible = "android,vendor";
460 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
461 type = "ext4";
462 mnt_flags = "ro,barrier=1,discard";
AnilKumar Chimata0d646ab2017-10-25 22:09:03 +0530463 fsmgr_flags = "wait,slotselect,avb";
Imran Khan5381c932017-08-02 11:27:07 +0530464 };
465 };
466 };
467 };
468
Imran Khan04f08312017-03-30 15:07:43 +0530469 reserved-memory {
470 #address-cells = <2>;
471 #size-cells = <2>;
472 ranges;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530473
Vijayanand Jitta0ef73982017-12-11 11:19:29 +0530474 hyp_region: hyp_region@85700000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530475 compatible = "removed-dma-pool";
476 no-map;
Vijayanand Jitta0ef73982017-12-11 11:19:29 +0530477 reg = <0 0x85700000 0 0x600000>;
478 };
479
480 xbl_region: xbl_region@85e00000 {
481 compatible = "removed-dma-pool";
482 no-map;
483 reg = <0 0x85e00000 0 0x100000>;
484 };
485
486 removed_region: removed_region@85fc0000 {
487 compatible = "removed-dma-pool";
488 no-map;
489 reg = <0 0x85fc0000 0 0x2f40000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530490 };
491
492 pil_camera_mem: camera_region@8ab00000 {
493 compatible = "removed-dma-pool";
494 no-map;
495 reg = <0 0x8ab00000 0 0x500000>;
496 };
497
498 pil_modem_mem: modem_region@8b000000 {
499 compatible = "removed-dma-pool";
500 no-map;
501 reg = <0 0x8b000000 0 0x7e00000>;
502 };
503
504 pil_video_mem: pil_video_region@92e00000 {
505 compatible = "removed-dma-pool";
506 no-map;
507 reg = <0 0x92e00000 0 0x500000>;
508 };
509
Prakash Guptac97a6a32017-11-21 17:46:55 +0530510 wlan_msa_mem: wlan_msa_region@93300000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530511 compatible = "removed-dma-pool";
512 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530513 reg = <0 0x93300000 0 0x100000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530514 };
515
Prakash Guptac97a6a32017-11-21 17:46:55 +0530516 pil_cdsp_mem: cdsp_regions@93400000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530517 compatible = "removed-dma-pool";
518 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530519 reg = <0 0x93400000 0 0x800000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530520 };
521
Prakash Guptac97a6a32017-11-21 17:46:55 +0530522 pil_mba_mem: pil_mba_region@0x93c00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530523 compatible = "removed-dma-pool";
524 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530525 reg = <0 0x93c00000 0 0x200000>;
526 };
527
528 pil_adsp_mem: pil_adsp_region@93e00000 {
529 compatible = "removed-dma-pool";
530 no-map;
531 reg = <0 0x93e00000 0 0x1e00000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530532 };
533
Prakash Gupta7c571ef2018-01-19 17:57:47 +0530534 pil_ipa_fw_mem: ips_fw_region@0x95c00000 {
535 compatible = "removed-dma-pool";
536 no-map;
537 reg = <0 0x95c00000 0 0x10000>;
538 };
539
540 pil_ipa_gsi_mem: ipa_gsi_region@0x95c10000 {
541 compatible = "removed-dma-pool";
542 no-map;
543 reg = <0 0x95c10000 0 0x5000>;
544 };
545
546 pil_gpu_mem: gpu_region@0x95c15000 {
547 compatible = "removed-dma-pool";
548 no-map;
549 reg = <0 0x95c15000 0 0x2000>;
550 };
551
552 qseecom_mem: qseecom_region@0x9e400000 {
553 compatible = "shared-dma-pool";
554 no-map;
555 reg = <0 0x9e400000 0 0x1400000>;
556 };
557
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530558 adsp_mem: adsp_region {
559 compatible = "shared-dma-pool";
560 alloc-ranges = <0 0x00000000 0 0xffffffff>;
561 reusable;
562 alignment = <0 0x400000>;
Tharun Kumar Meruguf0bb40e2018-06-25 16:02:04 +0530563 size = <0 0x800000>;
564 };
565
566 sdsp_mem: sdsp_region {
567 compatible = "shared-dma-pool";
568 alloc-ranges = <0 0x00000000 0 0xffffffff>;
569 reusable;
570 alignment = <0 0x400000>;
571 size = <0 0x400000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530572 };
573
Zhen Kong0ebe1bc32018-01-02 14:53:51 -0800574 qseecom_ta_mem: qseecom_ta_region {
575 compatible = "shared-dma-pool";
576 alloc-ranges = <0 0x00000000 0 0xffffffff>;
577 reusable;
578 alignment = <0 0x400000>;
579 size = <0 0x1000000>;
580 };
581
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530582 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
583 compatible = "shared-dma-pool";
584 alloc-ranges = <0 0x00000000 0 0xffffffff>; /* 32-bit */
585 reusable;
586 alignment = <0 0x400000>;
587 size = <0 0x800000>;
588 };
589
590 secure_display_memory: secure_display_region {
591 compatible = "shared-dma-pool";
592 alloc-ranges = <0 0x00000000 0 0xffffffff>;
593 reusable;
594 alignment = <0 0x400000>;
595 size = <0 0x5c00000>;
596 };
597
Jayant Shekhare3191272018-01-30 16:49:08 +0530598 cont_splash_memory: cont_splash_region@9c000000 {
Sandeep Pandaf5ed08d2018-11-08 23:16:46 +0530599 reg = <0x0 0x9c000000 0x0 0x2300000>;
Jayant Shekharb59d1692017-11-10 14:21:40 +0530600 label = "cont_splash_region";
601 };
602
Sandeep Pandaf5ed08d2018-11-08 23:16:46 +0530603 dfps_data_memory: dfps_data_region@9e300000 {
604 reg = <0x0 0x9e300000 0x0 0x0100000>;
605 label = "dfps_data_region";
606 };
607
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +0530608 dump_mem: mem_dump_region {
609 compatible = "shared-dma-pool";
610 reusable;
611 size = <0 0x2400000>;
612 };
613
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530614 /* global autoconfigured region for contiguous allocations */
615 linux,cma {
616 compatible = "shared-dma-pool";
617 alloc-ranges = <0 0x00000000 0 0xffffffff>;
618 reusable;
619 alignment = <0 0x400000>;
620 size = <0 0x2000000>;
621 linux,cma-default;
622 };
Imran Khan04f08312017-03-30 15:07:43 +0530623 };
624};
625
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530626#include "sdm670-ion.dtsi"
627
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530628#include "sdm670-smp2p.dtsi"
629
c_mtharuce962e42017-12-05 22:41:17 +0530630#include "msm-rdbg.dtsi"
631
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530632#include "sdm670-qupv3.dtsi"
633
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530634#include "sdm670-coresight.dtsi"
Manikanta Kanamarlapudid4abc602017-08-28 19:23:41 +0530635
636#include "sdm670-vidc.dtsi"
637
Raviteja Tamatame97849a2017-09-12 20:25:50 +0530638#include "sdm670-sde-pll.dtsi"
639
640#include "sdm670-sde.dtsi"
641
Imran Khan04f08312017-03-30 15:07:43 +0530642&soc {
643 #address-cells = <1>;
644 #size-cells = <1>;
645 ranges = <0 0 0 0xffffffff>;
646 compatible = "simple-bus";
647
Saranya Chidura0e8b4262017-10-04 13:06:26 +0530648 jtag_mm0: jtagmm@7040000 {
649 compatible = "qcom,jtagv8-mm";
650 reg = <0x7040000 0x1000>;
651 reg-names = "etm-base";
652
653 clocks = <&clock_aop QDSS_CLK>;
654 clock-names = "core_clk";
655
656 qcom,coresight-jtagmm-cpu = <&CPU0>;
657 };
658
659 jtag_mm1: jtagmm@7140000 {
660 compatible = "qcom,jtagv8-mm";
661 reg = <0x7140000 0x1000>;
662 reg-names = "etm-base";
663
664 clocks = <&clock_aop QDSS_CLK>;
665 clock-names = "core_clk";
666
Mao Jinlong7da84d72018-11-13 21:03:30 +0800667 qcom,coresight-jtagmm-cpu = <&CPU1>;
Saranya Chidura0e8b4262017-10-04 13:06:26 +0530668 };
669
670 jtag_mm2: jtagmm@7240000 {
671 compatible = "qcom,jtagv8-mm";
672 reg = <0x7240000 0x1000>;
673 reg-names = "etm-base";
674
675 clocks = <&clock_aop QDSS_CLK>;
676 clock-names = "core_clk";
677
678 qcom,coresight-jtagmm-cpu = <&CPU2>;
679 };
680
681 jtag_mm3: jtagmm@7340000 {
682 compatible = "qcom,jtagv8-mm";
683 reg = <0x7340000 0x1000>;
684 reg-names = "etm-base";
685
686 clocks = <&clock_aop QDSS_CLK>;
687 clock-names = "core_clk";
688
689 qcom,coresight-jtagmm-cpu = <&CPU3>;
690 };
691
692 jtag_mm4: jtagmm@7440000 {
693 compatible = "qcom,jtagv8-mm";
694 reg = <0x7440000 0x1000>;
695 reg-names = "etm-base";
696
697 clocks = <&clock_aop QDSS_CLK>;
698 clock-names = "core_clk";
699
700 qcom,coresight-jtagmm-cpu = <&CPU4>;
701 };
702
703 jtag_mm5: jtagmm@7540000 {
704 compatible = "qcom,jtagv8-mm";
705 reg = <0x7540000 0x1000>;
706 reg-names = "etm-base";
707
708 clocks = <&clock_aop QDSS_CLK>;
709 clock-names = "core_clk";
710
711 qcom,coresight-jtagmm-cpu = <&CPU5>;
712 };
713
714 jtag_mm6: jtagmm@7640000 {
715 compatible = "qcom,jtagv8-mm";
716 reg = <0x7640000 0x1000>;
717 reg-names = "etm-base";
718
719 clocks = <&clock_aop QDSS_CLK>;
720 clock-names = "core_clk";
721
722 qcom,coresight-jtagmm-cpu = <&CPU6>;
723 };
724
725 jtag_mm7: jtagmm@7740000 {
726 compatible = "qcom,jtagv8-mm";
727 reg = <0x7740000 0x1000>;
728 reg-names = "etm-base";
729
730 clocks = <&clock_aop QDSS_CLK>;
731 clock-names = "core_clk";
732
733 qcom,coresight-jtagmm-cpu = <&CPU7>;
734 };
735
Imran Khan04f08312017-03-30 15:07:43 +0530736 intc: interrupt-controller@17a00000 {
737 compatible = "arm,gic-v3";
738 #interrupt-cells = <3>;
739 interrupt-controller;
740 #redistributor-regions = <1>;
741 redistributor-stride = <0x0 0x20000>;
742 reg = <0x17a00000 0x10000>, /* GICD */
743 <0x17a60000 0x100000>; /* GICR * 8 */
744 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530745 interrupt-parent = <&intc>;
Gaurav Kohli34f87562018-05-11 12:26:16 +0530746 ignored-save-restore-irqs = <38>;
Imran Khan04f08312017-03-30 15:07:43 +0530747 };
748
Raghavendra Kakarla04f032162017-12-08 19:11:54 +0530749 pdc: interrupt-controller@b220000{
750 compatible = "qcom,pdc-sdm670";
751 reg = <0xb220000 0x400>;
752 #interrupt-cells = <3>;
753 interrupt-parent = <&intc>;
754 interrupt-controller;
755 };
756
Imran Khan04f08312017-03-30 15:07:43 +0530757 timer {
758 compatible = "arm,armv8-timer";
759 interrupts = <1 1 0xf08>,
760 <1 2 0xf08>,
761 <1 3 0xf08>,
762 <1 0 0xf08>;
763 clock-frequency = <19200000>;
764 };
765
Manoj Prabhu B95b1bc72017-11-17 15:09:29 +0530766 qcom,memshare {
767 compatible = "qcom,memshare";
768
769 qcom,client_1 {
770 compatible = "qcom,memshare-peripheral";
771 qcom,peripheral-size = <0x0>;
772 qcom,client-id = <0>;
773 qcom,allocate-boot-time;
774 label = "modem";
775 };
776
777 qcom,client_2 {
778 compatible = "qcom,memshare-peripheral";
779 qcom,peripheral-size = <0x0>;
780 qcom,client-id = <2>;
781 label = "modem";
782 };
783
784 mem_client_3_size: qcom,client_3 {
785 compatible = "qcom,memshare-peripheral";
786 qcom,peripheral-size = <0x500000>;
787 qcom,client-id = <1>;
Manoj Prabhu B991f9222018-01-03 19:13:56 +0530788 qcom,allocate-boot-time;
Manoj Prabhu B95b1bc72017-11-17 15:09:29 +0530789 label = "modem";
790 };
791 };
792
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530793 qcom,sps {
794 compatible = "qcom,msm_sps_4k";
795 qcom,pipe-attr-ee;
796 };
797
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530798 qcom_cedev: qcedev@1de0000 {
799 compatible = "qcom,qcedev";
800 reg = <0x1de0000 0x20000>,
801 <0x1dc4000 0x24000>;
802 reg-names = "crypto-base","crypto-bam-base";
803 interrupts = <0 272 0>;
804 qcom,bam-pipe-pair = <3>;
805 qcom,ce-hw-instance = <0>;
806 qcom,ce-device = <0>;
807 qcom,ce-hw-shared;
808 qcom,bam-ee = <0>;
809 qcom,msm-bus,name = "qcedev-noc";
810 qcom,msm-bus,num-cases = <2>;
811 qcom,msm-bus,num-paths = <1>;
812 qcom,msm-bus,vectors-KBps =
813 <125 512 0 0>,
814 <125 512 393600 393600>;
815 clock-names = "core_clk_src", "core_clk",
816 "iface_clk", "bus_clk";
817 clocks = <&clock_gcc GCC_CE1_CLK>,
818 <&clock_gcc GCC_CE1_CLK>,
819 <&clock_gcc GCC_CE1_AHB_CLK>,
820 <&clock_gcc GCC_CE1_AXI_CLK>;
821 qcom,ce-opp-freq = <171430000>;
822 qcom,request-bw-before-clk;
mohamed sunfeer4b2ca442017-11-07 14:46:45 +0530823 qcom,smmu-s1-enable;
mohamed sunfeerdce9b922017-11-11 22:14:58 +0530824 iommus = <&apps_smmu 0x706 0x1>,
825 <&apps_smmu 0x716 0x1>;
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530826 };
827
Tatenda Chipeperekwa8a77c8a2018-01-30 14:50:11 -0800828 qcom_msmhdcp: qcom,msm_hdcp {
829 compatible = "qcom,msm-hdcp";
830 };
831
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530832 qcom_crypto: qcrypto@1de0000 {
833 compatible = "qcom,qcrypto";
834 reg = <0x1de0000 0x20000>,
835 <0x1dc4000 0x24000>;
836 reg-names = "crypto-base","crypto-bam-base";
837 interrupts = <0 272 0>;
838 qcom,bam-pipe-pair = <2>;
839 qcom,ce-hw-instance = <0>;
840 qcom,ce-device = <0>;
841 qcom,bam-ee = <0>;
842 qcom,ce-hw-shared;
843 qcom,clk-mgmt-sus-res;
844 qcom,msm-bus,name = "qcrypto-noc";
845 qcom,msm-bus,num-cases = <2>;
846 qcom,msm-bus,num-paths = <1>;
847 qcom,msm-bus,vectors-KBps =
848 <125 512 0 0>,
849 <125 512 393600 393600>;
850 clock-names = "core_clk_src", "core_clk",
851 "iface_clk", "bus_clk";
852 clocks = <&clock_gcc GCC_CE1_CLK>,
853 <&clock_gcc GCC_CE1_CLK>,
854 <&clock_gcc GCC_CE1_AHB_CLK>,
855 <&clock_gcc GCC_CE1_AXI_CLK>;
856 qcom,ce-opp-freq = <171430000>;
857 qcom,request-bw-before-clk;
858 qcom,use-sw-aes-cbc-ecb-ctr-algo;
859 qcom,use-sw-aes-xts-algo;
860 qcom,use-sw-aes-ccm-algo;
861 qcom,use-sw-aead-algo;
862 qcom,use-sw-ahash-algo;
863 qcom,use-sw-hmac-algo;
mohamed sunfeer4b2ca442017-11-07 14:46:45 +0530864 qcom,smmu-s1-enable;
mohamed sunfeerdce9b922017-11-11 22:14:58 +0530865 iommus = <&apps_smmu 0x704 0x1>,
866 <&apps_smmu 0x714 0x1>;
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530867 };
868
Abir Ghoshb849ab22017-09-19 13:03:11 +0530869 qcom,qbt1000 {
870 compatible = "qcom,qbt1000";
871 clock-names = "core", "iface";
872 clock-frequency = <25000000>;
873 qcom,ipc-gpio = <&tlmm 121 0>;
874 qcom,finger-detect-gpio = <&tlmm 122 0>;
875 };
876
mohamed sunfeer71b31322017-09-20 00:46:46 +0530877 qcom_seecom: qseecom@86d00000 {
878 compatible = "qcom,qseecom";
879 reg = <0x86d00000 0x2200000>;
880 reg-names = "secapp-region";
881 qcom,hlos-num-ce-hw-instances = <1>;
882 qcom,hlos-ce-hw-instance = <0>;
883 qcom,qsee-ce-hw-instance = <0>;
884 qcom,disk-encrypt-pipe-pair = <2>;
885 qcom,support-fde;
886 qcom,no-clock-support;
Neeraj Soni7c4254c2017-11-15 11:13:14 +0530887 qcom,fde-key-size;
mohamed sunfeer71b31322017-09-20 00:46:46 +0530888 qcom,appsbl-qseecom-support;
889 qcom,msm-bus,name = "qseecom-noc";
890 qcom,msm-bus,num-cases = <4>;
891 qcom,msm-bus,num-paths = <1>;
892 qcom,msm-bus,vectors-KBps =
893 <125 512 0 0>,
894 <125 512 200000 400000>,
895 <125 512 300000 800000>,
896 <125 512 400000 1000000>;
897 clock-names = "core_clk_src", "core_clk",
898 "iface_clk", "bus_clk";
899 clocks = <&clock_gcc GCC_CE1_CLK>,
900 <&clock_gcc GCC_CE1_CLK>,
901 <&clock_gcc GCC_CE1_AHB_CLK>,
902 <&clock_gcc GCC_CE1_AXI_CLK>;
903 qcom,ce-opp-freq = <171430000>;
904 qcom,qsee-reentrancy-support = <2>;
905 };
906
mohamed sunfeer732f7572017-09-19 19:51:11 +0530907 qcom_tzlog: tz-log@146bf720 {
908 compatible = "qcom,tz-log";
909 reg = <0x146bf720 0x3000>;
910 qcom,hyplog-enabled;
911 hyplog-address-offset = <0x410>;
912 hyplog-size-offset = <0x414>;
913 };
914
mohamed sunfeer2228b242017-09-19 19:10:08 +0530915 qcom_rng: qrng@793000{
916 compatible = "qcom,msm-rng";
917 reg = <0x793000 0x1000>;
918 qcom,msm-rng-iface-clk;
919 qcom,no-qrng-config;
920 qcom,msm-bus,name = "msm-rng-noc";
921 qcom,msm-bus,num-cases = <2>;
922 qcom,msm-bus,num-paths = <1>;
923 qcom,msm-bus,vectors-KBps =
924 <1 618 0 0>, /* No vote */
925 <1 618 0 800>; /* 100 KHz */
926 clocks = <&clock_gcc GCC_PRNG_AHB_CLK>;
927 clock-names = "iface_clk";
928 };
929
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +0530930 thermal_zones: thermal-zones {};
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530931
932 tsens0: tsens@c222000 {
933 compatible = "qcom,tsens24xx";
934 reg = <0xc222000 0x4>,
935 <0xc263000 0x1ff>;
936 reg-names = "tsens_srot_physical",
937 "tsens_tm_physical";
938 interrupts = <0 506 0>, <0 508 0>;
939 interrupt-names = "tsens-upper-lower", "tsens-critical";
940 #thermal-sensor-cells = <1>;
941 };
942
943 tsens1: tsens@c223000 {
944 compatible = "qcom,tsens24xx";
945 reg = <0xc223000 0x4>,
946 <0xc265000 0x1ff>;
947 reg-names = "tsens_srot_physical",
948 "tsens_tm_physical";
949 interrupts = <0 507 0>, <0 509 0>;
950 interrupt-names = "tsens-upper-lower", "tsens-critical";
951 #thermal-sensor-cells = <1>;
952 };
953
Imran Khan04f08312017-03-30 15:07:43 +0530954 timer@0x17c90000{
955 #address-cells = <1>;
956 #size-cells = <1>;
957 ranges;
958 compatible = "arm,armv7-timer-mem";
959 reg = <0x17c90000 0x1000>;
960 clock-frequency = <19200000>;
961
962 frame@0x17ca0000 {
963 frame-number = <0>;
964 interrupts = <0 7 0x4>,
965 <0 6 0x4>;
966 reg = <0x17ca0000 0x1000>,
967 <0x17cb0000 0x1000>;
968 };
969
970 frame@17cc0000 {
971 frame-number = <1>;
972 interrupts = <0 8 0x4>;
973 reg = <0x17cc0000 0x1000>;
974 status = "disabled";
975 };
976
977 frame@17cd0000 {
978 frame-number = <2>;
979 interrupts = <0 9 0x4>;
980 reg = <0x17cd0000 0x1000>;
981 status = "disabled";
982 };
983
984 frame@17ce0000 {
985 frame-number = <3>;
986 interrupts = <0 10 0x4>;
987 reg = <0x17ce0000 0x1000>;
988 status = "disabled";
989 };
990
991 frame@17cf0000 {
992 frame-number = <4>;
993 interrupts = <0 11 0x4>;
994 reg = <0x17cf0000 0x1000>;
995 status = "disabled";
996 };
997
998 frame@17d00000 {
999 frame-number = <5>;
1000 interrupts = <0 12 0x4>;
1001 reg = <0x17d00000 0x1000>;
1002 status = "disabled";
1003 };
1004
1005 frame@17d10000 {
1006 frame-number = <6>;
1007 interrupts = <0 13 0x4>;
1008 reg = <0x17d10000 0x1000>;
1009 status = "disabled";
1010 };
1011 };
1012
1013 restart@10ac000 {
1014 compatible = "qcom,pshold";
1015 reg = <0xC264000 0x4>,
1016 <0x1fd3000 0x4>;
1017 reg-names = "pshold-base", "tcsr-boot-misc-detect";
1018 };
1019
Maulik Shah6bf7d5d2017-07-27 09:48:42 +05301020 aop-msg-client {
1021 compatible = "qcom,debugfs-qmp-client";
1022 mboxes = <&qmp_aop 0>;
1023 mbox-names = "aop";
1024 };
1025
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301026 clock_rpmh: qcom,rpmhclk {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301027 compatible = "qcom,rpmh-clk-sdm670";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301028 #clock-cells = <1>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301029 mboxes = <&apps_rsc 0>;
1030 mbox-names = "apps";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301031 };
1032
1033 clock_gcc: qcom,gcc@100000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301034 compatible = "qcom,gcc-sdm670", "syscon";
1035 reg = <0x100000 0x1f0000>;
1036 reg-names = "cc_base";
1037 vdd_cx-supply = <&pm660l_s3_level>;
1038 vdd_cx_ao-supply = <&pm660l_s3_level_ao>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301039 #clock-cells = <1>;
1040 #reset-cells = <1>;
1041 };
1042
1043 clock_videocc: qcom,videocc@ab00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301044 compatible = "qcom,video_cc-sdm670", "syscon";
1045 reg = <0xab00000 0x10000>;
1046 reg-names = "cc_base";
1047 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301048 #clock-cells = <1>;
1049 #reset-cells = <1>;
1050 };
1051
1052 clock_camcc: qcom,camcc@ad00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301053 compatible = "qcom,cam_cc-sdm670", "syscon";
1054 reg = <0xad00000 0x10000>;
1055 reg-names = "cc_base";
1056 vdd_cx-supply = <&pm660l_s3_level>;
1057 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301058 #clock-cells = <1>;
1059 #reset-cells = <1>;
Alok Pandey499587b2018-02-08 22:14:59 +05301060 qcom,cam_cc_csi0phytimer_clk_src-opp-handle = <&cam_csiphy0>;
1061 qcom,cam_cc_csi1phytimer_clk_src-opp-handle = <&cam_csiphy1>;
1062 qcom,cam_cc_csi2phytimer_clk_src-opp-handle = <&cam_csiphy2>;
1063 qcom,cam_cc_cci_clk_src-opp-handle = <&cam_cci>;
1064 qcom,cam_cc_ife_0_csid_clk_src-opp-handle = <&cam_csid0>;
1065 qcom,cam_cc_ife_0_clk_src-opp-handle = <&cam_vfe0>;
1066 qcom,cam_cc_ife_1_csid_clk_src-opp-handle = <&cam_csid1>;
1067 qcom,cam_cc_ife_1_clk_src-opp-handle = <&cam_vfe1>;
1068 qcom,cam_cc_ife_lite_csid_clk_src-opp-handle = <&cam_csid_lite>;
1069 qcom,cam_cc_ife_lite_clk_src-opp-handle = <&cam_vfe_lite>;
1070 qcom,cam_cc_icp_clk_src-opp-handle = <&cam_a5>;
1071 qcom,cam_cc_ipe_0_clk_src-opp-handle = <&cam_ipe0>;
1072 qcom,cam_cc_ipe_1_clk_src-opp-handle = <&cam_ipe1>;
1073 qcom,cam_cc_bps_clk_src-opp-handle = <&cam_bps>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301074 };
1075
1076 clock_dispcc: qcom,dispcc@af00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301077 compatible = "qcom,dispcc-sdm670", "syscon";
1078 reg = <0xaf00000 0x10000>;
1079 reg-names = "cc_base";
1080 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301081 #clock-cells = <1>;
1082 #reset-cells = <1>;
1083 };
1084
1085 clock_gpucc: qcom,gpucc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301086 compatible = "qcom,gpucc-sdm670", "syscon";
1087 reg = <0x5090000 0x9000>;
1088 reg-names = "cc_base";
1089 vdd_cx-supply = <&pm660l_s3_level>;
1090 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +05301091 qcom,gpu_cc_gmu_clk_src-opp-handle = <&gmu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301092 #clock-cells = <1>;
1093 #reset-cells = <1>;
1094 };
1095
1096 clock_gfx: qcom,gfxcc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301097 compatible = "qcom,gfxcc-sdm670";
1098 reg = <0x5090000 0x9000>;
1099 reg-names = "cc_base";
1100 vdd_gfx-supply = <&pm660l_s2_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +05301101 qcom,gpu_cc_gx_gfx3d_clk_src-opp-handle = <&msm_gpu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301102 #clock-cells = <1>;
1103 #reset-cells = <1>;
1104 };
1105
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301106 cpucc_debug: syscon@17970018 {
1107 compatible = "syscon";
1108 reg = <0x17970018 0x4>;
1109 };
1110
1111 clock_debug: qcom,cc-debug {
1112 compatible = "qcom,debugcc-sdm845";
Shefali Jain582eb3b2018-04-24 11:46:58 +05301113 qcom,cc-count = <6>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301114 qcom,gcc = <&clock_gcc>;
1115 qcom,videocc = <&clock_videocc>;
1116 qcom,camcc = <&clock_camcc>;
1117 qcom,dispcc = <&clock_dispcc>;
1118 qcom,gpucc = <&clock_gpucc>;
1119 qcom,cpucc = <&cpucc_debug>;
1120 clock-names = "xo_clk_src";
1121 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1122 #clock-cells = <1>;
1123 };
1124
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301125 clock_cpucc: qcom,cpucc@0x17d41000 {
1126 compatible = "qcom,clk-cpu-osm-sdm670";
1127 reg = <0x17d41000 0x1400>,
1128 <0x17d43000 0x1400>,
David Collins1e048402017-11-29 15:43:09 -08001129 <0x17d45800 0x1400>;
1130 reg-names = "osm_l3_base", "osm_pwrcl_base", "osm_perfcl_base";
Deepak Katragadda02617bd2017-11-10 16:03:43 -08001131 vdd_l3_mx_ao-supply = <&pm660l_s1_level_ao>;
1132 vdd_pwrcl_mx_ao-supply = <&pm660l_s1_level_ao>;
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301133
Odelu Kukatla86c179e2017-12-12 19:10:23 +05301134 qcom,mx-turbo-freq = <1440000000 1708000000 3300000001>;
Santosh Mardi7790a432018-01-09 23:01:56 +05301135 l3-devs = <&l3_cpu0 &l3_cpu6 &l3_cdsp>;
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301136
1137 clock-names = "xo_ao";
1138 clocks = <&clock_rpmh RPMH_CXO_CLK_A>;
Imran Khan04f08312017-03-30 15:07:43 +05301139 #clock-cells = <1>;
Imran Khan04f08312017-03-30 15:07:43 +05301140 };
1141
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301142 clock_aop: qcom,aopclk {
Odelu Kukatla80f617f2017-09-15 19:30:25 +05301143 compatible = "qcom,aop-qmp-clk-v1";
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301144 #clock-cells = <1>;
1145 mboxes = <&qmp_aop 0>;
1146 mbox-names = "qdss_clk";
1147 };
1148
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301149 slim_aud: slim@62dc0000 {
1150 cell-index = <1>;
1151 compatible = "qcom,slim-ngd";
1152 reg = <0x62dc0000 0x2c000>,
1153 <0x62d84000 0x2a000>;
1154 reg-names = "slimbus_physical", "slimbus_bam_physical";
1155 interrupts = <0 163 0>, <0 164 0>;
1156 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
1157 qcom,apps-ch-pipes = <0x780000>;
1158 qcom,ea-pc = <0x290>;
1159 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301160 qcom,iommu-s1-bypass;
1161
1162 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1163 compatible = "qcom,iommu-slim-ctrl-cb";
1164 iommus = <&apps_smmu 0x1826 0x0>,
1165 <&apps_smmu 0x182d 0x0>,
1166 <&apps_smmu 0x182e 0x1>,
1167 <&apps_smmu 0x1830 0x1>;
1168 };
1169
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301170 };
1171
1172 slim_qca: slim@62e40000 {
1173 cell-index = <3>;
1174 compatible = "qcom,slim-ngd";
1175 reg = <0x62e40000 0x2c000>,
1176 <0x62e04000 0x20000>;
1177 reg-names = "slimbus_physical", "slimbus_bam_physical";
1178 interrupts = <0 291 0>, <0 292 0>;
1179 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301180 status = "ok";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301181 qcom,iommu-s1-bypass;
1182
1183 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1184 compatible = "qcom,iommu-slim-ctrl-cb";
1185 iommus = <&apps_smmu 0x1833 0x0>;
1186 };
1187
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301188 /* Slimbus Slave DT for WCN3990 */
1189 btfmslim_codec: wcn3990 {
1190 compatible = "qcom,btfmslim_slave";
1191 elemental-addr = [00 01 20 02 17 02];
1192 qcom,btfm-slim-ifd = "btfmslim_slave_ifd";
1193 qcom,btfm-slim-ifd-elemental-addr = [00 00 20 02 17 02];
1194 };
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301195 };
1196
Imran Khan04f08312017-03-30 15:07:43 +05301197 wdog: qcom,wdt@17980000{
1198 compatible = "qcom,msm-watchdog";
1199 reg = <0x17980000 0x1000>;
1200 reg-names = "wdt-base";
Lingutla Chandrasekhar9fb9ba92017-10-08 21:59:19 +05301201 interrupts = <0 0 0>, <0 1 0>;
Imran Khan04f08312017-03-30 15:07:43 +05301202 qcom,bark-time = <11000>;
Neeraj Upadhyaydbc184d2017-12-07 16:05:39 +05301203 qcom,pet-time = <9360>;
Imran Khan04f08312017-03-30 15:07:43 +05301204 qcom,ipi-ping;
1205 qcom,wakeup-enable;
1206 };
1207
1208 qcom,msm-rtb {
1209 compatible = "qcom,msm-rtb";
1210 qcom,rtb-size = <0x100000>;
1211 };
1212
Lingutla Chandrasekhar4d78d722017-11-10 16:03:44 +05301213 qcom,mpm2-sleep-counter@c221000 {
1214 compatible = "qcom,mpm2-sleep-counter";
1215 reg = <0x0c221000 0x1000>;
1216 clock-frequency = <32768>;
1217 };
1218
Imran Khan04f08312017-03-30 15:07:43 +05301219 qcom,msm-imem@146bf000 {
1220 compatible = "qcom,msm-imem";
1221 reg = <0x146bf000 0x1000>;
1222 ranges = <0x0 0x146bf000 0x1000>;
1223 #address-cells = <1>;
1224 #size-cells = <1>;
1225
1226 mem_dump_table@10 {
1227 compatible = "qcom,msm-imem-mem_dump_table";
1228 reg = <0x10 8>;
1229 };
1230
Lingutla Chandrasekharfa5c13f2017-09-25 11:01:58 +05301231 dload_type@1c {
1232 compatible = "qcom,msm-imem-dload-type";
1233 reg = <0x1c 0x4>;
1234 };
1235
Imran Khan04f08312017-03-30 15:07:43 +05301236 restart_reason@65c {
1237 compatible = "qcom,msm-imem-restart_reason";
1238 reg = <0x65c 4>;
1239 };
1240
1241 pil@94c {
1242 compatible = "qcom,msm-imem-pil";
1243 reg = <0x94c 200>;
1244 };
1245
1246 kaslr_offset@6d0 {
1247 compatible = "qcom,msm-imem-kaslr_offset";
1248 reg = <0x6d0 12>;
1249 };
Lingutla Chandrasekhar3c51f0b2017-09-12 14:21:21 +05301250
1251 boot_stats@6b0 {
1252 compatible = "qcom,msm-imem-boot_stats";
1253 reg = <0x6b0 0x20>;
1254 };
1255
1256 diag_dload@c8 {
1257 compatible = "qcom,msm-imem-diag-dload";
1258 reg = <0xc8 0xc8>;
1259 };
Imran Khan04f08312017-03-30 15:07:43 +05301260 };
1261
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301262 gpi_dma0: qcom,gpi-dma@0x800000 {
Jishnu Prakashfb619282017-11-06 11:07:53 +05301263 #dma-cells = <5>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301264 compatible = "qcom,gpi-dma";
1265 reg = <0x800000 0x60000>;
1266 reg-names = "gpi-top";
1267 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
1268 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
1269 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
1270 <0 256 0>;
1271 qcom,max-num-gpii = <13>;
1272 qcom,gpii-mask = <0xfa>;
1273 qcom,ev-factor = <2>;
1274 iommus = <&apps_smmu 0x0016 0x0>;
Jishnu Prakash71f42792017-11-02 16:04:21 +05301275 qcom,smmu-cfg = <0x1>;
1276 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301277 status = "ok";
1278 };
1279
1280 gpi_dma1: qcom,gpi-dma@0xa00000 {
Jishnu Prakashfb619282017-11-06 11:07:53 +05301281 #dma-cells = <5>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301282 compatible = "qcom,gpi-dma";
1283 reg = <0xa00000 0x60000>;
1284 reg-names = "gpi-top";
1285 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
1286 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
1287 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
1288 <0 299 0>;
1289 qcom,max-num-gpii = <13>;
1290 qcom,gpii-mask = <0xfa>;
1291 qcom,ev-factor = <2>;
Jishnu Prakash71f42792017-11-02 16:04:21 +05301292 qcom,smmu-cfg = <0x1>;
1293 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301294 iommus = <&apps_smmu 0x06d6 0x0>;
1295 status = "ok";
1296 };
1297
Imran Khan04f08312017-03-30 15:07:43 +05301298 cpuss_dump {
1299 compatible = "qcom,cpuss-dump";
1300 qcom,l1_i_cache0 {
1301 qcom,dump-node = <&L1_I_0>;
1302 qcom,dump-id = <0x60>;
1303 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301304 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301305 qcom,dump-node = <&L1_I_100>;
1306 qcom,dump-id = <0x61>;
1307 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301308 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301309 qcom,dump-node = <&L1_I_200>;
1310 qcom,dump-id = <0x62>;
1311 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301312 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301313 qcom,dump-node = <&L1_I_300>;
1314 qcom,dump-id = <0x63>;
1315 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301316 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301317 qcom,dump-node = <&L1_I_400>;
1318 qcom,dump-id = <0x64>;
1319 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301320 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301321 qcom,dump-node = <&L1_I_500>;
1322 qcom,dump-id = <0x65>;
1323 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301324 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301325 qcom,dump-node = <&L1_I_600>;
1326 qcom,dump-id = <0x66>;
1327 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301328 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301329 qcom,dump-node = <&L1_I_700>;
1330 qcom,dump-id = <0x67>;
1331 };
1332 qcom,l1_d_cache0 {
1333 qcom,dump-node = <&L1_D_0>;
1334 qcom,dump-id = <0x80>;
1335 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301336 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301337 qcom,dump-node = <&L1_D_100>;
1338 qcom,dump-id = <0x81>;
1339 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301340 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301341 qcom,dump-node = <&L1_D_200>;
1342 qcom,dump-id = <0x82>;
1343 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301344 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301345 qcom,dump-node = <&L1_D_300>;
1346 qcom,dump-id = <0x83>;
1347 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301348 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301349 qcom,dump-node = <&L1_D_400>;
1350 qcom,dump-id = <0x84>;
1351 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301352 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301353 qcom,dump-node = <&L1_D_500>;
1354 qcom,dump-id = <0x85>;
1355 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301356 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301357 qcom,dump-node = <&L1_D_600>;
1358 qcom,dump-id = <0x86>;
1359 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301360 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301361 qcom,dump-node = <&L1_D_700>;
1362 qcom,dump-id = <0x87>;
1363 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301364 qcom,llcc1_d_cache {
1365 qcom,dump-node = <&LLCC_1>;
1366 qcom,dump-id = <0x140>;
1367 };
1368 qcom,llcc2_d_cache {
1369 qcom,dump-node = <&LLCC_2>;
1370 qcom,dump-id = <0x141>;
1371 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301372 qcom,l1_tlb_dump0 {
1373 qcom,dump-node = <&L1_TLB_0>;
1374 qcom,dump-id = <0x20>;
1375 };
1376 qcom,l1_tlb_dump100 {
1377 qcom,dump-node = <&L1_TLB_100>;
1378 qcom,dump-id = <0x21>;
1379 };
1380 qcom,l1_tlb_dump200 {
1381 qcom,dump-node = <&L1_TLB_200>;
1382 qcom,dump-id = <0x22>;
1383 };
1384 qcom,l1_tlb_dump300 {
1385 qcom,dump-node = <&L1_TLB_300>;
1386 qcom,dump-id = <0x23>;
1387 };
1388 qcom,l1_tlb_dump400 {
1389 qcom,dump-node = <&L1_TLB_400>;
1390 qcom,dump-id = <0x24>;
1391 };
1392 qcom,l1_tlb_dump500 {
1393 qcom,dump-node = <&L1_TLB_500>;
1394 qcom,dump-id = <0x25>;
1395 };
1396 qcom,l1_tlb_dump600 {
1397 qcom,dump-node = <&L1_TLB_600>;
1398 qcom,dump-id = <0x26>;
1399 };
1400 qcom,l1_tlb_dump700 {
1401 qcom,dump-node = <&L1_TLB_700>;
1402 qcom,dump-id = <0x27>;
1403 };
Imran Khan04f08312017-03-30 15:07:43 +05301404 };
1405
Vishwanath Raju Kb6e9cb22018-05-02 11:56:34 +05301406 mem_dump: mem_dump {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301407 compatible = "qcom,mem-dump";
1408 memory-region = <&dump_mem>;
1409
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301410 rpmh {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301411 qcom,dump-size = <0x2000000>;
1412 qcom,dump-id = <0xec>;
1413 };
1414
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301415 rpm_sw {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301416 qcom,dump-size = <0x28000>;
1417 qcom,dump-id = <0xea>;
1418 };
1419
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301420 pmic {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301421 qcom,dump-size = <0x10000>;
1422 qcom,dump-id = <0xe4>;
1423 };
1424
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301425 tmc_etf {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301426 qcom,dump-size = <0x10000>;
1427 qcom,dump-id = <0xf0>;
1428 };
1429
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301430 tmc_etfswao {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301431 qcom,dump-size = <0x8400>;
1432 qcom,dump-id = <0xf1>;
1433 };
1434
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301435 tmc_etr_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301436 qcom,dump-size = <0x1000>;
1437 qcom,dump-id = <0x100>;
1438 };
1439
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301440 tmc_etf_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301441 qcom,dump-size = <0x1000>;
1442 qcom,dump-id = <0x101>;
1443 };
1444
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301445 etfswao_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301446 qcom,dump-size = <0x1000>;
1447 qcom,dump-id = <0x102>;
1448 };
1449
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301450 misc_data {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301451 qcom,dump-size = <0x1000>;
1452 qcom,dump-id = <0xe8>;
1453 };
1454
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301455 power_regs {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301456 qcom,dump-size = <0x100000>;
1457 qcom,dump-id = <0xed>;
1458 };
1459 };
1460
Imran Khan04f08312017-03-30 15:07:43 +05301461 kryo3xx-erp {
1462 compatible = "arm,arm64-kryo3xx-cpu-erp";
1463 interrupts = <1 6 4>,
1464 <1 7 4>,
1465 <0 34 4>,
1466 <0 35 4>;
1467
1468 interrupt-names = "l1-l2-faultirq",
1469 "l1-l2-errirq",
1470 "l3-scu-errirq",
1471 "l3-scu-faultirq";
1472 };
1473
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301474 qcom,ipc-spinlock@1f40000 {
1475 compatible = "qcom,ipc-spinlock-sfpb";
1476 reg = <0x1f40000 0x8000>;
1477 qcom,num-locks = <8>;
1478 };
1479
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301480 qcom,smem@86000000 {
1481 compatible = "qcom,smem";
1482 reg = <0x86000000 0x200000>,
1483 <0x17911008 0x4>,
1484 <0x778000 0x7000>,
1485 <0x1fd4000 0x8>;
1486 reg-names = "smem", "irq-reg-base", "aux-mem1",
1487 "smem_targ_info_reg";
1488 qcom,mpu-enabled;
1489 };
1490
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301491 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301492 compatible = "qcom,qmp-mbox";
1493 label = "aop";
1494 reg = <0xc300000 0x100000>,
1495 <0x1799000c 0x4>;
1496 reg-names = "msgram", "irq-reg-base";
1497 qcom,irq-mask = <0x1>;
1498 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301499 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301500 mbox-desc-offset = <0x0>;
1501 #mbox-cells = <1>;
1502 };
1503
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301504 qcom,glink-smem-native-xprt-modem@86000000 {
1505 compatible = "qcom,glink-smem-native-xprt";
1506 reg = <0x86000000 0x200000>,
1507 <0x1799000c 0x4>;
1508 reg-names = "smem", "irq-reg-base";
1509 qcom,irq-mask = <0x1000>;
1510 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1511 label = "mpss";
1512 };
1513
1514 qcom,glink-smem-native-xprt-adsp@86000000 {
1515 compatible = "qcom,glink-smem-native-xprt";
1516 reg = <0x86000000 0x200000>,
1517 <0x1799000c 0x4>;
1518 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301519 qcom,irq-mask = <0x1000000>;
1520 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301521 label = "lpass";
1522 qcom,qos-config = <&glink_qos_adsp>;
1523 qcom,ramp-time = <0xaf>;
1524 };
1525
1526 glink_qos_adsp: qcom,glink-qos-config-adsp {
1527 compatible = "qcom,glink-qos-config";
1528 qcom,flow-info = <0x3c 0x0>,
1529 <0x3c 0x0>,
1530 <0x3c 0x0>,
1531 <0x3c 0x0>;
1532 qcom,mtu-size = <0x800>;
1533 qcom,tput-stats-cycle = <0xa>;
1534 };
1535
1536 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1537 compatible = "qcom,glink-spi-xprt";
1538 label = "wdsp";
1539 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1540 qcom,qos-config = <&glink_qos_wdsp>;
1541 qcom,ramp-time = <0x10>,
1542 <0x20>,
1543 <0x30>,
1544 <0x40>;
1545 };
1546
1547 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1548 compatible = "qcom,glink-fifo-config";
1549 qcom,out-read-idx-reg = <0x12000>;
1550 qcom,out-write-idx-reg = <0x12004>;
1551 qcom,in-read-idx-reg = <0x1200C>;
1552 qcom,in-write-idx-reg = <0x12010>;
1553 };
1554
1555 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1556 compatible = "qcom,glink-qos-config";
1557 qcom,flow-info = <0x80 0x0>,
1558 <0x70 0x1>,
1559 <0x60 0x2>,
1560 <0x50 0x3>;
1561 qcom,mtu-size = <0x800>;
1562 qcom,tput-stats-cycle = <0xa>;
1563 };
1564
1565 qcom,glink-smem-native-xprt-cdsp@86000000 {
1566 compatible = "qcom,glink-smem-native-xprt";
1567 reg = <0x86000000 0x200000>,
1568 <0x1799000c 0x4>;
1569 reg-names = "smem", "irq-reg-base";
1570 qcom,irq-mask = <0x10>;
1571 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1572 label = "cdsp";
1573 };
1574
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301575 glink_mpss: qcom,glink-ssr-modem {
1576 compatible = "qcom,glink_ssr";
1577 label = "modem";
1578 qcom,edge = "mpss";
1579 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1580 qcom,xprt = "smem";
1581 };
1582
1583 glink_lpass: qcom,glink-ssr-adsp {
1584 compatible = "qcom,glink_ssr";
1585 label = "adsp";
1586 qcom,edge = "lpass";
1587 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1588 qcom,xprt = "smem";
1589 };
1590
1591 glink_cdsp: qcom,glink-ssr-cdsp {
1592 compatible = "qcom,glink_ssr";
1593 label = "cdsp";
1594 qcom,edge = "cdsp";
1595 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1596 qcom,xprt = "smem";
1597 };
1598
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301599 qcom,ipc_router {
1600 compatible = "qcom,ipc_router";
1601 qcom,node-id = <1>;
1602 };
1603
1604 qcom,ipc_router_modem_xprt {
1605 compatible = "qcom,ipc_router_glink_xprt";
1606 qcom,ch-name = "IPCRTR";
1607 qcom,xprt-remote = "mpss";
1608 qcom,glink-xprt = "smem";
1609 qcom,xprt-linkid = <1>;
1610 qcom,xprt-version = <1>;
1611 qcom,fragmented-data;
1612 };
1613
1614 qcom,ipc_router_q6_xprt {
1615 compatible = "qcom,ipc_router_glink_xprt";
1616 qcom,ch-name = "IPCRTR";
1617 qcom,xprt-remote = "lpass";
1618 qcom,glink-xprt = "smem";
1619 qcom,xprt-linkid = <1>;
1620 qcom,xprt-version = <1>;
1621 qcom,fragmented-data;
1622 };
1623
1624 qcom,ipc_router_cdsp_xprt {
1625 compatible = "qcom,ipc_router_glink_xprt";
1626 qcom,ch-name = "IPCRTR";
1627 qcom,xprt-remote = "cdsp";
1628 qcom,glink-xprt = "smem";
1629 qcom,xprt-linkid = <1>;
1630 qcom,xprt-version = <1>;
1631 qcom,fragmented-data;
1632 };
1633
Dhoat Harpal11d34482017-06-06 21:00:14 +05301634 qcom,glink_pkt {
1635 compatible = "qcom,glinkpkt";
1636
1637 qcom,glinkpkt-at-mdm0 {
1638 qcom,glinkpkt-transport = "smem";
1639 qcom,glinkpkt-edge = "mpss";
1640 qcom,glinkpkt-ch-name = "DS";
1641 qcom,glinkpkt-dev-name = "at_mdm0";
1642 };
1643
1644 qcom,glinkpkt-loopback_cntl {
1645 qcom,glinkpkt-transport = "lloop";
1646 qcom,glinkpkt-edge = "local";
1647 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1648 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1649 };
1650
1651 qcom,glinkpkt-loopback_data {
1652 qcom,glinkpkt-transport = "lloop";
1653 qcom,glinkpkt-edge = "local";
1654 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1655 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1656 };
1657
1658 qcom,glinkpkt-apr-apps2 {
1659 qcom,glinkpkt-transport = "smem";
1660 qcom,glinkpkt-edge = "adsp";
1661 qcom,glinkpkt-ch-name = "apr_apps2";
1662 qcom,glinkpkt-dev-name = "apr_apps2";
1663 };
1664
1665 qcom,glinkpkt-data40-cntl {
1666 qcom,glinkpkt-transport = "smem";
1667 qcom,glinkpkt-edge = "mpss";
1668 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1669 qcom,glinkpkt-dev-name = "smdcntl8";
1670 };
1671
1672 qcom,glinkpkt-data1 {
1673 qcom,glinkpkt-transport = "smem";
1674 qcom,glinkpkt-edge = "mpss";
1675 qcom,glinkpkt-ch-name = "DATA1";
1676 qcom,glinkpkt-dev-name = "smd7";
1677 };
1678
1679 qcom,glinkpkt-data4 {
1680 qcom,glinkpkt-transport = "smem";
1681 qcom,glinkpkt-edge = "mpss";
1682 qcom,glinkpkt-ch-name = "DATA4";
1683 qcom,glinkpkt-dev-name = "smd8";
1684 };
1685
1686 qcom,glinkpkt-data11 {
1687 qcom,glinkpkt-transport = "smem";
1688 qcom,glinkpkt-edge = "mpss";
1689 qcom,glinkpkt-ch-name = "DATA11";
1690 qcom,glinkpkt-dev-name = "smd11";
1691 };
1692 };
1693
Gaurav Kohlid1131902018-02-21 13:21:25 +05301694 qcom,chd_silver {
Imran Khan04f08312017-03-30 15:07:43 +05301695 compatible = "qcom,core-hang-detect";
1696 label = "silver";
1697 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1698 0x17e30058 0x17e40058 0x17e50058>;
1699 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1700 0x17e30060 0x17e40060 0x17e50060>;
1701 };
1702
1703 qcom,chd_gold {
1704 compatible = "qcom,core-hang-detect";
1705 label = "gold";
1706 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1707 qcom,config-arr = <0x17e60060 0x17e70060>;
1708 };
1709
1710 qcom,ghd {
1711 compatible = "qcom,gladiator-hang-detect-v2";
1712 qcom,threshold-arr = <0x1799041c 0x17990420>;
1713 qcom,config-reg = <0x17990434>;
1714 };
1715
1716 qcom,msm-gladiator-v3@17900000 {
1717 compatible = "qcom,msm-gladiator-v3";
1718 reg = <0x17900000 0xd080>;
1719 reg-names = "gladiator_base";
1720 interrupts = <0 17 0>;
1721 };
1722
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301723 eud: qcom,msm-eud@88e0000 {
1724 compatible = "qcom,msm-eud";
1725 interrupt-names = "eud_irq";
1726 interrupts = <GIC_SPI 492 IRQ_TYPE_LEVEL_HIGH>;
1727 reg = <0x88e0000 0x2000>;
1728 reg-names = "eud_base";
Lingutla Chandrasekhar5422daf2017-10-26 11:27:32 +05301729 clocks = <&clock_gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>;
1730 clock-names = "cfg_ahb_clk";
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301731 };
1732
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301733 qcom,llcc@1100000 {
1734 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1735 reg = <0x1100000 0x250000>;
1736 reg-names = "llcc_base";
1737 qcom,llcc-banks-off = <0x0 0x80000 >;
1738 qcom,llcc-broadcast-off = <0x200000>;
1739
1740 llcc: qcom,sdm670-llcc {
1741 compatible = "qcom,sdm670-llcc";
1742 #cache-cells = <1>;
1743 max-slices = <32>;
1744 qcom,dump-size = <0x80000>;
1745 };
1746
Sankaran Nampoothiri0c5dac02017-11-06 11:53:52 +05301747 qcom,llcc-perfmon {
1748 compatible = "qcom,llcc-perfmon";
1749 };
1750
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301751 qcom,llcc-erp {
1752 compatible = "qcom,llcc-erp";
1753 interrupt-names = "ecc_irq";
1754 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1755 };
1756
1757 qcom,llcc-amon {
1758 compatible = "qcom,llcc-amon";
1759 };
1760
1761 LLCC_1: llcc_1_dcache {
1762 qcom,dump-size = <0xd8000>;
1763 };
1764
1765 LLCC_2: llcc_2_dcache {
1766 qcom,dump-size = <0xd8000>;
1767 };
1768 };
1769
Maulik Shah210773d2017-06-15 09:49:12 +05301770 cmd_db: qcom,cmd-db@c3f000c {
1771 compatible = "qcom,cmd-db";
1772 reg = <0xc3f000c 0x8>;
1773 };
1774
Maulik Shahc77d1d22017-06-15 14:04:50 +05301775 apps_rsc: mailbox@179e0000 {
1776 compatible = "qcom,tcs-drv";
1777 label = "apps_rsc";
1778 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1779 interrupts = <0 5 0>;
1780 #mbox-cells = <1>;
1781 qcom,drv-id = <2>;
1782 qcom,tcs-config = <ACTIVE_TCS 2>,
1783 <SLEEP_TCS 3>,
1784 <WAKE_TCS 3>,
1785 <CONTROL_TCS 1>;
1786 };
1787
Maulik Shahda3941f2017-06-15 09:41:38 +05301788 disp_rsc: mailbox@af20000 {
1789 compatible = "qcom,tcs-drv";
1790 label = "display_rsc";
1791 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1792 interrupts = <0 129 0>;
1793 #mbox-cells = <1>;
1794 qcom,drv-id = <0>;
1795 qcom,tcs-config = <SLEEP_TCS 1>,
1796 <WAKE_TCS 1>,
1797 <ACTIVE_TCS 0>,
1798 <CONTROL_TCS 1>;
1799 };
1800
Maulik Shah0dd203f2017-06-15 09:44:59 +05301801 system_pm {
1802 compatible = "qcom,system-pm";
1803 mboxes = <&apps_rsc 0>;
1804 };
1805
Imran Khan04f08312017-03-30 15:07:43 +05301806 dcc: dcc_v2@10a2000 {
Mao Jinlong1d656f92018-04-09 16:09:44 +08001807 compatible = "qcom,dcc-v2";
Imran Khan04f08312017-03-30 15:07:43 +05301808 reg = <0x10a2000 0x1000>,
1809 <0x10ae000 0x2000>;
1810 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301811
1812 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301813 };
1814
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301815 spmi_bus: qcom,spmi@c440000 {
1816 compatible = "qcom,spmi-pmic-arb";
1817 reg = <0xc440000 0x1100>,
1818 <0xc600000 0x2000000>,
1819 <0xe600000 0x100000>,
1820 <0xe700000 0xa0000>,
1821 <0xc40a000 0x26000>;
1822 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1823 interrupt-names = "periph_irq";
1824 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1825 qcom,ee = <0>;
1826 qcom,channel = <0>;
1827 #address-cells = <2>;
1828 #size-cells = <0>;
1829 interrupt-controller;
1830 #interrupt-cells = <4>;
1831 cell-index = <0>;
1832 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301833
Neeraj Soni3c041f12018-01-19 16:45:44 +05301834 ufs_ice: ufsice@1d90000 {
1835 compatible = "qcom,ice";
1836 reg = <0x1d90000 0x8000>;
1837 qcom,enable-ice-clk;
1838 clock-names = "ufs_core_clk", "bus_clk",
1839 "iface_clk", "ice_core_clk";
1840 clocks = <&clock_gcc GCC_UFS_PHY_AXI_CLK>,
1841 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1842 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1843 <&clock_gcc GCC_UFS_PHY_ICE_CORE_CLK>;
1844 qcom,op-freq-hz = <0>, <0>, <0>, <300000000>;
1845 vdd-hba-supply = <&ufs_phy_gdsc>;
1846 qcom,msm-bus,name = "ufs_ice_noc";
1847 qcom,msm-bus,num-cases = <2>;
1848 qcom,msm-bus,num-paths = <1>;
1849 qcom,msm-bus,vectors-KBps =
1850 <1 650 0 0>, /* No vote */
1851 <1 650 1000 0>; /* Max. bandwidth */
1852 qcom,bus-vector-names = "MIN",
1853 "MAX";
1854 qcom,instance-type = "ufs";
1855 };
1856
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301857 ufsphy_mem: ufsphy_mem@1d87000 {
1858 reg = <0x1d87000 0xe00>; /* PHY regs */
1859 reg-names = "phy_mem";
1860 #phy-cells = <0>;
1861
1862 lanes-per-direction = <1>;
1863
1864 clock-names = "ref_clk_src",
1865 "ref_clk",
1866 "ref_aux_clk";
1867 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1868 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1869 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1870
1871 status = "disabled";
1872 };
1873
1874 ufshc_mem: ufshc@1d84000 {
1875 compatible = "qcom,ufshc";
1876 reg = <0x1d84000 0x3000>;
1877 interrupts = <0 265 0>;
1878 phys = <&ufsphy_mem>;
1879 phy-names = "ufsphy";
Neeraj Soni3c041f12018-01-19 16:45:44 +05301880 ufs-qcom-crypto = <&ufs_ice>;
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301881
1882 lanes-per-direction = <1>;
Sayali Lokhande1e49f022018-09-07 12:24:43 +05301883 spm-level = <5>;
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301884 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1885
1886 clock-names =
1887 "core_clk",
1888 "bus_aggr_clk",
1889 "iface_clk",
1890 "core_clk_unipro",
1891 "core_clk_ice",
1892 "ref_clk",
1893 "tx_lane0_sync_clk",
1894 "rx_lane0_sync_clk";
1895 clocks =
1896 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
Veerabhadrarao Badiganti0161cd72018-05-14 15:02:02 +05301897 <&clock_gcc UFS_PHY_AXI_UFS_VOTE_CLK>,
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301898 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1899 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1900 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1901 <&clock_rpmh RPMH_CXO_CLK>,
1902 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1903 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1904 freq-table-hz =
1905 <50000000 200000000>,
1906 <0 0>,
1907 <0 0>,
1908 <37500000 150000000>,
1909 <75000000 300000000>,
1910 <0 0>,
1911 <0 0>,
1912 <0 0>;
1913
Sayali Lokhandeaa3db742017-10-09 15:13:01 +05301914 non-removable;
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301915 qcom,msm-bus,name = "ufshc_mem";
1916 qcom,msm-bus,num-cases = <12>;
1917 qcom,msm-bus,num-paths = <2>;
1918 qcom,msm-bus,vectors-KBps =
1919 /*
1920 * During HS G3 UFS runs at nominal voltage corner, vote
1921 * higher bandwidth to push other buses in the data path
1922 * to run at nominal to achieve max throughput.
1923 * 4GBps pushes BIMC to run at nominal.
1924 * 200MBps pushes CNOC to run at nominal.
1925 * Vote for half of this bandwidth for HS G3 1-lane.
1926 * For max bandwidth, vote high enough to push the buses
1927 * to run in turbo voltage corner.
1928 */
1929 <123 512 0 0>, <1 757 0 0>, /* No vote */
1930 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1931 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1932 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1933 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1934 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1935 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1936 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1937 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1938 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1939 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1940 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1941
1942 qcom,bus-vector-names = "MIN",
1943 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1944 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1945 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1946 "MAX";
1947
1948 /* PM QoS */
1949 qcom,pm-qos-cpu-groups = <0x3f 0xC0>;
Maulik Shah0223afc2018-02-09 12:47:28 +05301950 qcom,pm-qos-cpu-group-latency-us = <67 67>;
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301951 qcom,pm-qos-default-cpu = <0>;
1952
Sayali Lokhandebd53f6a2018-04-05 16:32:08 +05301953 pinctrl-names = "dev-reset-assert", "dev-reset-deassert";
1954 pinctrl-0 = <&ufs_dev_reset_assert>;
1955 pinctrl-1 = <&ufs_dev_reset_deassert>;
1956
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301957 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1958 reset-names = "core_reset";
1959
1960 status = "disabled";
1961 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301962
1963 qcom,lpass@62400000 {
1964 compatible = "qcom,pil-tz-generic";
1965 reg = <0x62400000 0x00100>;
1966 interrupts = <0 162 1>;
1967
1968 vdd_cx-supply = <&pm660l_l9_level>;
1969 qcom,proxy-reg-names = "vdd_cx";
1970 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1971
1972 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1973 clock-names = "xo";
1974 qcom,proxy-clock-names = "xo";
1975
1976 qcom,pas-id = <1>;
1977 qcom,proxy-timeout-ms = <10000>;
1978 qcom,smem-id = <423>;
1979 qcom,sysmon-id = <1>;
1980 qcom,ssctl-instance-id = <0x14>;
1981 qcom,firmware-name = "adsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301982 qcom,signal-aop;
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301983 memory-region = <&pil_adsp_mem>;
1984
1985 /* GPIO inputs from lpass */
1986 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1987 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1988 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1989 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1990
1991 /* GPIO output to lpass */
1992 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301993
1994 mboxes = <&qmp_aop 0>;
1995 mbox-names = "adsp-pil";
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301996 status = "ok";
1997 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301998
Sahitya Tummala02e49182017-09-19 10:54:42 +05301999 qcom,rmtfs_sharedmem@0 {
2000 compatible = "qcom,sharedmem-uio";
2001 reg = <0x0 0x200000>;
2002 reg-names = "rmtfs";
2003 qcom,client-id = <0x00000001>;
Sahitya Tummala57f7b572017-10-23 10:29:03 +05302004 qcom,guard-memory;
Sahitya Tummala02e49182017-09-19 10:54:42 +05302005 };
2006
Mohammed Javidf97a10e2017-10-08 13:11:26 +05302007 qcom,msm_gsi {
2008 compatible = "qcom,msm_gsi";
2009 };
2010
Mohammed Javid736c25c2017-06-19 13:23:18 +05302011 qcom,rmnet-ipa {
2012 compatible = "qcom,rmnet-ipa3";
2013 qcom,rmnet-ipa-ssr;
2014 qcom,ipa-loaduC;
2015 qcom,ipa-advertise-sg-support;
2016 qcom,ipa-napi-enable;
2017 };
2018
2019 ipa_hw: qcom,ipa@01e00000 {
2020 compatible = "qcom,ipa";
2021 reg = <0x1e00000 0x34000>,
2022 <0x1e04000 0x2c000>;
2023 reg-names = "ipa-base", "gsi-base";
2024 interrupts =
2025 <0 311 0>,
2026 <0 432 0>;
2027 interrupt-names = "ipa-irq", "gsi-irq";
2028 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
Mohammed Javiddcefa282018-04-10 17:22:30 +05302029 qcom,ipa-hw-mode = <0>;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302030 qcom,ee = <0>;
2031 qcom,use-ipa-tethering-bridge;
2032 qcom,modem-cfg-emb-pipe-flt;
2033 qcom,ipa-wdi2;
2034 qcom,use-64-bit-dma-mask;
2035 qcom,arm-smmu;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302036 qcom,bandwidth-vote-for-ipa;
2037 qcom,msm-bus,name = "ipa";
Mohammed Javid963acd02018-01-17 12:59:40 +05302038 qcom,msm-bus,num-cases = <5>;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302039 qcom,msm-bus,num-paths = <4>;
2040 qcom,msm-bus,vectors-KBps =
2041 /* No vote */
2042 <90 512 0 0>,
2043 <90 585 0 0>,
2044 <1 676 0 0>,
2045 <143 777 0 0>,
Mohammed Javid963acd02018-01-17 12:59:40 +05302046 /* SVS2 */
2047 <90 512 80000 600000>,
2048 <90 585 80000 350000>,
2049 <1 676 40000 40000>, /*gcc_config_noc_clk_src */
2050 <143 777 0 75>, /* IB defined for IPA2X_clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05302051 /* SVS */
2052 <90 512 80000 640000>,
2053 <90 585 80000 640000>,
2054 <1 676 80000 80000>,
Mohammed Javid963acd02018-01-17 12:59:40 +05302055 <143 777 0 150>, /* IB defined for IPA2X_clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05302056 /* NOMINAL */
2057 <90 512 206000 960000>,
2058 <90 585 206000 960000>,
2059 <1 676 206000 160000>,
Mohammed Javid963acd02018-01-17 12:59:40 +05302060 <143 777 0 300>, /* IB defined for IPA2X_clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05302061 /* TURBO */
2062 <90 512 206000 3600000>,
2063 <90 585 206000 3600000>,
2064 <1 676 206000 300000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05302065 <143 777 0 355>; /* IB defined for IPA clk in MHz*/
Mohammed Javid963acd02018-01-17 12:59:40 +05302066 qcom,bus-vector-names =
2067 "MIN", "SVS2", "SVS", "NOMINAL", "TURBO";
Mohammed Javid736c25c2017-06-19 13:23:18 +05302068
2069 /* IPA RAM mmap */
2070 qcom,ipa-ram-mmap = <
2071 0x280 /* ofst_start; */
2072 0x0 /* nat_ofst; */
2073 0x0 /* nat_size; */
2074 0x288 /* v4_flt_hash_ofst; */
2075 0x78 /* v4_flt_hash_size; */
2076 0x4000 /* v4_flt_hash_size_ddr; */
2077 0x308 /* v4_flt_nhash_ofst; */
2078 0x78 /* v4_flt_nhash_size; */
2079 0x4000 /* v4_flt_nhash_size_ddr; */
2080 0x388 /* v6_flt_hash_ofst; */
2081 0x78 /* v6_flt_hash_size; */
2082 0x4000 /* v6_flt_hash_size_ddr; */
2083 0x408 /* v6_flt_nhash_ofst; */
2084 0x78 /* v6_flt_nhash_size; */
2085 0x4000 /* v6_flt_nhash_size_ddr; */
2086 0xf /* v4_rt_num_index; */
2087 0x0 /* v4_modem_rt_index_lo; */
2088 0x7 /* v4_modem_rt_index_hi; */
2089 0x8 /* v4_apps_rt_index_lo; */
2090 0xe /* v4_apps_rt_index_hi; */
2091 0x488 /* v4_rt_hash_ofst; */
2092 0x78 /* v4_rt_hash_size; */
2093 0x4000 /* v4_rt_hash_size_ddr; */
2094 0x508 /* v4_rt_nhash_ofst; */
2095 0x78 /* v4_rt_nhash_size; */
2096 0x4000 /* v4_rt_nhash_size_ddr; */
2097 0xf /* v6_rt_num_index; */
2098 0x0 /* v6_modem_rt_index_lo; */
2099 0x7 /* v6_modem_rt_index_hi; */
2100 0x8 /* v6_apps_rt_index_lo; */
2101 0xe /* v6_apps_rt_index_hi; */
2102 0x588 /* v6_rt_hash_ofst; */
2103 0x78 /* v6_rt_hash_size; */
2104 0x4000 /* v6_rt_hash_size_ddr; */
2105 0x608 /* v6_rt_nhash_ofst; */
2106 0x78 /* v6_rt_nhash_size; */
2107 0x4000 /* v6_rt_nhash_size_ddr; */
2108 0x688 /* modem_hdr_ofst; */
2109 0x140 /* modem_hdr_size; */
2110 0x7c8 /* apps_hdr_ofst; */
2111 0x0 /* apps_hdr_size; */
2112 0x800 /* apps_hdr_size_ddr; */
2113 0x7d0 /* modem_hdr_proc_ctx_ofst; */
2114 0x200 /* modem_hdr_proc_ctx_size; */
2115 0x9d0 /* apps_hdr_proc_ctx_ofst; */
2116 0x200 /* apps_hdr_proc_ctx_size; */
2117 0x0 /* apps_hdr_proc_ctx_size_ddr; */
2118 0x0 /* modem_comp_decomp_ofst; diff */
2119 0x0 /* modem_comp_decomp_size; diff */
2120 0xbd8 /* modem_ofst; */
2121 0x1024 /* modem_size; */
2122 0x2000 /* apps_v4_flt_hash_ofst; */
2123 0x0 /* apps_v4_flt_hash_size; */
2124 0x2000 /* apps_v4_flt_nhash_ofst; */
2125 0x0 /* apps_v4_flt_nhash_size; */
2126 0x2000 /* apps_v6_flt_hash_ofst; */
2127 0x0 /* apps_v6_flt_hash_size; */
2128 0x2000 /* apps_v6_flt_nhash_ofst; */
2129 0x0 /* apps_v6_flt_nhash_size; */
2130 0x80 /* uc_info_ofst; */
2131 0x200 /* uc_info_size; */
2132 0x2000 /* end_ofst; */
2133 0x2000 /* apps_v4_rt_hash_ofst; */
2134 0x0 /* apps_v4_rt_hash_size; */
2135 0x2000 /* apps_v4_rt_nhash_ofst; */
2136 0x0 /* apps_v4_rt_nhash_size; */
2137 0x2000 /* apps_v6_rt_hash_ofst; */
2138 0x0 /* apps_v6_rt_hash_size; */
2139 0x2000 /* apps_v6_rt_nhash_ofst; */
2140 0x0 /* apps_v6_rt_nhash_size; */
2141 0x1c00 /* uc_event_ring_ofst; */
2142 0x400 /* uc_event_ring_size; */
2143 >;
2144
2145 /* smp2p gpio information */
2146 qcom,smp2pgpio_map_ipa_1_out {
2147 compatible = "qcom,smp2pgpio-map-ipa-1-out";
2148 gpios = <&smp2pgpio_ipa_1_out 0 0>;
2149 };
2150
2151 qcom,smp2pgpio_map_ipa_1_in {
2152 compatible = "qcom,smp2pgpio-map-ipa-1-in";
2153 gpios = <&smp2pgpio_ipa_1_in 0 0>;
2154 };
2155
2156 ipa_smmu_ap: ipa_smmu_ap {
2157 compatible = "qcom,ipa-smmu-ap-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302158 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302159 iommus = <&apps_smmu 0x720 0x0>;
2160 qcom,iova-mapping = <0x20000000 0x40000000>;
2161 };
2162
2163 ipa_smmu_wlan: ipa_smmu_wlan {
2164 compatible = "qcom,ipa-smmu-wlan-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302165 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302166 iommus = <&apps_smmu 0x721 0x0>;
2167 };
2168
2169 ipa_smmu_uc: ipa_smmu_uc {
2170 compatible = "qcom,ipa-smmu-uc-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302171 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302172 iommus = <&apps_smmu 0x722 0x0>;
2173 qcom,iova-mapping = <0x40000000 0x20000000>;
2174 };
2175 };
2176
2177 qcom,ipa_fws {
2178 compatible = "qcom,pil-tz-generic";
2179 qcom,pas-id = <0xf>;
2180 qcom,firmware-name = "ipa_fws";
Mohammed Javid42445cb2018-02-01 18:22:17 +05302181 qcom,pil-force-shutdown;
Mohammed Javide0dd2a32018-01-25 14:18:56 +05302182 memory-region = <&pil_ipa_fw_mem>;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302183 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302184
2185 pil_modem: qcom,mss@4080000 {
2186 compatible = "qcom,pil-q6v55-mss";
2187 reg = <0x4080000 0x100>,
2188 <0x1f63000 0x008>,
2189 <0x1f65000 0x008>,
2190 <0x1f64000 0x008>,
2191 <0x4180000 0x020>,
2192 <0xc2b0000 0x004>,
2193 <0xb2e0100 0x004>,
2194 <0x4180044 0x004>;
2195 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
2196 "halt_nc", "rmb_base", "restart_reg",
2197 "pdc_sync", "alt_reset";
2198
2199 clocks = <&clock_rpmh RPMH_CXO_CLK>,
2200 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
2201 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
2202 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
2203 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
2204 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
2205 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
2206 <&clock_gcc GCC_PRNG_AHB_CLK>;
2207 clock-names = "xo", "iface_clk", "bus_clk",
2208 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
2209 "mnoc_axi_clk", "prng_clk";
2210 qcom,proxy-clock-names = "xo", "prng_clk";
2211 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
2212 "gpll0_mss_clk", "snoc_axi_clk",
2213 "mnoc_axi_clk";
2214
2215 interrupts = <0 266 1>;
2216 vdd_cx-supply = <&pm660l_s3_level>;
2217 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
2218 vdd_mx-supply = <&pm660l_s1_level>;
2219 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Jitendra Sharma2e981ef2017-10-30 12:16:23 +05302220 vdd_mss-supply = <&pm660_s5_level>;
2221 vdd_mss-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302222 qcom,firmware-name = "modem";
2223 qcom,pil-self-auth;
2224 qcom,sysmon-id = <0>;
Avaneesh Kumar Dwivedi8d336612017-11-09 16:48:25 +05302225 qcom,minidump-id = <3>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302226 qcom,ssctl-instance-id = <0x12>;
2227 qcom,override-acc;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302228 qcom,signal-aop;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302229 qcom,qdsp6v65-1-0;
Jitendra Sharma93dd7fc2017-10-14 17:38:55 +05302230 qcom,mss_pdc_offset = <9>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302231 status = "ok";
2232 memory-region = <&pil_modem_mem>;
2233 qcom,mem-protect-id = <0xF>;
Shadab Naseem60b870a2018-05-11 14:31:03 +05302234 qcom,complete-ramdump;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302235
2236 /* GPIO inputs from mss */
2237 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
2238 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
2239 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
2240 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
2241 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
2242
2243 /* GPIO output to mss */
2244 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302245
2246 mboxes = <&qmp_aop 0>;
2247 mbox-names = "mss-pil";
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302248 qcom,mba-mem@0 {
2249 compatible = "qcom,pil-mba-mem";
2250 memory-region = <&pil_mba_mem>;
2251 };
2252 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05302253
2254 qcom,venus@aae0000 {
2255 compatible = "qcom,pil-tz-generic";
2256 reg = <0xaae0000 0x4000>;
2257
2258 vdd-supply = <&venus_gdsc>;
2259 qcom,proxy-reg-names = "vdd";
2260
2261 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
2262 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
2263 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
2264 clock-names = "core_clk", "iface_clk", "bus_clk";
2265 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
2266
2267 qcom,pas-id = <9>;
2268 qcom,msm-bus,name = "pil-venus";
2269 qcom,msm-bus,num-cases = <2>;
2270 qcom,msm-bus,num-paths = <1>;
2271 qcom,msm-bus,vectors-KBps =
2272 <63 512 0 0>,
2273 <63 512 0 304000>;
2274 qcom,proxy-timeout-ms = <100>;
2275 qcom,firmware-name = "venus";
2276 memory-region = <&pil_video_mem>;
2277 status = "ok";
2278 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05302279
2280 qcom,turing@8300000 {
2281 compatible = "qcom,pil-tz-generic";
2282 reg = <0x8300000 0x100000>;
2283 interrupts = <0 578 1>;
2284
2285 vdd_cx-supply = <&pm660l_s3_level>;
2286 qcom,proxy-reg-names = "vdd_cx";
2287 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2288
2289 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2290 clock-names = "xo";
2291 qcom,proxy-clock-names = "xo";
2292
2293 qcom,pas-id = <18>;
2294 qcom,proxy-timeout-ms = <10000>;
2295 qcom,smem-id = <601>;
2296 qcom,sysmon-id = <7>;
2297 qcom,ssctl-instance-id = <0x17>;
2298 qcom,firmware-name = "cdsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302299 qcom,signal-aop;
Gaurav Kohli106f4882017-06-29 12:29:12 +05302300 memory-region = <&pil_cdsp_mem>;
2301
2302 /* GPIO inputs from turing */
2303 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
2304 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
2305 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
2306 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
2307
2308 /* GPIO output to turing*/
2309 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302310
2311 mboxes = <&qmp_aop 0>;
2312 mbox-names = "cdsp-pil";
Gaurav Kohli106f4882017-06-29 12:29:12 +05302313 status = "ok";
2314 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05302315
Neeraj Soni27efd652017-11-01 18:17:58 +05302316 sdcc1_ice: sdcc1ice@7c8000 {
2317 compatible = "qcom,ice";
2318 reg = <0x7c8000 0x8000>;
2319 qcom,enable-ice-clk;
2320 clock-names = "ice_core_clk_src", "ice_core_clk",
2321 "bus_clk", "iface_clk";
2322 clocks = <&clock_gcc GCC_SDCC1_ICE_CORE_CLK_SRC>,
2323 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
2324 <&clock_gcc GCC_SDCC1_APPS_CLK>,
2325 <&clock_gcc GCC_SDCC1_AHB_CLK>;
2326 qcom,op-freq-hz = <300000000>, <0>, <0>, <0>;
2327 qcom,msm-bus,name = "sdcc_ice_noc";
2328 qcom,msm-bus,num-cases = <2>;
2329 qcom,msm-bus,num-paths = <1>;
2330 qcom,msm-bus,vectors-KBps =
2331 <150 512 0 0>, /* No vote */
2332 <150 512 1000 0>; /* Max. bandwidth */
2333 qcom,bus-vector-names = "MIN",
2334 "MAX";
2335 qcom,instance-type = "sdcc";
2336 };
2337
Vijay Viswanatheac72722017-06-05 11:01:38 +05302338 sdhc_1: sdhci@7c4000 {
2339 compatible = "qcom,sdhci-msm-v5";
2340 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
2341 reg-names = "hc_mem", "cmdq_mem";
2342
2343 interrupts = <0 641 0>, <0 644 0>;
2344 interrupt-names = "hc_irq", "pwr_irq";
2345
2346 qcom,bus-width = <8>;
2347 qcom,large-address-bus;
Neeraj Soni27efd652017-11-01 18:17:58 +05302348 sdhc-msm-crypto = <&sdcc1_ice>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302349
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302350 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
2351 192000000 384000000>;
Vijay Viswanath01db23a2017-11-09 15:46:22 +05302352 qcom,bus-aggr-clk-rates = <50000000 50000000 50000000 50000000
2353 100000000 200000000 200000000>;
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302354 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
2355
2356 qcom,devfreq,freq-table = <50000000 200000000>;
2357
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302358 qcom,msm-bus,name = "sdhc1";
2359 qcom,msm-bus,num-cases = <9>;
2360 qcom,msm-bus,num-paths = <2>;
2361 qcom,msm-bus,vectors-KBps =
2362 /* No vote */
Vijay Viswanath49024c22017-10-17 12:42:06 +05302363 <150 512 0 0>, <1 782 0 0>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302364 /* 400 KB/s*/
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302365 <150 512 1046 1600>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302366 <1 782 1600 1600>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302367 /* 20 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302368 <150 512 52286 80000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302369 <1 782 80000 80000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302370 /* 25 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302371 <150 512 65360 100000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302372 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302373 /* 50 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302374 <150 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302375 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302376 /* 100 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302377 <150 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302378 <1 782 130000 130000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302379 /* 200 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302380 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302381 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302382 /* 400 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302383 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302384 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302385 /* Max. bandwidth */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302386 <150 512 1338562 4096000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302387 <1 782 1338562 4096000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302388 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2389 100000000 200000000 400000000 4294967295>;
2390
2391 /* PM QoS */
2392 qcom,pm-qos-irq-type = "affine_irq";
Vijay Viswanathcac6f862018-03-20 11:40:54 +05302393 qcom,pm-qos-irq-latency = <67 67>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302394 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
Maulik Shah0223afc2018-02-09 12:47:28 +05302395 qcom,pm-qos-cmdq-latency-us = <67 67>, <67 67>;
2396 qcom,pm-qos-legacy-latency-us = <67 67>, <67 67>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302397
Vijay Viswanatheac72722017-06-05 11:01:38 +05302398 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302399 <&clock_gcc GCC_SDCC1_APPS_CLK>,
Vijay Viswanath7e20ddc2017-10-07 14:23:38 +05302400 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
Veerabhadrarao Badiganti0161cd72018-05-14 15:02:02 +05302401 <&clock_gcc UFS_PHY_AXI_EMMC_VOTE_CLK>;
Vijay Viswanath7e20ddc2017-10-07 14:23:38 +05302402 clock-names = "iface_clk", "core_clk", "ice_core_clk",
2403 "bus_aggr_clk";
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302404
2405 qcom,ice-clk-rates = <300000000 75000000>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302406
Vijay Viswanathd4dcf5f2017-10-17 15:42:00 +05302407 qcom,ddr-config = <0xC3040873>;
2408
Vijay Viswanatheac72722017-06-05 11:01:38 +05302409 qcom,nonremovable;
Asutosh Das3d37f972018-01-12 15:48:25 +05302410 nvmem-cells = <&minor_rev>;
2411 nvmem-cell-names = "minor_rev";
Vijay Viswanatheac72722017-06-05 11:01:38 +05302412
Vijay Viswanatheac72722017-06-05 11:01:38 +05302413 status = "disabled";
2414 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302415
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302416 sdhc_2: sdhci@8804000 {
2417 compatible = "qcom,sdhci-msm-v5";
2418 reg = <0x8804000 0x1000>;
2419 reg-names = "hc_mem";
2420
2421 interrupts = <0 204 0>, <0 222 0>;
2422 interrupt-names = "hc_irq", "pwr_irq";
2423
2424 qcom,bus-width = <4>;
2425 qcom,large-address-bus;
2426
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302427 qcom,clk-rates = <400000 20000000 25000000
2428 50000000 100000000 201500000>;
2429 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
2430 "SDR104";
2431
2432 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302433
2434 qcom,msm-bus,name = "sdhc2";
2435 qcom,msm-bus,num-cases = <8>;
2436 qcom,msm-bus,num-paths = <2>;
2437 qcom,msm-bus,vectors-KBps =
2438 /* No vote */
2439 <81 512 0 0>, <1 608 0 0>,
2440 /* 400 KB/s*/
2441 <81 512 1046 1600>,
2442 <1 608 1600 1600>,
2443 /* 20 MB/s */
2444 <81 512 52286 80000>,
2445 <1 608 80000 80000>,
2446 /* 25 MB/s */
2447 <81 512 65360 100000>,
2448 <1 608 100000 100000>,
2449 /* 50 MB/s */
2450 <81 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302451 <1 608 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302452 /* 100 MB/s */
2453 <81 512 261438 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302454 <1 608 130000 130000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302455 /* 200 MB/s */
2456 <81 512 261438 400000>,
2457 <1 608 300000 300000>,
2458 /* Max. bandwidth */
2459 <81 512 1338562 4096000>,
2460 <1 608 1338562 4096000>;
2461 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2462 100000000 200000000 4294967295>;
2463
2464 /* PM QoS */
2465 qcom,pm-qos-irq-type = "affine_irq";
Maulik Shah0223afc2018-02-09 12:47:28 +05302466 qcom,pm-qos-irq-latency = <67 67>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302467 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
Maulik Shah0223afc2018-02-09 12:47:28 +05302468 qcom,pm-qos-legacy-latency-us = <67 67>, <67 67>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302469
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302470 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
2471 <&clock_gcc GCC_SDCC2_APPS_CLK>;
2472 clock-names = "iface_clk", "core_clk";
2473
2474 status = "disabled";
2475 };
2476
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302477 qcom,msm-cdsp-loader {
2478 compatible = "qcom,cdsp-loader";
2479 qcom,proc-img-to-load = "cdsp";
2480 };
2481
2482 qcom,msm-adsprpc-mem {
2483 compatible = "qcom,msm-adsprpc-mem-region";
2484 memory-region = <&adsp_mem>;
Tharun Kumar Merugu8bb71292018-01-17 15:55:05 +05302485 restrict-access;
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302486 };
2487
2488 qcom,msm_fastrpc {
2489 compatible = "qcom,msm-fastrpc-compute";
Tharun Kumar Merugubbebad12017-12-21 16:33:03 +05302490 qcom,adsp-remoteheap-vmid = <22 37>;
Tharun Kumar Merugu1cb19c62018-01-18 12:20:16 +05302491 qcom,fastrpc-adsp-audio-pdr;
Tharun Kumar Merugub67b0ef2018-02-07 21:30:39 +05302492 qcom,fastrpc-adsp-sensors-pdr;
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302493
2494 qcom,msm_fastrpc_compute_cb1 {
2495 compatible = "qcom,msm-fastrpc-compute-cb";
2496 label = "cdsprpc-smd";
2497 iommus = <&apps_smmu 0x1421 0x30>;
2498 dma-coherent;
2499 };
2500 qcom,msm_fastrpc_compute_cb2 {
2501 compatible = "qcom,msm-fastrpc-compute-cb";
2502 label = "cdsprpc-smd";
2503 iommus = <&apps_smmu 0x1422 0x30>;
2504 dma-coherent;
2505 };
2506 qcom,msm_fastrpc_compute_cb3 {
2507 compatible = "qcom,msm-fastrpc-compute-cb";
2508 label = "cdsprpc-smd";
2509 iommus = <&apps_smmu 0x1423 0x30>;
2510 dma-coherent;
2511 };
2512 qcom,msm_fastrpc_compute_cb4 {
2513 compatible = "qcom,msm-fastrpc-compute-cb";
2514 label = "cdsprpc-smd";
2515 iommus = <&apps_smmu 0x1424 0x30>;
2516 dma-coherent;
2517 };
2518 qcom,msm_fastrpc_compute_cb5 {
2519 compatible = "qcom,msm-fastrpc-compute-cb";
2520 label = "cdsprpc-smd";
2521 iommus = <&apps_smmu 0x1425 0x30>;
2522 dma-coherent;
2523 };
2524 qcom,msm_fastrpc_compute_cb6 {
2525 compatible = "qcom,msm-fastrpc-compute-cb";
2526 label = "cdsprpc-smd";
2527 iommus = <&apps_smmu 0x1426 0x30>;
2528 dma-coherent;
2529 };
2530 qcom,msm_fastrpc_compute_cb7 {
2531 compatible = "qcom,msm-fastrpc-compute-cb";
2532 label = "cdsprpc-smd";
2533 qcom,secure-context-bank;
2534 iommus = <&apps_smmu 0x1429 0x30>;
2535 dma-coherent;
2536 };
2537 qcom,msm_fastrpc_compute_cb8 {
2538 compatible = "qcom,msm-fastrpc-compute-cb";
2539 label = "cdsprpc-smd";
2540 qcom,secure-context-bank;
2541 iommus = <&apps_smmu 0x142A 0x30>;
2542 dma-coherent;
2543 };
2544 qcom,msm_fastrpc_compute_cb9 {
2545 compatible = "qcom,msm-fastrpc-compute-cb";
2546 label = "adsprpc-smd";
2547 iommus = <&apps_smmu 0x1803 0x0>;
2548 dma-coherent;
2549 };
2550 qcom,msm_fastrpc_compute_cb10 {
2551 compatible = "qcom,msm-fastrpc-compute-cb";
2552 label = "adsprpc-smd";
2553 iommus = <&apps_smmu 0x1804 0x0>;
2554 dma-coherent;
2555 };
2556 qcom,msm_fastrpc_compute_cb11 {
2557 compatible = "qcom,msm-fastrpc-compute-cb";
2558 label = "adsprpc-smd";
2559 iommus = <&apps_smmu 0x1805 0x0>;
2560 dma-coherent;
2561 };
c_mtharu92125922017-10-16 14:06:39 +05302562 qcom,msm_fastrpc_compute_cb12 {
2563 compatible = "qcom,msm-fastrpc-compute-cb";
2564 label = "adsprpc-smd";
2565 iommus = <&apps_smmu 0x1806 0x0>;
2566 dma-coherent;
Tharun Kumar Merugub67b0ef2018-02-07 21:30:39 +05302567 shared-cb;
c_mtharu92125922017-10-16 14:06:39 +05302568 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302569 };
Anurag Chouhan7563b532017-09-12 15:49:16 +05302570
Rupesh Tatiyaf2072952017-10-08 19:57:12 +05302571 bluetooth: bt_wcn3990 {
2572 compatible = "qca,wcn3990";
2573 qca,bt-vdd-core-supply = <&pm660_l9>;
2574 qca,bt-vdd-pa-supply = <&pm660_l6>;
2575 qca,bt-vdd-ldo-supply = <&pm660_l19>;
2576
2577 qca,bt-vdd-core-voltage-level = <1800000 1900000>;
2578 qca,bt-vdd-pa-voltage-level = <1304000 1370000>;
2579 qca,bt-vdd-ldo-voltage-level = <3312000 3400000>;
2580
2581 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
2582 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
2583 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
2584 };
2585
Sarada Prasanna Garnayakd5ccc902018-02-22 15:54:50 +05302586 icnss: qcom,icnss@18800000 {
Anurag Chouhan7563b532017-09-12 15:49:16 +05302587 compatible = "qcom,icnss";
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302588 reg = <0x18800000 0x800000>,
2589 <0xa0000000 0x10000000>,
2590 <0xb0000000 0x10000>;
2591 reg-names = "membase", "smmu_iova_base", "smmu_iova_ipa";
2592 iommus = <&apps_smmu 0x0040 0x1>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302593 interrupts = <0 414 0 /* CE0 */ >,
2594 <0 415 0 /* CE1 */ >,
2595 <0 416 0 /* CE2 */ >,
2596 <0 417 0 /* CE3 */ >,
2597 <0 418 0 /* CE4 */ >,
2598 <0 419 0 /* CE5 */ >,
2599 <0 420 0 /* CE6 */ >,
2600 <0 421 0 /* CE7 */ >,
2601 <0 422 0 /* CE8 */ >,
2602 <0 423 0 /* CE9 */ >,
2603 <0 424 0 /* CE10 */ >,
2604 <0 425 0 /* CE11 */ >;
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302605 vdd-0.8-cx-mx-supply = <&pm660_l5>;
2606 vdd-1.8-xo-supply = <&pm660_l9>;
2607 vdd-1.3-rfa-supply = <&pm660_l6>;
2608 vdd-3.3-ch0-supply = <&pm660_l19>;
Hardik Kantilal Patel25c05b42017-12-08 11:10:27 +05302609 qcom,vdd-3.3-ch0-config = <3000000 3312000>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302610 qcom,wlan-msa-memory = <0x100000>;
Anurag Chouhana4f55db2017-11-22 16:35:27 +05302611 qcom,wlan-msa-fixed-region = <&wlan_msa_mem>;
Hardik Kantilal Patel1697bd12018-03-05 14:46:29 +05302612 qcom,gpio-force-fatal-error = <&smp2pgpio_wlan_1_in 0 0>;
2613 qcom,gpio-early-crash-ind = <&smp2pgpio_wlan_1_in 1 0>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302614 qcom,smmu-s1-bypass;
2615 };
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302616
2617 cpubw: qcom,cpubw {
2618 compatible = "qcom,devbw";
2619 governor = "performance";
2620 qcom,src-dst-ports =
Santosh Mardidfc78812017-10-05 13:15:20 +05302621 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_EBI_CH0>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302622 qcom,active-only;
2623 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302624 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2625 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2626 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2627 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2628 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2629 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2630 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2631 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2632 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2633 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2634 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302635 };
2636
Santosh Mardidfc78812017-10-05 13:15:20 +05302637 bwmon: qcom,cpu-bwmon {
2638 compatible = "qcom,bimc-bwmon4";
2639 reg = <0x1436400 0x300>, <0x1436300 0x200>;
2640 reg-names = "base", "global_base";
2641 interrupts = <0 581 4>;
2642 qcom,mport = <0>;
Santosh Mardida0b0f82017-10-13 23:30:22 +05302643 qcom,count-unit = <0x10000>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302644 qcom,hw-timer-hz = <19200000>;
Santosh Mardidfc78812017-10-05 13:15:20 +05302645 qcom,target-dev = <&cpubw>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302646 };
2647
2648 memlat_cpu0: qcom,memlat-cpu0 {
2649 compatible = "qcom,devbw";
2650 governor = "powersave";
2651 qcom,src-dst-ports = <1 512>;
2652 qcom,active-only;
2653 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302654 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2655 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2656 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2657 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2658 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2659 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2660 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2661 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2662 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2663 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2664 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302665 };
2666
Santosh Mardi37a28af2017-10-12 13:03:31 +05302667 memlat_cpu6: qcom,memlat-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302668 compatible = "qcom,devbw";
2669 governor = "powersave";
2670 qcom,src-dst-ports = <1 512>;
2671 qcom,active-only;
2672 status = "ok";
2673 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302674 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2675 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2676 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2677 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2678 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2679 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2680 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2681 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2682 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2683 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2684 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302685 };
2686
Odelu Kukatlafe8d3302017-11-17 10:54:32 +05302687 snoc_cnoc_keepalive: qcom,snoc_cnoc_keepalive {
2688 compatible = "qcom,devbw";
2689 governor = "powersave";
2690 qcom,src-dst-ports = <139 627>;
2691 qcom,active-only;
2692 status = "ok";
2693 qcom,bw-tbl =
2694 < 1 >;
2695 };
2696
Odelu Kukatla95e7aea2018-02-27 15:46:39 +05302697 bus_proxy_client: qcom,bus_proxy_client {
2698 compatible = "qcom,bus-proxy-client";
2699 qcom,msm-bus,name = "bus-proxy-client";
2700 qcom,msm-bus,num-cases = <2>;
2701 qcom,msm-bus,num-paths = <2>;
2702 qcom,msm-bus,vectors-KBps =
2703 <22 512 0 0>, <23 512 0 0>,
2704 <22 512 0 5000000>, <23 512 0 5000000>;
2705 qcom,msm-bus,active-only;
2706 status = "ok";
2707 };
2708
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302709 devfreq_memlat_0: qcom,cpu0-memlat-mon {
2710 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302711 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302712 qcom,target-dev = <&memlat_cpu0>;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302713 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302714 qcom,core-dev-table =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302715 < 748800 MHZ_TO_MBPS( 300, 4) >,
2716 < 998400 MHZ_TO_MBPS( 451, 4) >,
2717 < 1209600 MHZ_TO_MBPS( 547, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302718 < 1516800 MHZ_TO_MBPS( 768, 4) >,
2719 < 1708000 MHZ_TO_MBPS(1017, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302720 };
2721
Santosh Mardi37a28af2017-10-12 13:03:31 +05302722 devfreq_memlat_6: qcom,cpu6-memlat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302723 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302724 qcom,cpulist = <&CPU6 &CPU7>;
2725 qcom,target-dev = <&memlat_cpu6>;
2726 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302727 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302728 < 825600 MHZ_TO_MBPS( 300, 4) >,
2729 < 1132800 MHZ_TO_MBPS( 547, 4) >,
2730 < 1363200 MHZ_TO_MBPS(1017, 4) >,
2731 < 1996800 MHZ_TO_MBPS(1555, 4) >,
2732 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302733 };
2734
2735 l3_cpu0: qcom,l3-cpu0 {
2736 compatible = "devfreq-simple-dev";
2737 clock-names = "devfreq_clk";
2738 clocks = <&clock_cpucc L3_CLUSTER0_VOTE_CLK>;
2739 governor = "performance";
2740 };
2741
Santosh Mardi37a28af2017-10-12 13:03:31 +05302742 l3_cpu6: qcom,l3-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302743 compatible = "devfreq-simple-dev";
2744 clock-names = "devfreq_clk";
2745 clocks = <&clock_cpucc L3_CLUSTER1_VOTE_CLK>;
2746 governor = "performance";
2747 };
2748
2749 devfreq_l3lat_0: qcom,cpu0-l3lat-mon {
2750 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302751 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302752 qcom,target-dev = <&l3_cpu0>;
2753 qcom,cachemiss-ev = <0x17>;
2754 qcom,core-dev-table =
Santosh Mardi10d45032017-11-02 17:25:54 +05302755 < 576000 300000000 >,
Santosh Mardi831cc872018-01-11 14:52:32 +05302756 < 998400 556800000 >,
2757 < 1209660 844800000 >,
2758 < 1516800 940800000 >,
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302759 < 1612800 1382400000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302760 < 1708000 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302761 };
2762
Santosh Mardi37a28af2017-10-12 13:03:31 +05302763 devfreq_l3lat_6: qcom,cpu6-l3lat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302764 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302765 qcom,cpulist = <&CPU6 &CPU7>;
2766 qcom,target-dev = <&l3_cpu6>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302767 qcom,cachemiss-ev = <0x17>;
2768 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302769 < 1132800 556800000 >,
2770 < 1363200 806400000 >,
2771 < 1747200 940800000 >,
2772 < 1996800 1190400000 >,
2773 < 2457600 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302774 };
2775
2776 mincpubw: qcom,mincpubw {
2777 compatible = "qcom,devbw";
2778 governor = "powersave";
2779 qcom,src-dst-ports = <1 512>;
2780 qcom,active-only;
2781 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302782 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2783 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2784 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2785 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2786 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2787 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2788 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2789 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2790 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2791 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2792 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302793 };
2794
2795 devfreq-cpufreq {
2796 mincpubw-cpufreq {
2797 target-dev = <&mincpubw>;
2798 cpu-to-dev-map-0 =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302799 < 748800 MHZ_TO_MBPS( 300, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302800 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2801 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2802 < 1708000 MHZ_TO_MBPS( 768, 4) >;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302803 cpu-to-dev-map-6 =
Santosh Mardie49578c2017-10-27 11:24:45 +05302804 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2805 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2806 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2807 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2808 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302809 };
2810 };
Amit Nischal199f15d2017-09-12 10:58:51 +05302811
Jonathan Avilac7a6fd52017-10-12 15:24:05 -07002812 mincpu0bw: qcom,mincpu0bw {
2813 compatible = "qcom,devbw";
2814 governor = "powersave";
2815 qcom,src-dst-ports = <1 512>;
2816 qcom,active-only;
2817 qcom,bw-tbl =
2818 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2819 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2820 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2821 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2822 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2823 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2824 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2825 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2826 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2827 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2828 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
2829 };
2830
2831 mincpu6bw: qcom,mincpu6bw {
2832 compatible = "qcom,devbw";
2833 governor = "powersave";
2834 qcom,src-dst-ports = <1 512>;
2835 qcom,active-only;
2836 qcom,bw-tbl =
2837 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2838 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2839 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2840 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2841 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2842 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2843 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2844 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2845 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2846 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2847 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
2848 };
2849
2850 devfreq_compute0: qcom,devfreq-compute0 {
2851 compatible = "qcom,arm-cpu-mon";
2852 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
2853 qcom,target-dev = <&mincpu0bw>;
2854 qcom,core-dev-table =
2855 < 748800 MHZ_TO_MBPS( 300, 4) >,
2856 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2857 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2858 < 1708000 MHZ_TO_MBPS( 768, 4) >;
2859 };
2860
2861 devfreq_compute6: qcom,devfreq-compute6 {
2862 compatible = "qcom,arm-cpu-mon";
2863 qcom,cpulist = <&CPU6 &CPU7>;
2864 qcom,target-dev = <&mincpu6bw>;
2865 qcom,core-dev-table =
2866 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2867 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2868 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2869 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2870 < 2457600 MHZ_TO_MBPS(1804, 4) >;
2871 };
2872
Santosh Mardi7790a432018-01-09 23:01:56 +05302873 l3_cdsp: qcom,l3-cdsp {
2874 compatible = "devfreq-simple-dev";
2875 clock-names = "devfreq_clk";
2876 clocks = <&clock_cpucc L3_MISC_VOTE_CLK>;
2877 governor = "powersave";
2878 };
2879
Raghavendra Rao Ananta28dd4502017-10-18 10:28:31 -07002880 cpu_pmu: cpu-pmu {
2881 compatible = "arm,armv8-pmuv3";
2882 qcom,irq-is-percpu;
2883 interrupts = <1 5 4>;
2884 };
2885
Amit Nischal199f15d2017-09-12 10:58:51 +05302886 gpu_gx_domain_addr: syscon@0x5091508 {
2887 compatible = "syscon";
2888 reg = <0x5091508 0x4>;
2889 };
2890
2891 gpu_gx_sw_reset: syscon@0x5091008 {
2892 compatible = "syscon";
2893 reg = <0x5091008 0x4>;
2894 };
Prakash Gupta325dff62018-01-09 15:38:09 +05302895
2896 qfprom: qfprom@0x780000 {
2897 compatible = "qcom,qfprom";
Prakash Gupta50a47e52018-01-29 16:11:19 +05302898 reg = <0x00784000 0x1000>;
Prakash Gupta325dff62018-01-09 15:38:09 +05302899 #address-cells = <1>;
2900 #size-cells = <1>;
2901 ranges;
2902
Prakash Gupta50a47e52018-01-29 16:11:19 +05302903 minor_rev: minor_rev@0x78414c {
Prakash Gupta325dff62018-01-09 15:38:09 +05302904 reg = <0x14c 0x4>;
Prakash Gupta50a47e52018-01-29 16:11:19 +05302905 bits = <0 30>; /* Access 30 bits from bit offset 0 */
Prakash Gupta325dff62018-01-09 15:38:09 +05302906 };
2907 };
2908
Imran Khan04f08312017-03-30 15:07:43 +05302909};
2910
Ashay Jaiswal81940302017-09-20 15:17:58 +05302911#include "pm660.dtsi"
2912#include "pm660l.dtsi"
2913#include "sdm670-regulator.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +05302914#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302915#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302916#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302917#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302918
2919&usb30_prim_gdsc {
2920 status = "ok";
2921};
2922
2923&ufs_phy_gdsc {
2924 status = "ok";
2925};
2926
2927&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2928 status = "ok";
2929};
2930
2931&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2932 status = "ok";
2933};
2934
2935&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2936 status = "ok";
2937};
2938
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302939&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2940 status = "ok";
2941};
2942
2943&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2944 status = "ok";
2945};
2946
2947&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2948 status = "ok";
2949};
2950
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302951&bps_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302952 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302953 status = "ok";
2954};
2955
2956&ife_0_gdsc {
2957 status = "ok";
2958};
2959
2960&ife_1_gdsc {
2961 status = "ok";
2962};
2963
2964&ipe_0_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302965 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302966 status = "ok";
2967};
2968
2969&ipe_1_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302970 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302971 status = "ok";
2972};
2973
2974&titan_top_gdsc {
2975 status = "ok";
2976};
2977
2978&mdss_core_gdsc {
2979 status = "ok";
Sandeep Pandaae888352017-11-15 13:15:31 +05302980 proxy-supply = <&mdss_core_gdsc>;
2981 qcom,proxy-consumer-enable;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302982};
2983
2984&gpu_cx_gdsc {
Odelu Kukatla4abca302018-06-19 12:46:47 +05302985 parent-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302986 status = "ok";
2987};
2988
2989&gpu_gx_gdsc {
2990 clock-names = "core_root_clk";
2991 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2992 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302993 parent-supply = <&pm660l_s2_level>;
Amit Nischal199f15d2017-09-12 10:58:51 +05302994 domain-addr = <&gpu_gx_domain_addr>;
2995 sw-reset = <&gpu_gx_sw_reset>;
2996 qcom,reset-aon-logic;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302997 status = "ok";
2998};
2999
3000&vcodec0_gdsc {
3001 qcom,support-hw-trigger;
3002 status = "ok";
3003};
3004
3005&vcodec1_gdsc {
3006 qcom,support-hw-trigger;
3007 status = "ok";
3008};
3009
3010&venus_gdsc {
3011 status = "ok";
3012};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05303013
Sandeep Panda229db242017-10-03 11:32:29 +05303014&mdss_dsi0 {
3015 qcom,core-supply-entries {
3016 #address-cells = <1>;
3017 #size-cells = <0>;
3018
3019 qcom,core-supply-entry@0 {
3020 reg = <0>;
3021 qcom,supply-name = "refgen";
3022 qcom,supply-min-voltage = <0>;
3023 qcom,supply-max-voltage = <0>;
3024 qcom,supply-enable-load = <0>;
3025 qcom,supply-disable-load = <0>;
3026 };
3027 };
3028};
3029
3030&mdss_dsi1 {
3031 qcom,core-supply-entries {
3032 #address-cells = <1>;
3033 #size-cells = <0>;
3034
3035 qcom,core-supply-entry@0 {
3036 reg = <0>;
3037 qcom,supply-name = "refgen";
3038 qcom,supply-min-voltage = <0>;
3039 qcom,supply-max-voltage = <0>;
3040 qcom,supply-enable-load = <0>;
3041 qcom,supply-disable-load = <0>;
3042 };
3043 };
3044};
3045
Padmanabhan Komanduru07137332017-10-20 12:53:23 +05303046&sde_dp {
3047 qcom,core-supply-entries {
3048 #address-cells = <1>;
3049 #size-cells = <0>;
3050
3051 qcom,core-supply-entry@0 {
3052 reg = <0>;
3053 qcom,supply-name = "refgen";
3054 qcom,supply-min-voltage = <0>;
3055 qcom,supply-max-voltage = <0>;
3056 qcom,supply-enable-load = <0>;
3057 qcom,supply-disable-load = <0>;
3058 };
3059 };
3060};
3061
Rohit Kumar14051282017-07-12 11:18:48 +05303062#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05303063#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05303064#include "sdm670-gpu.dtsi"
Suresh Vankadara402d0ca2017-10-26 22:54:54 +05303065#include "sdm670-camera.dtsi"
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +05303066#include "sdm670-thermal.dtsi"
Odelu Kukatlaf197e382017-07-04 19:47:35 +05303067#include "sdm670-bus.dtsi"
Tirupathi Reddyf805ac72017-10-12 14:22:17 +05303068
3069&pm660_div_clk {
3070 status = "ok";
3071};
Tirupathi Reddy53b92a62017-10-26 13:57:42 +05303072
3073&qupv3_se10_i2c {
3074 nx30p6093: nx30p6093@36 {
3075 status = "disabled";
3076 compatible = "nxp,nx30p6093";
3077 reg = <0x36>;
3078 interrupt-parent = <&tlmm>;
3079 interrupts = <5 IRQ_TYPE_NONE>;
3080 nxp,long-wakeup-sec = <28800>; /* 8 hours */
3081 nxp,short-wakeup-ms = <180000>; /* 3 mins */
3082 pinctrl-names = "default";
3083 pinctrl-0 = <&nx30p6093_intr_default>;
3084 };
3085};