blob: 63de28017f3d7c36f08e486499d5364d4c99a97c [file] [log] [blame]
Zhen Kong0ebe1bc32018-01-02 14:53:51 -08001/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Imran Khan04f08312017-03-30 15:07:43 +05302 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include "skeleton64.dtsi"
14#include <dt-bindings/interrupt-controller/arm-gic.h>
Odelu Kukatla1fe3a222017-06-01 16:24:59 +053015#include <dt-bindings/clock/qcom,gcc-sdm845.h>
16#include <dt-bindings/clock/qcom,camcc-sdm845.h>
17#include <dt-bindings/clock/qcom,dispcc-sdm845.h>
18#include <dt-bindings/clock/qcom,gpucc-sdm845.h>
19#include <dt-bindings/clock/qcom,videocc-sdm845.h>
20#include <dt-bindings/clock/qcom,cpucc-sdm845.h>
21#include <dt-bindings/clock/qcom,rpmh.h>
Maulik Shahc77d1d22017-06-15 14:04:50 +053022#include <dt-bindings/soc/qcom,tcs-mbox.h>
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +053023#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +053024#include <dt-bindings/clock/qcom,aop-qmp.h>
Imran Khan04f08312017-03-30 15:07:43 +053025
Santosh Mardi903c95d2017-09-25 10:36:29 +053026#define MHZ_TO_MBPS(mhz, w) ((mhz * 1000000 * w) / (1024 * 1024))
27
Imran Khan04f08312017-03-30 15:07:43 +053028/ {
29 model = "Qualcomm Technologies, Inc. SDM670";
30 compatible = "qcom,sdm670";
31 qcom,msm-id = <336 0x0>;
Maulik Shah30ebbde2017-06-15 10:02:54 +053032 interrupt-parent = <&pdc>;
Imran Khan04f08312017-03-30 15:07:43 +053033
Sayali Lokhande099af9c2017-06-08 10:18:29 +053034 aliases {
35 ufshc1 = &ufshc_mem; /* Embedded UFS slot */
Vijay Viswanatheac72722017-06-05 11:01:38 +053036 sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
Vijay Viswanathee4340d2017-08-28 09:50:18 +053037 sdhc2 = &sdhc_2; /* SDC2 SD Card slot */
Mukesh Kumar Savaliya7b272542017-07-10 19:35:29 +053038 serial0 = &qupv3_se12_2uart;
39 spi0 = &qupv3_se8_spi;
40 i2c0 = &qupv3_se10_i2c;
41 i2c1 = &qupv3_se3_i2c;
42 hsuart0 = &qupv3_se6_4uart;
43 };
44
Lingutla Chandrasekhard9eb37a2017-10-03 19:53:36 +053045 chosen {
Pavankumar Kondeti2c218d72017-10-03 19:31:31 +053046 bootargs = "rcupdate.rcu_expedited=1 core_ctl_disable_cpumask=6-7";
Lingutla Chandrasekhard9eb37a2017-10-03 19:53:36 +053047 };
48
Imran Khan04f08312017-03-30 15:07:43 +053049 cpus {
50 #address-cells = <2>;
51 #size-cells = <0>;
52
53 CPU0: cpu@0 {
54 device_type = "cpu";
55 compatible = "arm,armv8";
56 reg = <0x0 0x0>;
57 enable-method = "psci";
58 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +053059 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +053060 cpu-release-addr = <0x0 0x90000000>;
61 next-level-cache = <&L2_0>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +053062 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +053063 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +053064 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +053065 L2_0: l2-cache {
66 compatible = "arm,arch-cache";
67 cache-size = <0x20000>;
68 cache-level = <2>;
69 next-level-cache = <&L3_0>;
70 L3_0: l3-cache {
71 compatible = "arm,arch-cache";
72 cache-size = <0x100000>;
73 cache-level = <3>;
74 };
75 };
76 L1_I_0: l1-icache {
77 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +053078 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +053079 };
80 L1_D_0: l1-dcache {
81 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +053082 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +053083 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +053084 L1_TLB_0: l1-tlb {
85 qcom,dump-size = <0x3000>;
86 };
Imran Khan04f08312017-03-30 15:07:43 +053087 };
88
89 CPU1: cpu@100 {
90 device_type = "cpu";
91 compatible = "arm,armv8";
92 reg = <0x0 0x100>;
93 enable-method = "psci";
94 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +053095 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +053096 cpu-release-addr = <0x0 0x90000000>;
97 next-level-cache = <&L2_100>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +053098 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +053099 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530100 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530101 L2_100: l2-cache {
102 compatible = "arm,arch-cache";
103 cache-size = <0x20000>;
104 cache-level = <2>;
105 next-level-cache = <&L3_0>;
106 };
107 L1_I_100: l1-icache {
108 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530109 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +0530110 };
111 L1_D_100: l1-dcache {
112 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530113 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +0530114 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530115 L1_TLB_100: l1-tlb {
116 qcom,dump-size = <0x3000>;
117 };
Imran Khan04f08312017-03-30 15:07:43 +0530118 };
119
120 CPU2: cpu@200 {
121 device_type = "cpu";
122 compatible = "arm,armv8";
123 reg = <0x0 0x200>;
124 enable-method = "psci";
125 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530126 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +0530127 cpu-release-addr = <0x0 0x90000000>;
128 next-level-cache = <&L2_200>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530129 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530130 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530131 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530132 L2_200: l2-cache {
133 compatible = "arm,arch-cache";
134 cache-size = <0x20000>;
135 cache-level = <2>;
136 next-level-cache = <&L3_0>;
137 };
138 L1_I_200: l1-icache {
139 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530140 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +0530141 };
142 L1_D_200: l1-dcache {
143 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530144 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +0530145 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530146 L1_TLB_200: l1-tlb {
147 qcom,dump-size = <0x3000>;
148 };
Imran Khan04f08312017-03-30 15:07:43 +0530149 };
150
151 CPU3: cpu@300 {
152 device_type = "cpu";
153 compatible = "arm,armv8";
154 reg = <0x0 0x300>;
155 enable-method = "psci";
156 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530157 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +0530158 cpu-release-addr = <0x0 0x90000000>;
159 next-level-cache = <&L2_300>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530160 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530161 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530162 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530163 L2_300: l2-cache {
164 compatible = "arm,arch-cache";
165 cache-size = <0x20000>;
166 cache-level = <2>;
167 next-level-cache = <&L3_0>;
168 };
169 L1_I_300: l1-icache {
170 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530171 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +0530172 };
173 L1_D_300: l1-dcache {
174 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530175 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +0530176 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530177 L1_TLB_300: l1-tlb {
178 qcom,dump-size = <0x3000>;
179 };
Imran Khan04f08312017-03-30 15:07:43 +0530180 };
181
182 CPU4: cpu@400 {
183 device_type = "cpu";
184 compatible = "arm,armv8";
185 reg = <0x0 0x400>;
186 enable-method = "psci";
187 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530188 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +0530189 cpu-release-addr = <0x0 0x90000000>;
190 next-level-cache = <&L2_400>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530191 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530192 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530193 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530194 L2_400: l2-cache {
195 compatible = "arm,arch-cache";
196 cache-size = <0x20000>;
197 cache-level = <2>;
198 next-level-cache = <&L3_0>;
199 };
200 L1_I_400: l1-icache {
201 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530202 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +0530203 };
204 L1_D_400: l1-dcache {
205 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530206 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +0530207 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530208 L1_TLB_400: l1-tlb {
209 qcom,dump-size = <0x3000>;
210 };
Imran Khan04f08312017-03-30 15:07:43 +0530211 };
212
213 CPU5: cpu@500 {
214 device_type = "cpu";
215 compatible = "arm,armv8";
216 reg = <0x0 0x500>;
217 enable-method = "psci";
218 efficiency = <1024>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530219 cache-size = <0x10000>;
Imran Khan04f08312017-03-30 15:07:43 +0530220 cpu-release-addr = <0x0 0x90000000>;
221 next-level-cache = <&L2_500>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530222 sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530223 qcom,lmh-dcvs = <&lmh_dcvs0>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530224 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530225 L2_500: l2-cache {
226 compatible = "arm,arch-cache";
227 cache-size = <0x20000>;
228 cache-level = <2>;
229 next-level-cache = <&L3_0>;
230 };
231 L1_I_500: l1-icache {
232 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530233 qcom,dump-size = <0x12000>;
Imran Khan04f08312017-03-30 15:07:43 +0530234 };
235 L1_D_500: l1-dcache {
236 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530237 qcom,dump-size = <0xa000>;
Imran Khan04f08312017-03-30 15:07:43 +0530238 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530239 L1_TLB_500: l1-tlb {
240 qcom,dump-size = <0x3000>;
241 };
Imran Khan04f08312017-03-30 15:07:43 +0530242 };
243
244 CPU6: cpu@600 {
245 device_type = "cpu";
246 compatible = "arm,armv8";
247 reg = <0x0 0x600>;
248 enable-method = "psci";
249 efficiency = <1740>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530250 cache-size = <0x20000>;
Imran Khan04f08312017-03-30 15:07:43 +0530251 cpu-release-addr = <0x0 0x90000000>;
252 next-level-cache = <&L2_600>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530253 sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530254 qcom,lmh-dcvs = <&lmh_dcvs1>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530255 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530256 L2_600: l2-cache {
257 compatible = "arm,arch-cache";
258 cache-size = <0x40000>;
259 cache-level = <2>;
260 next-level-cache = <&L3_0>;
261 };
262 L1_I_600: l1-icache {
263 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530264 qcom,dump-size = <0x24000>;
Imran Khan04f08312017-03-30 15:07:43 +0530265 };
266 L1_D_600: l1-dcache {
267 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530268 qcom,dump-size = <0x14000>;
Imran Khan04f08312017-03-30 15:07:43 +0530269 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530270 L1_TLB_600: l1-tlb {
271 qcom,dump-size = <0x3c000>;
272 };
Imran Khan04f08312017-03-30 15:07:43 +0530273 };
274
275 CPU7: cpu@700 {
276 device_type = "cpu";
277 compatible = "arm,armv8";
278 reg = <0x0 0x700>;
279 enable-method = "psci";
280 efficiency = <1740>;
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530281 cache-size = <0x20000>;
Imran Khan04f08312017-03-30 15:07:43 +0530282 cpu-release-addr = <0x0 0x90000000>;
283 next-level-cache = <&L2_700>;
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530284 sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>;
Manaf Meethalavalappu Pallikunhiae5420e2017-09-07 01:01:08 +0530285 qcom,lmh-dcvs = <&lmh_dcvs1>;
Manaf Meethalavalappu Pallikunhi07ee0812017-09-07 01:09:06 +0530286 #cooling-cells = <2>;
Imran Khan04f08312017-03-30 15:07:43 +0530287 L2_700: l2-cache {
288 compatible = "arm,arch-cache";
289 cache-size = <0x40000>;
290 cache-level = <2>;
291 next-level-cache = <&L3_0>;
292 };
293 L1_I_700: l1-icache {
294 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530295 qcom,dump-size = <0x24000>;
Imran Khan04f08312017-03-30 15:07:43 +0530296 };
297 L1_D_700: l1-dcache {
298 compatible = "arm,arch-cache";
Lingutla Chandrasekharc4b762a2017-10-12 12:12:44 +0530299 qcom,dump-size = <0x14000>;
Imran Khan04f08312017-03-30 15:07:43 +0530300 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +0530301 L1_TLB_700: l1-tlb {
302 qcom,dump-size = <0x3c000>;
303 };
Imran Khan04f08312017-03-30 15:07:43 +0530304 };
305
306 cpu-map {
307 cluster0 {
308 core0 {
309 cpu = <&CPU0>;
310 };
311
312 core1 {
313 cpu = <&CPU1>;
314 };
315
316 core2 {
317 cpu = <&CPU2>;
318 };
319
320 core3 {
321 cpu = <&CPU3>;
322 };
323
324 core4 {
325 cpu = <&CPU4>;
326 };
327
328 core5 {
329 cpu = <&CPU5>;
330 };
331 };
332 cluster1 {
333 core0 {
334 cpu = <&CPU6>;
335 };
336
337 core1 {
338 cpu = <&CPU7>;
339 };
340 };
341 };
342 };
343
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530344 energy_costs: energy-costs {
345 compatible = "sched-energy";
346
347 CPU_COST_0: core-cost0 {
348 busy-cost-data = <
349 300000 14
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530350 576000 25
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530351 748800 31
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530352 998400 46
353 1209600 57
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530354 1324800 84
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530355 1516800 96
356 1612800 114
Pavankumar Kondeti80872462017-11-06 08:57:45 +0530357 1708800 139
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530358 >;
359 idle-cost-data = <
360 12 10 8 6
361 >;
362 };
363 CPU_COST_1: core-cost1 {
364 busy-cost-data = <
365 300000 256
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530366 652800 307
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530367 825600 332
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530368 979200 382
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530369 1132800 408
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530370 1363200 448
Pavankumar Kondeti865e7562017-11-06 08:57:45 +0530371 1536000 586
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530372 1747200 641
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530373 1843200 659
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530374 1996800 696
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530375 2054400 876
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530376 2169600 900
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530377 2208000 924
378 2361600 948
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530379 2400000 1170
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530380 2457600 1200
381 2515200 1300
382 2611200 1400
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530383 >;
384 idle-cost-data = <
385 100 80 60 40
386 >;
387 };
388 CLUSTER_COST_0: cluster-cost0 {
389 busy-cost-data = <
390 300000 5
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530391 576000 7
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530392 748800 8
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530393 998400 9
394 1209600 10
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530395 1324800 13
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530396 1516800 15
397 1612800 16
Pavankumar Kondeti80872462017-11-06 08:57:45 +0530398 1708800 19
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530399 >;
400 idle-cost-data = <
401 4 3 2 1
402 >;
403 };
404 CLUSTER_COST_1: cluster-cost1 {
405 busy-cost-data = <
406 300000 25
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530407 652800 30
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530408 825600 33
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530409 979200 38
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530410 1132800 40
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530411 1363200 44
Pavankumar Kondeti865e7562017-11-06 08:57:45 +0530412 1536000 58
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530413 1747200 64
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530414 1843200 65
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530415 1996800 69
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530416 2054400 87
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530417 2169600 90
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530418 2208000 92
419 2361600 94
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530420 2400000 117
Pavankumar Kondeti5c494942017-10-26 12:09:18 +0530421 2457600 120
422 2515200 130
423 2611200 140
Pavankumar Kondetie4231242017-09-12 12:19:57 +0530424 >;
425 idle-cost-data = <
426 4 3 2 1
427 >;
428 };
429 };
430
Imran Khan04f08312017-03-30 15:07:43 +0530431 psci {
432 compatible = "arm,psci-1.0";
433 method = "smc";
434 };
435
436 soc: soc { };
437
Imran Khanb1066fa2017-08-01 17:20:22 +0530438 vendor: vendor {
439 #address-cells = <1>;
440 #size-cells = <1>;
441 ranges = <0 0 0 0xffffffff>;
442 compatible = "simple-bus";
443 };
444
Imran Khan5381c932017-08-02 11:27:07 +0530445 firmware: firmware {
446 android {
447 compatible = "android,firmware";
448
monisingfb2cb762017-12-19 14:40:49 +0530449 vbmeta {
450 compatible = "android,vbmeta";
451 parts = "vbmeta,boot,system,vendor,dtbo";
452 };
453
Imran Khan5381c932017-08-02 11:27:07 +0530454 fstab {
455 compatible = "android,fstab";
456 vendor {
457 compatible = "android,vendor";
458 dev = "/dev/block/platform/soc/1d84000.ufshc/by-name/vendor";
459 type = "ext4";
460 mnt_flags = "ro,barrier=1,discard";
AnilKumar Chimata0d646ab2017-10-25 22:09:03 +0530461 fsmgr_flags = "wait,slotselect,avb";
Imran Khan5381c932017-08-02 11:27:07 +0530462 };
463 };
464 };
465 };
466
Imran Khan04f08312017-03-30 15:07:43 +0530467 reserved-memory {
468 #address-cells = <2>;
469 #size-cells = <2>;
470 ranges;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530471
Vijayanand Jitta0ef73982017-12-11 11:19:29 +0530472 hyp_region: hyp_region@85700000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530473 compatible = "removed-dma-pool";
474 no-map;
Vijayanand Jitta0ef73982017-12-11 11:19:29 +0530475 reg = <0 0x85700000 0 0x600000>;
476 };
477
478 xbl_region: xbl_region@85e00000 {
479 compatible = "removed-dma-pool";
480 no-map;
481 reg = <0 0x85e00000 0 0x100000>;
482 };
483
484 removed_region: removed_region@85fc0000 {
485 compatible = "removed-dma-pool";
486 no-map;
487 reg = <0 0x85fc0000 0 0x2f40000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530488 };
489
490 pil_camera_mem: camera_region@8ab00000 {
491 compatible = "removed-dma-pool";
492 no-map;
493 reg = <0 0x8ab00000 0 0x500000>;
494 };
495
496 pil_modem_mem: modem_region@8b000000 {
497 compatible = "removed-dma-pool";
498 no-map;
499 reg = <0 0x8b000000 0 0x7e00000>;
500 };
501
502 pil_video_mem: pil_video_region@92e00000 {
503 compatible = "removed-dma-pool";
504 no-map;
505 reg = <0 0x92e00000 0 0x500000>;
506 };
507
Prakash Guptac97a6a32017-11-21 17:46:55 +0530508 wlan_msa_mem: wlan_msa_region@93300000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530509 compatible = "removed-dma-pool";
510 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530511 reg = <0 0x93300000 0 0x100000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530512 };
513
Prakash Guptac97a6a32017-11-21 17:46:55 +0530514 pil_cdsp_mem: cdsp_regions@93400000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530515 compatible = "removed-dma-pool";
516 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530517 reg = <0 0x93400000 0 0x800000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530518 };
519
Prakash Guptac97a6a32017-11-21 17:46:55 +0530520 pil_mba_mem: pil_mba_region@0x93c00000 {
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530521 compatible = "removed-dma-pool";
522 no-map;
Prakash Guptac97a6a32017-11-21 17:46:55 +0530523 reg = <0 0x93c00000 0 0x200000>;
524 };
525
526 pil_adsp_mem: pil_adsp_region@93e00000 {
527 compatible = "removed-dma-pool";
528 no-map;
529 reg = <0 0x93e00000 0 0x1e00000>;
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530530 };
531
Prakash Gupta7c571ef2018-01-19 17:57:47 +0530532 pil_ipa_fw_mem: ips_fw_region@0x95c00000 {
533 compatible = "removed-dma-pool";
534 no-map;
535 reg = <0 0x95c00000 0 0x10000>;
536 };
537
538 pil_ipa_gsi_mem: ipa_gsi_region@0x95c10000 {
539 compatible = "removed-dma-pool";
540 no-map;
541 reg = <0 0x95c10000 0 0x5000>;
542 };
543
544 pil_gpu_mem: gpu_region@0x95c15000 {
545 compatible = "removed-dma-pool";
546 no-map;
547 reg = <0 0x95c15000 0 0x2000>;
548 };
549
550 qseecom_mem: qseecom_region@0x9e400000 {
551 compatible = "shared-dma-pool";
552 no-map;
553 reg = <0 0x9e400000 0 0x1400000>;
554 };
555
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530556 adsp_mem: adsp_region {
557 compatible = "shared-dma-pool";
558 alloc-ranges = <0 0x00000000 0 0xffffffff>;
559 reusable;
560 alignment = <0 0x400000>;
561 size = <0 0xc00000>;
562 };
563
Zhen Kong0ebe1bc32018-01-02 14:53:51 -0800564 qseecom_ta_mem: qseecom_ta_region {
565 compatible = "shared-dma-pool";
566 alloc-ranges = <0 0x00000000 0 0xffffffff>;
567 reusable;
568 alignment = <0 0x400000>;
569 size = <0 0x1000000>;
570 };
571
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530572 sp_mem: sp_region { /* SPSS-HLOS ION shared mem */
573 compatible = "shared-dma-pool";
574 alloc-ranges = <0 0x00000000 0 0xffffffff>; /* 32-bit */
575 reusable;
576 alignment = <0 0x400000>;
577 size = <0 0x800000>;
578 };
579
580 secure_display_memory: secure_display_region {
581 compatible = "shared-dma-pool";
582 alloc-ranges = <0 0x00000000 0 0xffffffff>;
583 reusable;
584 alignment = <0 0x400000>;
585 size = <0 0x5c00000>;
586 };
587
Jayant Shekharb59d1692017-11-10 14:21:40 +0530588 cont_splash_memory: cont_splash_region@9d400000 {
589 reg = <0x0 0x9d400000 0x0 0x02400000>;
590 label = "cont_splash_region";
591 };
592
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +0530593 dump_mem: mem_dump_region {
594 compatible = "shared-dma-pool";
595 reusable;
596 size = <0 0x2400000>;
597 };
598
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530599 /* global autoconfigured region for contiguous allocations */
600 linux,cma {
601 compatible = "shared-dma-pool";
602 alloc-ranges = <0 0x00000000 0 0xffffffff>;
603 reusable;
604 alignment = <0 0x400000>;
605 size = <0 0x2000000>;
606 linux,cma-default;
607 };
Imran Khan04f08312017-03-30 15:07:43 +0530608 };
609};
610
Vijayanand Jittaa1ee7862017-06-07 12:06:39 +0530611#include "sdm670-ion.dtsi"
612
Dhoat Harpal92d63dea2017-06-06 21:20:26 +0530613#include "sdm670-smp2p.dtsi"
614
c_mtharuce962e42017-12-05 22:41:17 +0530615#include "msm-rdbg.dtsi"
616
Mukesh Kumar Savaliya065ca482017-06-06 14:44:45 +0530617#include "sdm670-qupv3.dtsi"
618
Saranya Chiduraf49fee12017-06-19 10:52:37 +0530619#include "sdm670-coresight.dtsi"
Manikanta Kanamarlapudid4abc602017-08-28 19:23:41 +0530620
621#include "sdm670-vidc.dtsi"
622
Raviteja Tamatame97849a2017-09-12 20:25:50 +0530623#include "sdm670-sde-pll.dtsi"
624
625#include "sdm670-sde.dtsi"
626
Imran Khan04f08312017-03-30 15:07:43 +0530627&soc {
628 #address-cells = <1>;
629 #size-cells = <1>;
630 ranges = <0 0 0 0xffffffff>;
631 compatible = "simple-bus";
632
Saranya Chidura0e8b4262017-10-04 13:06:26 +0530633 jtag_mm0: jtagmm@7040000 {
634 compatible = "qcom,jtagv8-mm";
635 reg = <0x7040000 0x1000>;
636 reg-names = "etm-base";
637
638 clocks = <&clock_aop QDSS_CLK>;
639 clock-names = "core_clk";
640
641 qcom,coresight-jtagmm-cpu = <&CPU0>;
642 };
643
644 jtag_mm1: jtagmm@7140000 {
645 compatible = "qcom,jtagv8-mm";
646 reg = <0x7140000 0x1000>;
647 reg-names = "etm-base";
648
649 clocks = <&clock_aop QDSS_CLK>;
650 clock-names = "core_clk";
651
652 qom,coresight-jtagmm-cpu = <&CPU1>;
653 };
654
655 jtag_mm2: jtagmm@7240000 {
656 compatible = "qcom,jtagv8-mm";
657 reg = <0x7240000 0x1000>;
658 reg-names = "etm-base";
659
660 clocks = <&clock_aop QDSS_CLK>;
661 clock-names = "core_clk";
662
663 qcom,coresight-jtagmm-cpu = <&CPU2>;
664 };
665
666 jtag_mm3: jtagmm@7340000 {
667 compatible = "qcom,jtagv8-mm";
668 reg = <0x7340000 0x1000>;
669 reg-names = "etm-base";
670
671 clocks = <&clock_aop QDSS_CLK>;
672 clock-names = "core_clk";
673
674 qcom,coresight-jtagmm-cpu = <&CPU3>;
675 };
676
677 jtag_mm4: jtagmm@7440000 {
678 compatible = "qcom,jtagv8-mm";
679 reg = <0x7440000 0x1000>;
680 reg-names = "etm-base";
681
682 clocks = <&clock_aop QDSS_CLK>;
683 clock-names = "core_clk";
684
685 qcom,coresight-jtagmm-cpu = <&CPU4>;
686 };
687
688 jtag_mm5: jtagmm@7540000 {
689 compatible = "qcom,jtagv8-mm";
690 reg = <0x7540000 0x1000>;
691 reg-names = "etm-base";
692
693 clocks = <&clock_aop QDSS_CLK>;
694 clock-names = "core_clk";
695
696 qcom,coresight-jtagmm-cpu = <&CPU5>;
697 };
698
699 jtag_mm6: jtagmm@7640000 {
700 compatible = "qcom,jtagv8-mm";
701 reg = <0x7640000 0x1000>;
702 reg-names = "etm-base";
703
704 clocks = <&clock_aop QDSS_CLK>;
705 clock-names = "core_clk";
706
707 qcom,coresight-jtagmm-cpu = <&CPU6>;
708 };
709
710 jtag_mm7: jtagmm@7740000 {
711 compatible = "qcom,jtagv8-mm";
712 reg = <0x7740000 0x1000>;
713 reg-names = "etm-base";
714
715 clocks = <&clock_aop QDSS_CLK>;
716 clock-names = "core_clk";
717
718 qcom,coresight-jtagmm-cpu = <&CPU7>;
719 };
720
Imran Khan04f08312017-03-30 15:07:43 +0530721 intc: interrupt-controller@17a00000 {
722 compatible = "arm,gic-v3";
723 #interrupt-cells = <3>;
724 interrupt-controller;
725 #redistributor-regions = <1>;
726 redistributor-stride = <0x0 0x20000>;
727 reg = <0x17a00000 0x10000>, /* GICD */
728 <0x17a60000 0x100000>; /* GICR * 8 */
729 interrupts = <1 9 4>;
Maulik Shah30ebbde2017-06-15 10:02:54 +0530730 interrupt-parent = <&intc>;
Imran Khan04f08312017-03-30 15:07:43 +0530731 };
732
Raghavendra Kakarla04f032162017-12-08 19:11:54 +0530733 pdc: interrupt-controller@b220000{
734 compatible = "qcom,pdc-sdm670";
735 reg = <0xb220000 0x400>;
736 #interrupt-cells = <3>;
737 interrupt-parent = <&intc>;
738 interrupt-controller;
739 };
740
Imran Khan04f08312017-03-30 15:07:43 +0530741 timer {
742 compatible = "arm,armv8-timer";
743 interrupts = <1 1 0xf08>,
744 <1 2 0xf08>,
745 <1 3 0xf08>,
746 <1 0 0xf08>;
747 clock-frequency = <19200000>;
748 };
749
Manoj Prabhu B95b1bc72017-11-17 15:09:29 +0530750 qcom,memshare {
751 compatible = "qcom,memshare";
752
753 qcom,client_1 {
754 compatible = "qcom,memshare-peripheral";
755 qcom,peripheral-size = <0x0>;
756 qcom,client-id = <0>;
757 qcom,allocate-boot-time;
758 label = "modem";
759 };
760
761 qcom,client_2 {
762 compatible = "qcom,memshare-peripheral";
763 qcom,peripheral-size = <0x0>;
764 qcom,client-id = <2>;
765 label = "modem";
766 };
767
768 mem_client_3_size: qcom,client_3 {
769 compatible = "qcom,memshare-peripheral";
770 qcom,peripheral-size = <0x500000>;
771 qcom,client-id = <1>;
Manoj Prabhu B991f9222018-01-03 19:13:56 +0530772 qcom,allocate-boot-time;
Manoj Prabhu B95b1bc72017-11-17 15:09:29 +0530773 label = "modem";
774 };
775 };
776
Lakshmi Sunkarabbd69892017-06-09 13:17:10 +0530777 qcom,sps {
778 compatible = "qcom,msm_sps_4k";
779 qcom,pipe-attr-ee;
780 };
781
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530782 qcom_cedev: qcedev@1de0000 {
783 compatible = "qcom,qcedev";
784 reg = <0x1de0000 0x20000>,
785 <0x1dc4000 0x24000>;
786 reg-names = "crypto-base","crypto-bam-base";
787 interrupts = <0 272 0>;
788 qcom,bam-pipe-pair = <3>;
789 qcom,ce-hw-instance = <0>;
790 qcom,ce-device = <0>;
791 qcom,ce-hw-shared;
792 qcom,bam-ee = <0>;
793 qcom,msm-bus,name = "qcedev-noc";
794 qcom,msm-bus,num-cases = <2>;
795 qcom,msm-bus,num-paths = <1>;
796 qcom,msm-bus,vectors-KBps =
797 <125 512 0 0>,
798 <125 512 393600 393600>;
799 clock-names = "core_clk_src", "core_clk",
800 "iface_clk", "bus_clk";
801 clocks = <&clock_gcc GCC_CE1_CLK>,
802 <&clock_gcc GCC_CE1_CLK>,
803 <&clock_gcc GCC_CE1_AHB_CLK>,
804 <&clock_gcc GCC_CE1_AXI_CLK>;
805 qcom,ce-opp-freq = <171430000>;
806 qcom,request-bw-before-clk;
mohamed sunfeer4b2ca442017-11-07 14:46:45 +0530807 qcom,smmu-s1-enable;
mohamed sunfeerdce9b922017-11-11 22:14:58 +0530808 iommus = <&apps_smmu 0x706 0x1>,
809 <&apps_smmu 0x716 0x1>;
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530810 };
811
Tatenda Chipeperekwa8a77c8a2018-01-30 14:50:11 -0800812 qcom_msmhdcp: qcom,msm_hdcp {
813 compatible = "qcom,msm-hdcp";
814 };
815
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530816 qcom_crypto: qcrypto@1de0000 {
817 compatible = "qcom,qcrypto";
818 reg = <0x1de0000 0x20000>,
819 <0x1dc4000 0x24000>;
820 reg-names = "crypto-base","crypto-bam-base";
821 interrupts = <0 272 0>;
822 qcom,bam-pipe-pair = <2>;
823 qcom,ce-hw-instance = <0>;
824 qcom,ce-device = <0>;
825 qcom,bam-ee = <0>;
826 qcom,ce-hw-shared;
827 qcom,clk-mgmt-sus-res;
828 qcom,msm-bus,name = "qcrypto-noc";
829 qcom,msm-bus,num-cases = <2>;
830 qcom,msm-bus,num-paths = <1>;
831 qcom,msm-bus,vectors-KBps =
832 <125 512 0 0>,
833 <125 512 393600 393600>;
834 clock-names = "core_clk_src", "core_clk",
835 "iface_clk", "bus_clk";
836 clocks = <&clock_gcc GCC_CE1_CLK>,
837 <&clock_gcc GCC_CE1_CLK>,
838 <&clock_gcc GCC_CE1_AHB_CLK>,
839 <&clock_gcc GCC_CE1_AXI_CLK>;
840 qcom,ce-opp-freq = <171430000>;
841 qcom,request-bw-before-clk;
842 qcom,use-sw-aes-cbc-ecb-ctr-algo;
843 qcom,use-sw-aes-xts-algo;
844 qcom,use-sw-aes-ccm-algo;
845 qcom,use-sw-aead-algo;
846 qcom,use-sw-ahash-algo;
847 qcom,use-sw-hmac-algo;
mohamed sunfeer4b2ca442017-11-07 14:46:45 +0530848 qcom,smmu-s1-enable;
mohamed sunfeerdce9b922017-11-11 22:14:58 +0530849 iommus = <&apps_smmu 0x704 0x1>,
850 <&apps_smmu 0x714 0x1>;
mohamed sunfeer7462bc82017-10-11 22:50:13 +0530851 };
852
Abir Ghoshb849ab22017-09-19 13:03:11 +0530853 qcom,qbt1000 {
854 compatible = "qcom,qbt1000";
855 clock-names = "core", "iface";
856 clock-frequency = <25000000>;
857 qcom,ipc-gpio = <&tlmm 121 0>;
858 qcom,finger-detect-gpio = <&tlmm 122 0>;
859 };
860
mohamed sunfeer71b31322017-09-20 00:46:46 +0530861 qcom_seecom: qseecom@86d00000 {
862 compatible = "qcom,qseecom";
863 reg = <0x86d00000 0x2200000>;
864 reg-names = "secapp-region";
865 qcom,hlos-num-ce-hw-instances = <1>;
866 qcom,hlos-ce-hw-instance = <0>;
867 qcom,qsee-ce-hw-instance = <0>;
868 qcom,disk-encrypt-pipe-pair = <2>;
869 qcom,support-fde;
870 qcom,no-clock-support;
Neeraj Soni7c4254c2017-11-15 11:13:14 +0530871 qcom,fde-key-size;
mohamed sunfeer71b31322017-09-20 00:46:46 +0530872 qcom,appsbl-qseecom-support;
873 qcom,msm-bus,name = "qseecom-noc";
874 qcom,msm-bus,num-cases = <4>;
875 qcom,msm-bus,num-paths = <1>;
876 qcom,msm-bus,vectors-KBps =
877 <125 512 0 0>,
878 <125 512 200000 400000>,
879 <125 512 300000 800000>,
880 <125 512 400000 1000000>;
881 clock-names = "core_clk_src", "core_clk",
882 "iface_clk", "bus_clk";
883 clocks = <&clock_gcc GCC_CE1_CLK>,
884 <&clock_gcc GCC_CE1_CLK>,
885 <&clock_gcc GCC_CE1_AHB_CLK>,
886 <&clock_gcc GCC_CE1_AXI_CLK>;
887 qcom,ce-opp-freq = <171430000>;
888 qcom,qsee-reentrancy-support = <2>;
889 };
890
mohamed sunfeer732f7572017-09-19 19:51:11 +0530891 qcom_tzlog: tz-log@146bf720 {
892 compatible = "qcom,tz-log";
893 reg = <0x146bf720 0x3000>;
894 qcom,hyplog-enabled;
895 hyplog-address-offset = <0x410>;
896 hyplog-size-offset = <0x414>;
897 };
898
mohamed sunfeer2228b242017-09-19 19:10:08 +0530899 qcom_rng: qrng@793000{
900 compatible = "qcom,msm-rng";
901 reg = <0x793000 0x1000>;
902 qcom,msm-rng-iface-clk;
903 qcom,no-qrng-config;
904 qcom,msm-bus,name = "msm-rng-noc";
905 qcom,msm-bus,num-cases = <2>;
906 qcom,msm-bus,num-paths = <1>;
907 qcom,msm-bus,vectors-KBps =
908 <1 618 0 0>, /* No vote */
909 <1 618 0 800>; /* 100 KHz */
910 clocks = <&clock_gcc GCC_PRNG_AHB_CLK>;
911 clock-names = "iface_clk";
912 };
913
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +0530914 thermal_zones: thermal-zones {};
Rama Krishna Phani Aa3c0e782017-07-17 20:09:15 +0530915
916 tsens0: tsens@c222000 {
917 compatible = "qcom,tsens24xx";
918 reg = <0xc222000 0x4>,
919 <0xc263000 0x1ff>;
920 reg-names = "tsens_srot_physical",
921 "tsens_tm_physical";
922 interrupts = <0 506 0>, <0 508 0>;
923 interrupt-names = "tsens-upper-lower", "tsens-critical";
924 #thermal-sensor-cells = <1>;
925 };
926
927 tsens1: tsens@c223000 {
928 compatible = "qcom,tsens24xx";
929 reg = <0xc223000 0x4>,
930 <0xc265000 0x1ff>;
931 reg-names = "tsens_srot_physical",
932 "tsens_tm_physical";
933 interrupts = <0 507 0>, <0 509 0>;
934 interrupt-names = "tsens-upper-lower", "tsens-critical";
935 #thermal-sensor-cells = <1>;
936 };
937
Imran Khan04f08312017-03-30 15:07:43 +0530938 timer@0x17c90000{
939 #address-cells = <1>;
940 #size-cells = <1>;
941 ranges;
942 compatible = "arm,armv7-timer-mem";
943 reg = <0x17c90000 0x1000>;
944 clock-frequency = <19200000>;
945
946 frame@0x17ca0000 {
947 frame-number = <0>;
948 interrupts = <0 7 0x4>,
949 <0 6 0x4>;
950 reg = <0x17ca0000 0x1000>,
951 <0x17cb0000 0x1000>;
952 };
953
954 frame@17cc0000 {
955 frame-number = <1>;
956 interrupts = <0 8 0x4>;
957 reg = <0x17cc0000 0x1000>;
958 status = "disabled";
959 };
960
961 frame@17cd0000 {
962 frame-number = <2>;
963 interrupts = <0 9 0x4>;
964 reg = <0x17cd0000 0x1000>;
965 status = "disabled";
966 };
967
968 frame@17ce0000 {
969 frame-number = <3>;
970 interrupts = <0 10 0x4>;
971 reg = <0x17ce0000 0x1000>;
972 status = "disabled";
973 };
974
975 frame@17cf0000 {
976 frame-number = <4>;
977 interrupts = <0 11 0x4>;
978 reg = <0x17cf0000 0x1000>;
979 status = "disabled";
980 };
981
982 frame@17d00000 {
983 frame-number = <5>;
984 interrupts = <0 12 0x4>;
985 reg = <0x17d00000 0x1000>;
986 status = "disabled";
987 };
988
989 frame@17d10000 {
990 frame-number = <6>;
991 interrupts = <0 13 0x4>;
992 reg = <0x17d10000 0x1000>;
993 status = "disabled";
994 };
995 };
996
997 restart@10ac000 {
998 compatible = "qcom,pshold";
999 reg = <0xC264000 0x4>,
1000 <0x1fd3000 0x4>;
1001 reg-names = "pshold-base", "tcsr-boot-misc-detect";
1002 };
1003
Maulik Shah6bf7d5d2017-07-27 09:48:42 +05301004 aop-msg-client {
1005 compatible = "qcom,debugfs-qmp-client";
1006 mboxes = <&qmp_aop 0>;
1007 mbox-names = "aop";
1008 };
1009
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301010 clock_rpmh: qcom,rpmhclk {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301011 compatible = "qcom,rpmh-clk-sdm670";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301012 #clock-cells = <1>;
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301013 mboxes = <&apps_rsc 0>;
1014 mbox-names = "apps";
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301015 };
1016
1017 clock_gcc: qcom,gcc@100000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301018 compatible = "qcom,gcc-sdm670", "syscon";
1019 reg = <0x100000 0x1f0000>;
1020 reg-names = "cc_base";
1021 vdd_cx-supply = <&pm660l_s3_level>;
1022 vdd_cx_ao-supply = <&pm660l_s3_level_ao>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301023 #clock-cells = <1>;
1024 #reset-cells = <1>;
1025 };
1026
1027 clock_videocc: qcom,videocc@ab00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301028 compatible = "qcom,video_cc-sdm670", "syscon";
1029 reg = <0xab00000 0x10000>;
1030 reg-names = "cc_base";
1031 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301032 #clock-cells = <1>;
1033 #reset-cells = <1>;
1034 };
1035
1036 clock_camcc: qcom,camcc@ad00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301037 compatible = "qcom,cam_cc-sdm670", "syscon";
1038 reg = <0xad00000 0x10000>;
1039 reg-names = "cc_base";
1040 vdd_cx-supply = <&pm660l_s3_level>;
1041 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301042 #clock-cells = <1>;
1043 #reset-cells = <1>;
1044 };
1045
1046 clock_dispcc: qcom,dispcc@af00000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301047 compatible = "qcom,dispcc-sdm670", "syscon";
1048 reg = <0xaf00000 0x10000>;
1049 reg-names = "cc_base";
1050 vdd_cx-supply = <&pm660l_s3_level>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301051 #clock-cells = <1>;
1052 #reset-cells = <1>;
1053 };
1054
1055 clock_gpucc: qcom,gpucc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301056 compatible = "qcom,gpucc-sdm670", "syscon";
1057 reg = <0x5090000 0x9000>;
1058 reg-names = "cc_base";
1059 vdd_cx-supply = <&pm660l_s3_level>;
1060 vdd_mx-supply = <&pm660l_s1_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +05301061 qcom,gpu_cc_gmu_clk_src-opp-handle = <&gmu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301062 #clock-cells = <1>;
1063 #reset-cells = <1>;
1064 };
1065
1066 clock_gfx: qcom,gfxcc@5090000 {
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301067 compatible = "qcom,gfxcc-sdm670";
1068 reg = <0x5090000 0x9000>;
1069 reg-names = "cc_base";
1070 vdd_gfx-supply = <&pm660l_s2_level>;
Odelu Kukatladc7ac7d2017-09-27 11:05:53 +05301071 qcom,gpu_cc_gx_gfx3d_clk_src-opp-handle = <&msm_gpu>;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05301072 #clock-cells = <1>;
1073 #reset-cells = <1>;
1074 };
1075
Odelu Kukatlad7e457b2017-08-07 22:08:09 +05301076 cpucc_debug: syscon@17970018 {
1077 compatible = "syscon";
1078 reg = <0x17970018 0x4>;
1079 };
1080
1081 clock_debug: qcom,cc-debug {
1082 compatible = "qcom,debugcc-sdm845";
1083 qcom,cc-count = <5>;
1084 qcom,gcc = <&clock_gcc>;
1085 qcom,videocc = <&clock_videocc>;
1086 qcom,camcc = <&clock_camcc>;
1087 qcom,dispcc = <&clock_dispcc>;
1088 qcom,gpucc = <&clock_gpucc>;
1089 qcom,cpucc = <&cpucc_debug>;
1090 clock-names = "xo_clk_src";
1091 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1092 #clock-cells = <1>;
1093 };
1094
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301095 clock_cpucc: qcom,cpucc@0x17d41000 {
1096 compatible = "qcom,clk-cpu-osm-sdm670";
1097 reg = <0x17d41000 0x1400>,
1098 <0x17d43000 0x1400>,
David Collins1e048402017-11-29 15:43:09 -08001099 <0x17d45800 0x1400>;
1100 reg-names = "osm_l3_base", "osm_pwrcl_base", "osm_perfcl_base";
Deepak Katragadda02617bd2017-11-10 16:03:43 -08001101 vdd_l3_mx_ao-supply = <&pm660l_s1_level_ao>;
1102 vdd_pwrcl_mx_ao-supply = <&pm660l_s1_level_ao>;
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301103
Odelu Kukatla86c179e2017-12-12 19:10:23 +05301104 qcom,mx-turbo-freq = <1440000000 1708000000 3300000001>;
Santosh Mardi7790a432018-01-09 23:01:56 +05301105 l3-devs = <&l3_cpu0 &l3_cpu6 &l3_cdsp>;
Odelu Kukatlaffce30a2017-09-23 17:20:48 +05301106
1107 clock-names = "xo_ao";
1108 clocks = <&clock_rpmh RPMH_CXO_CLK_A>;
Imran Khan04f08312017-03-30 15:07:43 +05301109 #clock-cells = <1>;
Imran Khan04f08312017-03-30 15:07:43 +05301110 };
1111
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301112 clock_aop: qcom,aopclk {
Odelu Kukatla80f617f2017-09-15 19:30:25 +05301113 compatible = "qcom,aop-qmp-clk-v1";
Odelu Kukatla6f3ffa12017-08-10 12:31:06 +05301114 #clock-cells = <1>;
1115 mboxes = <&qmp_aop 0>;
1116 mbox-names = "qdss_clk";
1117 };
1118
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301119 slim_aud: slim@62dc0000 {
1120 cell-index = <1>;
1121 compatible = "qcom,slim-ngd";
1122 reg = <0x62dc0000 0x2c000>,
1123 <0x62d84000 0x2a000>;
1124 reg-names = "slimbus_physical", "slimbus_bam_physical";
1125 interrupts = <0 163 0>, <0 164 0>;
1126 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
1127 qcom,apps-ch-pipes = <0x780000>;
1128 qcom,ea-pc = <0x290>;
1129 status = "disabled";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301130 qcom,iommu-s1-bypass;
1131
1132 iommu_slim_aud_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1133 compatible = "qcom,iommu-slim-ctrl-cb";
1134 iommus = <&apps_smmu 0x1826 0x0>,
1135 <&apps_smmu 0x182d 0x0>,
1136 <&apps_smmu 0x182e 0x1>,
1137 <&apps_smmu 0x1830 0x1>;
1138 };
1139
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301140 };
1141
1142 slim_qca: slim@62e40000 {
1143 cell-index = <3>;
1144 compatible = "qcom,slim-ngd";
1145 reg = <0x62e40000 0x2c000>,
1146 <0x62e04000 0x20000>;
1147 reg-names = "slimbus_physical", "slimbus_bam_physical";
1148 interrupts = <0 291 0>, <0 292 0>;
1149 interrupt-names = "slimbus_irq", "slimbus_bam_irq";
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301150 status = "ok";
Dilip Kota0f5974d2017-08-17 15:13:08 +05301151 qcom,iommu-s1-bypass;
1152
1153 iommu_slim_qca_ctrl_cb: qcom,iommu_slim_ctrl_cb {
1154 compatible = "qcom,iommu-slim-ctrl-cb";
1155 iommus = <&apps_smmu 0x1833 0x0>;
1156 };
1157
Rupesh Tatiya7615f682017-10-11 12:30:20 +05301158 /* Slimbus Slave DT for WCN3990 */
1159 btfmslim_codec: wcn3990 {
1160 compatible = "qcom,btfmslim_slave";
1161 elemental-addr = [00 01 20 02 17 02];
1162 qcom,btfm-slim-ifd = "btfmslim_slave_ifd";
1163 qcom,btfm-slim-ifd-elemental-addr = [00 00 20 02 17 02];
1164 };
Shrey Vijay6b6b3a52017-06-21 15:06:03 +05301165 };
1166
Imran Khan04f08312017-03-30 15:07:43 +05301167 wdog: qcom,wdt@17980000{
1168 compatible = "qcom,msm-watchdog";
1169 reg = <0x17980000 0x1000>;
1170 reg-names = "wdt-base";
Lingutla Chandrasekhar9fb9ba92017-10-08 21:59:19 +05301171 interrupts = <0 0 0>, <0 1 0>;
Imran Khan04f08312017-03-30 15:07:43 +05301172 qcom,bark-time = <11000>;
Neeraj Upadhyaydbc184d2017-12-07 16:05:39 +05301173 qcom,pet-time = <9360>;
Imran Khan04f08312017-03-30 15:07:43 +05301174 qcom,ipi-ping;
1175 qcom,wakeup-enable;
1176 };
1177
1178 qcom,msm-rtb {
1179 compatible = "qcom,msm-rtb";
1180 qcom,rtb-size = <0x100000>;
1181 };
1182
Lingutla Chandrasekhar4d78d722017-11-10 16:03:44 +05301183 qcom,mpm2-sleep-counter@c221000 {
1184 compatible = "qcom,mpm2-sleep-counter";
1185 reg = <0x0c221000 0x1000>;
1186 clock-frequency = <32768>;
1187 };
1188
Imran Khan04f08312017-03-30 15:07:43 +05301189 qcom,msm-imem@146bf000 {
1190 compatible = "qcom,msm-imem";
1191 reg = <0x146bf000 0x1000>;
1192 ranges = <0x0 0x146bf000 0x1000>;
1193 #address-cells = <1>;
1194 #size-cells = <1>;
1195
1196 mem_dump_table@10 {
1197 compatible = "qcom,msm-imem-mem_dump_table";
1198 reg = <0x10 8>;
1199 };
1200
Lingutla Chandrasekharfa5c13f2017-09-25 11:01:58 +05301201 dload_type@1c {
1202 compatible = "qcom,msm-imem-dload-type";
1203 reg = <0x1c 0x4>;
1204 };
1205
Imran Khan04f08312017-03-30 15:07:43 +05301206 restart_reason@65c {
1207 compatible = "qcom,msm-imem-restart_reason";
1208 reg = <0x65c 4>;
1209 };
1210
1211 pil@94c {
1212 compatible = "qcom,msm-imem-pil";
1213 reg = <0x94c 200>;
1214 };
1215
1216 kaslr_offset@6d0 {
1217 compatible = "qcom,msm-imem-kaslr_offset";
1218 reg = <0x6d0 12>;
1219 };
Lingutla Chandrasekhar3c51f0b2017-09-12 14:21:21 +05301220
1221 boot_stats@6b0 {
1222 compatible = "qcom,msm-imem-boot_stats";
1223 reg = <0x6b0 0x20>;
1224 };
1225
1226 diag_dload@c8 {
1227 compatible = "qcom,msm-imem-diag-dload";
1228 reg = <0xc8 0xc8>;
1229 };
Imran Khan04f08312017-03-30 15:07:43 +05301230 };
1231
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301232 gpi_dma0: qcom,gpi-dma@0x800000 {
Jishnu Prakashfb619282017-11-06 11:07:53 +05301233 #dma-cells = <5>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301234 compatible = "qcom,gpi-dma";
1235 reg = <0x800000 0x60000>;
1236 reg-names = "gpi-top";
1237 interrupts = <0 244 0>, <0 245 0>, <0 246 0>, <0 247 0>,
1238 <0 248 0>, <0 249 0>, <0 250 0>, <0 251 0>,
1239 <0 252 0>, <0 253 0>, <0 254 0>, <0 255 0>,
1240 <0 256 0>;
1241 qcom,max-num-gpii = <13>;
1242 qcom,gpii-mask = <0xfa>;
1243 qcom,ev-factor = <2>;
1244 iommus = <&apps_smmu 0x0016 0x0>;
Jishnu Prakash71f42792017-11-02 16:04:21 +05301245 qcom,smmu-cfg = <0x1>;
1246 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301247 status = "ok";
1248 };
1249
1250 gpi_dma1: qcom,gpi-dma@0xa00000 {
Jishnu Prakashfb619282017-11-06 11:07:53 +05301251 #dma-cells = <5>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301252 compatible = "qcom,gpi-dma";
1253 reg = <0xa00000 0x60000>;
1254 reg-names = "gpi-top";
1255 interrupts = <0 279 0>, <0 280 0>, <0 281 0>, <0 282 0>,
1256 <0 283 0>, <0 284 0>, <0 293 0>, <0 294 0>,
1257 <0 295 0>, <0 296 0>, <0 297 0>, <0 298 0>,
1258 <0 299 0>;
1259 qcom,max-num-gpii = <13>;
1260 qcom,gpii-mask = <0xfa>;
1261 qcom,ev-factor = <2>;
Jishnu Prakash71f42792017-11-02 16:04:21 +05301262 qcom,smmu-cfg = <0x1>;
1263 qcom,iova-range = <0x0 0x100000 0x0 0x100000>;
Rama Krishna Phani A2acd96a2017-07-03 17:12:46 +05301264 iommus = <&apps_smmu 0x06d6 0x0>;
1265 status = "ok";
1266 };
1267
Imran Khan04f08312017-03-30 15:07:43 +05301268 cpuss_dump {
1269 compatible = "qcom,cpuss-dump";
1270 qcom,l1_i_cache0 {
1271 qcom,dump-node = <&L1_I_0>;
1272 qcom,dump-id = <0x60>;
1273 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301274 qcom,l1_i_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301275 qcom,dump-node = <&L1_I_100>;
1276 qcom,dump-id = <0x61>;
1277 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301278 qcom,l1_i_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301279 qcom,dump-node = <&L1_I_200>;
1280 qcom,dump-id = <0x62>;
1281 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301282 qcom,l1_i_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301283 qcom,dump-node = <&L1_I_300>;
1284 qcom,dump-id = <0x63>;
1285 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301286 qcom,l1_i_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301287 qcom,dump-node = <&L1_I_400>;
1288 qcom,dump-id = <0x64>;
1289 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301290 qcom,l1_i_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301291 qcom,dump-node = <&L1_I_500>;
1292 qcom,dump-id = <0x65>;
1293 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301294 qcom,l1_i_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301295 qcom,dump-node = <&L1_I_600>;
1296 qcom,dump-id = <0x66>;
1297 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301298 qcom,l1_i_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301299 qcom,dump-node = <&L1_I_700>;
1300 qcom,dump-id = <0x67>;
1301 };
1302 qcom,l1_d_cache0 {
1303 qcom,dump-node = <&L1_D_0>;
1304 qcom,dump-id = <0x80>;
1305 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301306 qcom,l1_d_cache100 {
Imran Khan04f08312017-03-30 15:07:43 +05301307 qcom,dump-node = <&L1_D_100>;
1308 qcom,dump-id = <0x81>;
1309 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301310 qcom,l1_d_cache200 {
Imran Khan04f08312017-03-30 15:07:43 +05301311 qcom,dump-node = <&L1_D_200>;
1312 qcom,dump-id = <0x82>;
1313 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301314 qcom,l1_d_cache300 {
Imran Khan04f08312017-03-30 15:07:43 +05301315 qcom,dump-node = <&L1_D_300>;
1316 qcom,dump-id = <0x83>;
1317 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301318 qcom,l1_d_cache400 {
Imran Khan04f08312017-03-30 15:07:43 +05301319 qcom,dump-node = <&L1_D_400>;
1320 qcom,dump-id = <0x84>;
1321 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301322 qcom,l1_d_cache500 {
Imran Khan04f08312017-03-30 15:07:43 +05301323 qcom,dump-node = <&L1_D_500>;
1324 qcom,dump-id = <0x85>;
1325 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301326 qcom,l1_d_cache600 {
Imran Khan04f08312017-03-30 15:07:43 +05301327 qcom,dump-node = <&L1_D_600>;
1328 qcom,dump-id = <0x86>;
1329 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301330 qcom,l1_d_cache700 {
Imran Khan04f08312017-03-30 15:07:43 +05301331 qcom,dump-node = <&L1_D_700>;
1332 qcom,dump-id = <0x87>;
1333 };
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301334 qcom,llcc1_d_cache {
1335 qcom,dump-node = <&LLCC_1>;
1336 qcom,dump-id = <0x140>;
1337 };
1338 qcom,llcc2_d_cache {
1339 qcom,dump-node = <&LLCC_2>;
1340 qcom,dump-id = <0x141>;
1341 };
Lingutla Chandrasekhar22792282017-09-01 16:38:20 +05301342 qcom,l1_tlb_dump0 {
1343 qcom,dump-node = <&L1_TLB_0>;
1344 qcom,dump-id = <0x20>;
1345 };
1346 qcom,l1_tlb_dump100 {
1347 qcom,dump-node = <&L1_TLB_100>;
1348 qcom,dump-id = <0x21>;
1349 };
1350 qcom,l1_tlb_dump200 {
1351 qcom,dump-node = <&L1_TLB_200>;
1352 qcom,dump-id = <0x22>;
1353 };
1354 qcom,l1_tlb_dump300 {
1355 qcom,dump-node = <&L1_TLB_300>;
1356 qcom,dump-id = <0x23>;
1357 };
1358 qcom,l1_tlb_dump400 {
1359 qcom,dump-node = <&L1_TLB_400>;
1360 qcom,dump-id = <0x24>;
1361 };
1362 qcom,l1_tlb_dump500 {
1363 qcom,dump-node = <&L1_TLB_500>;
1364 qcom,dump-id = <0x25>;
1365 };
1366 qcom,l1_tlb_dump600 {
1367 qcom,dump-node = <&L1_TLB_600>;
1368 qcom,dump-id = <0x26>;
1369 };
1370 qcom,l1_tlb_dump700 {
1371 qcom,dump-node = <&L1_TLB_700>;
1372 qcom,dump-id = <0x27>;
1373 };
Imran Khan04f08312017-03-30 15:07:43 +05301374 };
1375
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301376 mem_dump {
1377 compatible = "qcom,mem-dump";
1378 memory-region = <&dump_mem>;
1379
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301380 rpmh {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301381 qcom,dump-size = <0x2000000>;
1382 qcom,dump-id = <0xec>;
1383 };
1384
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301385 rpm_sw {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301386 qcom,dump-size = <0x28000>;
1387 qcom,dump-id = <0xea>;
1388 };
1389
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301390 pmic {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301391 qcom,dump-size = <0x10000>;
1392 qcom,dump-id = <0xe4>;
1393 };
1394
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301395 tmc_etf {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301396 qcom,dump-size = <0x10000>;
1397 qcom,dump-id = <0xf0>;
1398 };
1399
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301400 tmc_etfswao {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301401 qcom,dump-size = <0x8400>;
1402 qcom,dump-id = <0xf1>;
1403 };
1404
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301405 tmc_etr_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301406 qcom,dump-size = <0x1000>;
1407 qcom,dump-id = <0x100>;
1408 };
1409
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301410 tmc_etf_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301411 qcom,dump-size = <0x1000>;
1412 qcom,dump-id = <0x101>;
1413 };
1414
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301415 etfswao_reg {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301416 qcom,dump-size = <0x1000>;
1417 qcom,dump-id = <0x102>;
1418 };
1419
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301420 misc_data {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301421 qcom,dump-size = <0x1000>;
1422 qcom,dump-id = <0xe8>;
1423 };
1424
Lingutla Chandrasekhar408ca1d2017-11-06 21:48:09 +05301425 power_regs {
Lingutla Chandrasekhar96fd39c2017-09-12 10:34:33 +05301426 qcom,dump-size = <0x100000>;
1427 qcom,dump-id = <0xed>;
1428 };
1429 };
1430
Imran Khan04f08312017-03-30 15:07:43 +05301431 kryo3xx-erp {
1432 compatible = "arm,arm64-kryo3xx-cpu-erp";
1433 interrupts = <1 6 4>,
1434 <1 7 4>,
1435 <0 34 4>,
1436 <0 35 4>;
1437
1438 interrupt-names = "l1-l2-faultirq",
1439 "l1-l2-errirq",
1440 "l3-scu-errirq",
1441 "l3-scu-faultirq";
1442 };
1443
Dhoat Harpala24cb2c2017-06-06 20:39:54 +05301444 qcom,ipc-spinlock@1f40000 {
1445 compatible = "qcom,ipc-spinlock-sfpb";
1446 reg = <0x1f40000 0x8000>;
1447 qcom,num-locks = <8>;
1448 };
1449
Dhoat Harpaldd9bfaf2017-06-06 20:43:16 +05301450 qcom,smem@86000000 {
1451 compatible = "qcom,smem";
1452 reg = <0x86000000 0x200000>,
1453 <0x17911008 0x4>,
1454 <0x778000 0x7000>,
1455 <0x1fd4000 0x8>;
1456 reg-names = "smem", "irq-reg-base", "aux-mem1",
1457 "smem_targ_info_reg";
1458 qcom,mpu-enabled;
1459 };
1460
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301461 qmp_aop: qcom,qmp-aop@c300000 {
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301462 compatible = "qcom,qmp-mbox";
1463 label = "aop";
1464 reg = <0xc300000 0x100000>,
1465 <0x1799000c 0x4>;
1466 reg-names = "msgram", "irq-reg-base";
1467 qcom,irq-mask = <0x1>;
1468 interrupts = <0 389 1>;
Dhoat Harpalebc9e562017-07-30 20:53:03 +05301469 priority = <0>;
Dhoat Harpal5f909ef2017-06-09 21:18:00 +05301470 mbox-desc-offset = <0x0>;
1471 #mbox-cells = <1>;
1472 };
1473
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301474 qcom,glink-smem-native-xprt-modem@86000000 {
1475 compatible = "qcom,glink-smem-native-xprt";
1476 reg = <0x86000000 0x200000>,
1477 <0x1799000c 0x4>;
1478 reg-names = "smem", "irq-reg-base";
1479 qcom,irq-mask = <0x1000>;
1480 interrupts = <GIC_SPI 449 IRQ_TYPE_EDGE_RISING>;
1481 label = "mpss";
1482 };
1483
1484 qcom,glink-smem-native-xprt-adsp@86000000 {
1485 compatible = "qcom,glink-smem-native-xprt";
1486 reg = <0x86000000 0x200000>,
1487 <0x1799000c 0x4>;
1488 reg-names = "smem", "irq-reg-base";
Dhoat Harpal3adebbe2017-07-06 15:59:13 +05301489 qcom,irq-mask = <0x1000000>;
1490 interrupts = <GIC_SPI 170 IRQ_TYPE_EDGE_RISING>;
Dhoat Harpal466ffcc2017-06-06 20:54:51 +05301491 label = "lpass";
1492 qcom,qos-config = <&glink_qos_adsp>;
1493 qcom,ramp-time = <0xaf>;
1494 };
1495
1496 glink_qos_adsp: qcom,glink-qos-config-adsp {
1497 compatible = "qcom,glink-qos-config";
1498 qcom,flow-info = <0x3c 0x0>,
1499 <0x3c 0x0>,
1500 <0x3c 0x0>,
1501 <0x3c 0x0>;
1502 qcom,mtu-size = <0x800>;
1503 qcom,tput-stats-cycle = <0xa>;
1504 };
1505
1506 glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
1507 compatible = "qcom,glink-spi-xprt";
1508 label = "wdsp";
1509 qcom,remote-fifo-config = <&glink_fifo_wdsp>;
1510 qcom,qos-config = <&glink_qos_wdsp>;
1511 qcom,ramp-time = <0x10>,
1512 <0x20>,
1513 <0x30>,
1514 <0x40>;
1515 };
1516
1517 glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
1518 compatible = "qcom,glink-fifo-config";
1519 qcom,out-read-idx-reg = <0x12000>;
1520 qcom,out-write-idx-reg = <0x12004>;
1521 qcom,in-read-idx-reg = <0x1200C>;
1522 qcom,in-write-idx-reg = <0x12010>;
1523 };
1524
1525 glink_qos_wdsp: qcom,glink-qos-config-wdsp {
1526 compatible = "qcom,glink-qos-config";
1527 qcom,flow-info = <0x80 0x0>,
1528 <0x70 0x1>,
1529 <0x60 0x2>,
1530 <0x50 0x3>;
1531 qcom,mtu-size = <0x800>;
1532 qcom,tput-stats-cycle = <0xa>;
1533 };
1534
1535 qcom,glink-smem-native-xprt-cdsp@86000000 {
1536 compatible = "qcom,glink-smem-native-xprt";
1537 reg = <0x86000000 0x200000>,
1538 <0x1799000c 0x4>;
1539 reg-names = "smem", "irq-reg-base";
1540 qcom,irq-mask = <0x10>;
1541 interrupts = <GIC_SPI 574 IRQ_TYPE_EDGE_RISING>;
1542 label = "cdsp";
1543 };
1544
Dhoat Harpal9cb73cc2017-06-06 20:58:14 +05301545 glink_mpss: qcom,glink-ssr-modem {
1546 compatible = "qcom,glink_ssr";
1547 label = "modem";
1548 qcom,edge = "mpss";
1549 qcom,notify-edges = <&glink_lpass>, <&glink_cdsp>;
1550 qcom,xprt = "smem";
1551 };
1552
1553 glink_lpass: qcom,glink-ssr-adsp {
1554 compatible = "qcom,glink_ssr";
1555 label = "adsp";
1556 qcom,edge = "lpass";
1557 qcom,notify-edges = <&glink_mpss>, <&glink_cdsp>;
1558 qcom,xprt = "smem";
1559 };
1560
1561 glink_cdsp: qcom,glink-ssr-cdsp {
1562 compatible = "qcom,glink_ssr";
1563 label = "cdsp";
1564 qcom,edge = "cdsp";
1565 qcom,notify-edges = <&glink_mpss>, <&glink_lpass>;
1566 qcom,xprt = "smem";
1567 };
1568
Dhoat Harpal22dafa92017-06-06 21:03:34 +05301569 qcom,ipc_router {
1570 compatible = "qcom,ipc_router";
1571 qcom,node-id = <1>;
1572 };
1573
1574 qcom,ipc_router_modem_xprt {
1575 compatible = "qcom,ipc_router_glink_xprt";
1576 qcom,ch-name = "IPCRTR";
1577 qcom,xprt-remote = "mpss";
1578 qcom,glink-xprt = "smem";
1579 qcom,xprt-linkid = <1>;
1580 qcom,xprt-version = <1>;
1581 qcom,fragmented-data;
1582 };
1583
1584 qcom,ipc_router_q6_xprt {
1585 compatible = "qcom,ipc_router_glink_xprt";
1586 qcom,ch-name = "IPCRTR";
1587 qcom,xprt-remote = "lpass";
1588 qcom,glink-xprt = "smem";
1589 qcom,xprt-linkid = <1>;
1590 qcom,xprt-version = <1>;
1591 qcom,fragmented-data;
1592 };
1593
1594 qcom,ipc_router_cdsp_xprt {
1595 compatible = "qcom,ipc_router_glink_xprt";
1596 qcom,ch-name = "IPCRTR";
1597 qcom,xprt-remote = "cdsp";
1598 qcom,glink-xprt = "smem";
1599 qcom,xprt-linkid = <1>;
1600 qcom,xprt-version = <1>;
1601 qcom,fragmented-data;
1602 };
1603
Dhoat Harpal11d34482017-06-06 21:00:14 +05301604 qcom,glink_pkt {
1605 compatible = "qcom,glinkpkt";
1606
1607 qcom,glinkpkt-at-mdm0 {
1608 qcom,glinkpkt-transport = "smem";
1609 qcom,glinkpkt-edge = "mpss";
1610 qcom,glinkpkt-ch-name = "DS";
1611 qcom,glinkpkt-dev-name = "at_mdm0";
1612 };
1613
1614 qcom,glinkpkt-loopback_cntl {
1615 qcom,glinkpkt-transport = "lloop";
1616 qcom,glinkpkt-edge = "local";
1617 qcom,glinkpkt-ch-name = "LOCAL_LOOPBACK_CLNT";
1618 qcom,glinkpkt-dev-name = "glink_pkt_loopback_ctrl";
1619 };
1620
1621 qcom,glinkpkt-loopback_data {
1622 qcom,glinkpkt-transport = "lloop";
1623 qcom,glinkpkt-edge = "local";
1624 qcom,glinkpkt-ch-name = "glink_pkt_lloop_CLNT";
1625 qcom,glinkpkt-dev-name = "glink_pkt_loopback";
1626 };
1627
1628 qcom,glinkpkt-apr-apps2 {
1629 qcom,glinkpkt-transport = "smem";
1630 qcom,glinkpkt-edge = "adsp";
1631 qcom,glinkpkt-ch-name = "apr_apps2";
1632 qcom,glinkpkt-dev-name = "apr_apps2";
1633 };
1634
1635 qcom,glinkpkt-data40-cntl {
1636 qcom,glinkpkt-transport = "smem";
1637 qcom,glinkpkt-edge = "mpss";
1638 qcom,glinkpkt-ch-name = "DATA40_CNTL";
1639 qcom,glinkpkt-dev-name = "smdcntl8";
1640 };
1641
1642 qcom,glinkpkt-data1 {
1643 qcom,glinkpkt-transport = "smem";
1644 qcom,glinkpkt-edge = "mpss";
1645 qcom,glinkpkt-ch-name = "DATA1";
1646 qcom,glinkpkt-dev-name = "smd7";
1647 };
1648
1649 qcom,glinkpkt-data4 {
1650 qcom,glinkpkt-transport = "smem";
1651 qcom,glinkpkt-edge = "mpss";
1652 qcom,glinkpkt-ch-name = "DATA4";
1653 qcom,glinkpkt-dev-name = "smd8";
1654 };
1655
1656 qcom,glinkpkt-data11 {
1657 qcom,glinkpkt-transport = "smem";
1658 qcom,glinkpkt-edge = "mpss";
1659 qcom,glinkpkt-ch-name = "DATA11";
1660 qcom,glinkpkt-dev-name = "smd11";
1661 };
1662 };
1663
Imran Khan04f08312017-03-30 15:07:43 +05301664 qcom,chd_sliver {
1665 compatible = "qcom,core-hang-detect";
1666 label = "silver";
1667 qcom,threshold-arr = <0x17e00058 0x17e10058 0x17e20058
1668 0x17e30058 0x17e40058 0x17e50058>;
1669 qcom,config-arr = <0x17e00060 0x17e10060 0x17e20060
1670 0x17e30060 0x17e40060 0x17e50060>;
1671 };
1672
1673 qcom,chd_gold {
1674 compatible = "qcom,core-hang-detect";
1675 label = "gold";
1676 qcom,threshold-arr = <0x17e60058 0x17e70058>;
1677 qcom,config-arr = <0x17e60060 0x17e70060>;
1678 };
1679
1680 qcom,ghd {
1681 compatible = "qcom,gladiator-hang-detect-v2";
1682 qcom,threshold-arr = <0x1799041c 0x17990420>;
1683 qcom,config-reg = <0x17990434>;
1684 };
1685
1686 qcom,msm-gladiator-v3@17900000 {
1687 compatible = "qcom,msm-gladiator-v3";
1688 reg = <0x17900000 0xd080>;
1689 reg-names = "gladiator_base";
1690 interrupts = <0 17 0>;
1691 };
1692
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301693 eud: qcom,msm-eud@88e0000 {
1694 compatible = "qcom,msm-eud";
1695 interrupt-names = "eud_irq";
1696 interrupts = <GIC_SPI 492 IRQ_TYPE_LEVEL_HIGH>;
1697 reg = <0x88e0000 0x2000>;
1698 reg-names = "eud_base";
Lingutla Chandrasekhar5422daf2017-10-26 11:27:32 +05301699 clocks = <&clock_gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>;
1700 clock-names = "cfg_ahb_clk";
Lingutla Chandrasekhar88f9e7b2017-09-15 18:29:25 +05301701 };
1702
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301703 qcom,llcc@1100000 {
1704 compatible = "qcom,llcc-core", "syscon", "simple-mfd";
1705 reg = <0x1100000 0x250000>;
1706 reg-names = "llcc_base";
1707 qcom,llcc-banks-off = <0x0 0x80000 >;
1708 qcom,llcc-broadcast-off = <0x200000>;
1709
1710 llcc: qcom,sdm670-llcc {
1711 compatible = "qcom,sdm670-llcc";
1712 #cache-cells = <1>;
1713 max-slices = <32>;
1714 qcom,dump-size = <0x80000>;
1715 };
1716
Sankaran Nampoothiri0c5dac02017-11-06 11:53:52 +05301717 qcom,llcc-perfmon {
1718 compatible = "qcom,llcc-perfmon";
1719 };
1720
Lingutla Chandrasekharee4f1872017-06-07 13:50:53 +05301721 qcom,llcc-erp {
1722 compatible = "qcom,llcc-erp";
1723 interrupt-names = "ecc_irq";
1724 interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
1725 };
1726
1727 qcom,llcc-amon {
1728 compatible = "qcom,llcc-amon";
1729 };
1730
1731 LLCC_1: llcc_1_dcache {
1732 qcom,dump-size = <0xd8000>;
1733 };
1734
1735 LLCC_2: llcc_2_dcache {
1736 qcom,dump-size = <0xd8000>;
1737 };
1738 };
1739
Maulik Shah210773d2017-06-15 09:49:12 +05301740 cmd_db: qcom,cmd-db@c3f000c {
1741 compatible = "qcom,cmd-db";
1742 reg = <0xc3f000c 0x8>;
1743 };
1744
Maulik Shahc77d1d22017-06-15 14:04:50 +05301745 apps_rsc: mailbox@179e0000 {
1746 compatible = "qcom,tcs-drv";
1747 label = "apps_rsc";
1748 reg = <0x179e0000 0x100>, <0x179e0d00 0x3000>;
1749 interrupts = <0 5 0>;
1750 #mbox-cells = <1>;
1751 qcom,drv-id = <2>;
1752 qcom,tcs-config = <ACTIVE_TCS 2>,
1753 <SLEEP_TCS 3>,
1754 <WAKE_TCS 3>,
1755 <CONTROL_TCS 1>;
1756 };
1757
Maulik Shahda3941f2017-06-15 09:41:38 +05301758 disp_rsc: mailbox@af20000 {
1759 compatible = "qcom,tcs-drv";
1760 label = "display_rsc";
1761 reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>;
1762 interrupts = <0 129 0>;
1763 #mbox-cells = <1>;
1764 qcom,drv-id = <0>;
1765 qcom,tcs-config = <SLEEP_TCS 1>,
1766 <WAKE_TCS 1>,
1767 <ACTIVE_TCS 0>,
1768 <CONTROL_TCS 1>;
1769 };
1770
Maulik Shah0dd203f2017-06-15 09:44:59 +05301771 system_pm {
1772 compatible = "qcom,system-pm";
1773 mboxes = <&apps_rsc 0>;
1774 };
1775
Imran Khan04f08312017-03-30 15:07:43 +05301776 dcc: dcc_v2@10a2000 {
1777 compatible = "qcom,dcc_v2";
1778 reg = <0x10a2000 0x1000>,
1779 <0x10ae000 0x2000>;
1780 reg-names = "dcc-base", "dcc-ram-base";
Saranya Chidurac0a161c2017-08-28 13:06:10 +05301781
1782 dcc-ram-offset = <0x6000>;
Imran Khan04f08312017-03-30 15:07:43 +05301783 };
1784
Tirupathi Reddy9ae4c892017-06-09 12:30:31 +05301785 spmi_bus: qcom,spmi@c440000 {
1786 compatible = "qcom,spmi-pmic-arb";
1787 reg = <0xc440000 0x1100>,
1788 <0xc600000 0x2000000>,
1789 <0xe600000 0x100000>,
1790 <0xe700000 0xa0000>,
1791 <0xc40a000 0x26000>;
1792 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1793 interrupt-names = "periph_irq";
1794 interrupts = <GIC_SPI 481 IRQ_TYPE_NONE>;
1795 qcom,ee = <0>;
1796 qcom,channel = <0>;
1797 #address-cells = <2>;
1798 #size-cells = <0>;
1799 interrupt-controller;
1800 #interrupt-cells = <4>;
1801 cell-index = <0>;
1802 };
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301803
Neeraj Soni3c041f12018-01-19 16:45:44 +05301804 ufs_ice: ufsice@1d90000 {
1805 compatible = "qcom,ice";
1806 reg = <0x1d90000 0x8000>;
1807 qcom,enable-ice-clk;
1808 clock-names = "ufs_core_clk", "bus_clk",
1809 "iface_clk", "ice_core_clk";
1810 clocks = <&clock_gcc GCC_UFS_PHY_AXI_CLK>,
1811 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1812 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1813 <&clock_gcc GCC_UFS_PHY_ICE_CORE_CLK>;
1814 qcom,op-freq-hz = <0>, <0>, <0>, <300000000>;
1815 vdd-hba-supply = <&ufs_phy_gdsc>;
1816 qcom,msm-bus,name = "ufs_ice_noc";
1817 qcom,msm-bus,num-cases = <2>;
1818 qcom,msm-bus,num-paths = <1>;
1819 qcom,msm-bus,vectors-KBps =
1820 <1 650 0 0>, /* No vote */
1821 <1 650 1000 0>; /* Max. bandwidth */
1822 qcom,bus-vector-names = "MIN",
1823 "MAX";
1824 qcom,instance-type = "ufs";
1825 };
1826
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301827 ufsphy_mem: ufsphy_mem@1d87000 {
1828 reg = <0x1d87000 0xe00>; /* PHY regs */
1829 reg-names = "phy_mem";
1830 #phy-cells = <0>;
1831
1832 lanes-per-direction = <1>;
1833
1834 clock-names = "ref_clk_src",
1835 "ref_clk",
1836 "ref_aux_clk";
1837 clocks = <&clock_rpmh RPMH_CXO_CLK>,
1838 <&clock_gcc GCC_UFS_MEM_CLKREF_CLK>,
1839 <&clock_gcc GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK>;
1840
1841 status = "disabled";
1842 };
1843
1844 ufshc_mem: ufshc@1d84000 {
1845 compatible = "qcom,ufshc";
1846 reg = <0x1d84000 0x3000>;
1847 interrupts = <0 265 0>;
1848 phys = <&ufsphy_mem>;
1849 phy-names = "ufsphy";
Neeraj Soni3c041f12018-01-19 16:45:44 +05301850 ufs-qcom-crypto = <&ufs_ice>;
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301851
1852 lanes-per-direction = <1>;
1853 dev-ref-clk-freq = <0>; /* 19.2 MHz */
1854
1855 clock-names =
1856 "core_clk",
1857 "bus_aggr_clk",
1858 "iface_clk",
1859 "core_clk_unipro",
1860 "core_clk_ice",
1861 "ref_clk",
1862 "tx_lane0_sync_clk",
1863 "rx_lane0_sync_clk";
1864 clocks =
1865 <&clock_gcc GCC_UFS_PHY_AXI_HW_CTL_CLK>,
1866 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK>,
1867 <&clock_gcc GCC_UFS_PHY_AHB_CLK>,
1868 <&clock_gcc GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK>,
1869 <&clock_gcc GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK>,
1870 <&clock_rpmh RPMH_CXO_CLK>,
1871 <&clock_gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>,
1872 <&clock_gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>;
1873 freq-table-hz =
1874 <50000000 200000000>,
1875 <0 0>,
1876 <0 0>,
1877 <37500000 150000000>,
1878 <75000000 300000000>,
1879 <0 0>,
1880 <0 0>,
1881 <0 0>;
1882
Sayali Lokhandeaa3db742017-10-09 15:13:01 +05301883 non-removable;
Sayali Lokhande9ad47f02017-08-02 12:44:31 +05301884 qcom,msm-bus,name = "ufshc_mem";
1885 qcom,msm-bus,num-cases = <12>;
1886 qcom,msm-bus,num-paths = <2>;
1887 qcom,msm-bus,vectors-KBps =
1888 /*
1889 * During HS G3 UFS runs at nominal voltage corner, vote
1890 * higher bandwidth to push other buses in the data path
1891 * to run at nominal to achieve max throughput.
1892 * 4GBps pushes BIMC to run at nominal.
1893 * 200MBps pushes CNOC to run at nominal.
1894 * Vote for half of this bandwidth for HS G3 1-lane.
1895 * For max bandwidth, vote high enough to push the buses
1896 * to run in turbo voltage corner.
1897 */
1898 <123 512 0 0>, <1 757 0 0>, /* No vote */
1899 <123 512 922 0>, <1 757 1000 0>, /* PWM G1 */
1900 <123 512 1844 0>, <1 757 1000 0>, /* PWM G2 */
1901 <123 512 3688 0>, <1 757 1000 0>, /* PWM G3 */
1902 <123 512 7376 0>, <1 757 1000 0>, /* PWM G4 */
1903 <123 512 127796 0>, <1 757 1000 0>, /* HS G1 RA */
1904 <123 512 255591 0>, <1 757 1000 0>, /* HS G2 RA */
1905 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RA */
1906 <123 512 149422 0>, <1 757 1000 0>, /* HS G1 RB */
1907 <123 512 298189 0>, <1 757 1000 0>, /* HS G2 RB */
1908 <123 512 2097152 0>, <1 757 102400 0>, /* HS G3 RB */
1909 <123 512 7643136 0>, <1 757 307200 0>; /* Max. bandwidth */
1910
1911 qcom,bus-vector-names = "MIN",
1912 "PWM_G1_L1", "PWM_G2_L1", "PWM_G3_L1", "PWM_G4_L1",
1913 "HS_RA_G1_L1", "HS_RA_G2_L1", "HS_RA_G3_L1",
1914 "HS_RB_G1_L1", "HS_RB_G2_L1", "HS_RB_G3_L1",
1915 "MAX";
1916
1917 /* PM QoS */
1918 qcom,pm-qos-cpu-groups = <0x3f 0xC0>;
1919 qcom,pm-qos-cpu-group-latency-us = <70 70>;
1920 qcom,pm-qos-default-cpu = <0>;
1921
Sayali Lokhande099af9c2017-06-08 10:18:29 +05301922 resets = <&clock_gcc GCC_UFS_PHY_BCR>;
1923 reset-names = "core_reset";
1924
1925 status = "disabled";
1926 };
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301927
1928 qcom,lpass@62400000 {
1929 compatible = "qcom,pil-tz-generic";
1930 reg = <0x62400000 0x00100>;
1931 interrupts = <0 162 1>;
1932
1933 vdd_cx-supply = <&pm660l_l9_level>;
1934 qcom,proxy-reg-names = "vdd_cx";
1935 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
1936
1937 clocks = <&clock_rpmh RPMH_CXO_CLK>;
1938 clock-names = "xo";
1939 qcom,proxy-clock-names = "xo";
1940
1941 qcom,pas-id = <1>;
1942 qcom,proxy-timeout-ms = <10000>;
1943 qcom,smem-id = <423>;
1944 qcom,sysmon-id = <1>;
1945 qcom,ssctl-instance-id = <0x14>;
1946 qcom,firmware-name = "adsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301947 qcom,signal-aop;
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301948 memory-region = <&pil_adsp_mem>;
1949
1950 /* GPIO inputs from lpass */
1951 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_2_in 0 0>;
1952 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_2_in 2 0>;
1953 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_2_in 1 0>;
1954 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_2_in 3 0>;
1955
1956 /* GPIO output to lpass */
1957 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_2_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05301958
1959 mboxes = <&qmp_aop 0>;
1960 mbox-names = "adsp-pil";
Gaurav Kohlib28d5562017-06-12 11:26:27 +05301961 status = "ok";
1962 };
Mohammed Javid736c25c2017-06-19 13:23:18 +05301963
Sahitya Tummala02e49182017-09-19 10:54:42 +05301964 qcom,rmtfs_sharedmem@0 {
1965 compatible = "qcom,sharedmem-uio";
1966 reg = <0x0 0x200000>;
1967 reg-names = "rmtfs";
1968 qcom,client-id = <0x00000001>;
Sahitya Tummala57f7b572017-10-23 10:29:03 +05301969 qcom,guard-memory;
Sahitya Tummala02e49182017-09-19 10:54:42 +05301970 };
1971
Mohammed Javidf97a10e2017-10-08 13:11:26 +05301972 qcom,msm_gsi {
1973 compatible = "qcom,msm_gsi";
1974 };
1975
Mohammed Javid736c25c2017-06-19 13:23:18 +05301976 qcom,rmnet-ipa {
1977 compatible = "qcom,rmnet-ipa3";
1978 qcom,rmnet-ipa-ssr;
1979 qcom,ipa-loaduC;
1980 qcom,ipa-advertise-sg-support;
1981 qcom,ipa-napi-enable;
1982 };
1983
1984 ipa_hw: qcom,ipa@01e00000 {
1985 compatible = "qcom,ipa";
1986 reg = <0x1e00000 0x34000>,
1987 <0x1e04000 0x2c000>;
1988 reg-names = "ipa-base", "gsi-base";
1989 interrupts =
1990 <0 311 0>,
1991 <0 432 0>;
1992 interrupt-names = "ipa-irq", "gsi-irq";
1993 qcom,ipa-hw-ver = <13>; /* IPA core version = IPAv3.5.1 */
1994 qcom,ipa-hw-mode = <1>;
1995 qcom,ee = <0>;
1996 qcom,use-ipa-tethering-bridge;
1997 qcom,modem-cfg-emb-pipe-flt;
1998 qcom,ipa-wdi2;
1999 qcom,use-64-bit-dma-mask;
2000 qcom,arm-smmu;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302001 qcom,bandwidth-vote-for-ipa;
2002 qcom,msm-bus,name = "ipa";
Mohammed Javid963acd02018-01-17 12:59:40 +05302003 qcom,msm-bus,num-cases = <5>;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302004 qcom,msm-bus,num-paths = <4>;
2005 qcom,msm-bus,vectors-KBps =
2006 /* No vote */
2007 <90 512 0 0>,
2008 <90 585 0 0>,
2009 <1 676 0 0>,
2010 <143 777 0 0>,
Mohammed Javid963acd02018-01-17 12:59:40 +05302011 /* SVS2 */
2012 <90 512 80000 600000>,
2013 <90 585 80000 350000>,
2014 <1 676 40000 40000>, /*gcc_config_noc_clk_src */
2015 <143 777 0 75>, /* IB defined for IPA2X_clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05302016 /* SVS */
2017 <90 512 80000 640000>,
2018 <90 585 80000 640000>,
2019 <1 676 80000 80000>,
Mohammed Javid963acd02018-01-17 12:59:40 +05302020 <143 777 0 150>, /* IB defined for IPA2X_clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05302021 /* NOMINAL */
2022 <90 512 206000 960000>,
2023 <90 585 206000 960000>,
2024 <1 676 206000 160000>,
Mohammed Javid963acd02018-01-17 12:59:40 +05302025 <143 777 0 300>, /* IB defined for IPA2X_clk in MHz*/
Mohammed Javid736c25c2017-06-19 13:23:18 +05302026 /* TURBO */
2027 <90 512 206000 3600000>,
2028 <90 585 206000 3600000>,
2029 <1 676 206000 300000>,
Mohammed Javid6c065482017-09-19 19:19:27 +05302030 <143 777 0 355>; /* IB defined for IPA clk in MHz*/
Mohammed Javid963acd02018-01-17 12:59:40 +05302031 qcom,bus-vector-names =
2032 "MIN", "SVS2", "SVS", "NOMINAL", "TURBO";
Mohammed Javid736c25c2017-06-19 13:23:18 +05302033
2034 /* IPA RAM mmap */
2035 qcom,ipa-ram-mmap = <
2036 0x280 /* ofst_start; */
2037 0x0 /* nat_ofst; */
2038 0x0 /* nat_size; */
2039 0x288 /* v4_flt_hash_ofst; */
2040 0x78 /* v4_flt_hash_size; */
2041 0x4000 /* v4_flt_hash_size_ddr; */
2042 0x308 /* v4_flt_nhash_ofst; */
2043 0x78 /* v4_flt_nhash_size; */
2044 0x4000 /* v4_flt_nhash_size_ddr; */
2045 0x388 /* v6_flt_hash_ofst; */
2046 0x78 /* v6_flt_hash_size; */
2047 0x4000 /* v6_flt_hash_size_ddr; */
2048 0x408 /* v6_flt_nhash_ofst; */
2049 0x78 /* v6_flt_nhash_size; */
2050 0x4000 /* v6_flt_nhash_size_ddr; */
2051 0xf /* v4_rt_num_index; */
2052 0x0 /* v4_modem_rt_index_lo; */
2053 0x7 /* v4_modem_rt_index_hi; */
2054 0x8 /* v4_apps_rt_index_lo; */
2055 0xe /* v4_apps_rt_index_hi; */
2056 0x488 /* v4_rt_hash_ofst; */
2057 0x78 /* v4_rt_hash_size; */
2058 0x4000 /* v4_rt_hash_size_ddr; */
2059 0x508 /* v4_rt_nhash_ofst; */
2060 0x78 /* v4_rt_nhash_size; */
2061 0x4000 /* v4_rt_nhash_size_ddr; */
2062 0xf /* v6_rt_num_index; */
2063 0x0 /* v6_modem_rt_index_lo; */
2064 0x7 /* v6_modem_rt_index_hi; */
2065 0x8 /* v6_apps_rt_index_lo; */
2066 0xe /* v6_apps_rt_index_hi; */
2067 0x588 /* v6_rt_hash_ofst; */
2068 0x78 /* v6_rt_hash_size; */
2069 0x4000 /* v6_rt_hash_size_ddr; */
2070 0x608 /* v6_rt_nhash_ofst; */
2071 0x78 /* v6_rt_nhash_size; */
2072 0x4000 /* v6_rt_nhash_size_ddr; */
2073 0x688 /* modem_hdr_ofst; */
2074 0x140 /* modem_hdr_size; */
2075 0x7c8 /* apps_hdr_ofst; */
2076 0x0 /* apps_hdr_size; */
2077 0x800 /* apps_hdr_size_ddr; */
2078 0x7d0 /* modem_hdr_proc_ctx_ofst; */
2079 0x200 /* modem_hdr_proc_ctx_size; */
2080 0x9d0 /* apps_hdr_proc_ctx_ofst; */
2081 0x200 /* apps_hdr_proc_ctx_size; */
2082 0x0 /* apps_hdr_proc_ctx_size_ddr; */
2083 0x0 /* modem_comp_decomp_ofst; diff */
2084 0x0 /* modem_comp_decomp_size; diff */
2085 0xbd8 /* modem_ofst; */
2086 0x1024 /* modem_size; */
2087 0x2000 /* apps_v4_flt_hash_ofst; */
2088 0x0 /* apps_v4_flt_hash_size; */
2089 0x2000 /* apps_v4_flt_nhash_ofst; */
2090 0x0 /* apps_v4_flt_nhash_size; */
2091 0x2000 /* apps_v6_flt_hash_ofst; */
2092 0x0 /* apps_v6_flt_hash_size; */
2093 0x2000 /* apps_v6_flt_nhash_ofst; */
2094 0x0 /* apps_v6_flt_nhash_size; */
2095 0x80 /* uc_info_ofst; */
2096 0x200 /* uc_info_size; */
2097 0x2000 /* end_ofst; */
2098 0x2000 /* apps_v4_rt_hash_ofst; */
2099 0x0 /* apps_v4_rt_hash_size; */
2100 0x2000 /* apps_v4_rt_nhash_ofst; */
2101 0x0 /* apps_v4_rt_nhash_size; */
2102 0x2000 /* apps_v6_rt_hash_ofst; */
2103 0x0 /* apps_v6_rt_hash_size; */
2104 0x2000 /* apps_v6_rt_nhash_ofst; */
2105 0x0 /* apps_v6_rt_nhash_size; */
2106 0x1c00 /* uc_event_ring_ofst; */
2107 0x400 /* uc_event_ring_size; */
2108 >;
2109
2110 /* smp2p gpio information */
2111 qcom,smp2pgpio_map_ipa_1_out {
2112 compatible = "qcom,smp2pgpio-map-ipa-1-out";
2113 gpios = <&smp2pgpio_ipa_1_out 0 0>;
2114 };
2115
2116 qcom,smp2pgpio_map_ipa_1_in {
2117 compatible = "qcom,smp2pgpio-map-ipa-1-in";
2118 gpios = <&smp2pgpio_ipa_1_in 0 0>;
2119 };
2120
2121 ipa_smmu_ap: ipa_smmu_ap {
2122 compatible = "qcom,ipa-smmu-ap-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302123 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302124 iommus = <&apps_smmu 0x720 0x0>;
2125 qcom,iova-mapping = <0x20000000 0x40000000>;
2126 };
2127
2128 ipa_smmu_wlan: ipa_smmu_wlan {
2129 compatible = "qcom,ipa-smmu-wlan-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302130 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302131 iommus = <&apps_smmu 0x721 0x0>;
2132 };
2133
2134 ipa_smmu_uc: ipa_smmu_uc {
2135 compatible = "qcom,ipa-smmu-uc-cb";
Mohammed Javidcc505a62017-10-25 11:36:02 +05302136 qcom,smmu-s1-bypass;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302137 iommus = <&apps_smmu 0x722 0x0>;
2138 qcom,iova-mapping = <0x40000000 0x20000000>;
2139 };
2140 };
2141
2142 qcom,ipa_fws {
2143 compatible = "qcom,pil-tz-generic";
2144 qcom,pas-id = <0xf>;
2145 qcom,firmware-name = "ipa_fws";
Mohammed Javide0dd2a32018-01-25 14:18:56 +05302146 memory-region = <&pil_ipa_fw_mem>;
Mohammed Javid736c25c2017-06-19 13:23:18 +05302147 };
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302148
2149 pil_modem: qcom,mss@4080000 {
2150 compatible = "qcom,pil-q6v55-mss";
2151 reg = <0x4080000 0x100>,
2152 <0x1f63000 0x008>,
2153 <0x1f65000 0x008>,
2154 <0x1f64000 0x008>,
2155 <0x4180000 0x020>,
2156 <0xc2b0000 0x004>,
2157 <0xb2e0100 0x004>,
2158 <0x4180044 0x004>;
2159 reg-names = "qdsp6_base", "halt_q6", "halt_modem",
2160 "halt_nc", "rmb_base", "restart_reg",
2161 "pdc_sync", "alt_reset";
2162
2163 clocks = <&clock_rpmh RPMH_CXO_CLK>,
2164 <&clock_gcc GCC_MSS_CFG_AHB_CLK>,
2165 <&clock_gcc GCC_MSS_Q6_MEMNOC_AXI_CLK>,
2166 <&clock_gcc GCC_BOOT_ROM_AHB_CLK>,
2167 <&clock_gcc GCC_MSS_GPLL0_DIV_CLK_SRC>,
2168 <&clock_gcc GCC_MSS_SNOC_AXI_CLK>,
2169 <&clock_gcc GCC_MSS_MFAB_AXIS_CLK>,
2170 <&clock_gcc GCC_PRNG_AHB_CLK>;
2171 clock-names = "xo", "iface_clk", "bus_clk",
2172 "mem_clk", "gpll0_mss_clk", "snoc_axi_clk",
2173 "mnoc_axi_clk", "prng_clk";
2174 qcom,proxy-clock-names = "xo", "prng_clk";
2175 qcom,active-clock-names = "iface_clk", "bus_clk", "mem_clk",
2176 "gpll0_mss_clk", "snoc_axi_clk",
2177 "mnoc_axi_clk";
2178
2179 interrupts = <0 266 1>;
2180 vdd_cx-supply = <&pm660l_s3_level>;
2181 vdd_cx-voltage = <RPMH_REGULATOR_LEVEL_TURBO>;
2182 vdd_mx-supply = <&pm660l_s1_level>;
2183 vdd_mx-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Jitendra Sharma2e981ef2017-10-30 12:16:23 +05302184 vdd_mss-supply = <&pm660_s5_level>;
2185 vdd_mss-uV = <RPMH_REGULATOR_LEVEL_TURBO>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302186 qcom,firmware-name = "modem";
2187 qcom,pil-self-auth;
2188 qcom,sysmon-id = <0>;
Avaneesh Kumar Dwivedi8d336612017-11-09 16:48:25 +05302189 qcom,minidump-id = <3>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302190 qcom,ssctl-instance-id = <0x12>;
2191 qcom,override-acc;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302192 qcom,signal-aop;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302193 qcom,qdsp6v65-1-0;
Jitendra Sharma93dd7fc2017-10-14 17:38:55 +05302194 qcom,mss_pdc_offset = <9>;
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302195 status = "ok";
2196 memory-region = <&pil_modem_mem>;
2197 qcom,mem-protect-id = <0xF>;
2198
2199 /* GPIO inputs from mss */
2200 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_1_in 0 0>;
2201 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_1_in 1 0>;
2202 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_1_in 2 0>;
2203 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_1_in 3 0>;
2204 qcom,gpio-shutdown-ack = <&smp2pgpio_ssr_smp2p_1_in 7 0>;
2205
2206 /* GPIO output to mss */
2207 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_1_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302208
2209 mboxes = <&qmp_aop 0>;
2210 mbox-names = "mss-pil";
Gaurav Kohli04a55af2017-07-19 17:25:30 +05302211 qcom,mba-mem@0 {
2212 compatible = "qcom,pil-mba-mem";
2213 memory-region = <&pil_mba_mem>;
2214 };
2215 };
Gaurav Kohli985a99d2017-07-25 18:46:45 +05302216
2217 qcom,venus@aae0000 {
2218 compatible = "qcom,pil-tz-generic";
2219 reg = <0xaae0000 0x4000>;
2220
2221 vdd-supply = <&venus_gdsc>;
2222 qcom,proxy-reg-names = "vdd";
2223
2224 clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>,
2225 <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>,
2226 <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>;
2227 clock-names = "core_clk", "iface_clk", "bus_clk";
2228 qcom,proxy-clock-names = "core_clk", "iface_clk", "bus_clk";
2229
2230 qcom,pas-id = <9>;
2231 qcom,msm-bus,name = "pil-venus";
2232 qcom,msm-bus,num-cases = <2>;
2233 qcom,msm-bus,num-paths = <1>;
2234 qcom,msm-bus,vectors-KBps =
2235 <63 512 0 0>,
2236 <63 512 0 304000>;
2237 qcom,proxy-timeout-ms = <100>;
2238 qcom,firmware-name = "venus";
2239 memory-region = <&pil_video_mem>;
2240 status = "ok";
2241 };
Gaurav Kohli106f4882017-06-29 12:29:12 +05302242
2243 qcom,turing@8300000 {
2244 compatible = "qcom,pil-tz-generic";
2245 reg = <0x8300000 0x100000>;
2246 interrupts = <0 578 1>;
2247
2248 vdd_cx-supply = <&pm660l_s3_level>;
2249 qcom,proxy-reg-names = "vdd_cx";
2250 qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>;
2251
2252 clocks = <&clock_rpmh RPMH_CXO_CLK>;
2253 clock-names = "xo";
2254 qcom,proxy-clock-names = "xo";
2255
2256 qcom,pas-id = <18>;
2257 qcom,proxy-timeout-ms = <10000>;
2258 qcom,smem-id = <601>;
2259 qcom,sysmon-id = <7>;
2260 qcom,ssctl-instance-id = <0x17>;
2261 qcom,firmware-name = "cdsp";
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302262 qcom,signal-aop;
Gaurav Kohli106f4882017-06-29 12:29:12 +05302263 memory-region = <&pil_cdsp_mem>;
2264
2265 /* GPIO inputs from turing */
2266 qcom,gpio-err-fatal = <&smp2pgpio_ssr_smp2p_5_in 0 0>;
2267 qcom,gpio-proxy-unvote = <&smp2pgpio_ssr_smp2p_5_in 2 0>;
2268 qcom,gpio-err-ready = <&smp2pgpio_ssr_smp2p_5_in 1 0>;
2269 qcom,gpio-stop-ack = <&smp2pgpio_ssr_smp2p_5_in 3 0>;
2270
2271 /* GPIO output to turing*/
2272 qcom,gpio-force-stop = <&smp2pgpio_ssr_smp2p_5_out 0 0>;
Gaurav Kohlif11f7cc2017-10-03 14:37:48 +05302273
2274 mboxes = <&qmp_aop 0>;
2275 mbox-names = "cdsp-pil";
Gaurav Kohli106f4882017-06-29 12:29:12 +05302276 status = "ok";
2277 };
Vijay Viswanatheac72722017-06-05 11:01:38 +05302278
Neeraj Soni27efd652017-11-01 18:17:58 +05302279 sdcc1_ice: sdcc1ice@7c8000 {
2280 compatible = "qcom,ice";
2281 reg = <0x7c8000 0x8000>;
2282 qcom,enable-ice-clk;
2283 clock-names = "ice_core_clk_src", "ice_core_clk",
2284 "bus_clk", "iface_clk";
2285 clocks = <&clock_gcc GCC_SDCC1_ICE_CORE_CLK_SRC>,
2286 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
2287 <&clock_gcc GCC_SDCC1_APPS_CLK>,
2288 <&clock_gcc GCC_SDCC1_AHB_CLK>;
2289 qcom,op-freq-hz = <300000000>, <0>, <0>, <0>;
2290 qcom,msm-bus,name = "sdcc_ice_noc";
2291 qcom,msm-bus,num-cases = <2>;
2292 qcom,msm-bus,num-paths = <1>;
2293 qcom,msm-bus,vectors-KBps =
2294 <150 512 0 0>, /* No vote */
2295 <150 512 1000 0>; /* Max. bandwidth */
2296 qcom,bus-vector-names = "MIN",
2297 "MAX";
2298 qcom,instance-type = "sdcc";
2299 };
2300
Vijay Viswanatheac72722017-06-05 11:01:38 +05302301 sdhc_1: sdhci@7c4000 {
2302 compatible = "qcom,sdhci-msm-v5";
2303 reg = <0x7C4000 0x1000>, <0x7C5000 0x1000>;
2304 reg-names = "hc_mem", "cmdq_mem";
2305
2306 interrupts = <0 641 0>, <0 644 0>;
2307 interrupt-names = "hc_irq", "pwr_irq";
2308
2309 qcom,bus-width = <8>;
2310 qcom,large-address-bus;
Neeraj Soni27efd652017-11-01 18:17:58 +05302311 sdhc-msm-crypto = <&sdcc1_ice>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302312
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302313 qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
2314 192000000 384000000>;
Vijay Viswanath01db23a2017-11-09 15:46:22 +05302315 qcom,bus-aggr-clk-rates = <50000000 50000000 50000000 50000000
2316 100000000 200000000 200000000>;
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302317 qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
2318
2319 qcom,devfreq,freq-table = <50000000 200000000>;
2320
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302321 qcom,msm-bus,name = "sdhc1";
2322 qcom,msm-bus,num-cases = <9>;
2323 qcom,msm-bus,num-paths = <2>;
2324 qcom,msm-bus,vectors-KBps =
2325 /* No vote */
Vijay Viswanath49024c22017-10-17 12:42:06 +05302326 <150 512 0 0>, <1 782 0 0>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302327 /* 400 KB/s*/
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302328 <150 512 1046 1600>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302329 <1 782 1600 1600>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302330 /* 20 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302331 <150 512 52286 80000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302332 <1 782 80000 80000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302333 /* 25 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302334 <150 512 65360 100000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302335 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302336 /* 50 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302337 <150 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302338 <1 782 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302339 /* 100 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302340 <150 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302341 <1 782 130000 130000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302342 /* 200 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302343 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302344 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302345 /* 400 MB/s */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302346 <150 512 261438 400000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302347 <1 782 300000 300000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302348 /* Max. bandwidth */
Vijay Viswanath413e5f42017-10-09 10:50:46 +05302349 <150 512 1338562 4096000>,
Vijay Viswanath49024c22017-10-17 12:42:06 +05302350 <1 782 1338562 4096000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302351 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2352 100000000 200000000 400000000 4294967295>;
2353
2354 /* PM QoS */
2355 qcom,pm-qos-irq-type = "affine_irq";
2356 qcom,pm-qos-irq-latency = <70 70>;
2357 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2358 qcom,pm-qos-cmdq-latency-us = <70 70>, <70 70>;
2359 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2360
Vijay Viswanatheac72722017-06-05 11:01:38 +05302361 clocks = <&clock_gcc GCC_SDCC1_AHB_CLK>,
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302362 <&clock_gcc GCC_SDCC1_APPS_CLK>,
Vijay Viswanath7e20ddc2017-10-07 14:23:38 +05302363 <&clock_gcc GCC_SDCC1_ICE_CORE_CLK>,
2364 <&clock_gcc GCC_AGGRE_UFS_PHY_AXI_CLK>;
2365 clock-names = "iface_clk", "core_clk", "ice_core_clk",
2366 "bus_aggr_clk";
Vijay Viswanathcebae3a2017-10-05 14:33:17 +05302367
2368 qcom,ice-clk-rates = <300000000 75000000>;
Vijay Viswanatheac72722017-06-05 11:01:38 +05302369
Vijay Viswanathd4dcf5f2017-10-17 15:42:00 +05302370 qcom,ddr-config = <0xC3040873>;
2371
Vijay Viswanatheac72722017-06-05 11:01:38 +05302372 qcom,nonremovable;
Asutosh Das3d37f972018-01-12 15:48:25 +05302373 nvmem-cells = <&minor_rev>;
2374 nvmem-cell-names = "minor_rev";
Vijay Viswanatheac72722017-06-05 11:01:38 +05302375
Vijay Viswanatheac72722017-06-05 11:01:38 +05302376 status = "disabled";
2377 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302378
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302379 sdhc_2: sdhci@8804000 {
2380 compatible = "qcom,sdhci-msm-v5";
2381 reg = <0x8804000 0x1000>;
2382 reg-names = "hc_mem";
2383
2384 interrupts = <0 204 0>, <0 222 0>;
2385 interrupt-names = "hc_irq", "pwr_irq";
2386
2387 qcom,bus-width = <4>;
2388 qcom,large-address-bus;
2389
Vijay Viswanath6f83cbf2017-08-30 16:41:48 +05302390 qcom,clk-rates = <400000 20000000 25000000
2391 50000000 100000000 201500000>;
2392 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50",
2393 "SDR104";
2394
2395 qcom,devfreq,freq-table = <50000000 201500000>;
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302396
2397 qcom,msm-bus,name = "sdhc2";
2398 qcom,msm-bus,num-cases = <8>;
2399 qcom,msm-bus,num-paths = <2>;
2400 qcom,msm-bus,vectors-KBps =
2401 /* No vote */
2402 <81 512 0 0>, <1 608 0 0>,
2403 /* 400 KB/s*/
2404 <81 512 1046 1600>,
2405 <1 608 1600 1600>,
2406 /* 20 MB/s */
2407 <81 512 52286 80000>,
2408 <1 608 80000 80000>,
2409 /* 25 MB/s */
2410 <81 512 65360 100000>,
2411 <1 608 100000 100000>,
2412 /* 50 MB/s */
2413 <81 512 130718 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302414 <1 608 100000 100000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302415 /* 100 MB/s */
2416 <81 512 261438 200000>,
Vijay Viswanath655407f2017-11-09 12:37:34 +05302417 <1 608 130000 130000>,
Vijay Viswanath6ef06c12017-09-20 16:06:18 +05302418 /* 200 MB/s */
2419 <81 512 261438 400000>,
2420 <1 608 300000 300000>,
2421 /* Max. bandwidth */
2422 <81 512 1338562 4096000>,
2423 <1 608 1338562 4096000>;
2424 qcom,bus-bw-vectors-bps = <0 400000 20000000 25000000 50000000
2425 100000000 200000000 4294967295>;
2426
2427 /* PM QoS */
2428 qcom,pm-qos-irq-type = "affine_irq";
2429 qcom,pm-qos-irq-latency = <70 70>;
2430 qcom,pm-qos-cpu-groups = <0x3f 0xc0>;
2431 qcom,pm-qos-legacy-latency-us = <70 70>, <70 70>;
2432
Vijay Viswanathee4340d2017-08-28 09:50:18 +05302433 clocks = <&clock_gcc GCC_SDCC2_AHB_CLK>,
2434 <&clock_gcc GCC_SDCC2_APPS_CLK>;
2435 clock-names = "iface_clk", "core_clk";
2436
2437 status = "disabled";
2438 };
2439
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302440 qcom,msm-cdsp-loader {
2441 compatible = "qcom,cdsp-loader";
2442 qcom,proc-img-to-load = "cdsp";
2443 };
2444
2445 qcom,msm-adsprpc-mem {
2446 compatible = "qcom,msm-adsprpc-mem-region";
2447 memory-region = <&adsp_mem>;
Tharun Kumar Merugu8bb71292018-01-17 15:55:05 +05302448 restrict-access;
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302449 };
2450
2451 qcom,msm_fastrpc {
2452 compatible = "qcom,msm-fastrpc-compute";
Tharun Kumar Merugubbebad12017-12-21 16:33:03 +05302453 qcom,adsp-remoteheap-vmid = <22 37>;
Tharun Kumar Merugu1cb19c62018-01-18 12:20:16 +05302454 qcom,fastrpc-adsp-audio-pdr;
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302455
2456 qcom,msm_fastrpc_compute_cb1 {
2457 compatible = "qcom,msm-fastrpc-compute-cb";
2458 label = "cdsprpc-smd";
2459 iommus = <&apps_smmu 0x1421 0x30>;
2460 dma-coherent;
2461 };
2462 qcom,msm_fastrpc_compute_cb2 {
2463 compatible = "qcom,msm-fastrpc-compute-cb";
2464 label = "cdsprpc-smd";
2465 iommus = <&apps_smmu 0x1422 0x30>;
2466 dma-coherent;
2467 };
2468 qcom,msm_fastrpc_compute_cb3 {
2469 compatible = "qcom,msm-fastrpc-compute-cb";
2470 label = "cdsprpc-smd";
2471 iommus = <&apps_smmu 0x1423 0x30>;
2472 dma-coherent;
2473 };
2474 qcom,msm_fastrpc_compute_cb4 {
2475 compatible = "qcom,msm-fastrpc-compute-cb";
2476 label = "cdsprpc-smd";
2477 iommus = <&apps_smmu 0x1424 0x30>;
2478 dma-coherent;
2479 };
2480 qcom,msm_fastrpc_compute_cb5 {
2481 compatible = "qcom,msm-fastrpc-compute-cb";
2482 label = "cdsprpc-smd";
2483 iommus = <&apps_smmu 0x1425 0x30>;
2484 dma-coherent;
2485 };
2486 qcom,msm_fastrpc_compute_cb6 {
2487 compatible = "qcom,msm-fastrpc-compute-cb";
2488 label = "cdsprpc-smd";
2489 iommus = <&apps_smmu 0x1426 0x30>;
2490 dma-coherent;
2491 };
2492 qcom,msm_fastrpc_compute_cb7 {
2493 compatible = "qcom,msm-fastrpc-compute-cb";
2494 label = "cdsprpc-smd";
2495 qcom,secure-context-bank;
2496 iommus = <&apps_smmu 0x1429 0x30>;
2497 dma-coherent;
2498 };
2499 qcom,msm_fastrpc_compute_cb8 {
2500 compatible = "qcom,msm-fastrpc-compute-cb";
2501 label = "cdsprpc-smd";
2502 qcom,secure-context-bank;
2503 iommus = <&apps_smmu 0x142A 0x30>;
2504 dma-coherent;
2505 };
2506 qcom,msm_fastrpc_compute_cb9 {
2507 compatible = "qcom,msm-fastrpc-compute-cb";
2508 label = "adsprpc-smd";
2509 iommus = <&apps_smmu 0x1803 0x0>;
2510 dma-coherent;
2511 };
2512 qcom,msm_fastrpc_compute_cb10 {
2513 compatible = "qcom,msm-fastrpc-compute-cb";
2514 label = "adsprpc-smd";
2515 iommus = <&apps_smmu 0x1804 0x0>;
2516 dma-coherent;
2517 };
2518 qcom,msm_fastrpc_compute_cb11 {
2519 compatible = "qcom,msm-fastrpc-compute-cb";
2520 label = "adsprpc-smd";
2521 iommus = <&apps_smmu 0x1805 0x0>;
2522 dma-coherent;
2523 };
c_mtharu92125922017-10-16 14:06:39 +05302524 qcom,msm_fastrpc_compute_cb12 {
2525 compatible = "qcom,msm-fastrpc-compute-cb";
2526 label = "adsprpc-smd";
2527 iommus = <&apps_smmu 0x1806 0x0>;
2528 dma-coherent;
2529 };
Tharun Kumar Merugu03380d82017-08-08 13:04:36 +05302530 };
Anurag Chouhan7563b532017-09-12 15:49:16 +05302531
Rupesh Tatiyaf2072952017-10-08 19:57:12 +05302532 bluetooth: bt_wcn3990 {
2533 compatible = "qca,wcn3990";
2534 qca,bt-vdd-core-supply = <&pm660_l9>;
2535 qca,bt-vdd-pa-supply = <&pm660_l6>;
2536 qca,bt-vdd-ldo-supply = <&pm660_l19>;
2537
2538 qca,bt-vdd-core-voltage-level = <1800000 1900000>;
2539 qca,bt-vdd-pa-voltage-level = <1304000 1370000>;
2540 qca,bt-vdd-ldo-voltage-level = <3312000 3400000>;
2541
2542 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
2543 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
2544 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
2545 };
2546
Anurag Chouhan7563b532017-09-12 15:49:16 +05302547 qcom,icnss@18800000 {
Anurag Chouhan7563b532017-09-12 15:49:16 +05302548 compatible = "qcom,icnss";
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302549 reg = <0x18800000 0x800000>,
2550 <0xa0000000 0x10000000>,
2551 <0xb0000000 0x10000>;
2552 reg-names = "membase", "smmu_iova_base", "smmu_iova_ipa";
2553 iommus = <&apps_smmu 0x0040 0x1>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302554 interrupts = <0 414 0 /* CE0 */ >,
2555 <0 415 0 /* CE1 */ >,
2556 <0 416 0 /* CE2 */ >,
2557 <0 417 0 /* CE3 */ >,
2558 <0 418 0 /* CE4 */ >,
2559 <0 419 0 /* CE5 */ >,
2560 <0 420 0 /* CE6 */ >,
2561 <0 421 0 /* CE7 */ >,
2562 <0 422 0 /* CE8 */ >,
2563 <0 423 0 /* CE9 */ >,
2564 <0 424 0 /* CE10 */ >,
2565 <0 425 0 /* CE11 */ >;
Anurag Chouhand22b18a2017-10-08 15:16:08 +05302566 vdd-0.8-cx-mx-supply = <&pm660_l5>;
2567 vdd-1.8-xo-supply = <&pm660_l9>;
2568 vdd-1.3-rfa-supply = <&pm660_l6>;
2569 vdd-3.3-ch0-supply = <&pm660_l19>;
Hardik Kantilal Patel25c05b42017-12-08 11:10:27 +05302570 qcom,vdd-3.3-ch0-config = <3000000 3312000>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302571 qcom,wlan-msa-memory = <0x100000>;
Anurag Chouhana4f55db2017-11-22 16:35:27 +05302572 qcom,wlan-msa-fixed-region = <&wlan_msa_mem>;
Anurag Chouhan7563b532017-09-12 15:49:16 +05302573 qcom,smmu-s1-bypass;
2574 };
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302575
2576 cpubw: qcom,cpubw {
2577 compatible = "qcom,devbw";
2578 governor = "performance";
2579 qcom,src-dst-ports =
Santosh Mardidfc78812017-10-05 13:15:20 +05302580 <MSM_BUS_MASTER_AMPSS_M0 MSM_BUS_SLAVE_EBI_CH0>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302581 qcom,active-only;
2582 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302583 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2584 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2585 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2586 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2587 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2588 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2589 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2590 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2591 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2592 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2593 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302594 };
2595
Santosh Mardidfc78812017-10-05 13:15:20 +05302596 bwmon: qcom,cpu-bwmon {
2597 compatible = "qcom,bimc-bwmon4";
2598 reg = <0x1436400 0x300>, <0x1436300 0x200>;
2599 reg-names = "base", "global_base";
2600 interrupts = <0 581 4>;
2601 qcom,mport = <0>;
Santosh Mardida0b0f82017-10-13 23:30:22 +05302602 qcom,count-unit = <0x10000>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302603 qcom,hw-timer-hz = <19200000>;
Santosh Mardidfc78812017-10-05 13:15:20 +05302604 qcom,target-dev = <&cpubw>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302605 };
2606
2607 memlat_cpu0: qcom,memlat-cpu0 {
2608 compatible = "qcom,devbw";
2609 governor = "powersave";
2610 qcom,src-dst-ports = <1 512>;
2611 qcom,active-only;
2612 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302613 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2614 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2615 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2616 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2617 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2618 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2619 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2620 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2621 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2622 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2623 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302624 };
2625
Santosh Mardi37a28af2017-10-12 13:03:31 +05302626 memlat_cpu6: qcom,memlat-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302627 compatible = "qcom,devbw";
2628 governor = "powersave";
2629 qcom,src-dst-ports = <1 512>;
2630 qcom,active-only;
2631 status = "ok";
2632 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302633 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2634 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2635 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2636 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2637 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2638 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2639 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2640 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2641 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2642 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2643 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302644 };
2645
Odelu Kukatlafe8d3302017-11-17 10:54:32 +05302646 snoc_cnoc_keepalive: qcom,snoc_cnoc_keepalive {
2647 compatible = "qcom,devbw";
2648 governor = "powersave";
2649 qcom,src-dst-ports = <139 627>;
2650 qcom,active-only;
2651 status = "ok";
2652 qcom,bw-tbl =
2653 < 1 >;
2654 };
2655
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302656 devfreq_memlat_0: qcom,cpu0-memlat-mon {
2657 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302658 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302659 qcom,target-dev = <&memlat_cpu0>;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302660 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302661 qcom,core-dev-table =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302662 < 748800 MHZ_TO_MBPS( 300, 4) >,
2663 < 998400 MHZ_TO_MBPS( 451, 4) >,
2664 < 1209600 MHZ_TO_MBPS( 547, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302665 < 1516800 MHZ_TO_MBPS( 768, 4) >,
2666 < 1708000 MHZ_TO_MBPS(1017, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302667 };
2668
Santosh Mardi37a28af2017-10-12 13:03:31 +05302669 devfreq_memlat_6: qcom,cpu6-memlat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302670 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302671 qcom,cpulist = <&CPU6 &CPU7>;
2672 qcom,target-dev = <&memlat_cpu6>;
2673 qcom,cachemiss-ev = <0x2a>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302674 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302675 < 825600 MHZ_TO_MBPS( 300, 4) >,
2676 < 1132800 MHZ_TO_MBPS( 547, 4) >,
2677 < 1363200 MHZ_TO_MBPS(1017, 4) >,
2678 < 1996800 MHZ_TO_MBPS(1555, 4) >,
2679 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302680 };
2681
2682 l3_cpu0: qcom,l3-cpu0 {
2683 compatible = "devfreq-simple-dev";
2684 clock-names = "devfreq_clk";
2685 clocks = <&clock_cpucc L3_CLUSTER0_VOTE_CLK>;
2686 governor = "performance";
2687 };
2688
Santosh Mardi37a28af2017-10-12 13:03:31 +05302689 l3_cpu6: qcom,l3-cpu6 {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302690 compatible = "devfreq-simple-dev";
2691 clock-names = "devfreq_clk";
2692 clocks = <&clock_cpucc L3_CLUSTER1_VOTE_CLK>;
2693 governor = "performance";
2694 };
2695
2696 devfreq_l3lat_0: qcom,cpu0-l3lat-mon {
2697 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302698 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302699 qcom,target-dev = <&l3_cpu0>;
2700 qcom,cachemiss-ev = <0x17>;
2701 qcom,core-dev-table =
Santosh Mardi10d45032017-11-02 17:25:54 +05302702 < 576000 300000000 >,
Santosh Mardi831cc872018-01-11 14:52:32 +05302703 < 998400 556800000 >,
2704 < 1209660 844800000 >,
2705 < 1516800 940800000 >,
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302706 < 1612800 1382400000 >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302707 < 1708000 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302708 };
2709
Santosh Mardi37a28af2017-10-12 13:03:31 +05302710 devfreq_l3lat_6: qcom,cpu6-l3lat-mon {
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302711 compatible = "qcom,arm-memlat-mon";
Santosh Mardi37a28af2017-10-12 13:03:31 +05302712 qcom,cpulist = <&CPU6 &CPU7>;
2713 qcom,target-dev = <&l3_cpu6>;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302714 qcom,cachemiss-ev = <0x17>;
2715 qcom,core-dev-table =
Santosh Mardie49578c2017-10-27 11:24:45 +05302716 < 1132800 556800000 >,
2717 < 1363200 806400000 >,
2718 < 1747200 940800000 >,
2719 < 1996800 1190400000 >,
2720 < 2457600 1440000000 >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302721 };
2722
2723 mincpubw: qcom,mincpubw {
2724 compatible = "qcom,devbw";
2725 governor = "powersave";
2726 qcom,src-dst-ports = <1 512>;
2727 qcom,active-only;
2728 qcom,bw-tbl =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302729 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2730 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2731 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2732 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2733 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2734 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2735 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2736 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2737 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2738 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2739 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302740 };
2741
2742 devfreq-cpufreq {
2743 mincpubw-cpufreq {
2744 target-dev = <&mincpubw>;
2745 cpu-to-dev-map-0 =
Santosh Mardi9d208ff2017-09-25 11:16:17 +05302746 < 748800 MHZ_TO_MBPS( 300, 4) >,
Santosh Mardie49578c2017-10-27 11:24:45 +05302747 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2748 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2749 < 1708000 MHZ_TO_MBPS( 768, 4) >;
Santosh Mardi37a28af2017-10-12 13:03:31 +05302750 cpu-to-dev-map-6 =
Santosh Mardie49578c2017-10-27 11:24:45 +05302751 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2752 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2753 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2754 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2755 < 2457600 MHZ_TO_MBPS(1804, 4) >;
Santosh Mardi077e7eb2017-09-11 18:53:47 +05302756 };
2757 };
Amit Nischal199f15d2017-09-12 10:58:51 +05302758
Jonathan Avilac7a6fd52017-10-12 15:24:05 -07002759 mincpu0bw: qcom,mincpu0bw {
2760 compatible = "qcom,devbw";
2761 governor = "powersave";
2762 qcom,src-dst-ports = <1 512>;
2763 qcom,active-only;
2764 qcom,bw-tbl =
2765 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2766 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2767 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2768 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2769 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2770 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2771 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2772 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2773 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2774 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2775 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
2776 };
2777
2778 mincpu6bw: qcom,mincpu6bw {
2779 compatible = "qcom,devbw";
2780 governor = "powersave";
2781 qcom,src-dst-ports = <1 512>;
2782 qcom,active-only;
2783 qcom,bw-tbl =
2784 < MHZ_TO_MBPS( 100, 4) >, /* 381 MB/s */
2785 < MHZ_TO_MBPS( 200, 4) >, /* 762 MB/s */
2786 < MHZ_TO_MBPS( 300, 4) >, /* 1144 MB/s */
2787 < MHZ_TO_MBPS( 451, 4) >, /* 1720 MB/s */
2788 < MHZ_TO_MBPS( 547, 4) >, /* 2086 MB/s */
2789 < MHZ_TO_MBPS( 681, 4) >, /* 2597 MB/s */
2790 < MHZ_TO_MBPS( 768, 4) >, /* 2929 MB/s */
2791 < MHZ_TO_MBPS(1017, 4) >, /* 3879 MB/s */
2792 < MHZ_TO_MBPS(1353, 4) >, /* 5161 MB/s */
2793 < MHZ_TO_MBPS(1555, 4) >, /* 5931 MB/s */
2794 < MHZ_TO_MBPS(1804, 4) >; /* 6881 MB/s */
2795 };
2796
2797 devfreq_compute0: qcom,devfreq-compute0 {
2798 compatible = "qcom,arm-cpu-mon";
2799 qcom,cpulist = <&CPU0 &CPU1 &CPU2 &CPU3 &CPU4 &CPU5>;
2800 qcom,target-dev = <&mincpu0bw>;
2801 qcom,core-dev-table =
2802 < 748800 MHZ_TO_MBPS( 300, 4) >,
2803 < 1209660 MHZ_TO_MBPS( 451, 4) >,
2804 < 1612800 MHZ_TO_MBPS( 547, 4) >,
2805 < 1708000 MHZ_TO_MBPS( 768, 4) >;
2806 };
2807
2808 devfreq_compute6: qcom,devfreq-compute6 {
2809 compatible = "qcom,arm-cpu-mon";
2810 qcom,cpulist = <&CPU6 &CPU7>;
2811 qcom,target-dev = <&mincpu6bw>;
2812 qcom,core-dev-table =
2813 < 1132800 MHZ_TO_MBPS( 300, 4) >,
2814 < 1363200 MHZ_TO_MBPS( 547, 4) >,
2815 < 1747200 MHZ_TO_MBPS( 768, 4) >,
2816 < 1996800 MHZ_TO_MBPS(1017, 4) >,
2817 < 2457600 MHZ_TO_MBPS(1804, 4) >;
2818 };
2819
Santosh Mardi7790a432018-01-09 23:01:56 +05302820 l3_cdsp: qcom,l3-cdsp {
2821 compatible = "devfreq-simple-dev";
2822 clock-names = "devfreq_clk";
2823 clocks = <&clock_cpucc L3_MISC_VOTE_CLK>;
2824 governor = "powersave";
2825 };
2826
Raghavendra Rao Ananta28dd4502017-10-18 10:28:31 -07002827 cpu_pmu: cpu-pmu {
2828 compatible = "arm,armv8-pmuv3";
2829 qcom,irq-is-percpu;
2830 interrupts = <1 5 4>;
2831 };
2832
Amit Nischal199f15d2017-09-12 10:58:51 +05302833 gpu_gx_domain_addr: syscon@0x5091508 {
2834 compatible = "syscon";
2835 reg = <0x5091508 0x4>;
2836 };
2837
2838 gpu_gx_sw_reset: syscon@0x5091008 {
2839 compatible = "syscon";
2840 reg = <0x5091008 0x4>;
2841 };
Prakash Gupta325dff62018-01-09 15:38:09 +05302842
2843 qfprom: qfprom@0x780000 {
2844 compatible = "qcom,qfprom";
2845 reg = <0x00780000 0x1000>;
2846 #address-cells = <1>;
2847 #size-cells = <1>;
2848 ranges;
2849
2850 minor_rev: minor_rev@0x78014c {
2851 reg = <0x14c 0x4>;
2852 bits = <0x1c 0x2>;
2853 };
2854 };
2855
Imran Khan04f08312017-03-30 15:07:43 +05302856};
2857
Ashay Jaiswal81940302017-09-20 15:17:58 +05302858#include "pm660.dtsi"
2859#include "pm660l.dtsi"
2860#include "sdm670-regulator.dtsi"
Imran Khan04f08312017-03-30 15:07:43 +05302861#include "sdm670-pinctrl.dtsi"
Vijayanand Jittad48c4082017-06-07 15:07:51 +05302862#include "msm-arm-smmu-sdm670.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302863#include "msm-gdsc-sdm845.dtsi"
Maulik Shahd313ea82017-06-14 13:10:52 +05302864#include "sdm670-pm.dtsi"
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302865
2866&usb30_prim_gdsc {
2867 status = "ok";
2868};
2869
2870&ufs_phy_gdsc {
2871 status = "ok";
2872};
2873
2874&hlos1_vote_aggre_noc_mmu_audio_tbu_gdsc {
2875 status = "ok";
2876};
2877
2878&hlos1_vote_aggre_noc_mmu_tbu1_gdsc {
2879 status = "ok";
2880};
2881
2882&hlos1_vote_aggre_noc_mmu_tbu2_gdsc {
2883 status = "ok";
2884};
2885
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302886&hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc {
2887 status = "ok";
2888};
2889
2890&hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc {
2891 status = "ok";
2892};
2893
2894&hlos1_vote_mmnoc_mmu_tbu_sf_gdsc {
2895 status = "ok";
2896};
2897
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302898&bps_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302899 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302900 status = "ok";
2901};
2902
2903&ife_0_gdsc {
2904 status = "ok";
2905};
2906
2907&ife_1_gdsc {
2908 status = "ok";
2909};
2910
2911&ipe_0_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302912 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302913 status = "ok";
2914};
2915
2916&ipe_1_gdsc {
Odelu Kukatla4328a432017-12-06 18:16:59 +05302917 qcom,support-hw-trigger;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302918 status = "ok";
2919};
2920
2921&titan_top_gdsc {
2922 status = "ok";
2923};
2924
2925&mdss_core_gdsc {
2926 status = "ok";
Sandeep Pandaae888352017-11-15 13:15:31 +05302927 proxy-supply = <&mdss_core_gdsc>;
2928 qcom,proxy-consumer-enable;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302929};
2930
2931&gpu_cx_gdsc {
2932 status = "ok";
2933};
2934
2935&gpu_gx_gdsc {
2936 clock-names = "core_root_clk";
2937 clocks = <&clock_gfx GPU_CC_GX_GFX3D_CLK_SRC>;
2938 qcom,force-enable-root-clk;
Odelu Kukatla1186d2e2017-08-04 17:28:46 +05302939 parent-supply = <&pm660l_s2_level>;
Amit Nischal199f15d2017-09-12 10:58:51 +05302940 domain-addr = <&gpu_gx_domain_addr>;
2941 sw-reset = <&gpu_gx_sw_reset>;
2942 qcom,reset-aon-logic;
Odelu Kukatla1fe3a222017-06-01 16:24:59 +05302943 status = "ok";
2944};
2945
2946&vcodec0_gdsc {
2947 qcom,support-hw-trigger;
2948 status = "ok";
2949};
2950
2951&vcodec1_gdsc {
2952 qcom,support-hw-trigger;
2953 status = "ok";
2954};
2955
2956&venus_gdsc {
2957 status = "ok";
2958};
Tirupathi Reddy0cfe2082017-06-08 14:24:13 +05302959
Sandeep Panda229db242017-10-03 11:32:29 +05302960&mdss_dsi0 {
2961 qcom,core-supply-entries {
2962 #address-cells = <1>;
2963 #size-cells = <0>;
2964
2965 qcom,core-supply-entry@0 {
2966 reg = <0>;
2967 qcom,supply-name = "refgen";
2968 qcom,supply-min-voltage = <0>;
2969 qcom,supply-max-voltage = <0>;
2970 qcom,supply-enable-load = <0>;
2971 qcom,supply-disable-load = <0>;
2972 };
2973 };
2974};
2975
2976&mdss_dsi1 {
2977 qcom,core-supply-entries {
2978 #address-cells = <1>;
2979 #size-cells = <0>;
2980
2981 qcom,core-supply-entry@0 {
2982 reg = <0>;
2983 qcom,supply-name = "refgen";
2984 qcom,supply-min-voltage = <0>;
2985 qcom,supply-max-voltage = <0>;
2986 qcom,supply-enable-load = <0>;
2987 qcom,supply-disable-load = <0>;
2988 };
2989 };
2990};
2991
Padmanabhan Komanduru07137332017-10-20 12:53:23 +05302992&sde_dp {
2993 qcom,core-supply-entries {
2994 #address-cells = <1>;
2995 #size-cells = <0>;
2996
2997 qcom,core-supply-entry@0 {
2998 reg = <0>;
2999 qcom,supply-name = "refgen";
3000 qcom,supply-min-voltage = <0>;
3001 qcom,supply-max-voltage = <0>;
3002 qcom,supply-enable-load = <0>;
3003 qcom,supply-disable-load = <0>;
3004 };
3005 };
3006};
3007
Rohit Kumar14051282017-07-12 11:18:48 +05303008#include "sdm670-audio.dtsi"
Pratham Pratap9e420a32017-09-05 11:26:57 +05303009#include "sdm670-usb.dtsi"
Rajesh Kemisettiba56c482017-08-31 18:12:35 +05303010#include "sdm670-gpu.dtsi"
Suresh Vankadara402d0ca2017-10-26 22:54:54 +05303011#include "sdm670-camera.dtsi"
Manaf Meethalavalappu Pallikunhi52c7ba12017-09-07 01:41:43 +05303012#include "sdm670-thermal.dtsi"
Odelu Kukatlaf197e382017-07-04 19:47:35 +05303013#include "sdm670-bus.dtsi"
Tirupathi Reddyf805ac72017-10-12 14:22:17 +05303014
3015&pm660_div_clk {
3016 status = "ok";
3017};
Tirupathi Reddy53b92a62017-10-26 13:57:42 +05303018
3019&qupv3_se10_i2c {
3020 nx30p6093: nx30p6093@36 {
3021 status = "disabled";
3022 compatible = "nxp,nx30p6093";
3023 reg = <0x36>;
3024 interrupt-parent = <&tlmm>;
3025 interrupts = <5 IRQ_TYPE_NONE>;
3026 nxp,long-wakeup-sec = <28800>; /* 8 hours */
3027 nxp,short-wakeup-ms = <180000>; /* 3 mins */
3028 pinctrl-names = "default";
3029 pinctrl-0 = <&nx30p6093_intr_default>;
3030 };
3031};