blob: 138b750f8e018d184f3cf91082e0f9edb21fa748 [file] [log] [blame]
Channagoud Kadabi459f0112017-03-20 12:42:15 -07001/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#include "sdm845.dtsi"
Soundrapandian Jeyaprakash3cc03bb2017-08-09 15:16:41 -070014#include "sdm845-v2-camera.dtsi"
Channagoud Kadabi459f0112017-03-20 12:42:15 -070015
16/ {
17 model = "Qualcomm Technologies, Inc. SDM845 V2";
18 qcom,msm-id = <321 0x20000>;
19};
David Collins36050182017-04-26 11:41:22 -070020
Subhash Jadavani0842b272017-07-19 17:05:13 -070021&sdhc_2 {
Subhash Jadavani3497a962017-07-31 13:57:47 -070022 /delete-property/ qcom,sdr104-wa;
Subhash Jadavani0842b272017-07-19 17:05:13 -070023};
24
David Collinsf5764762017-07-20 16:42:42 -070025/delete-node/ &apc0_cpr;
26/delete-node/ &apc1_cpr;
27
28&soc {
29 /* CPR controller regulators */
30 apc0_cpr: cprh-ctrl@17dc0000 {
31 compatible = "qcom,cprh-sdm845-v2-kbss-regulator";
32 reg = <0x17dc0000 0x4000>,
33 <0x00784000 0x1000>,
34 <0x17840000 0x1000>;
35 reg-names = "cpr_ctrl", "fuse_base", "saw";
36 clocks = <&clock_gcc GCC_CPUSS_RBCPR_CLK>;
37 clock-names = "core_clk";
38 qcom,cpr-ctrl-name = "apc0";
39 qcom,cpr-controller-id = <0>;
40
41 qcom,cpr-sensor-time = <1000>;
42 qcom,cpr-loop-time = <5000000>;
43 qcom,cpr-idle-cycles = <15>;
44 qcom,cpr-up-down-delay-time = <3000>;
45 qcom,cpr-step-quot-init-min = <11>;
46 qcom,cpr-step-quot-init-max = <12>;
47 qcom,cpr-count-mode = <0>; /* All at once */
48 qcom,cpr-count-repeat = <20>;
49 qcom,cpr-down-error-step-limit = <1>;
50 qcom,cpr-up-error-step-limit = <1>;
51 qcom,cpr-corner-switch-delay-time = <1042>;
52 qcom,cpr-voltage-settling-time = <1760>;
53 qcom,cpr-reset-step-quot-loop-en;
54
55 qcom,voltage-step = <4000>;
56 qcom,voltage-base = <352000>;
57 qcom,cpr-saw-use-unit-mV;
58
59 qcom,saw-avs-ctrl = <0x101C031>;
David Collinsd6f48992017-09-12 15:52:19 -070060 qcom,saw-avs-limit = <0x3E803E8>;
David Collinsf5764762017-07-20 16:42:42 -070061
62 qcom,cpr-enable;
63 qcom,cpr-hw-closed-loop;
64
65 qcom,cpr-panic-reg-addr-list =
66 <0x17dc3a84 0x17dc3a88 0x17840c18>;
67 qcom,cpr-panic-reg-name-list =
68 "APSS_SILVER_CPRH_STATUS_0",
69 "APSS_SILVER_CPRH_STATUS_1",
70 "SILVER_SAW4_PMIC_STS";
71
David Collinsfc666ff2017-08-31 10:46:18 -070072 qcom,cpr-aging-ref-voltage = <1000000>;
David Collinsf5764762017-07-20 16:42:42 -070073 vdd-supply = <&pm8998_s13>;
74
75 thread@0 {
76 qcom,cpr-thread-id = <0>;
77 qcom,cpr-consecutive-up = <0>;
78 qcom,cpr-consecutive-down = <0>;
79 qcom,cpr-up-threshold = <2>;
80 qcom,cpr-down-threshold = <2>;
81
82 apc0_pwrcl_vreg: regulator {
83 regulator-name = "apc0_pwrcl_corner";
84 regulator-min-microvolt = <1>;
85 regulator-max-microvolt = <18>;
86
87 qcom,cpr-fuse-corners = <4>;
David Collinsd6f48992017-09-12 15:52:19 -070088 qcom,cpr-fuse-combos = <24>;
89 qcom,cpr-speed-bins = <3>;
90 qcom,cpr-speed-bin-corners = <18 18 18>;
David Collinsf5764762017-07-20 16:42:42 -070091 qcom,cpr-corners = <18>;
92
93 qcom,cpr-corner-fmax-map = <6 12 15 18>;
94
95 qcom,cpr-voltage-ceiling =
96 <828000 828000 828000 828000 828000
97 828000 828000 828000 828000 828000
98 828000 828000 828000 828000 828000
David Collins4d7ab0e2017-08-22 14:23:47 -070099 932000 1000000 1000000>;
David Collinsf5764762017-07-20 16:42:42 -0700100
101 qcom,cpr-voltage-floor =
102 <568000 568000 568000 568000 568000
103 568000 568000 568000 568000 568000
104 568000 568000 568000 568000 568000
105 568000 568000 568000>;
106
107 qcom,cpr-floor-to-ceiling-max-range =
108 <32000 32000 32000 32000 32000
109 32000 32000 32000 32000 32000
110 32000 32000 32000 32000 32000
111 32000 40000 40000>;
112
113 qcom,corner-frequencies =
114 <300000000 403200000 480000000
115 576000000 652800000 748800000
116 825600000 902400000 979200000
117 1056000000 1132800000 1228800000
118 1324800000 1420800000 1516800000
119 1612800000 1689600000 1766400000>;
120
121 qcom,cpr-ro-scaling-factor =
122 <2594 2795 2576 2761 2469 2673 2198
123 2553 3188 3255 3191 2962 3055 2984
124 2043 2947>,
125 <2594 2795 2576 2761 2469 2673 2198
126 2553 3188 3255 3191 2962 3055 2984
127 2043 2947>,
128 <2259 2389 2387 2531 2294 2464 2218
129 2476 2525 2855 2817 2836 2740 2490
130 1950 2632>,
131 <2259 2389 2387 2531 2294 2464 2218
132 2476 2525 2855 2817 2836 2740 2490
133 1950 2632>;
134
135 qcom,cpr-open-loop-voltage-fuse-adjustment =
David Collins85d44cb2017-09-11 17:45:16 -0700136 /* Speed bin 0 */
137 < 0 0 12000 12000>,
138 <(-15000) (-15000) (-3000) (-3000)>,
139 <(-15000) (-15000) (-3000) (-3000)>,
140 <(-15000) (-15000) (-3000) (-3000)>,
141 <(-15000) (-15000) (-3000) (-3000)>,
142 <(-15000) (-15000) (-3000) (-3000)>,
143 <(-15000) (-15000) (-3000) (-3000)>,
144 <(-15000) (-15000) (-3000) (-3000)>,
145 /* Speed bin 1 */
146 < 0 0 12000 12000>,
147 <(-15000) (-15000) (-3000) (-3000)>,
148 <(-15000) (-15000) (-3000) (-3000)>,
149 <(-15000) (-15000) (-3000) (-3000)>,
150 <(-15000) (-15000) (-3000) (-3000)>,
151 <(-15000) (-15000) (-3000) (-3000)>,
152 <(-15000) (-15000) (-3000) (-3000)>,
David Collinsd6f48992017-09-12 15:52:19 -0700153 <(-15000) (-15000) (-3000) (-3000)>,
154 /* Speed bin 2 */
155 < 0 0 12000 12000>,
156 <(-15000) (-15000) (-3000) (-3000)>,
157 <(-15000) (-15000) (-3000) (-3000)>,
158 <(-15000) (-15000) (-3000) (-3000)>,
159 <(-15000) (-15000) (-3000) (-3000)>,
160 <(-15000) (-15000) (-3000) (-3000)>,
161 <(-15000) (-15000) (-3000) (-3000)>,
David Collins85d44cb2017-09-11 17:45:16 -0700162 <(-15000) (-15000) (-3000) (-3000)>;
David Collinsf5764762017-07-20 16:42:42 -0700163
164 qcom,cpr-closed-loop-voltage-fuse-adjustment =
David Collins85d44cb2017-09-11 17:45:16 -0700165 /* Speed bin 0 */
166 < 0 0 12000 10000>,
167 <(-15000) (-15000) (-3000) (-5000)>,
168 <(-15000) (-15000) (-3000) (-5000)>,
169 <(-15000) (-15000) (-3000) (-5000)>,
170 <(-15000) (-15000) (-3000) (-5000)>,
171 <(-15000) (-15000) (-3000) (-5000)>,
172 <(-15000) (-15000) (-3000) (-5000)>,
173 <(-15000) (-15000) (-3000) (-5000)>,
174 /* Speed bin 1 */
175 < 0 0 12000 10000>,
176 <(-15000) (-15000) (-3000) (-5000)>,
177 <(-15000) (-15000) (-3000) (-5000)>,
178 <(-15000) (-15000) (-3000) (-5000)>,
179 <(-15000) (-15000) (-3000) (-5000)>,
180 <(-15000) (-15000) (-3000) (-5000)>,
181 <(-15000) (-15000) (-3000) (-5000)>,
David Collinsd6f48992017-09-12 15:52:19 -0700182 <(-15000) (-15000) (-3000) (-5000)>,
183 /* Speed bin 2 */
184 < 0 0 12000 10000>,
185 <(-15000) (-15000) (-3000) (-5000)>,
186 <(-15000) (-15000) (-3000) (-5000)>,
187 <(-15000) (-15000) (-3000) (-5000)>,
188 <(-15000) (-15000) (-3000) (-5000)>,
189 <(-15000) (-15000) (-3000) (-5000)>,
190 <(-15000) (-15000) (-3000) (-5000)>,
David Collins85d44cb2017-09-11 17:45:16 -0700191 <(-15000) (-15000) (-3000) (-5000)>;
David Collinsf5764762017-07-20 16:42:42 -0700192
193 qcom,allow-voltage-interpolation;
194 qcom,allow-quotient-interpolation;
195 qcom,cpr-scaled-open-loop-voltage-as-ceiling;
196
197 qcom,cpr-aging-max-voltage-adjustment = <15000>;
198 qcom,cpr-aging-ref-corner = <18>;
199 qcom,cpr-aging-ro-scaling-factor = <1620>;
200 qcom,allow-aging-voltage-adjustment =
201 /* Speed bin 0 */
202 <0 1 1 1 1 1 1 1>,
203 /* Speed bin 1 */
David Collinsd6f48992017-09-12 15:52:19 -0700204 <0 1 1 1 1 1 1 1>,
205 /* Speed bin 2 */
David Collinsf5764762017-07-20 16:42:42 -0700206 <0 1 1 1 1 1 1 1>;
207 qcom,allow-aging-open-loop-voltage-adjustment =
208 <1>;
209 };
210 };
211
212 thread@1 {
213 qcom,cpr-thread-id = <1>;
214 qcom,cpr-consecutive-up = <0>;
215 qcom,cpr-consecutive-down = <0>;
216 qcom,cpr-up-threshold = <2>;
217 qcom,cpr-down-threshold = <2>;
218
219 apc0_l3_vreg: regulator {
220 regulator-name = "apc0_l3_corner";
221 regulator-min-microvolt = <1>;
David Collinsb7d8a0a2017-08-10 17:54:03 -0700222 regulator-max-microvolt = <15>;
David Collinsf5764762017-07-20 16:42:42 -0700223
224 qcom,cpr-fuse-corners = <4>;
David Collinsd6f48992017-09-12 15:52:19 -0700225 qcom,cpr-fuse-combos = <24>;
226 qcom,cpr-speed-bins = <3>;
227 qcom,cpr-speed-bin-corners = <14 15 15>;
David Collinsb7d8a0a2017-08-10 17:54:03 -0700228 qcom,cpr-corners =
229 /* Speed bin 0 */
230 <14 14 14 14 14 14 14 14>,
231 /* Speed bin 1 */
David Collinsd6f48992017-09-12 15:52:19 -0700232 <15 15 15 15 15 15 15 15>,
233 /* Speed bin 2 */
David Collinsb7d8a0a2017-08-10 17:54:03 -0700234 <15 15 15 15 15 15 15 15>;
David Collinsf5764762017-07-20 16:42:42 -0700235
David Collinsb7d8a0a2017-08-10 17:54:03 -0700236 qcom,cpr-corner-fmax-map =
237 /* Speed bin 0 */
238 <4 8 11 14>,
239 /* Speed bin 1 */
David Collinsd6f48992017-09-12 15:52:19 -0700240 <4 8 11 15>,
241 /* Speed bin 2 */
David Collinsb7d8a0a2017-08-10 17:54:03 -0700242 <4 8 11 15>;
David Collinsf5764762017-07-20 16:42:42 -0700243
244 qcom,cpr-voltage-ceiling =
David Collinsb7d8a0a2017-08-10 17:54:03 -0700245 /* Speed bin 0 */
David Collinsf5764762017-07-20 16:42:42 -0700246 <828000 828000 828000 828000 828000
247 828000 828000 828000 828000 828000
David Collins4d7ab0e2017-08-22 14:23:47 -0700248 828000 932000 932000 1000000>,
David Collinsb7d8a0a2017-08-10 17:54:03 -0700249 /* Speed bin 1 */
250 <828000 828000 828000 828000 828000
251 828000 828000 828000 828000 828000
David Collins4d7ab0e2017-08-22 14:23:47 -0700252 828000 932000 932000 1000000
David Collinsd6f48992017-09-12 15:52:19 -0700253 1000000>,
254 /* Speed bin 2 */
255 <828000 828000 828000 828000 828000
256 828000 828000 828000 828000 828000
257 828000 932000 932000 1000000
David Collinsb7d8a0a2017-08-10 17:54:03 -0700258 1000000>;
David Collinsf5764762017-07-20 16:42:42 -0700259
260 qcom,cpr-voltage-floor =
David Collinsb7d8a0a2017-08-10 17:54:03 -0700261 /* Speed bin 0 */
David Collinsf5764762017-07-20 16:42:42 -0700262 <568000 568000 568000 568000 568000
263 568000 568000 568000 568000 568000
David Collinsb7d8a0a2017-08-10 17:54:03 -0700264 568000 568000 568000 568000>,
265 /* Speed bin 1 */
266 <568000 568000 568000 568000 568000
267 568000 568000 568000 568000 568000
268 568000 568000 568000 568000
David Collinsd6f48992017-09-12 15:52:19 -0700269 568000>,
270 /* Speed bin 2 */
271 <568000 568000 568000 568000 568000
272 568000 568000 568000 568000 568000
273 568000 568000 568000 568000
David Collinsb7d8a0a2017-08-10 17:54:03 -0700274 568000>;
David Collinsf5764762017-07-20 16:42:42 -0700275
276 qcom,cpr-floor-to-ceiling-max-range =
David Collinsb7d8a0a2017-08-10 17:54:03 -0700277 /* Speed bin 0 */
David Collinsf5764762017-07-20 16:42:42 -0700278 <32000 32000 32000 32000 32000
279 32000 32000 32000 32000 32000
David Collinsb7d8a0a2017-08-10 17:54:03 -0700280 32000 32000 32000 40000>,
281 /* Speed bin 1 */
282 <32000 32000 32000 32000 32000
283 32000 32000 32000 32000 32000
David Collinsd6f48992017-09-12 15:52:19 -0700284 32000 32000 32000 40000 40000>,
285 /* Speed bin 2 */
286 <32000 32000 32000 32000 32000
287 32000 32000 32000 32000 32000
David Collinsb7d8a0a2017-08-10 17:54:03 -0700288 32000 32000 32000 40000 40000>;
David Collinsf5764762017-07-20 16:42:42 -0700289
290 qcom,corner-frequencies =
David Collinsb7d8a0a2017-08-10 17:54:03 -0700291 /* Speed bin 0 */
David Collinsf5764762017-07-20 16:42:42 -0700292 <300000000 403200000 480000000
293 576000000 652800000 748800000
294 844800000 940800000 1036800000
295 1132800000 1209600000 1305600000
David Collinsb7d8a0a2017-08-10 17:54:03 -0700296 1401600000 1478400000>,
297 /* Speed bin 1 */
298 <300000000 403200000 480000000
299 576000000 652800000 748800000
300 844800000 940800000 1036800000
301 1132800000 1209600000 1305600000
David Collinsd6f48992017-09-12 15:52:19 -0700302 1401600000 1497600000 1593600000>,
303 /* Speed bin 2 */
304 <300000000 403200000 480000000
305 576000000 652800000 748800000
306 844800000 940800000 1036800000
307 1132800000 1209600000 1305600000
David Collinsb7d8a0a2017-08-10 17:54:03 -0700308 1401600000 1497600000 1593600000>;
David Collinsf5764762017-07-20 16:42:42 -0700309
310 qcom,cpr-ro-scaling-factor =
311 <2857 3056 2828 2952 2699 2796 2447
312 2631 2630 2579 2244 3343 3287 3137
313 3164 2656>,
314 <2857 3056 2828 2952 2699 2796 2447
315 2631 2630 2579 2244 3343 3287 3137
316 3164 2656>,
317 <2439 2577 2552 2667 2461 2577 2394
318 2536 2132 2307 2191 2903 2838 2912
319 2501 2095>,
320 <2439 2577 2552 2667 2461 2577 2394
321 2536 2132 2307 2191 2903 2838 2912
322 2501 2095>;
323
324 qcom,cpr-open-loop-voltage-fuse-adjustment =
David Collins85d44cb2017-09-11 17:45:16 -0700325 /* Speed bin 0 */
326 < 8000 16000 16000 12000>,
327 < (-7000) 1000 1000 (-3000)>,
328 < (-7000) 1000 1000 (-3000)>,
329 < (-7000) 1000 1000 (-3000)>,
330 < (-7000) 1000 1000 (-3000)>,
331 < (-7000) 1000 1000 (-3000)>,
332 < (-7000) 1000 1000 (-3000)>,
333 < (-7000) 1000 1000 (-3000)>,
334 /* Speed bin 1 */
335 < 8000 16000 16000 12000>,
336 < (-7000) 1000 1000 (-3000)>,
337 < (-7000) 1000 1000 (-3000)>,
338 < (-7000) 1000 1000 (-3000)>,
339 < (-7000) 1000 1000 (-3000)>,
340 < (-7000) 1000 1000 (-3000)>,
341 < (-7000) 1000 1000 (-3000)>,
David Collinsd6f48992017-09-12 15:52:19 -0700342 < (-7000) 1000 1000 (-3000)>,
343 /* Speed bin 2 */
344 < 8000 16000 16000 12000>,
345 < (-7000) 1000 1000 (-3000)>,
346 < (-7000) 1000 1000 (-3000)>,
347 < (-7000) 1000 1000 (-3000)>,
348 < (-7000) 1000 1000 (-3000)>,
349 < (-7000) 1000 1000 (-3000)>,
350 < (-7000) 1000 1000 (-3000)>,
David Collins85d44cb2017-09-11 17:45:16 -0700351 < (-7000) 1000 1000 (-3000)>;
David Collinsf5764762017-07-20 16:42:42 -0700352
353 qcom,cpr-closed-loop-voltage-fuse-adjustment =
David Collins85d44cb2017-09-11 17:45:16 -0700354 /* Speed bin 0 */
355 < 6000 14000 16000 12000>,
356 < (-9000) (-1000) 1000 (-3000)>,
357 < (-9000) (-1000) 1000 (-3000)>,
358 < (-9000) (-1000) 1000 (-3000)>,
359 < (-9000) (-1000) 1000 (-3000)>,
360 < (-9000) (-1000) 1000 (-3000)>,
361 < (-9000) (-1000) 1000 (-3000)>,
362 < (-9000) (-1000) 1000 (-3000)>,
363 /* Speed bin 1 */
364 < 6000 14000 16000 12000>,
365 < (-9000) (-1000) 1000 (-3000)>,
366 < (-9000) (-1000) 1000 (-3000)>,
367 < (-9000) (-1000) 1000 (-3000)>,
368 < (-9000) (-1000) 1000 (-3000)>,
369 < (-9000) (-1000) 1000 (-3000)>,
370 < (-9000) (-1000) 1000 (-3000)>,
David Collinsd6f48992017-09-12 15:52:19 -0700371 < (-9000) (-1000) 1000 (-3000)>,
372 /* Speed bin 2 */
373 < 6000 14000 16000 12000>,
374 < (-9000) (-1000) 1000 (-3000)>,
375 < (-9000) (-1000) 1000 (-3000)>,
376 < (-9000) (-1000) 1000 (-3000)>,
377 < (-9000) (-1000) 1000 (-3000)>,
378 < (-9000) (-1000) 1000 (-3000)>,
379 < (-9000) (-1000) 1000 (-3000)>,
David Collins85d44cb2017-09-11 17:45:16 -0700380 < (-9000) (-1000) 1000 (-3000)>;
David Collinsf5764762017-07-20 16:42:42 -0700381
382 qcom,allow-voltage-interpolation;
383 qcom,allow-quotient-interpolation;
384 qcom,cpr-scaled-open-loop-voltage-as-ceiling;
385
386 qcom,cpr-aging-max-voltage-adjustment = <15000>;
David Collinsd6f48992017-09-12 15:52:19 -0700387 qcom,cpr-aging-ref-corner = <14 15 15>;
David Collinsf5764762017-07-20 16:42:42 -0700388 qcom,cpr-aging-ro-scaling-factor = <1620>;
389 qcom,allow-aging-voltage-adjustment =
390 /* Speed bin 0 */
391 <0 1 1 1 1 1 1 1>,
392 /* Speed bin 1 */
David Collinsd6f48992017-09-12 15:52:19 -0700393 <0 1 1 1 1 1 1 1>,
394 /* Speed bin 2 */
David Collinsf5764762017-07-20 16:42:42 -0700395 <0 1 1 1 1 1 1 1>;
396 qcom,allow-aging-open-loop-voltage-adjustment =
397 <1>;
398 };
399 };
400 };
401
402 apc1_cpr: cprh-ctrl@17db0000 {
403 compatible = "qcom,cprh-sdm845-v2-kbss-regulator";
404 reg = <0x17db0000 0x4000>,
405 <0x00784000 0x1000>,
406 <0x17830000 0x1000>;
407 reg-names = "cpr_ctrl", "fuse_base", "saw";
408 clocks = <&clock_gcc GCC_CPUSS_RBCPR_CLK>;
409 clock-names = "core_clk";
410 qcom,cpr-ctrl-name = "apc1";
411 qcom,cpr-controller-id = <1>;
412
413 qcom,cpr-sensor-time = <1000>;
414 qcom,cpr-loop-time = <5000000>;
415 qcom,cpr-idle-cycles = <15>;
416 qcom,cpr-up-down-delay-time = <3000>;
417 qcom,cpr-step-quot-init-min = <9>;
418 qcom,cpr-step-quot-init-max = <14>;
419 qcom,cpr-count-mode = <0>; /* All at once */
420 qcom,cpr-count-repeat = <20>;
421 qcom,cpr-down-error-step-limit = <1>;
422 qcom,cpr-up-error-step-limit = <1>;
423 qcom,cpr-corner-switch-delay-time = <1042>;
424 qcom,cpr-voltage-settling-time = <1760>;
425 qcom,cpr-reset-step-quot-loop-en;
426
427 qcom,apm-threshold-voltage = <800000>;
428 qcom,apm-crossover-voltage = <880000>;
429 qcom,mem-acc-threshold-voltage = <852000>;
430 qcom,mem-acc-crossover-voltage = <852000>;
431
432 qcom,voltage-step = <4000>;
433 qcom,voltage-base = <352000>;
434 qcom,cpr-saw-use-unit-mV;
435
436 qcom,saw-avs-ctrl = <0x101C031>;
David Collinsd6f48992017-09-12 15:52:19 -0700437 qcom,saw-avs-limit = <0x4880488>;
David Collinsf5764762017-07-20 16:42:42 -0700438
439 qcom,cpr-enable;
440 qcom,cpr-hw-closed-loop;
441
442 qcom,cpr-panic-reg-addr-list =
443 <0x17db3a84 0x17830c18>;
444 qcom,cpr-panic-reg-name-list =
445 "APSS_GOLD_CPRH_STATUS_0", "GOLD_SAW4_PMIC_STS";
446
David Collinsd6f48992017-09-12 15:52:19 -0700447 qcom,cpr-aging-ref-voltage = <1160000>;
David Collinsf5764762017-07-20 16:42:42 -0700448 vdd-supply = <&pm8998_s12>;
449
450 thread@0 {
451 qcom,cpr-thread-id = <0>;
452 qcom,cpr-consecutive-up = <0>;
453 qcom,cpr-consecutive-down = <0>;
454 qcom,cpr-up-threshold = <2>;
455 qcom,cpr-down-threshold = <2>;
456
457 apc1_perfcl_vreg: regulator {
458 regulator-name = "apc1_perfcl_corner";
459 regulator-min-microvolt = <1>;
David Collinsd6f48992017-09-12 15:52:19 -0700460 regulator-max-microvolt = <35>;
David Collinsf5764762017-07-20 16:42:42 -0700461
462 qcom,cpr-fuse-corners = <5>;
David Collinsd6f48992017-09-12 15:52:19 -0700463 qcom,cpr-fuse-combos = <24>;
464 qcom,cpr-speed-bins = <3>;
465 qcom,cpr-speed-bin-corners = <28 31 33>;
David Collinsf5764762017-07-20 16:42:42 -0700466 qcom,cpr-corners =
467 /* Speed bin 0 */
468 <28 28 28 28 28 28 28 28>,
469 /* Speed bin 1 */
David Collinsd6f48992017-09-12 15:52:19 -0700470 <31 31 31 31 31 31 31 31>,
471 /* Speed bin 2 */
472 <33 33 33 33 33 33 33 33>;
David Collinsf5764762017-07-20 16:42:42 -0700473
474 qcom,cpr-corner-fmax-map =
475 /* Speed bin 0 */
476 <7 14 22 27 28>,
477 /* Speed bin 1 */
David Collinsd6f48992017-09-12 15:52:19 -0700478 <7 14 22 27 31>,
479 /* Speed bin 2 */
480 <7 14 22 30 33>;
David Collinsf5764762017-07-20 16:42:42 -0700481
482 qcom,cpr-voltage-ceiling =
483 /* Speed bin 0 */
484 <828000 828000 828000 828000 828000
485 828000 828000 828000 828000 828000
486 828000 828000 828000 828000 828000
David Collins4d7ab0e2017-08-22 14:23:47 -0700487 828000 828000 828000 932000 932000
488 932000 932000 1104000 1104000 1104000
David Collinsd6f48992017-09-12 15:52:19 -0700489 1104000 1160000 1160000>,
David Collinsf5764762017-07-20 16:42:42 -0700490 /* Speed bin 1 */
491 <828000 828000 828000 828000 828000
492 828000 828000 828000 828000 828000
493 828000 828000 828000 828000 828000
David Collins4d7ab0e2017-08-22 14:23:47 -0700494 828000 828000 828000 932000 932000
495 932000 932000 1104000 1104000 1104000
David Collinsd6f48992017-09-12 15:52:19 -0700496 1104000 1160000 1160000 1160000 1160000
497 1160000>,
498 /* Speed bin 2 */
499 <828000 828000 828000 828000 828000
500 828000 828000 828000 828000 828000
501 828000 828000 828000 828000 828000
502 828000 828000 828000 932000 932000
503 932000 932000 1104000 1104000 1104000
504 1104000 1160000 1160000 1160000 1160000
505 1160000 1160000 1160000>;
David Collinsf5764762017-07-20 16:42:42 -0700506
507 qcom,cpr-voltage-floor =
508 /* Speed bin 0 */
509 <568000 568000 568000 568000 568000
510 568000 568000 568000 568000 568000
511 568000 568000 568000 568000 568000
512 568000 568000 568000 568000 568000
513 568000 568000 568000 568000 568000
514 568000 568000 568000>,
515 /* Speed bin 1 */
516 <568000 568000 568000 568000 568000
517 568000 568000 568000 568000 568000
518 568000 568000 568000 568000 568000
519 568000 568000 568000 568000 568000
520 568000 568000 568000 568000 568000
521 568000 568000 568000 568000 568000
David Collinsd6f48992017-09-12 15:52:19 -0700522 568000>,
523 /* Speed bin 2 */
524 <568000 568000 568000 568000 568000
525 568000 568000 568000 568000 568000
526 568000 568000 568000 568000 568000
527 568000 568000 568000 568000 568000
528 568000 568000 568000 568000 568000
529 568000 568000 568000 568000 568000
530 568000 568000 568000>;
David Collinsf5764762017-07-20 16:42:42 -0700531
532 qcom,cpr-floor-to-ceiling-max-range =
533 /* Speed bin 0 */
534 <32000 32000 32000 32000 32000
535 32000 32000 32000 32000 32000
536 32000 32000 32000 32000 32000
537 32000 32000 32000 32000 32000
538 32000 32000 32000 32000 32000
539 32000 32000 32000>,
540 /* Speed bin 1 */
541 <32000 32000 32000 32000 32000
542 32000 32000 32000 32000 32000
543 32000 32000 32000 32000 32000
544 32000 32000 32000 32000 32000
545 32000 32000 32000 32000 32000
546 32000 32000 40000 40000 40000
David Collinsd6f48992017-09-12 15:52:19 -0700547 40000>,
548 /* Speed bin 2 */
549 <32000 32000 32000 32000 32000
550 32000 32000 32000 32000 32000
551 32000 32000 32000 32000 32000
552 32000 32000 32000 32000 32000
553 32000 32000 32000 32000 32000
554 32000 32000 40000 40000 40000
555 40000 40000 40000>;
David Collinsf5764762017-07-20 16:42:42 -0700556
557 qcom,corner-frequencies =
558 /* Speed bin 0 */
559 <300000000 403200000 480000000
560 576000000 652800000 748800000
561 825600000 902400000 979200000
562 1056000000 1132800000 1209600000
563 1286400000 1363200000 1459200000
564 1536000000 1612800000 1689600000
565 1766400000 1843200000 1920000000
566 1996800000 2092800000 2169600000
567 2246400000 2323200000 2400000000
568 2400000000>,
569 /* Speed bin 1 */
570 <300000000 403200000 480000000
571 576000000 652800000 748800000
572 825600000 902400000 979200000
573 1056000000 1132800000 1209600000
574 1286400000 1363200000 1459200000
575 1536000000 1612800000 1689600000
576 1766400000 1843200000 1920000000
577 1996800000 2092800000 2169600000
578 2246400000 2323200000 2400000000
David Collinsae2591d2017-08-22 14:15:14 -0700579 2476800000 2553600000 2649600000
David Collinsd6f48992017-09-12 15:52:19 -0700580 2707200000>,
581 /* Speed bin 2 */
582 <300000000 403200000 480000000
583 576000000 652800000 748800000
584 825600000 902400000 979200000
585 1056000000 1132800000 1209600000
586 1286400000 1363200000 1459200000
587 1536000000 1612800000 1689600000
588 1766400000 1843200000 1920000000
589 1996800000 2092800000 2169600000
590 2246400000 2323200000 2400000000
591 2476800000 2553600000 2649600000
592 2707200000 2726400000 2745600000>;
David Collinsf5764762017-07-20 16:42:42 -0700593
594 qcom,cpr-ro-scaling-factor =
595 <2857 3056 2828 2952 2699 2796 2447
596 2631 2630 2579 2244 3343 3287 3137
597 3164 2656>,
598 <2857 3056 2828 2952 2699 2796 2447
599 2631 2630 2579 2244 3343 3287 3137
600 3164 2656>,
601 <2086 2208 2273 2408 2203 2327 2213
602 2340 1755 2039 2049 2474 2437 2618
603 2003 1675>,
604 <2086 2208 2273 2408 2203 2327 2213
605 2340 1755 2039 2049 2474 2437 2618
606 2003 1675>,
607 <2086 2208 2273 2408 2203 2327 2213
608 2340 1755 2039 2049 2474 2437 2618
609 2003 1675>;
610
611 qcom,cpr-open-loop-voltage-fuse-adjustment =
David Collins85d44cb2017-09-11 17:45:16 -0700612 /* Speed bin 0 */
613 < 8000 8000 8000 0 0>,
614 < (-7000) (-7000) (-7000) (-15000) (-15000)>,
615 < (-7000) (-7000) (-7000) (-15000) (-15000)>,
616 < (-7000) (-7000) (-7000) (-15000) (-15000)>,
617 < (-7000) (-7000) (-7000) (-15000) (-15000)>,
618 < (-7000) (-7000) (-7000) (-15000) (-15000)>,
619 < (-7000) (-7000) (-7000) (-15000) (-15000)>,
620 < (-7000) (-7000) (-7000) (-15000) (-15000)>,
621 /* Speed bin 1 */
622 < 8000 8000 8000 0 16000>,
623 < (-7000) (-7000) (-7000) (-15000) 1000>,
624 < (-7000) (-7000) (-7000) (-15000) 1000>,
625 < (-7000) (-7000) (-7000) (-15000) 1000>,
626 < (-7000) (-7000) (-7000) (-15000) 1000>,
627 < (-7000) (-7000) (-7000) (-15000) 1000>,
628 < (-7000) (-7000) (-7000) (-15000) 1000>,
David Collinsd6f48992017-09-12 15:52:19 -0700629 < (-7000) (-7000) (-7000) (-15000) 1000>,
630 /* Speed bin 2 */
631 < 8000 8000 8000 0 16000>,
632 < (-7000) (-7000) (-7000) (-15000) 1000>,
633 < (-7000) (-7000) (-7000) (-15000) 1000>,
634 < (-7000) (-7000) (-7000) (-15000) 1000>,
635 < (-7000) (-7000) (-7000) (-15000) 1000>,
636 < (-7000) (-7000) (-7000) (-15000) 1000>,
637 < (-7000) (-7000) (-7000) (-15000) 1000>,
David Collins85d44cb2017-09-11 17:45:16 -0700638 < (-7000) (-7000) (-7000) (-15000) 1000>;
David Collinsf5764762017-07-20 16:42:42 -0700639
640 qcom,cpr-closed-loop-voltage-fuse-adjustment =
David Collins85d44cb2017-09-11 17:45:16 -0700641 /* Speed bin 0 */
642 < 6000 6000 8000 0 0>,
643 < (-9000) (-9000) (-7000) (-15000) (-15000)>,
644 < (-9000) (-9000) (-7000) (-15000) (-15000)>,
645 < (-9000) (-9000) (-7000) (-15000) (-15000)>,
646 < (-9000) (-9000) (-7000) (-15000) (-15000)>,
647 < (-9000) (-9000) (-7000) (-15000) (-15000)>,
648 < (-9000) (-9000) (-7000) (-15000) (-15000)>,
649 < (-9000) (-9000) (-7000) (-15000) (-15000)>,
650 /* Speed bin 1 */
651 < 6000 6000 8000 0 16000>,
652 < (-9000) (-9000) (-7000) (-15000) 1000>,
653 < (-9000) (-9000) (-7000) (-15000) 1000>,
654 < (-9000) (-9000) (-7000) (-15000) 1000>,
655 < (-9000) (-9000) (-7000) (-15000) 1000>,
656 < (-9000) (-9000) (-7000) (-15000) 1000>,
657 < (-9000) (-9000) (-7000) (-15000) 1000>,
David Collinsd6f48992017-09-12 15:52:19 -0700658 < (-9000) (-9000) (-7000) (-15000) 1000>,
659 /* Speed bin 2 */
660 < 6000 6000 8000 0 16000>,
661 < (-9000) (-9000) (-7000) (-15000) 1000>,
662 < (-9000) (-9000) (-7000) (-15000) 1000>,
663 < (-9000) (-9000) (-7000) (-15000) 1000>,
664 < (-9000) (-9000) (-7000) (-15000) 1000>,
665 < (-9000) (-9000) (-7000) (-15000) 1000>,
666 < (-9000) (-9000) (-7000) (-15000) 1000>,
David Collins85d44cb2017-09-11 17:45:16 -0700667 < (-9000) (-9000) (-7000) (-15000) 1000>;
David Collinsf5764762017-07-20 16:42:42 -0700668
669 qcom,allow-voltage-interpolation;
670 qcom,allow-quotient-interpolation;
671 qcom,cpr-scaled-open-loop-voltage-as-ceiling;
672
673 qcom,cpr-aging-max-voltage-adjustment = <15000>;
David Collinsd6f48992017-09-12 15:52:19 -0700674 qcom,cpr-aging-ref-corner = <27 31 33>;
David Collinsf5764762017-07-20 16:42:42 -0700675 qcom,cpr-aging-ro-scaling-factor = <1700>;
676 qcom,allow-aging-voltage-adjustment =
677 /* Speed bin 0 */
678 <0 1 1 1 1 1 1 1>,
679 /* Speed bin 1 */
David Collinsd6f48992017-09-12 15:52:19 -0700680 <0 1 1 1 1 1 1 1>,
681 /* Speed bin 2 */
David Collinsf5764762017-07-20 16:42:42 -0700682 <0 1 1 1 1 1 1 1>;
683 qcom,allow-aging-open-loop-voltage-adjustment =
684 <1>;
685 };
686 };
687 };
Vicky Wallaceddf4fad2017-08-03 20:15:55 -0700688
689 gpu_gx_domain_addr: syscon@0x5091508 {
690 compatible = "syscon";
691 reg = <0x5091508 0x4>;
692 };
693
694 gpu_gx_sw_reset: syscon@0x5091008 {
695 compatible = "syscon";
696 reg = <0x5091008 0x4>;
697 };
David Collinsf5764762017-07-20 16:42:42 -0700698};
699
Kyle Yanf248e352017-09-14 11:15:58 -0700700&pil_modem {
701 qcom,mss_pdc_offset = <9>;
702};
703
David Collinsfc666ff2017-08-31 10:46:18 -0700704/* VDD_APC0 */
705&pm8998_s13 {
706 regulator-min-microvolt = <568000>;
707 regulator-max-microvolt = <1000000>;
708};
709
710/* VDD_APC1 */
711&pm8998_s12 {
712 regulator-min-microvolt = <568000>;
David Collinsd6f48992017-09-12 15:52:19 -0700713 regulator-max-microvolt = <1160000>;
David Collinsfc666ff2017-08-31 10:46:18 -0700714};
715
David Collinsf5764762017-07-20 16:42:42 -0700716&clock_cpucc {
Deepak Katragaddaa442baa2017-07-11 12:27:06 -0700717 compatible = "qcom,clk-cpu-osm-v2";
718
David Collinsf5764762017-07-20 16:42:42 -0700719 vdd-l3-supply = <&apc0_l3_vreg>;
720 vdd-pwrcl-supply = <&apc0_pwrcl_vreg>;
Deepak Katragaddaa442baa2017-07-11 12:27:06 -0700721 vdd-perfcl-supply = <&apc1_perfcl_vreg>;
722
723 qcom,l3-speedbin0-v0 =
724 < 300000000 0x000c000f 0x00002020 0x1 1 >,
725 < 403200000 0x500c0115 0x00002020 0x1 2 >,
726 < 480000000 0x50140219 0x00002020 0x1 3 >,
727 < 576000000 0x5014031e 0x00002020 0x1 4 >,
728 < 652800000 0x401c0422 0x00002020 0x1 5 >,
729 < 748800000 0x401c0527 0x00002020 0x1 6 >,
730 < 844800000 0x4024062c 0x00002323 0x2 7 >,
731 < 940800000 0x40240731 0x00002727 0x2 8 >,
732 < 1036800000 0x40240836 0x00002b2b 0x2 9 >,
733 < 1132800000 0x402c093b 0x00002f2f 0x2 10 >,
734 < 1209600000 0x402c0a3f 0x00003232 0x2 11 >,
735 < 1305600000 0x40340b44 0x00003636 0x2 12 >,
736 < 1401600000 0x40340c49 0x00003a3a 0x2 13 >,
737 < 1478400000 0x403c0d4d 0x00003e3e 0x2 14 >;
738
Deepak Katragadda288d2b52017-08-11 10:13:59 -0700739 qcom,l3-speedbin1-v0 =
740 < 300000000 0x000c000f 0x00002020 0x1 1 >,
741 < 403200000 0x500c0115 0x00002020 0x1 2 >,
742 < 480000000 0x50140219 0x00002020 0x1 3 >,
743 < 576000000 0x5014031e 0x00002020 0x1 4 >,
744 < 652800000 0x401c0422 0x00002020 0x1 5 >,
745 < 748800000 0x401c0527 0x00002020 0x1 6 >,
746 < 844800000 0x4024062c 0x00002323 0x2 7 >,
747 < 940800000 0x40240731 0x00002727 0x2 8 >,
748 < 1036800000 0x40240836 0x00002b2b 0x2 9 >,
749 < 1132800000 0x402c093b 0x00002f2f 0x2 10 >,
750 < 1209600000 0x402c0a3f 0x00003232 0x2 11 >,
751 < 1305600000 0x40340b44 0x00003636 0x2 12 >,
752 < 1401600000 0x40340c49 0x00003a3a 0x2 13 >,
753 < 1497600000 0x403c0d4e 0x00003e3e 0x2 14 >,
754 < 1593600000 0x403c0e53 0x00004242 0x2 15 >;
755
Deepak Katragadda97c8e6a2017-09-12 12:19:50 -0700756 qcom,l3-speedbin2-v0 =
757 < 300000000 0x000c000f 0x00002020 0x1 1 >,
758 < 403200000 0x500c0115 0x00002020 0x1 2 >,
759 < 480000000 0x50140219 0x00002020 0x1 3 >,
760 < 576000000 0x5014031e 0x00002020 0x1 4 >,
761 < 652800000 0x401c0422 0x00002020 0x1 5 >,
762 < 748800000 0x401c0527 0x00002020 0x1 6 >,
763 < 844800000 0x4024062c 0x00002323 0x2 7 >,
764 < 940800000 0x40240731 0x00002727 0x2 8 >,
765 < 1036800000 0x40240836 0x00002b2b 0x2 9 >,
766 < 1132800000 0x402c093b 0x00002f2f 0x2 10 >,
767 < 1209600000 0x402c0a3f 0x00003232 0x2 11 >,
768 < 1305600000 0x40340b44 0x00003636 0x2 12 >,
769 < 1401600000 0x40340c49 0x00003a3a 0x2 13 >,
770 < 1497600000 0x403c0d4e 0x00003e3e 0x2 14 >,
771 < 1593600000 0x403c0e53 0x00004242 0x2 15 >;
772
Deepak Katragaddaa442baa2017-07-11 12:27:06 -0700773 qcom,pwrcl-speedbin0-v0 =
774 < 300000000 0x000c000f 0x00002020 0x1 1 >,
775 < 403200000 0x500c0115 0x00002020 0x1 2 >,
776 < 480000000 0x50140219 0x00002020 0x1 3 >,
777 < 576000000 0x5014031e 0x00002020 0x1 4 >,
778 < 652800000 0x401c0422 0x00002020 0x1 5 >,
779 < 748800000 0x401c0527 0x00002020 0x1 6 >,
780 < 825600000 0x401c062b 0x00002222 0x1 7 >,
781 < 902400000 0x4024072f 0x00002626 0x1 8 >,
782 < 979200000 0x40240833 0x00002929 0x1 9 >,
783 < 1056000000 0x402c0937 0x00002c2c 0x2 10 >,
784 < 1132800000 0x402c0a3b 0x00002f2f 0x2 11 >,
785 < 1228800000 0x402c0b40 0x00003333 0x2 12 >,
786 < 1324800000 0x40340c45 0x00003737 0x2 13 >,
787 < 1420800000 0x40340d4a 0x00003b3b 0x2 14 >,
788 < 1516800000 0x403c0e4f 0x00003f3f 0x2 15 >,
789 < 1612800000 0x403c0f54 0x00004343 0x2 16 >,
790 < 1689600000 0x40441058 0x00004646 0x2 17 >,
791 < 1766400000 0x4044115c 0x00004a4a 0x2 18 >;
792
Deepak Katragadda401fcb92017-08-21 16:30:15 -0700793 qcom,pwrcl-speedbin1-v0 =
794 < 300000000 0x000c000f 0x00002020 0x1 1 >,
795 < 403200000 0x500c0115 0x00002020 0x1 2 >,
796 < 480000000 0x50140219 0x00002020 0x1 3 >,
797 < 576000000 0x5014031e 0x00002020 0x1 4 >,
798 < 652800000 0x401c0422 0x00002020 0x1 5 >,
799 < 748800000 0x401c0527 0x00002020 0x1 6 >,
800 < 825600000 0x401c062b 0x00002222 0x1 7 >,
801 < 902400000 0x4024072f 0x00002626 0x1 8 >,
802 < 979200000 0x40240833 0x00002929 0x1 9 >,
803 < 1056000000 0x402c0937 0x00002c2c 0x2 10 >,
804 < 1132800000 0x402c0a3b 0x00002f2f 0x2 11 >,
805 < 1228800000 0x402c0b40 0x00003333 0x2 12 >,
806 < 1324800000 0x40340c45 0x00003737 0x2 13 >,
807 < 1420800000 0x40340d4a 0x00003b3b 0x2 14 >,
808 < 1516800000 0x403c0e4f 0x00003f3f 0x2 15 >,
809 < 1612800000 0x403c0f54 0x00004343 0x2 16 >,
810 < 1689600000 0x40441058 0x00004646 0x2 17 >,
811 < 1766400000 0x4044115c 0x00004a4a 0x2 18 >;
812
Deepak Katragadda97c8e6a2017-09-12 12:19:50 -0700813 qcom,pwrcl-speedbin2-v0 =
814 < 300000000 0x000c000f 0x00002020 0x1 1 >,
815 < 403200000 0x500c0115 0x00002020 0x1 2 >,
816 < 480000000 0x50140219 0x00002020 0x1 3 >,
817 < 576000000 0x5014031e 0x00002020 0x1 4 >,
818 < 652800000 0x401c0422 0x00002020 0x1 5 >,
819 < 748800000 0x401c0527 0x00002020 0x1 6 >,
820 < 825600000 0x401c062b 0x00002222 0x1 7 >,
821 < 902400000 0x4024072f 0x00002626 0x1 8 >,
822 < 979200000 0x40240833 0x00002929 0x1 9 >,
823 < 1056000000 0x402c0937 0x00002c2c 0x2 10 >,
824 < 1132800000 0x402c0a3b 0x00002f2f 0x2 11 >,
825 < 1228800000 0x402c0b40 0x00003333 0x2 12 >,
826 < 1324800000 0x40340c45 0x00003737 0x2 13 >,
827 < 1420800000 0x40340d4a 0x00003b3b 0x2 14 >,
828 < 1516800000 0x403c0e4f 0x00003f3f 0x2 15 >,
829 < 1612800000 0x403c0f54 0x00004343 0x2 16 >,
830 < 1689600000 0x40441058 0x00004646 0x2 17 >,
831 < 1766400000 0x4044115c 0x00004a4a 0x2 18 >;
832
Deepak Katragaddaa442baa2017-07-11 12:27:06 -0700833 qcom,perfcl-speedbin0-v0 =
834 < 300000000 0x000c000f 0x00002020 0x1 1 >,
835 < 403200000 0x500c0115 0x00002020 0x1 2 >,
836 < 480000000 0x50140219 0x00002020 0x1 3 >,
837 < 576000000 0x5014031e 0x00002020 0x1 4 >,
838 < 652800000 0x401c0422 0x00002020 0x1 5 >,
839 < 748800000 0x401c0527 0x00002020 0x1 6 >,
840 < 825600000 0x401c062b 0x00002222 0x1 7 >,
841 < 902400000 0x4024072f 0x00002626 0x1 8 >,
842 < 979200000 0x40240833 0x00002929 0x1 9 >,
843 < 1056000000 0x402c0937 0x00002c2c 0x1 10 >,
844 < 1132800000 0x402c0a3b 0x00002f2f 0x1 11 >,
845 < 1209600000 0x402c0b3f 0x00003232 0x2 12 >,
846 < 1286400000 0x40340c43 0x00003636 0x2 13 >,
847 < 1363200000 0x40340d47 0x00003939 0x2 14 >,
848 < 1459200000 0x403c0e4c 0x00003d3d 0x2 15 >,
849 < 1536000000 0x403c0f50 0x00004040 0x2 16 >,
850 < 1612800000 0x403c1054 0x00004343 0x2 17 >,
851 < 1689600000 0x40441158 0x00004646 0x2 18 >,
852 < 1766400000 0x4044125c 0x00004a4a 0x2 19 >,
853 < 1843200000 0x40441360 0x00004d4d 0x2 20 >,
854 < 1920000000 0x404c1464 0x00005050 0x2 21 >,
855 < 1996800000 0x404c1568 0x00005353 0x2 22 >,
856 < 2092800000 0x4054166d 0x00005757 0x2 23 >,
857 < 2169600000 0x40541771 0x00005a5a 0x2 24 >,
858 < 2246400000 0x40541875 0x00005e5e 0x2 25 >,
859 < 2323200000 0x40541979 0x00006161 0x2 26 >,
860 < 2400000000 0x40541a7d 0x00006464 0x2 27 >;
861
862 qcom,perfcl-speedbin1-v0 =
863 < 300000000 0x000c000f 0x00002020 0x1 1 >,
864 < 403200000 0x500c0115 0x00002020 0x1 2 >,
865 < 480000000 0x50140219 0x00002020 0x1 3 >,
866 < 576000000 0x5014031e 0x00002020 0x1 4 >,
867 < 652800000 0x401c0422 0x00002020 0x1 5 >,
868 < 748800000 0x401c0527 0x00002020 0x1 6 >,
869 < 825600000 0x401c062b 0x00002222 0x1 7 >,
870 < 902400000 0x4024072f 0x00002626 0x1 8 >,
871 < 979200000 0x40240833 0x00002929 0x1 9 >,
872 < 1056000000 0x402c0937 0x00002c2c 0x1 10 >,
873 < 1132800000 0x402c0a3b 0x00002f2f 0x1 11 >,
874 < 1209600000 0x402c0b3f 0x00003232 0x2 12 >,
875 < 1286400000 0x40340c43 0x00003636 0x2 13 >,
876 < 1363200000 0x40340d47 0x00003939 0x2 14 >,
877 < 1459200000 0x403c0e4c 0x00003d3d 0x2 15 >,
878 < 1536000000 0x403c0f50 0x00004040 0x2 16 >,
879 < 1612800000 0x403c1054 0x00004343 0x2 17 >,
880 < 1689600000 0x40441158 0x00004646 0x2 18 >,
881 < 1766400000 0x4044125c 0x00004a4a 0x2 19 >,
882 < 1843200000 0x40441360 0x00004d4d 0x2 20 >,
883 < 1920000000 0x404c1464 0x00005050 0x2 21 >,
884 < 1996800000 0x404c1568 0x00005353 0x2 22 >,
885 < 2092800000 0x4054166d 0x00005757 0x2 23 >,
886 < 2169600000 0x40541771 0x00005a5a 0x2 24 >,
887 < 2246400000 0x40541875 0x00005e5e 0x2 25 >,
888 < 2323200000 0x40541979 0x00006161 0x2 26 >,
889 < 2400000000 0x40541a7d 0x00006464 0x2 27 >,
890 < 2476800000 0x40541b81 0x00006767 0x2 28 >,
891 < 2553600000 0x40541c85 0x00006a6a 0x2 29 >,
Deepak Katragadda1a183252017-08-21 12:44:34 -0700892 < 2649600000 0x40541d8a 0x00006e6e 0x2 30 >,
893 < 2745600000 0x40511e8f 0x00007272 0x2 31 >;
Deepak Katragadda30d72dd2017-08-01 13:56:00 -0700894
Deepak Katragadda97c8e6a2017-09-12 12:19:50 -0700895 qcom,perfcl-speedbin2-v0 =
896 < 300000000 0x000c000f 0x00002020 0x1 1 >,
897 < 403200000 0x500c0115 0x00002020 0x1 2 >,
898 < 480000000 0x50140219 0x00002020 0x1 3 >,
899 < 576000000 0x5014031e 0x00002020 0x1 4 >,
900 < 652800000 0x401c0422 0x00002020 0x1 5 >,
901 < 748800000 0x401c0527 0x00002020 0x1 6 >,
902 < 825600000 0x401c062b 0x00002222 0x1 7 >,
903 < 902400000 0x4024072f 0x00002626 0x1 8 >,
904 < 979200000 0x40240833 0x00002929 0x1 9 >,
905 < 1056000000 0x402c0937 0x00002c2c 0x1 10 >,
906 < 1132800000 0x402c0a3b 0x00002f2f 0x1 11 >,
907 < 1209600000 0x402c0b3f 0x00003232 0x2 12 >,
908 < 1286400000 0x40340c43 0x00003636 0x2 13 >,
909 < 1363200000 0x40340d47 0x00003939 0x2 14 >,
910 < 1459200000 0x403c0e4c 0x00003d3d 0x2 15 >,
911 < 1536000000 0x403c0f50 0x00004040 0x2 16 >,
912 < 1612800000 0x403c1054 0x00004343 0x2 17 >,
913 < 1689600000 0x40441158 0x00004646 0x2 18 >,
914 < 1766400000 0x4044125c 0x00004a4a 0x2 19 >,
915 < 1843200000 0x40441360 0x00004d4d 0x2 20 >,
916 < 1920000000 0x404c1464 0x00005050 0x2 21 >,
917 < 1996800000 0x404c1568 0x00005353 0x2 22 >,
918 < 2092800000 0x4054166d 0x00005757 0x2 23 >,
919 < 2169600000 0x40541771 0x00005a5a 0x2 24 >,
920 < 2246400000 0x40541875 0x00005e5e 0x2 25 >,
921 < 2323200000 0x40541979 0x00006161 0x2 26 >,
922 < 2400000000 0x40541a7d 0x00006464 0x2 27 >,
923 < 2476800000 0x40541b81 0x00006767 0x2 28 >,
924 < 2553600000 0x40541c85 0x00006a6a 0x2 29 >,
925 < 2649600000 0x40541d8a 0x00006e6e 0x2 30 >,
926 < 2707200000 0x40511e8d 0x00007171 0x2 30 >,
927 < 2764800000 0x40511f90 0x00007373 0x2 31 >,
928 < 2784000000 0x40512091 0x00007474 0x2 32 >,
929 < 2803200000 0x40512192 0x00007575 0x2 33 >;
930
Deepak Katragadda30d72dd2017-08-01 13:56:00 -0700931 qcom,l3-memacc-level-vc-bin0 = <8 13>;
Deepak Katragadda288d2b52017-08-11 10:13:59 -0700932 qcom,l3-memacc-level-vc-bin1 = <8 13>;
Deepak Katragadda97c8e6a2017-09-12 12:19:50 -0700933 qcom,l3-memacc-level-vc-bin2 = <8 13>;
Deepak Katragadda30d72dd2017-08-01 13:56:00 -0700934
935 qcom,pwrcl-memacc-level-vc-bin0 = <12 16>;
Deepak Katragadda401fcb92017-08-21 16:30:15 -0700936 qcom,pwrcl-memacc-level-vc-bin1 = <12 16>;
Deepak Katragadda97c8e6a2017-09-12 12:19:50 -0700937 qcom,pwrcl-memacc-level-vc-bin2 = <12 16>;
Deepak Katragadda30d72dd2017-08-01 13:56:00 -0700938
939 qcom,perfcl-memacc-level-vc-bin0 = <14 22>;
940 qcom,perfcl-memacc-level-vc-bin1 = <14 22>;
Deepak Katragadda97c8e6a2017-09-12 12:19:50 -0700941 qcom,perfcl-memacc-level-vc-bin2 = <14 22>;
David Collinsf5764762017-07-20 16:42:42 -0700942};
943
Tony Truong80258d62017-08-16 11:41:33 -0700944&pcie1 {
945 qcom,phy-sequence = <0x1804 0x03 0x0
946 0x00dc 0x27 0x0
947 0x0014 0x01 0x0
948 0x0020 0x31 0x0
949 0x0024 0x01 0x0
950 0x0028 0xde 0x0
951 0x002c 0x07 0x0
952 0x0034 0x4c 0x0
953 0x0038 0x06 0x0
954 0x0054 0x18 0x0
955 0x0058 0xb0 0x0
956 0x006c 0x8c 0x0
957 0x0070 0x20 0x0
958 0x0078 0x14 0x0
959 0x007c 0x34 0x0
960 0x00b4 0x06 0x0
961 0x00b8 0x06 0x0
962 0x00c0 0x16 0x0
963 0x00c4 0x16 0x0
964 0x00cc 0x36 0x0
965 0x00d0 0x36 0x0
966 0x00f0 0x05 0x0
967 0x00f8 0x42 0x0
968 0x0100 0x82 0x0
969 0x0108 0x68 0x0
970 0x011c 0x55 0x0
971 0x0120 0x55 0x0
972 0x0124 0x03 0x0
973 0x0128 0xab 0x0
974 0x012c 0xaa 0x0
975 0x0130 0x02 0x0
976 0x0150 0x3f 0x0
977 0x0158 0x3f 0x0
978 0x0178 0x10 0x0
979 0x01cc 0x04 0x0
980 0x01d0 0x30 0x0
981 0x01e0 0x04 0x0
982 0x01e8 0x73 0x0
983 0x01f0 0x1c 0x0
984 0x01fc 0x15 0x0
985 0x021c 0x04 0x0
986 0x0224 0x01 0x0
987 0x0228 0x22 0x0
988 0x022c 0x00 0x0
989 0x0098 0x05 0x0
990 0x080c 0x00 0x0
991 0x0818 0x0d 0x0
992 0x0860 0x01 0x0
993 0x0864 0x3a 0x0
994 0x087c 0x2f 0x0
995 0x08c0 0x09 0x0
996 0x08c4 0x09 0x0
997 0x08c8 0x1a 0x0
998 0x08d0 0x01 0x0
999 0x08d4 0x07 0x0
1000 0x08d8 0x31 0x0
1001 0x08dc 0x31 0x0
1002 0x08e0 0x03 0x0
1003 0x08fc 0x02 0x0
1004 0x0900 0x01 0x0
1005 0x0908 0x12 0x0
1006 0x0914 0x25 0x0
1007 0x0918 0x00 0x0
1008 0x091c 0x05 0x0
1009 0x0920 0x01 0x0
1010 0x0924 0x26 0x0
1011 0x0928 0x12 0x0
1012 0x0930 0x04 0x0
1013 0x0934 0x04 0x0
1014 0x0938 0x09 0x0
1015 0x0954 0x15 0x0
1016 0x0960 0x32 0x0
1017 0x0968 0x7f 0x0
1018 0x096c 0x07 0x0
1019 0x0978 0x04 0x0
1020 0x0980 0x70 0x0
1021 0x0984 0x8b 0x0
1022 0x0988 0x08 0x0
1023 0x098c 0x09 0x0
1024 0x0990 0x03 0x0
1025 0x0994 0x04 0x0
1026 0x0998 0x02 0x0
1027 0x099c 0x0c 0x0
1028 0x09a4 0x02 0x0
1029 0x09c0 0x5c 0x0
1030 0x09c4 0x3e 0x0
1031 0x09c8 0x3f 0x0
1032 0x0a30 0x01 0x0
1033 0x0a34 0xa0 0x0
1034 0x0a38 0x08 0x0
1035 0x0aa4 0x01 0x0
1036 0x0aac 0xc3 0x0
1037 0x0ab0 0x00 0x0
1038 0x0ab8 0x8c 0x0
1039 0x0ac0 0x7f 0x0
1040 0x0ac4 0x2a 0x0
1041 0x0810 0x0c 0x0
1042 0x0814 0x00 0x0
1043 0x0acc 0x04 0x0
1044 0x093c 0x20 0x0
1045 0x100c 0x00 0x0
1046 0x1018 0x0d 0x0
1047 0x1060 0x01 0x0
1048 0x1064 0x3a 0x0
1049 0x107c 0x2f 0x0
1050 0x10c0 0x09 0x0
1051 0x10c4 0x09 0x0
1052 0x10c8 0x1a 0x0
1053 0x10d0 0x01 0x0
1054 0x10d4 0x07 0x0
1055 0x10d8 0x31 0x0
1056 0x10dc 0x31 0x0
1057 0x10e0 0x03 0x0
1058 0x10fc 0x02 0x0
1059 0x1100 0x01 0x0
1060 0x1108 0x12 0x0
1061 0x1114 0x25 0x0
1062 0x1118 0x00 0x0
1063 0x111c 0x05 0x0
1064 0x1120 0x01 0x0
1065 0x1124 0x26 0x0
1066 0x1128 0x12 0x0
1067 0x1130 0x04 0x0
1068 0x1134 0x04 0x0
1069 0x1138 0x09 0x0
1070 0x1154 0x15 0x0
1071 0x1160 0x32 0x0
1072 0x1168 0x7f 0x0
1073 0x116c 0x07 0x0
1074 0x1178 0x04 0x0
1075 0x1180 0x70 0x0
1076 0x1184 0x8b 0x0
1077 0x1188 0x08 0x0
1078 0x118c 0x09 0x0
1079 0x1190 0x03 0x0
1080 0x1194 0x04 0x0
1081 0x1198 0x02 0x0
1082 0x119c 0x0c 0x0
1083 0x11a4 0x02 0x0
1084 0x11c0 0x5c 0x0
1085 0x11c4 0x3e 0x0
1086 0x11c8 0x3f 0x0
1087 0x1230 0x01 0x0
1088 0x1234 0xa0 0x0
1089 0x1238 0x08 0x0
1090 0x12a4 0x01 0x0
1091 0x12ac 0xc3 0x0
1092 0x12b0 0x00 0x0
1093 0x12b8 0x8c 0x0
1094 0x12c0 0x7f 0x0
1095 0x12c4 0x2a 0x0
1096 0x1010 0x0c 0x0
1097 0x1014 0x0f 0x0
1098 0x12cc 0x04 0x0
1099 0x113c 0x20 0x0
1100 0x195c 0x3f 0x0
1101 0x1974 0x50 0x0
1102 0x196c 0x9f 0x0
1103 0x182c 0x19 0x0
1104 0x1840 0x07 0x0
1105 0x1854 0x17 0x0
1106 0x1868 0x09 0x0
1107 0x1800 0x00 0x0
1108 0x0aa8 0x01 0x0
1109 0x12a8 0x01 0x0
1110 0x1808 0x01 0x0>;
1111};
1112
Jonathan Avila29bc1972017-08-24 16:49:18 -07001113&devfreq_l3lat_0 {
1114 qcom,core-dev-table =
1115 < 300000 300000000 >,
1116 < 480000 403200000 >,
1117 < 652800 480000000 >,
1118 < 748800 576000000 >,
1119 < 902400 652800000 >,
1120 < 979200 748800000 >,
1121 < 1132800 844800000 >,
1122 < 1228800 940800000 >,
1123 < 1324800 1036800000 >,
1124 < 1420800 1132800000 >,
1125 < 1516800 1209600000 >,
1126 < 1612800 1401600000 >,
1127 < 1689600 1497600000 >,
1128 < 1766400 1593600000 >;
1129};
1130
1131&devfreq_l3lat_4 {
1132 qcom,core-dev-table =
1133 < 300000 300000000 >,
1134 < 825600 576000000 >,
1135 < 1132800 748800000 >,
1136 < 1363200 940800000 >,
1137 < 1689600 1209600000 >,
1138 < 1996800 1401600000 >,
1139 < 2400000 1593600000 >;
1140};
1141
Stephen Boydcbe46a02017-08-02 13:59:31 -07001142&bwmon {
1143 qcom,count-unit = <0x10000>;
1144};
1145
Stephen Boyd31aac5f2017-09-01 09:16:06 -07001146&cpubw {
1147 qcom,bw-tbl =
1148 < MHZ_TO_MBPS(150, 16) >, /* 2288 MB/s */
1149 < MHZ_TO_MBPS(300, 16) >, /* 4577 MB/s */
1150 < MHZ_TO_MBPS(426, 16) >, /* 6500 MB/s */
1151 < MHZ_TO_MBPS(533, 16) >, /* 8132 MB/s */
1152 < MHZ_TO_MBPS(600, 16) >, /* 9155 MB/s */
1153 < MHZ_TO_MBPS(806, 16) >, /* 12298 MB/s */
1154 < MHZ_TO_MBPS(933, 16) >; /* 14236 MB/s */
1155};
1156
1157&devfreq_cpufreq {
1158 mincpubw-cpufreq {
1159 cpu-to-dev-map-4 =
1160 < 1881600 MHZ_TO_MBPS(200, 4) >,
1161 < 2400000 MHZ_TO_MBPS(681, 4) >;
1162 };
1163};
1164
Deepak Katragaddada47ee92017-06-07 14:15:09 -07001165&clock_gcc {
Deepak Katragadda3f120bb2017-08-09 14:49:49 -07001166 compatible = "qcom,gcc-sdm845-v2", "syscon";
Deepak Katragaddada47ee92017-06-07 14:15:09 -07001167};
1168
1169&clock_camcc {
Deepak Katragadda3f120bb2017-08-09 14:49:49 -07001170 compatible = "qcom,cam_cc-sdm845-v2", "syscon";
Deepak Katragaddada47ee92017-06-07 14:15:09 -07001171};
1172
1173&clock_dispcc {
Deepak Katragadda3f120bb2017-08-09 14:49:49 -07001174 compatible = "qcom,dispcc-sdm845-v2", "syscon";
Deepak Katragaddada47ee92017-06-07 14:15:09 -07001175};
1176
Vicky Wallace1762ab32017-07-12 19:00:04 -07001177&clock_gpucc {
Deepak Katragadda3f120bb2017-08-09 14:49:49 -07001178 compatible = "qcom,gpucc-sdm845-v2", "syscon";
Vicky Wallace1762ab32017-07-12 19:00:04 -07001179};
1180
1181&clock_gfx {
1182 compatible = "qcom,gfxcc-sdm845-v2";
1183};
1184
Deepak Katragaddada47ee92017-06-07 14:15:09 -07001185&clock_videocc {
Deepak Katragadda3f120bb2017-08-09 14:49:49 -07001186 compatible = "qcom,video_cc-sdm845-v2", "syscon";
Deepak Katragaddada47ee92017-06-07 14:15:09 -07001187};
Praneeth Paladugu55381212017-07-05 15:02:44 -07001188
1189&msm_vidc {
1190 qcom,allowed-clock-rates = <100000000 200000000 330000000
1191 404000000 444000000 533000000>;
1192};
Reut Zysman861fd6c2017-07-30 15:39:13 +03001193
David Collins113cc2772017-06-27 17:26:54 -07001194&refgen {
1195 status = "ok";
David Collinsd388dd82017-08-15 16:23:21 -07001196 regulator-always-on;
David Collins113cc2772017-06-27 17:26:54 -07001197};
1198
Reut Zysman861fd6c2017-07-30 15:39:13 +03001199&spss_utils {
1200 qcom,spss-dev-firmware-name = "spss2d"; /* 8 chars max */
1201 qcom,spss-test-firmware-name = "spss2t"; /* 8 chars max */
1202 qcom,spss-prod-firmware-name = "spss2p"; /* 8 chars max */
1203};
Narendra Muppalla4efd3442017-07-24 17:36:15 -07001204
1205&mdss_mdp {
1206 clock-max-rate = <0 0 0 0 430000000 19200000 0>;
Narendra Muppalla86a46a02017-08-17 11:14:37 -07001207 qcom,sde-min-core-ib-kbps = <4800000>;
Narendra Muppalla4efd3442017-07-24 17:36:15 -07001208};
Joonwoo Parkf3f7dac2017-08-17 16:02:29 -07001209
Ingrid Gallardoe38166e2017-09-06 17:01:00 -07001210&mdss_dsi0 {
1211 qcom,core-supply-entries {
1212 #address-cells = <1>;
1213 #size-cells = <0>;
1214
1215 qcom,core-supply-entry@0 {
1216 reg = <0>;
1217 qcom,supply-name = "refgen";
1218 qcom,supply-min-voltage = <0>;
1219 qcom,supply-max-voltage = <0>;
1220 qcom,supply-enable-load = <0>;
1221 qcom,supply-disable-load = <0>;
1222 };
1223 };
1224};
1225
1226&mdss_dsi1 {
1227 qcom,core-supply-entries {
1228 #address-cells = <1>;
1229 #size-cells = <0>;
1230
1231 qcom,core-supply-entry@0 {
1232 reg = <0>;
1233 qcom,supply-name = "refgen";
1234 qcom,supply-min-voltage = <0>;
1235 qcom,supply-max-voltage = <0>;
1236 qcom,supply-enable-load = <0>;
1237 qcom,supply-disable-load = <0>;
1238 };
1239 };
1240};
1241
1242&sde_dp {
1243 qcom,core-supply-entries {
1244 #address-cells = <1>;
1245 #size-cells = <0>;
1246
1247 qcom,core-supply-entry@0 {
1248 reg = <0>;
1249 qcom,supply-name = "refgen";
1250 qcom,supply-min-voltage = <0>;
1251 qcom,supply-max-voltage = <0>;
1252 qcom,supply-enable-load = <0>;
1253 qcom,supply-disable-load = <0>;
1254 };
1255 };
1256};
1257
Joonwoo Parkf3f7dac2017-08-17 16:02:29 -07001258&energy_costs {
1259 CPU_COST_0: core-cost0 {
1260 busy-cost-data = <
Puja Gupta346e399c2017-09-06 14:32:42 -07001261 300000 12
Joonwoo Parkf3f7dac2017-08-17 16:02:29 -07001262 403200 17
1263 480000 21
Puja Gupta346e399c2017-09-06 14:32:42 -07001264 576000 27
Joonwoo Parkf3f7dac2017-08-17 16:02:29 -07001265 652800 31
1266 748800 37
1267 825600 42
1268 902400 47
1269 979200 52
1270 1056000 57
1271 1132800 62
Puja Gupta346e399c2017-09-06 14:32:42 -07001272 1228800 70
Joonwoo Parkf3f7dac2017-08-17 16:02:29 -07001273 1324800 78
1274 1420800 89
1275 1516800 103
1276 1612800 122
Puja Gupta346e399c2017-09-06 14:32:42 -07001277 1689600 141
1278 1766400 160
Joonwoo Parkf3f7dac2017-08-17 16:02:29 -07001279 >;
1280 idle-cost-data = <
1281 22 18 14 12
1282 >;
1283 };
1284 CPU_COST_1: core-cost1 {
1285 busy-cost-data = <
Puja Gupta346e399c2017-09-06 14:32:42 -07001286 300000 189
1287 403200 523
1288 480000 763
1289 576000 1052
1290 652800 1273
1291 748800 1536
1292 825600 1736
1293 902400 1926
1294 979200 2108
1295 1056000 2284
1296 1132800 2456
1297 1209600 2628
1298 1286400 2804
1299 1363200 2992
1300 1459200 3255
1301 1536000 3499
1302 1612800 3786
1303 1689600 4128
1304 1766400 4535
1305 1843200 5019
1306 1920000 5583
1307 1996800 6226
Joonwoo Parkf3f7dac2017-08-17 16:02:29 -07001308 2092800 7120
Puja Gupta346e399c2017-09-06 14:32:42 -07001309 2169600 7876
1310 2246400 8628
1311 2323200 9344
Joonwoo Parkf3f7dac2017-08-17 16:02:29 -07001312 2400000 10030
Puja Gupta346e399c2017-09-06 14:32:42 -07001313 2476800 10806
1314 2553600 12045
1315 2649600 15686
1316 2745600 25586
Joonwoo Parkf3f7dac2017-08-17 16:02:29 -07001317 >;
1318 idle-cost-data = <
1319 100 80 60 40
1320 >;
1321 };
1322 CLUSTER_COST_0: cluster-cost0 {
1323 busy-cost-data = <
1324 300000 3
1325 403200 4
1326 480000 4
1327 576000 4
1328 652800 5
1329 748800 5
1330 825600 6
1331 902400 7
1332 979200 7
1333 1056000 8
1334 1132800 9
1335 1228800 9
1336 1324800 10
1337 1420800 11
1338 1516800 12
1339 1612800 13
1340 1689600 15
1341 1766400 17
1342 >;
1343 idle-cost-data = <
1344 4 3 2 1
1345 >;
1346 };
1347 CLUSTER_COST_1: cluster-cost1 {
1348 busy-cost-data = <
1349 300000 24
1350 403200 24
1351 480000 25
1352 576000 25
1353 652800 26
1354 748800 27
1355 825600 28
1356 902400 29
1357 979200 30
1358 1056000 32
1359 1132800 34
1360 1209600 37
1361 1286400 40
1362 1363200 45
1363 1459200 50
1364 1536000 57
1365 1612800 64
1366 1689600 74
1367 1766400 84
1368 1843200 96
1369 1920000 106
1370 1996800 113
1371 2092800 120
1372 2169600 125
1373 2246400 127
1374 2323200 130
1375 2400000 135
1376 2476800 140
1377 2553600 145
Puja Gupta346e399c2017-09-06 14:32:42 -07001378 2649600 150
1379 2745600 155
Joonwoo Parkf3f7dac2017-08-17 16:02:29 -07001380 >;
1381 idle-cost-data = <
1382 4 3 2 1
1383 >;
1384 };
1385};
Vicky Wallaceddf4fad2017-08-03 20:15:55 -07001386
1387&gpu_gx_gdsc {
1388 domain-addr = <&gpu_gx_domain_addr>;
1389 sw-reset = <&gpu_gx_sw_reset>;
1390 qcom,reset-aon-logic;
1391};
Lokesh Batra835f0162017-08-01 11:55:53 -07001392
1393/* GPU overrides */
1394&msm_gpu {
1395 /* Updated chip ID */
1396 qcom,chipid = <0x06030001>;
1397 qcom,initial-pwrlevel = <5>;
1398
1399 qcom,gpu-pwrlevels {
1400 #address-cells = <1>;
1401 #size-cells = <0>;
1402
1403 compatible = "qcom,gpu-pwrlevels";
1404
1405 qcom,gpu-pwrlevel@0 {
1406 reg = <0>;
1407 qcom,gpu-freq = <675000000>;
1408 qcom,bus-freq = <12>;
1409 qcom,bus-min = <10>;
1410 qcom,bus-max = <12>;
1411 };
1412
1413 qcom,gpu-pwrlevel@1 {
1414 reg = <1>;
1415 qcom,gpu-freq = <596000000>;
1416 qcom,bus-freq = <10>;
1417 qcom,bus-min = <9>;
1418 qcom,bus-max = <11>;
1419 };
1420
1421 qcom,gpu-pwrlevel@2 {
1422 reg = <2>;
1423 qcom,gpu-freq = <520000000>;
1424 qcom,bus-freq = <9>;
1425 qcom,bus-min = <8>;
1426 qcom,bus-max = <10>;
1427 };
1428
1429 qcom,gpu-pwrlevel@3 {
1430 reg = <3>;
1431 qcom,gpu-freq = <414000000>;
1432 qcom,bus-freq = <8>;
1433 qcom,bus-min = <7>;
1434 qcom,bus-max = <9>;
1435 };
1436
1437 qcom,gpu-pwrlevel@4 {
1438 reg = <4>;
1439 qcom,gpu-freq = <342000000>;
1440 qcom,bus-freq = <6>;
1441 qcom,bus-min = <5>;
1442 qcom,bus-max = <7>;
1443 };
1444
1445 qcom,gpu-pwrlevel@5 {
1446 reg = <5>;
1447 qcom,gpu-freq = <257000000>;
1448 qcom,bus-freq = <4>;
1449 qcom,bus-min = <3>;
1450 qcom,bus-max = <5>;
1451 };
1452
1453 qcom,gpu-pwrlevel@6 {
1454 reg = <6>;
1455 qcom,gpu-freq = <0>;
1456 qcom,bus-freq = <0>;
1457 qcom,bus-min = <0>;
1458 qcom,bus-max = <0>;
1459 };
1460 };
1461};
1462
1463&gmu {
1464 qcom,gmu-pwrlevels {
1465 #address-cells = <1>;
1466 #size-cells = <0>;
1467
1468 compatible = "qcom,gmu-pwrlevels";
1469
1470 qcom,gmu-pwrlevel@0 {
1471 reg = <0>;
1472 qcom,gmu-freq = <500000000>;
1473 };
1474
1475 qcom,gmu-pwrlevel@1 {
1476 reg = <1>;
1477 qcom,gmu-freq = <200000000>;
1478 };
1479
1480 qcom,gmu-pwrlevel@2 {
1481 reg = <2>;
1482 qcom,gmu-freq = <0>;
1483 };
1484 };
1485};
Mayank Ranaf1137ef2017-09-26 09:30:26 -07001486
1487&qusb_phy0 {
1488 qcom,qusb-phy-init-seq =
1489 /* <value reg_offset> */
1490 <0x23 0x210 /* PWR_CTRL1 */
1491 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */
1492 0x7c 0x18c /* PLL_CLOCK_INVERTERS */
1493 0x80 0x2c /* PLL_CMODE */
1494 0x0a 0x184 /* PLL_LOCK_DELAY */
1495 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */
1496 0x40 0x194 /* PLL_BIAS_CONTROL_1 */
1497 0x20 0x198 /* PLL_BIAS_CONTROL_2 */
1498 0x21 0x214 /* PWR_CTRL2 */
1499 0x00 0x220 /* IMP_CTRL1 */
1500 0x58 0x224 /* IMP_CTRL2 */
1501 0x45 0x240 /* TUNE1 */
1502 0x29 0x244 /* TUNE2 */
1503 0xca 0x248 /* TUNE3 */
1504 0x04 0x24c /* TUNE4 */
1505 0x03 0x250 /* TUNE5 */
1506 0x00 0x23c /* CHG_CTRL2 */
1507 0x22 0x210>; /* PWR_CTRL1 */
1508};