blob: d22c28ab49b38b5ff5f0dfadd4cb481ef04e2844 [file] [log] [blame]
David Collins88af9142016-12-09 17:12:52 -08001/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
David Collins5ab42b92016-07-07 17:38:51 -07002 *
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
Harry Yang4c05d3e42017-05-09 16:18:17 -070013#include <dt-bindings/gpio/gpio.h>
David Collins5ab42b92016-07-07 17:38:51 -070014#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
15
16/* Stub regulators */
17/ {
David Collins5ab42b92016-07-07 17:38:51 -070018
David Collins88af9142016-12-09 17:12:52 -080019 /*
20 * RPMh does not provide support for PM8998 S4 because it is always-on
21 * at 1.8 V in auto mode. Therefore, use a stub regulator for S4.
22 */
David Collins3a457942016-12-09 16:59:51 -080023 pm8998_s4: regulator-pm8998-s4 {
David Collins5ab42b92016-07-07 17:38:51 -070024 compatible = "qcom,stub-regulator";
David Collins3a457942016-12-09 16:59:51 -080025 regulator-name = "pm8998_s4";
David Collins5ab42b92016-07-07 17:38:51 -070026 qcom,hpm-min-load = <100000>;
27 regulator-min-microvolt = <1800000>;
28 regulator-max-microvolt = <1800000>;
29 };
David Collins5ab42b92016-07-07 17:38:51 -070030};
David Collins88af9142016-12-09 17:12:52 -080031
David Collinsdddb3702017-04-06 17:21:30 -070032&spmi_bus {
33 qcom,pm8998@1 {
34 /* PM8998 S12 + S11 + S10 = VDD_APC1 supply */
35 pm8998_s12: regulator@3500 {
36 compatible = "qcom,qpnp-regulator";
37 reg = <0x3500 0x100>;
38 regulator-name = "pm8998_s12";
39 regulator-min-microvolt = <568000>;
David Collins8babfbe2017-05-19 16:00:44 -070040 regulator-max-microvolt = <1136000>;
David Collinsdddb3702017-04-06 17:21:30 -070041 qcom,enable-time = <500>;
42 regulator-always-on;
43 };
44
45 /* PM8998 S13 = VDD_APC0 supply */
46 pm8998_s13: regulator@3800 {
47 compatible = "qcom,qpnp-regulator";
48 reg = <0x3800 0x100>;
49 regulator-name = "pm8998_s13";
50 regulator-min-microvolt = <568000>;
David Collinse367ce62017-05-08 18:15:03 -070051 regulator-max-microvolt = <996000>;
David Collinsdddb3702017-04-06 17:21:30 -070052 qcom,enable-time = <500>;
53 regulator-always-on;
54 };
55 };
56};
57
David Collins88af9142016-12-09 17:12:52 -080058&soc {
David Collins8054e5e2017-02-28 15:24:52 -080059 /* CPR controller regulators */
60 apc0_cpr: cprh-ctrl@17dc0000 {
61 compatible = "qcom,cprh-sdm845-v1-kbss-regulator";
62 reg = <0x17dc0000 0x4000>,
63 <0x00784000 0x1000>,
64 <0x17840000 0x1000>;
65 reg-names = "cpr_ctrl", "fuse_base", "saw";
66 clocks = <&clock_gcc GCC_CPUSS_RBCPR_CLK>;
67 clock-names = "core_clk";
68 qcom,cpr-ctrl-name = "apc0";
69 qcom,cpr-controller-id = <0>;
70
71 qcom,cpr-sensor-time = <1000>;
72 qcom,cpr-loop-time = <5000000>;
73 qcom,cpr-idle-cycles = <15>;
74 qcom,cpr-up-down-delay-time = <3000>;
75 qcom,cpr-step-quot-init-min = <11>;
76 qcom,cpr-step-quot-init-max = <12>;
77 qcom,cpr-count-mode = <0>; /* All at once */
David Collins9e688ec2017-04-27 15:00:54 -070078 qcom,cpr-count-repeat = <20>;
David Collins8054e5e2017-02-28 15:24:52 -080079 qcom,cpr-down-error-step-limit = <1>;
80 qcom,cpr-up-error-step-limit = <1>;
81 qcom,cpr-corner-switch-delay-time = <1042>;
82 qcom,cpr-voltage-settling-time = <1760>;
Osvaldo Banuelos08408d22017-05-02 13:34:30 -070083 qcom,cpr-reset-step-quot-loop-en;
David Collins8054e5e2017-02-28 15:24:52 -080084
85 qcom,voltage-step = <4000>;
86 qcom,voltage-base = <352000>;
87 qcom,cpr-saw-use-unit-mV;
88
89 qcom,saw-avs-ctrl = <0x101C031>;
David Collinsafce5df2017-04-06 17:38:40 -070090 qcom,saw-avs-limit = <0x3A003A0>;
David Collins8054e5e2017-02-28 15:24:52 -080091
David Collins0c15fda2017-04-06 15:16:57 -070092 qcom,cpr-enable;
93 qcom,cpr-hw-closed-loop;
94
David Collins8054e5e2017-02-28 15:24:52 -080095 qcom,cpr-panic-reg-addr-list =
96 <0x17dc3a84 0x17dc3a88 0x17840c18>;
97 qcom,cpr-panic-reg-name-list =
98 "APSS_SILVER_CPRH_STATUS_0",
99 "APSS_SILVER_CPRH_STATUS_1",
100 "SILVER_SAW4_PMIC_STS";
101
David Collinse367ce62017-05-08 18:15:03 -0700102 qcom,cpr-aging-ref-voltage = <996000>;
David Collinsafce5df2017-04-06 17:38:40 -0700103 vdd-supply = <&pm8998_s13>;
104
David Collins8054e5e2017-02-28 15:24:52 -0800105 thread@1 {
106 qcom,cpr-thread-id = <1>;
107 qcom,cpr-consecutive-up = <0>;
David Collins9e688ec2017-04-27 15:00:54 -0700108 qcom,cpr-consecutive-down = <0>;
David Collins8054e5e2017-02-28 15:24:52 -0800109 qcom,cpr-up-threshold = <2>;
110 qcom,cpr-down-threshold = <2>;
111
112 apc0_pwrcl_vreg: regulator {
113 regulator-name = "apc0_pwrcl_corner";
114 regulator-min-microvolt = <1>;
David Collinse367ce62017-05-08 18:15:03 -0700115 regulator-max-microvolt = <19>;
David Collins8054e5e2017-02-28 15:24:52 -0800116
David Collinse367ce62017-05-08 18:15:03 -0700117 qcom,cpr-fuse-corners = <4>;
David Collins8babfbe2017-05-19 16:00:44 -0700118 qcom,cpr-fuse-combos = <24>;
119 qcom,cpr-speed-bins = <3>;
120 qcom,cpr-speed-bin-corners = <19 19 19>;
David Collinse367ce62017-05-08 18:15:03 -0700121 qcom,cpr-corners = <19>;
David Collins8054e5e2017-02-28 15:24:52 -0800122
David Collinse367ce62017-05-08 18:15:03 -0700123 qcom,cpr-corner-fmax-map = <6 12 17 19>;
David Collins8054e5e2017-02-28 15:24:52 -0800124
125 qcom,cpr-voltage-ceiling =
David Collins94da0bd2017-04-05 16:50:46 -0700126 <872000 872000 872000 872000 872000
127 872000 872000 872000 872000 872000
128 872000 872000 872000 872000 872000
David Collinse367ce62017-05-08 18:15:03 -0700129 872000 928000 996000 996000>;
David Collins8054e5e2017-02-28 15:24:52 -0800130
131 qcom,cpr-voltage-floor =
David Collinse367ce62017-05-08 18:15:03 -0700132 /* Speed bin 0 */
David Collins8054e5e2017-02-28 15:24:52 -0800133 <568000 568000 568000 568000 568000
David Collins24466ac2017-06-20 17:45:14 -0700134 568000 568000 568000 568000 568000
135 568000 568000 568000 568000 568000
136 568000 568000 996000 996000>,
David Collinse367ce62017-05-08 18:15:03 -0700137 /* Speed bin 1 */
138 <568000 568000 568000 568000 568000
David Collins24466ac2017-06-20 17:45:14 -0700139 568000 568000 568000 568000 568000
140 568000 568000 568000 568000 568000
141 568000 568000 568000 568000>,
David Collins8babfbe2017-05-19 16:00:44 -0700142 /* Speed bin 2 */
143 <568000 568000 568000 568000 568000
David Collins24466ac2017-06-20 17:45:14 -0700144 568000 568000 568000 568000 568000
145 568000 568000 568000 568000 568000
146 568000 568000 568000 568000>;
David Collins8054e5e2017-02-28 15:24:52 -0800147
148 qcom,cpr-floor-to-ceiling-max-range =
149 <32000 32000 32000 32000 32000
150 32000 32000 32000 32000 32000
151 32000 32000 32000 32000 32000
David Collinse367ce62017-05-08 18:15:03 -0700152 32000 32000 40000 40000>;
David Collins8054e5e2017-02-28 15:24:52 -0800153
154 qcom,corner-frequencies =
David Collins8babfbe2017-05-19 16:00:44 -0700155 /* Speed bin 0 */
David Collins8054e5e2017-02-28 15:24:52 -0800156 <300000000 422400000 499200000
157 576000000 652800000 748800000
158 825600000 902400000 979200000
159 1056000000 1132800000 1209600000
160 1286400000 1363200000 1440000000
David Collinse367ce62017-05-08 18:15:03 -0700161 1516800000 1593600000 1651200000
David Collins8babfbe2017-05-19 16:00:44 -0700162 1708800000>,
163 /* Speed bin 1 */
164 <300000000 422400000 499200000
165 576000000 652800000 748800000
166 825600000 902400000 979200000
167 1056000000 1132800000 1209600000
168 1286400000 1363200000 1440000000
169 1516800000 1593600000 1651200000
170 1708800000>,
171 /* Speed bin 2 */
172 <300000000 422400000 499200000
173 576000000 652800000 748800000
174 825600000 902400000 979200000
175 1056000000 1132800000 1209600000
176 1286400000 1363200000 1440000000
177 1516800000 1593600000 1670400000
178 1747200000>;
David Collins8054e5e2017-02-28 15:24:52 -0800179
David Collins78a051b2017-04-05 17:52:01 -0700180 qcom,cpr-ro-scaling-factor =
181 <2594 2795 2576 2761 2469 2673 2198
182 2553 3188 3255 3191 2962 3055 2984
183 2043 2947>,
184 <2594 2795 2576 2761 2469 2673 2198
185 2553 3188 3255 3191 2962 3055 2984
186 2043 2947>,
187 <2259 2389 2387 2531 2294 2464 2218
188 2476 2525 2855 2817 2836 2740 2490
David Collinse367ce62017-05-08 18:15:03 -0700189 1950 2632>,
190 <2259 2389 2387 2531 2294 2464 2218
191 2476 2525 2855 2817 2836 2740 2490
David Collins78a051b2017-04-05 17:52:01 -0700192 1950 2632>;
193
David Collinsa67596c2017-03-20 14:53:18 -0700194 qcom,cpr-open-loop-voltage-fuse-adjustment =
David Collins0fd10f02017-05-15 16:19:55 -0700195 /* Speed bin 0 */
196 <100000 100000 100000 100000>,
197 < 0 0 0 100000>,
198 < 0 0 0 0>,
199 < 0 0 0 0>,
200 < 0 0 0 0>,
201 < 0 0 0 0>,
202 < 0 0 0 0>,
203 < 0 0 0 0>,
204 /* Speed bin 1 */
205 <100000 100000 100000 100000>,
206 < 0 0 0 100000>,
207 < 0 0 0 0>,
208 < 0 0 0 0>,
209 < 0 0 0 0>,
210 < 0 0 0 0>,
211 < 0 0 0 0>,
212 < 0 0 0 0>,
213 /* Speed bin 2 */
214 <100000 100000 100000 100000>,
215 < 0 0 0 100000>,
216 < 0 0 0 0>,
217 < 0 0 0 0>,
218 < 0 0 0 0>,
219 < 0 0 0 0>,
220 < 0 0 0 0>,
221 < 0 0 0 0>;
David Collinsa67596c2017-03-20 14:53:18 -0700222
David Collins9a4ab142017-04-05 17:56:45 -0700223 qcom,cpr-closed-loop-voltage-fuse-adjustment =
David Collins0fd10f02017-05-15 16:19:55 -0700224 /* Speed bin 0 */
225 <100000 100000 100000 100000>,
226 < 0 0 0 100000>,
227 < 0 0 0 0>,
228 < 0 0 0 0>,
229 < 0 0 0 0>,
230 < 0 0 0 0>,
231 < 0 0 0 0>,
232 < 0 0 0 0>,
233 /* Speed bin 1 */
234 <100000 100000 100000 100000>,
235 < 0 0 0 100000>,
236 < 0 0 0 0>,
237 < 0 0 0 0>,
238 < 0 0 0 0>,
239 < 0 0 0 0>,
240 < 0 0 0 0>,
241 < 0 0 0 0>,
242 /* Speed bin 2 */
243 <100000 100000 100000 100000>,
244 < 0 0 0 100000>,
245 < 0 0 0 0>,
246 < 0 0 0 0>,
247 < 0 0 0 0>,
248 < 0 0 0 0>,
249 < 0 0 0 0>,
250 < 0 0 0 0>;
David Collins9a4ab142017-04-05 17:56:45 -0700251
David Collins8054e5e2017-02-28 15:24:52 -0800252 qcom,allow-voltage-interpolation;
253 qcom,allow-quotient-interpolation;
254 qcom,cpr-scaled-open-loop-voltage-as-ceiling;
David Collinsafce5df2017-04-06 17:38:40 -0700255
256 qcom,cpr-aging-max-voltage-adjustment = <15000>;
David Collinse367ce62017-05-08 18:15:03 -0700257 qcom,cpr-aging-ref-corner = <19>;
David Collinsafce5df2017-04-06 17:38:40 -0700258 qcom,cpr-aging-ro-scaling-factor = <1620>;
259 qcom,allow-aging-voltage-adjustment =
David Collinse367ce62017-05-08 18:15:03 -0700260 /* Speed bin 0 */
261 <0 1 1 1 1 1 1 1>,
262 /* Speed bin 1 */
David Collins8babfbe2017-05-19 16:00:44 -0700263 <0 1 1 1 1 1 1 1>,
264 /* Speed bin 2 */
David Collins4a4a5c62017-04-06 17:42:24 -0700265 <0 1 1 1 1 1 1 1>;
David Collinsafce5df2017-04-06 17:38:40 -0700266 qcom,allow-aging-open-loop-voltage-adjustment =
267 <1>;
David Collins8054e5e2017-02-28 15:24:52 -0800268 };
269 };
270
271 thread@0 {
272 qcom,cpr-thread-id = <0>;
273 qcom,cpr-consecutive-up = <0>;
David Collins9e688ec2017-04-27 15:00:54 -0700274 qcom,cpr-consecutive-down = <0>;
David Collins8054e5e2017-02-28 15:24:52 -0800275 qcom,cpr-up-threshold = <2>;
276 qcom,cpr-down-threshold = <2>;
277
278 apc0_l3_vreg: regulator {
279 regulator-name = "apc0_l3_corner";
280 regulator-min-microvolt = <1>;
David Collins8babfbe2017-05-19 16:00:44 -0700281 regulator-max-microvolt = <13>;
David Collins8054e5e2017-02-28 15:24:52 -0800282
David Collinse367ce62017-05-08 18:15:03 -0700283 qcom,cpr-fuse-corners = <4>;
David Collins8babfbe2017-05-19 16:00:44 -0700284 qcom,cpr-fuse-combos = <24>;
285 qcom,cpr-speed-bins = <3>;
286 qcom,cpr-speed-bin-corners = <11 11 13>;
287 qcom,cpr-corners =
288 /* Speed bin 0 */
289 <11 11 11 11 11 11 11 11>,
290 /* Speed bin 1 */
291 <11 11 11 11 11 11 11 11>,
292 /* Speed bin 2 */
293 <13 13 13 13 13 13 13 13>;
David Collins8054e5e2017-02-28 15:24:52 -0800294
David Collins8babfbe2017-05-19 16:00:44 -0700295 qcom,cpr-corner-fmax-map =
296 /* Speed bin 0 */
297 <4 7 9 11>,
298 /* Speed bin 1 */
299 <4 7 9 11>,
300 /* Speed bin 2 */
301 <4 7 9 13>;
David Collins8054e5e2017-02-28 15:24:52 -0800302
303 qcom,cpr-voltage-ceiling =
David Collins8babfbe2017-05-19 16:00:44 -0700304 /* Speed bin 0 */
David Collins94da0bd2017-04-05 16:50:46 -0700305 <872000 872000 872000 872000 872000
David Collinse367ce62017-05-08 18:15:03 -0700306 872000 872000 872000 928000 996000
David Collins8babfbe2017-05-19 16:00:44 -0700307 996000>,
308 /* Speed bin 1 */
309 <872000 872000 872000 872000 872000
310 872000 872000 872000 928000 996000
311 996000>,
312 /* Speed bin 2 */
313 <872000 872000 872000 872000 872000
314 872000 872000 872000 928000 996000
315 996000 996000 996000>;
David Collins8054e5e2017-02-28 15:24:52 -0800316
317 qcom,cpr-voltage-floor =
David Collinse367ce62017-05-08 18:15:03 -0700318 /* Speed bin 0 */
David Collins8054e5e2017-02-28 15:24:52 -0800319 <568000 568000 568000 568000 568000
David Collins24466ac2017-06-20 17:45:14 -0700320 568000 568000 568000 568000 996000
David Collinse367ce62017-05-08 18:15:03 -0700321 996000>,
322 /* Speed bin 1 */
323 <568000 568000 568000 568000 568000
David Collins24466ac2017-06-20 17:45:14 -0700324 568000 568000 568000 568000 568000
325 568000>,
David Collins8babfbe2017-05-19 16:00:44 -0700326 /* Speed bin 2 */
327 <568000 568000 568000 568000 568000
David Collins24466ac2017-06-20 17:45:14 -0700328 568000 568000 568000 568000 568000
329 568000 568000 568000>;
David Collins8054e5e2017-02-28 15:24:52 -0800330
331 qcom,cpr-floor-to-ceiling-max-range =
David Collins8babfbe2017-05-19 16:00:44 -0700332 /* Speed bin 0 */
David Collins8054e5e2017-02-28 15:24:52 -0800333 <32000 32000 32000 32000 32000
David Collinse367ce62017-05-08 18:15:03 -0700334 32000 32000 32000 32000 40000
David Collins8babfbe2017-05-19 16:00:44 -0700335 40000>,
336 /* Speed bin 1 */
337 <32000 32000 32000 32000 32000
338 32000 32000 32000 32000 40000
339 40000>,
340 /* Speed bin 2 */
341 <32000 32000 32000 32000 32000
342 32000 32000 32000 32000 40000
343 40000 40000 40000>;
David Collins8054e5e2017-02-28 15:24:52 -0800344
345 qcom,corner-frequencies =
David Collins8babfbe2017-05-19 16:00:44 -0700346 /* Speed bin 0 */
David Collins8054e5e2017-02-28 15:24:52 -0800347 <300000000 422400000 499200000
348 576000000 652800000 729600000
David Collinse367ce62017-05-08 18:15:03 -0700349 806400000 883200000 960000000
David Collins8babfbe2017-05-19 16:00:44 -0700350 1036800000 1094400000>,
351 /* Speed bin 1 */
352 <300000000 422400000 499200000
353 576000000 652800000 729600000
354 806400000 883200000 960000000
355 1036800000 1094400000>,
356 /* Speed bin 2 */
357 <300000000 422400000 499200000
358 576000000 652800000 729600000
359 806400000 883200000 960000000
360 1036800000 1113600000 1209600000
361 1305600000>;
David Collins8054e5e2017-02-28 15:24:52 -0800362
David Collins78a051b2017-04-05 17:52:01 -0700363 qcom,cpr-ro-scaling-factor =
364 <2857 3056 2828 2952 2699 2796 2447
365 2631 2630 2579 2244 3343 3287 3137
366 3164 2656>,
367 <2857 3056 2828 2952 2699 2796 2447
368 2631 2630 2579 2244 3343 3287 3137
369 3164 2656>,
370 <2439 2577 2552 2667 2461 2577 2394
371 2536 2132 2307 2191 2903 2838 2912
David Collinse367ce62017-05-08 18:15:03 -0700372 2501 2095>,
373 <2439 2577 2552 2667 2461 2577 2394
374 2536 2132 2307 2191 2903 2838 2912
David Collins78a051b2017-04-05 17:52:01 -0700375 2501 2095>;
376
David Collinsa67596c2017-03-20 14:53:18 -0700377 qcom,cpr-open-loop-voltage-fuse-adjustment =
David Collins0fd10f02017-05-15 16:19:55 -0700378 /* Speed bin 0 */
379 <100000 100000 100000 100000>,
380 < 0 24000 4000 100000>,
381 < 0 24000 4000 0>,
382 < 0 24000 4000 0>,
383 < 0 24000 4000 0>,
384 < 0 24000 4000 0>,
385 < 0 24000 4000 0>,
386 < 0 24000 4000 0>,
387 /* Speed bin 1 */
388 <100000 100000 100000 100000>,
389 < 0 24000 4000 100000>,
390 < 0 24000 4000 20000>,
391 < 0 24000 4000 20000>,
392 < 0 24000 4000 20000>,
393 < 0 24000 4000 20000>,
394 < 0 24000 4000 20000>,
395 < 0 24000 4000 20000>,
396 /* Speed bin 2 */
397 <100000 100000 100000 100000>,
398 < 0 24000 4000 100000>,
399 < 0 24000 4000 40000>,
400 < 0 24000 4000 40000>,
401 < 0 24000 4000 40000>,
402 < 0 24000 4000 40000>,
403 < 0 24000 4000 40000>,
404 < 0 24000 4000 40000>;
David Collinsa67596c2017-03-20 14:53:18 -0700405
David Collins9a4ab142017-04-05 17:56:45 -0700406 qcom,cpr-closed-loop-voltage-fuse-adjustment =
David Collins0fd10f02017-05-15 16:19:55 -0700407 /* Speed bin 0 */
408 <100000 100000 100000 100000>,
409 < 0 29000 6000 100000>,
410 < 0 29000 6000 0>,
411 < 0 29000 6000 0>,
412 < 0 29000 6000 0>,
413 < 0 29000 6000 0>,
414 < 0 29000 6000 0>,
415 < 0 29000 6000 0>,
416 /* Speed bin 1 */
417 <100000 100000 100000 100000>,
418 < 0 29000 6000 100000>,
419 < 0 29000 6000 20000>,
420 < 0 29000 6000 20000>,
421 < 0 29000 6000 20000>,
422 < 0 29000 6000 20000>,
423 < 0 29000 6000 20000>,
424 < 0 29000 6000 20000>,
425 /* Speed bin 2 */
426 <100000 100000 100000 100000>,
427 < 0 29000 6000 100000>,
428 < 0 29000 6000 40000>,
429 < 0 29000 6000 40000>,
430 < 0 29000 6000 40000>,
431 < 0 29000 6000 40000>,
432 < 0 29000 6000 40000>,
433 < 0 29000 6000 40000>;
David Collins9a4ab142017-04-05 17:56:45 -0700434
David Collins8054e5e2017-02-28 15:24:52 -0800435 qcom,allow-voltage-interpolation;
436 qcom,allow-quotient-interpolation;
437 qcom,cpr-scaled-open-loop-voltage-as-ceiling;
David Collinsafce5df2017-04-06 17:38:40 -0700438
439 qcom,cpr-aging-max-voltage-adjustment = <15000>;
David Collins8babfbe2017-05-19 16:00:44 -0700440 qcom,cpr-aging-ref-corner = <11 11 13>;
David Collinsafce5df2017-04-06 17:38:40 -0700441 qcom,cpr-aging-ro-scaling-factor = <1620>;
442 qcom,allow-aging-voltage-adjustment =
David Collinse367ce62017-05-08 18:15:03 -0700443 /* Speed bin 0 */
444 <0 1 1 1 1 1 1 1>,
445 /* Speed bin 1 */
David Collins8babfbe2017-05-19 16:00:44 -0700446 <0 1 1 1 1 1 1 1>,
447 /* Speed bin 2 */
David Collins4a4a5c62017-04-06 17:42:24 -0700448 <0 1 1 1 1 1 1 1>;
David Collinsafce5df2017-04-06 17:38:40 -0700449 qcom,allow-aging-open-loop-voltage-adjustment =
450 <1>;
David Collins8054e5e2017-02-28 15:24:52 -0800451 };
452 };
453 };
454
455 apc1_cpr: cprh-ctrl@17db0000 {
David Collins768613b2017-07-20 16:14:02 -0700456 compatible = "qcom,cprh-sdm845-v1-kbss-regulator";
David Collins8054e5e2017-02-28 15:24:52 -0800457 reg = <0x17db0000 0x4000>,
458 <0x00784000 0x1000>,
459 <0x17830000 0x1000>;
460 reg-names = "cpr_ctrl", "fuse_base", "saw";
461 clocks = <&clock_gcc GCC_CPUSS_RBCPR_CLK>;
462 clock-names = "core_clk";
463 qcom,cpr-ctrl-name = "apc1";
464 qcom,cpr-controller-id = <1>;
465
466 qcom,cpr-sensor-time = <1000>;
467 qcom,cpr-loop-time = <5000000>;
468 qcom,cpr-idle-cycles = <15>;
469 qcom,cpr-up-down-delay-time = <3000>;
470 qcom,cpr-step-quot-init-min = <9>;
471 qcom,cpr-step-quot-init-max = <14>;
472 qcom,cpr-count-mode = <0>; /* All at once */
David Collins9e688ec2017-04-27 15:00:54 -0700473 qcom,cpr-count-repeat = <20>;
David Collins8054e5e2017-02-28 15:24:52 -0800474 qcom,cpr-down-error-step-limit = <1>;
475 qcom,cpr-up-error-step-limit = <1>;
476 qcom,cpr-corner-switch-delay-time = <1042>;
477 qcom,cpr-voltage-settling-time = <1760>;
Osvaldo Banuelos08408d22017-05-02 13:34:30 -0700478 qcom,cpr-reset-step-quot-loop-en;
David Collins8054e5e2017-02-28 15:24:52 -0800479
480 qcom,apm-threshold-voltage = <800000>;
481 qcom,apm-crossover-voltage = <880000>;
482 qcom,mem-acc-threshold-voltage = <852000>;
483 qcom,mem-acc-crossover-voltage = <852000>;
484
485 qcom,voltage-step = <4000>;
486 qcom,voltage-base = <352000>;
487 qcom,cpr-saw-use-unit-mV;
488
489 qcom,saw-avs-ctrl = <0x101C031>;
David Collinsafce5df2017-04-06 17:38:40 -0700490 qcom,saw-avs-limit = <0x4200420>;
David Collins8054e5e2017-02-28 15:24:52 -0800491
David Collins4f0a4e22017-04-06 15:22:55 -0700492 qcom,cpr-enable;
493 qcom,cpr-hw-closed-loop;
494
David Collins8054e5e2017-02-28 15:24:52 -0800495 qcom,cpr-panic-reg-addr-list =
496 <0x17db3a84 0x17830c18>;
497 qcom,cpr-panic-reg-name-list =
498 "APSS_GOLD_CPRH_STATUS_0", "GOLD_SAW4_PMIC_STS";
499
David Collins8babfbe2017-05-19 16:00:44 -0700500 qcom,cpr-aging-ref-voltage = <1136000>;
David Collinsafce5df2017-04-06 17:38:40 -0700501 vdd-supply = <&pm8998_s12>;
502
David Collins8054e5e2017-02-28 15:24:52 -0800503 thread@0 {
504 qcom,cpr-thread-id = <0>;
505 qcom,cpr-consecutive-up = <0>;
David Collins9e688ec2017-04-27 15:00:54 -0700506 qcom,cpr-consecutive-down = <0>;
David Collins8054e5e2017-02-28 15:24:52 -0800507 qcom,cpr-up-threshold = <2>;
508 qcom,cpr-down-threshold = <2>;
509
510 apc1_perfcl_vreg: regulator {
511 regulator-name = "apc1_perfcl_corner";
512 regulator-min-microvolt = <1>;
David Collins8babfbe2017-05-19 16:00:44 -0700513 regulator-max-microvolt = <27>;
David Collins8054e5e2017-02-28 15:24:52 -0800514
515 qcom,cpr-fuse-corners = <3>;
David Collins8babfbe2017-05-19 16:00:44 -0700516 qcom,cpr-fuse-combos = <24>;
517 qcom,cpr-speed-bins = <3>;
518 qcom,cpr-speed-bin-corners = <22 24 25>;
David Collinse367ce62017-05-08 18:15:03 -0700519 qcom,cpr-corners =
520 /* Speed bin 0 */
521 <22 22 22 22 22 22 22 22>,
522 /* Speed bin 1 */
David Collins8babfbe2017-05-19 16:00:44 -0700523 <24 24 24 24 24 24 24 24>,
524 /* Speed bin 2 */
525 <25 25 25 25 25 25 25 25>;
David Collins8054e5e2017-02-28 15:24:52 -0800526
527 qcom,cpr-corner-fmax-map =
David Collinse367ce62017-05-08 18:15:03 -0700528 /* Speed bin 0 */
529 <10 17 22>,
530 /* Speed bin 1 */
David Collins8babfbe2017-05-19 16:00:44 -0700531 <10 17 24>,
532 /* Speed bin 2 */
533 <10 17 25>;
David Collins8054e5e2017-02-28 15:24:52 -0800534
535 qcom,cpr-voltage-ceiling =
David Collinse367ce62017-05-08 18:15:03 -0700536 /* Speed bin 0 */
David Collins94da0bd2017-04-05 16:50:46 -0700537 <828000 828000 828000 828000 828000
538 828000 828000 828000 828000 828000
539 828000 828000 828000 828000 828000
David Collins8054e5e2017-02-28 15:24:52 -0800540 828000 828000 884000 952000 952000
David Collins8babfbe2017-05-19 16:00:44 -0700541 1136000 1136000>,
David Collinse367ce62017-05-08 18:15:03 -0700542 /* Speed bin 1 */
543 <828000 828000 828000 828000 828000
544 828000 828000 828000 828000 828000
545 828000 828000 828000 828000 828000
546 828000 828000 884000 952000 952000
David Collins8babfbe2017-05-19 16:00:44 -0700547 1136000 1136000 1136000 1136000>,
548 /* Speed bin 2 */
549 <828000 828000 828000 828000 828000
550 828000 828000 828000 828000 828000
551 828000 828000 828000 828000 828000
552 828000 828000 884000 952000 952000
553 1136000 1136000 1136000 1136000
554 1136000>;
David Collins8054e5e2017-02-28 15:24:52 -0800555
556 qcom,cpr-voltage-floor =
David Collinse367ce62017-05-08 18:15:03 -0700557 /* Speed bin 0 */
David Collins8054e5e2017-02-28 15:24:52 -0800558 <568000 568000 568000 568000 568000
559 568000 568000 568000 568000 568000
David Collins24466ac2017-06-20 17:45:14 -0700560 568000 568000 568000 568000 568000
561 568000 568000 568000 568000 568000
562 568000 568000>,
David Collinse367ce62017-05-08 18:15:03 -0700563 /* Speed bin 1 */
564 <568000 568000 568000 568000 568000
565 568000 568000 568000 568000 568000
David Collins24466ac2017-06-20 17:45:14 -0700566 568000 568000 568000 568000 568000
567 568000 568000 568000 568000 568000
568 568000 568000 568000 568000>,
David Collins8babfbe2017-05-19 16:00:44 -0700569 /* Speed bin 2 */
570 <568000 568000 568000 568000 568000
571 568000 568000 568000 568000 568000
David Collins24466ac2017-06-20 17:45:14 -0700572 568000 568000 568000 568000 568000
573 568000 568000 568000 568000 568000
574 568000 568000 568000 568000
575 568000>;
David Collins8054e5e2017-02-28 15:24:52 -0800576
577 qcom,cpr-floor-to-ceiling-max-range =
David Collinse367ce62017-05-08 18:15:03 -0700578 /* Speed bin 0 */
David Collins8054e5e2017-02-28 15:24:52 -0800579 <32000 32000 32000 32000 32000
580 32000 32000 32000 32000 32000
581 32000 32000 32000 32000 32000
582 32000 32000 40000 40000 40000
David Collinse367ce62017-05-08 18:15:03 -0700583 40000 40000>,
584 /* Speed bin 1 */
585 <32000 32000 32000 32000 32000
586 32000 32000 32000 32000 32000
587 32000 32000 32000 32000 32000
588 32000 32000 40000 40000 40000
David Collins8babfbe2017-05-19 16:00:44 -0700589 40000 40000 40000 40000>,
590 /* Speed bin 2 */
591 <32000 32000 32000 32000 32000
592 32000 32000 32000 32000 32000
593 32000 32000 32000 32000 32000
594 32000 32000 40000 40000 40000
595 40000 40000 40000 40000 40000>;
David Collins8054e5e2017-02-28 15:24:52 -0800596
597 qcom,corner-frequencies =
David Collinse367ce62017-05-08 18:15:03 -0700598 /* Speed bin 0 */
David Collins8054e5e2017-02-28 15:24:52 -0800599 <300000000 422400000 499200000
600 576000000 652800000 729600000
601 806400000 883200000 960000000
602 1036800000 1113600000 1190400000
603 1267200000 1344000000 1420800000
604 1497600000 1574400000 1651200000
605 1728000000 1804800000 1881600000
David Collinse367ce62017-05-08 18:15:03 -0700606 1958400000>,
607 /* Speed bin 1 */
608 <300000000 422400000 499200000
609 576000000 652800000 729600000
610 806400000 883200000 960000000
611 1036800000 1113600000 1190400000
612 1267200000 1344000000 1420800000
613 1497600000 1574400000 1651200000
614 1728000000 1804800000 1881600000
David Collins8babfbe2017-05-19 16:00:44 -0700615 1958400000 2035200000 2092800000>,
616 /* Speed bin 2 */
617 <300000000 422400000 499200000
618 576000000 652800000 729600000
619 806400000 883200000 960000000
620 1036800000 1113600000 1190400000
621 1267200000 1344000000 1420800000
622 1497600000 1574400000 1651200000
623 1728000000 1804800000 1881600000
624 1958400000 2035200000 2112000000
625 2208000000>;
David Collins8054e5e2017-02-28 15:24:52 -0800626
David Collins78a051b2017-04-05 17:52:01 -0700627 qcom,cpr-ro-scaling-factor =
628 <2857 3056 2828 2952 2699 2796 2447
629 2631 2630 2579 2244 3343 3287 3137
630 3164 2656>,
631 <2857 3056 2828 2952 2699 2796 2447
632 2631 2630 2579 2244 3343 3287 3137
633 3164 2656>,
634 <2086 2208 2273 2408 2203 2327 2213
635 2340 1755 2039 2049 2474 2437 2618
636 2003 1675>;
637
David Collinsa67596c2017-03-20 14:53:18 -0700638 qcom,cpr-open-loop-voltage-fuse-adjustment =
David Collinsb67d7362017-05-09 16:25:23 -0700639 /* Speed bin 0 */
640 <100000 100000 100000>,
641 < 0 0 0>,
642 < 0 0 0>,
643 < 0 0 0>,
644 < 0 0 0>,
645 < 0 0 0>,
646 < 0 0 0>,
647 < 0 0 0>,
648 /* Speed bin 1 */
649 <100000 100000 100000>,
650 < 0 0 0>,
651 < 0 0 0>,
652 < 0 0 0>,
653 < 0 0 0>,
654 < 0 0 0>,
655 < 0 0 0>,
David Collins8babfbe2017-05-19 16:00:44 -0700656 < 0 0 0>,
657 /* Speed bin 2 */
658 <100000 100000 100000>,
659 < 0 0 0>,
660 < 0 0 0>,
661 < 0 0 0>,
662 < 0 0 0>,
663 < 0 0 0>,
664 < 0 0 0>,
David Collinsb67d7362017-05-09 16:25:23 -0700665 < 0 0 0>;
David Collinsa67596c2017-03-20 14:53:18 -0700666
David Collins9a4ab142017-04-05 17:56:45 -0700667 qcom,cpr-closed-loop-voltage-fuse-adjustment =
David Collinsb67d7362017-05-09 16:25:23 -0700668 /* Speed bin 0 */
669 <100000 100000 100000>,
670 < 0 0 0>,
671 < 0 0 0>,
672 < 0 0 0>,
673 < 0 0 0>,
674 < 0 0 0>,
675 < 0 0 0>,
676 < 0 0 0>,
677 /* Speed bin 1 */
678 <100000 100000 100000>,
679 < 0 0 0>,
680 < 0 0 0>,
681 < 0 0 0>,
682 < 0 0 0>,
683 < 0 0 0>,
684 < 0 0 0>,
David Collins8babfbe2017-05-19 16:00:44 -0700685 < 0 0 0>,
686 /* Speed bin 2 */
687 <100000 100000 100000>,
688 < 0 0 0>,
689 < 0 0 0>,
690 < 0 0 0>,
691 < 0 0 0>,
692 < 0 0 0>,
693 < 0 0 0>,
David Collinsb67d7362017-05-09 16:25:23 -0700694 < 0 0 0>;
David Collins9a4ab142017-04-05 17:56:45 -0700695
David Collins8054e5e2017-02-28 15:24:52 -0800696 qcom,allow-voltage-interpolation;
697 qcom,allow-quotient-interpolation;
698 qcom,cpr-scaled-open-loop-voltage-as-ceiling;
David Collinsafce5df2017-04-06 17:38:40 -0700699
700 qcom,cpr-aging-max-voltage-adjustment = <15000>;
David Collins8babfbe2017-05-19 16:00:44 -0700701 qcom,cpr-aging-ref-corner = <22 24 25>;
David Collinsafce5df2017-04-06 17:38:40 -0700702 qcom,cpr-aging-ro-scaling-factor = <1700>;
703 qcom,allow-aging-voltage-adjustment =
David Collinse367ce62017-05-08 18:15:03 -0700704 /* Speed bin 0 */
705 <0 1 1 1 1 1 1 1>,
706 /* Speed bin 1 */
David Collins8babfbe2017-05-19 16:00:44 -0700707 <0 1 1 1 1 1 1 1>,
708 /* Speed bin 2 */
David Collins4a4a5c62017-04-06 17:42:24 -0700709 <0 1 1 1 1 1 1 1>;
David Collinsafce5df2017-04-06 17:38:40 -0700710 qcom,allow-aging-open-loop-voltage-adjustment =
711 <1>;
David Collins8054e5e2017-02-28 15:24:52 -0800712 };
713 };
714 };
715
David Collins88af9142016-12-09 17:12:52 -0800716 /* RPMh regulators: */
717
718 /* PM8998 S1 = VDD_EBI supply */
719 rpmh-regulator-ebilvl {
720 compatible = "qcom,rpmh-arc-regulator";
721 mboxes = <&apps_rsc 0>;
722 qcom,resource-name = "ebi.lvl";
723 pm8998_s1_level: regulator-s1 {
724 regulator-name = "pm8998_s1_level";
725 qcom,set = <RPMH_REGULATOR_SET_ALL>;
726 regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
727 regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
728 };
Ram Chandrasekar46ab2982017-06-21 12:36:44 -0600729
730 ebi_cdev: regulator-cdev {
731 compatible = "qcom,rpmh-reg-cdev";
732 mboxes = <&qmp_aop 0>;
733 qcom,reg-resource-name = "ebi";
734 #cooling-cells = <2>;
735 };
David Collins88af9142016-12-09 17:12:52 -0800736 };
737
738 rpmh-regulator-smpa2 {
739 compatible = "qcom,rpmh-vrm-regulator";
740 mboxes = <&apps_rsc 0>;
741 qcom,resource-name = "smpa2";
742 pm8998_s2: regulator-s2 {
743 regulator-name = "pm8998_s2";
744 qcom,set = <RPMH_REGULATOR_SET_ALL>;
745 regulator-min-microvolt = <1100000>;
746 regulator-max-microvolt = <1100000>;
747 qcom,init-voltage = <1100000>;
748 };
749 };
750
751 rpmh-regulator-smpa3 {
752 compatible = "qcom,rpmh-vrm-regulator";
753 mboxes = <&apps_rsc 0>;
754 qcom,resource-name = "smpa3";
755 pm8998_s3: regulator-s3 {
756 regulator-name = "pm8998_s3";
757 qcom,set = <RPMH_REGULATOR_SET_ALL>;
758 regulator-min-microvolt = <1352000>;
759 regulator-max-microvolt = <1352000>;
760 qcom,init-voltage = <1352000>;
761 };
762 };
763
764 rpmh-regulator-smpa5 {
765 compatible = "qcom,rpmh-vrm-regulator";
766 mboxes = <&apps_rsc 0>;
767 qcom,resource-name = "smpa5";
768 pm8998_s5: regulator-s5 {
769 regulator-name = "pm8998_s5";
770 qcom,set = <RPMH_REGULATOR_SET_ALL>;
771 regulator-min-microvolt = <1904000>;
772 regulator-max-microvolt = <2040000>;
773 qcom,init-voltage = <1904000>;
774 };
775 };
776
777 /* PM8998 S6 = VDD_MX supply */
778 rpmh-regulator-mxlvl {
779 compatible = "qcom,rpmh-arc-regulator";
780 mboxes = <&apps_rsc 0>;
781 qcom,resource-name = "mx.lvl";
782 pm8998_s6_level: regulator-s6-level {
783 regulator-name = "pm8998_s6_level";
784 qcom,set = <RPMH_REGULATOR_SET_ALL>;
785 regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
786 regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
787 };
788
789 pm8998_s6_level_ao: regulator-s6-level-ao {
790 regulator-name = "pm8998_s6_level_ao";
791 qcom,set = <RPMH_REGULATOR_SET_ACTIVE>;
792 regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
793 regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
794 };
Ram Chandrasekar6e52da62017-08-03 10:28:22 -0600795
796 mx_cdev: mx-cdev-lvl {
797 compatible = "qcom,regulator-cooling-device";
798 regulator-cdev-supply = <&pm8998_s6_level>;
799 regulator-levels = <RPMH_REGULATOR_LEVEL_NOM
800 RPMH_REGULATOR_LEVEL_OFF>;
801 #cooling-cells = <2>;
802 };
David Collins88af9142016-12-09 17:12:52 -0800803 };
804
805 rpmh-regulator-smpa7 {
806 compatible = "qcom,rpmh-vrm-regulator";
807 mboxes = <&apps_rsc 0>;
808 qcom,resource-name = "smpa7";
809 pm8998_s7: regulator-s7 {
810 regulator-name = "pm8998_s7";
811 qcom,set = <RPMH_REGULATOR_SET_ALL>;
812 regulator-min-microvolt = <900000>;
813 regulator-max-microvolt = <1028000>;
814 qcom,init-voltage = <900000>;
815 };
816 };
817
818 /* PM8998 S9 + S8 = VDD_CX supply */
819 rpmh-regulator-cxlvl {
820 compatible = "qcom,rpmh-arc-regulator";
821 mboxes = <&apps_rsc 0>;
822 qcom,resource-name = "cx.lvl";
David Collinsafb83a32017-02-07 15:46:54 -0800823 pm8998_s9_level-parent-supply = <&pm8998_s6_level>;
824 pm8998_s9_level_ao-parent-supply = <&pm8998_s6_level_ao>;
David Collins88af9142016-12-09 17:12:52 -0800825 pm8998_s9_level: regulator-s9-level {
826 regulator-name = "pm8998_s9_level";
827 qcom,set = <RPMH_REGULATOR_SET_ALL>;
828 regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
829 regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
David Collinsafb83a32017-02-07 15:46:54 -0800830 qcom,min-dropout-voltage-level = <(-1)>;
David Collins88af9142016-12-09 17:12:52 -0800831 };
832
833 pm8998_s9_level_ao: regulator-s9-level-ao {
834 regulator-name = "pm8998_s9_level_ao";
835 qcom,set = <RPMH_REGULATOR_SET_ACTIVE>;
836 regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
837 regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
David Collinsafb83a32017-02-07 15:46:54 -0800838 qcom,min-dropout-voltage-level = <(-1)>;
David Collins88af9142016-12-09 17:12:52 -0800839 };
Ram Chandrasekar46ab2982017-06-21 12:36:44 -0600840
841 cx_cdev: regulator-cdev {
842 compatible = "qcom,rpmh-reg-cdev";
843 mboxes = <&qmp_aop 0>;
844 qcom,reg-resource-name = "cx";
845 #cooling-cells = <2>;
846 };
David Collins88af9142016-12-09 17:12:52 -0800847 };
848
849 rpmh-regulator-ldoa1 {
850 compatible = "qcom,rpmh-vrm-regulator";
851 mboxes = <&apps_rsc 0>;
852 qcom,resource-name = "ldoa1";
David Collins44405432017-03-21 13:16:27 -0700853 qcom,supported-modes =
854 <RPMH_REGULATOR_MODE_LDO_LPM
855 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -0700856 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -0800857 pm8998_l1: regulator-l1 {
858 regulator-name = "pm8998_l1";
859 qcom,set = <RPMH_REGULATOR_SET_ALL>;
860 regulator-min-microvolt = <880000>;
861 regulator-max-microvolt = <880000>;
862 qcom,init-voltage = <880000>;
David Collins44405432017-03-21 13:16:27 -0700863 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -0800864 };
David Collins5fdd8b262017-07-19 14:55:22 -0700865
866 pm8998_l1_ao: regulator-l1-ao {
867 regulator-name = "pm8998_l1_ao";
868 qcom,set = <RPMH_REGULATOR_SET_ACTIVE>;
869 regulator-min-microvolt = <880000>;
870 regulator-max-microvolt = <880000>;
871 qcom,init-voltage = <880000>;
872 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
873 };
874
875 regulator-l1-so {
876 regulator-name = "pm8998_l1_so";
877 qcom,set = <RPMH_REGULATOR_SET_SLEEP>;
878 regulator-min-microvolt = <880000>;
879 regulator-max-microvolt = <880000>;
880 qcom,init-voltage = <880000>;
881 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
882 qcom,init-enable = <0>;
883 };
David Collins88af9142016-12-09 17:12:52 -0800884 };
885
886 rpmh-regulator-ldoa2 {
887 compatible = "qcom,rpmh-vrm-regulator";
888 mboxes = <&apps_rsc 0>;
889 qcom,resource-name = "ldoa2";
David Collins44405432017-03-21 13:16:27 -0700890 qcom,supported-modes =
891 <RPMH_REGULATOR_MODE_LDO_LPM
892 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -0700893 qcom,mode-threshold-currents = <0 30000>;
David Collins88af9142016-12-09 17:12:52 -0800894 pm8998_l2: regulator-l2 {
895 regulator-name = "pm8998_l2";
896 qcom,set = <RPMH_REGULATOR_SET_ALL>;
897 regulator-min-microvolt = <1200000>;
898 regulator-max-microvolt = <1200000>;
899 qcom,init-voltage = <1200000>;
David Collins44405432017-03-21 13:16:27 -0700900 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
Subhash Jadavani413af2c2017-04-11 11:45:54 -0700901 regulator-always-on;
David Collins88af9142016-12-09 17:12:52 -0800902 };
903 };
904
905 rpmh-regulator-ldoa3 {
906 compatible = "qcom,rpmh-vrm-regulator";
907 mboxes = <&apps_rsc 0>;
908 qcom,resource-name = "ldoa3";
David Collins44405432017-03-21 13:16:27 -0700909 qcom,supported-modes =
910 <RPMH_REGULATOR_MODE_LDO_LPM
911 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -0700912 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -0800913 pm8998_l3: regulator-l3 {
914 regulator-name = "pm8998_l3";
915 qcom,set = <RPMH_REGULATOR_SET_ALL>;
916 regulator-min-microvolt = <1000000>;
917 regulator-max-microvolt = <1000000>;
918 qcom,init-voltage = <1000000>;
David Collins44405432017-03-21 13:16:27 -0700919 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -0800920 };
921 };
922
923 /* PM8998 L4 = VDD_SSC_MX supply */
924 rpmh-regulator-lmxlvl {
925 compatible = "qcom,rpmh-arc-regulator";
926 mboxes = <&apps_rsc 0>;
927 qcom,resource-name = "lmx.lvl";
928 pm8998_l4_level: regulator-l4-level {
929 regulator-name = "pm8998_l4_level";
930 qcom,set = <RPMH_REGULATOR_SET_ALL>;
931 regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
932 regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
933 };
934 };
935
936 rpmh-regulator-ldoa5 {
937 compatible = "qcom,rpmh-vrm-regulator";
938 mboxes = <&apps_rsc 0>;
939 qcom,resource-name = "ldoa5";
David Collins44405432017-03-21 13:16:27 -0700940 qcom,supported-modes =
941 <RPMH_REGULATOR_MODE_LDO_LPM
942 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -0700943 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -0800944 pm8998_l5: regulator-l5 {
945 regulator-name = "pm8998_l5";
946 qcom,set = <RPMH_REGULATOR_SET_ALL>;
947 regulator-min-microvolt = <800000>;
948 regulator-max-microvolt = <800000>;
949 qcom,init-voltage = <800000>;
David Collins44405432017-03-21 13:16:27 -0700950 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -0800951 };
952 };
953
954 rpmh-regulator-ldoa6 {
955 compatible = "qcom,rpmh-vrm-regulator";
956 mboxes = <&apps_rsc 0>;
957 qcom,resource-name = "ldoa6";
David Collins44405432017-03-21 13:16:27 -0700958 qcom,supported-modes =
959 <RPMH_REGULATOR_MODE_LDO_LPM
960 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -0700961 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -0800962 pm8998_l6: regulator-l6 {
963 regulator-name = "pm8998_l6";
964 qcom,set = <RPMH_REGULATOR_SET_ALL>;
965 regulator-min-microvolt = <1856000>;
966 regulator-max-microvolt = <1856000>;
967 qcom,init-voltage = <1856000>;
David Collins44405432017-03-21 13:16:27 -0700968 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -0800969 };
970 };
971
972 rpmh-regulator-ldoa7 {
973 compatible = "qcom,rpmh-vrm-regulator";
974 mboxes = <&apps_rsc 0>;
975 qcom,resource-name = "ldoa7";
David Collins44405432017-03-21 13:16:27 -0700976 qcom,supported-modes =
977 <RPMH_REGULATOR_MODE_LDO_LPM
978 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -0700979 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -0800980 pm8998_l7: regulator-l7 {
981 regulator-name = "pm8998_l7";
982 qcom,set = <RPMH_REGULATOR_SET_ALL>;
983 regulator-min-microvolt = <1800000>;
984 regulator-max-microvolt = <1800000>;
985 qcom,init-voltage = <1800000>;
David Collins44405432017-03-21 13:16:27 -0700986 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -0800987 };
988 };
989
990 rpmh-regulator-ldoa8 {
991 compatible = "qcom,rpmh-vrm-regulator";
992 mboxes = <&apps_rsc 0>;
993 qcom,resource-name = "ldoa8";
David Collins44405432017-03-21 13:16:27 -0700994 qcom,supported-modes =
995 <RPMH_REGULATOR_MODE_LDO_LPM
996 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -0700997 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -0800998 pm8998_l8: regulator-l8 {
999 regulator-name = "pm8998_l8";
1000 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1001 regulator-min-microvolt = <1200000>;
David Collins93f3b822017-04-10 14:08:30 -07001002 regulator-max-microvolt = <1248000>;
David Collins88af9142016-12-09 17:12:52 -08001003 qcom,init-voltage = <1200000>;
David Collins44405432017-03-21 13:16:27 -07001004 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001005 };
1006 };
1007
1008 rpmh-regulator-ldoa9 {
1009 compatible = "qcom,rpmh-vrm-regulator";
1010 mboxes = <&apps_rsc 0>;
1011 qcom,resource-name = "ldoa9";
David Collins44405432017-03-21 13:16:27 -07001012 qcom,supported-modes =
1013 <RPMH_REGULATOR_MODE_LDO_LPM
1014 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001015 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001016 pm8998_l9: regulator-l9 {
1017 regulator-name = "pm8998_l9";
1018 qcom,set = <RPMH_REGULATOR_SET_ALL>;
David Collins93f3b822017-04-10 14:08:30 -07001019 regulator-min-microvolt = <1704000>;
1020 regulator-max-microvolt = <2928000>;
1021 qcom,init-voltage = <1704000>;
David Collins44405432017-03-21 13:16:27 -07001022 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001023 };
1024 };
1025
1026 rpmh-regulator-ldoa10 {
1027 compatible = "qcom,rpmh-vrm-regulator";
1028 mboxes = <&apps_rsc 0>;
1029 qcom,resource-name = "ldoa10";
David Collins44405432017-03-21 13:16:27 -07001030 qcom,supported-modes =
1031 <RPMH_REGULATOR_MODE_LDO_LPM
1032 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001033 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001034 pm8998_l10: regulator-l10 {
1035 regulator-name = "pm8998_l10";
1036 qcom,set = <RPMH_REGULATOR_SET_ALL>;
David Collins93f3b822017-04-10 14:08:30 -07001037 regulator-min-microvolt = <1704000>;
1038 regulator-max-microvolt = <2928000>;
1039 qcom,init-voltage = <1704000>;
David Collins44405432017-03-21 13:16:27 -07001040 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001041 };
1042 };
1043
1044 rpmh-regulator-ldoa11 {
1045 compatible = "qcom,rpmh-vrm-regulator";
1046 mboxes = <&apps_rsc 0>;
1047 qcom,resource-name = "ldoa11";
David Collins44405432017-03-21 13:16:27 -07001048 qcom,supported-modes =
1049 <RPMH_REGULATOR_MODE_LDO_LPM
1050 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001051 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001052 pm8998_l11: regulator-l11 {
1053 regulator-name = "pm8998_l11";
1054 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1055 regulator-min-microvolt = <1000000>;
David Collins93f3b822017-04-10 14:08:30 -07001056 regulator-max-microvolt = <1048000>;
David Collins88af9142016-12-09 17:12:52 -08001057 qcom,init-voltage = <1000000>;
David Collins44405432017-03-21 13:16:27 -07001058 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001059 };
1060 };
1061
1062 rpmh-regulator-ldoa12 {
1063 compatible = "qcom,rpmh-vrm-regulator";
1064 mboxes = <&apps_rsc 0>;
1065 qcom,resource-name = "ldoa12";
David Collins44405432017-03-21 13:16:27 -07001066 qcom,supported-modes =
1067 <RPMH_REGULATOR_MODE_LDO_LPM
1068 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001069 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001070 pm8998_l12: regulator-l12 {
1071 regulator-name = "pm8998_l12";
1072 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1073 regulator-min-microvolt = <1800000>;
1074 regulator-max-microvolt = <1800000>;
1075 qcom,init-voltage = <1800000>;
David Collins44405432017-03-21 13:16:27 -07001076 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001077 };
1078 };
1079
1080 rpmh-regulator-ldoa13 {
1081 compatible = "qcom,rpmh-vrm-regulator";
1082 mboxes = <&apps_rsc 0>;
1083 qcom,resource-name = "ldoa13";
David Collins44405432017-03-21 13:16:27 -07001084 qcom,supported-modes =
1085 <RPMH_REGULATOR_MODE_LDO_LPM
1086 RPMH_REGULATOR_MODE_LDO_HPM>;
1087 qcom,mode-threshold-currents = <0 10000>;
David Collins88af9142016-12-09 17:12:52 -08001088 pm8998_l13: regulator-l13 {
1089 regulator-name = "pm8998_l13";
1090 qcom,set = <RPMH_REGULATOR_SET_ALL>;
David Collins93f3b822017-04-10 14:08:30 -07001091 regulator-min-microvolt = <1800000>;
David Collins88af9142016-12-09 17:12:52 -08001092 regulator-max-microvolt = <2960000>;
David Collins93f3b822017-04-10 14:08:30 -07001093 qcom,init-voltage = <1800000>;
David Collins44405432017-03-21 13:16:27 -07001094 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001095 };
1096 };
1097
1098 rpmh-regulator-ldoa14 {
1099 compatible = "qcom,rpmh-vrm-regulator";
1100 mboxes = <&apps_rsc 0>;
1101 qcom,resource-name = "ldoa14";
David Collins44405432017-03-21 13:16:27 -07001102 qcom,supported-modes =
1103 <RPMH_REGULATOR_MODE_LDO_LPM
1104 RPMH_REGULATOR_MODE_LDO_HPM>;
1105 qcom,mode-threshold-currents = <0 10000>;
David Collins88af9142016-12-09 17:12:52 -08001106 pm8998_l14: regulator-l14 {
1107 regulator-name = "pm8998_l14";
1108 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1109 regulator-min-microvolt = <1800000>;
David Collins93f3b822017-04-10 14:08:30 -07001110 regulator-max-microvolt = <1880000>;
David Collins88af9142016-12-09 17:12:52 -08001111 qcom,init-voltage = <1800000>;
David Collins44405432017-03-21 13:16:27 -07001112 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001113 };
1114 };
1115
1116 rpmh-regulator-ldoa15 {
1117 compatible = "qcom,rpmh-vrm-regulator";
1118 mboxes = <&apps_rsc 0>;
1119 qcom,resource-name = "ldoa15";
David Collins44405432017-03-21 13:16:27 -07001120 qcom,supported-modes =
1121 <RPMH_REGULATOR_MODE_LDO_LPM
1122 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001123 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001124 pm8998_l15: regulator-l15 {
1125 regulator-name = "pm8998_l15";
1126 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1127 regulator-min-microvolt = <1800000>;
1128 regulator-max-microvolt = <1800000>;
1129 qcom,init-voltage = <1800000>;
David Collins44405432017-03-21 13:16:27 -07001130 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001131 };
1132 };
1133
1134 rpmh-regulator-ldoa16 {
1135 compatible = "qcom,rpmh-vrm-regulator";
1136 mboxes = <&apps_rsc 0>;
1137 qcom,resource-name = "ldoa16";
David Collins44405432017-03-21 13:16:27 -07001138 qcom,supported-modes =
1139 <RPMH_REGULATOR_MODE_LDO_LPM
1140 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001141 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001142 pm8998_l16: regulator-l16 {
1143 regulator-name = "pm8998_l16";
1144 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1145 regulator-min-microvolt = <2704000>;
1146 regulator-max-microvolt = <2704000>;
1147 qcom,init-voltage = <2704000>;
David Collins44405432017-03-21 13:16:27 -07001148 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001149 };
1150 };
1151
1152 rpmh-regulator-ldoa17 {
1153 compatible = "qcom,rpmh-vrm-regulator";
1154 mboxes = <&apps_rsc 0>;
1155 qcom,resource-name = "ldoa17";
David Collins44405432017-03-21 13:16:27 -07001156 qcom,supported-modes =
1157 <RPMH_REGULATOR_MODE_LDO_LPM
1158 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001159 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001160 pm8998_l17: regulator-l17 {
1161 regulator-name = "pm8998_l17";
1162 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1163 regulator-min-microvolt = <1304000>;
1164 regulator-max-microvolt = <1304000>;
1165 qcom,init-voltage = <1304000>;
David Collins44405432017-03-21 13:16:27 -07001166 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001167 };
1168 };
1169
1170 rpmh-regulator-ldoa18 {
1171 compatible = "qcom,rpmh-vrm-regulator";
1172 mboxes = <&apps_rsc 0>;
1173 qcom,resource-name = "ldoa18";
David Collins44405432017-03-21 13:16:27 -07001174 qcom,supported-modes =
1175 <RPMH_REGULATOR_MODE_LDO_LPM
1176 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001177 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001178 pm8998_l18: regulator-l18 {
1179 regulator-name = "pm8998_l18";
1180 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1181 regulator-min-microvolt = <2704000>;
David Collins93f3b822017-04-10 14:08:30 -07001182 regulator-max-microvolt = <2960000>;
David Collins88af9142016-12-09 17:12:52 -08001183 qcom,init-voltage = <2704000>;
David Collins44405432017-03-21 13:16:27 -07001184 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001185 };
1186 };
1187
1188 rpmh-regulator-ldoa19 {
1189 compatible = "qcom,rpmh-vrm-regulator";
1190 mboxes = <&apps_rsc 0>;
1191 qcom,resource-name = "ldoa19";
David Collins44405432017-03-21 13:16:27 -07001192 qcom,supported-modes =
1193 <RPMH_REGULATOR_MODE_LDO_LPM
1194 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001195 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001196 pm8998_l19: regulator-l19 {
1197 regulator-name = "pm8998_l19";
1198 qcom,set = <RPMH_REGULATOR_SET_ALL>;
David Collins93f3b822017-04-10 14:08:30 -07001199 regulator-min-microvolt = <2856000>;
1200 regulator-max-microvolt = <3104000>;
1201 qcom,init-voltage = <2856000>;
David Collins44405432017-03-21 13:16:27 -07001202 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001203 };
1204 };
1205
1206 rpmh-regulator-ldoa20 {
1207 compatible = "qcom,rpmh-vrm-regulator";
1208 mboxes = <&apps_rsc 0>;
1209 qcom,resource-name = "ldoa20";
David Collins44405432017-03-21 13:16:27 -07001210 qcom,supported-modes =
1211 <RPMH_REGULATOR_MODE_LDO_LPM
1212 RPMH_REGULATOR_MODE_LDO_HPM>;
1213 qcom,mode-threshold-currents = <0 10000>;
David Collins88af9142016-12-09 17:12:52 -08001214 pm8998_l20: regulator-l20 {
1215 regulator-name = "pm8998_l20";
1216 qcom,set = <RPMH_REGULATOR_SET_ALL>;
David Collins93f3b822017-04-10 14:08:30 -07001217 regulator-min-microvolt = <2704000>;
David Collins88af9142016-12-09 17:12:52 -08001218 regulator-max-microvolt = <2960000>;
David Collins93f3b822017-04-10 14:08:30 -07001219 qcom,init-voltage = <2704000>;
David Collins44405432017-03-21 13:16:27 -07001220 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001221 };
1222 };
1223
1224 rpmh-regulator-ldoa21 {
1225 compatible = "qcom,rpmh-vrm-regulator";
1226 mboxes = <&apps_rsc 0>;
1227 qcom,resource-name = "ldoa21";
David Collins44405432017-03-21 13:16:27 -07001228 qcom,supported-modes =
1229 <RPMH_REGULATOR_MODE_LDO_LPM
1230 RPMH_REGULATOR_MODE_LDO_HPM>;
1231 qcom,mode-threshold-currents = <0 10000>;
David Collins88af9142016-12-09 17:12:52 -08001232 pm8998_l21: regulator-l21 {
1233 regulator-name = "pm8998_l21";
1234 qcom,set = <RPMH_REGULATOR_SET_ALL>;
David Collins93f3b822017-04-10 14:08:30 -07001235 regulator-min-microvolt = <2704000>;
David Collins88af9142016-12-09 17:12:52 -08001236 regulator-max-microvolt = <2960000>;
David Collins93f3b822017-04-10 14:08:30 -07001237 qcom,init-voltage = <2704000>;
David Collins44405432017-03-21 13:16:27 -07001238 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001239 };
1240 };
1241
1242 rpmh-regulator-ldoa22 {
1243 compatible = "qcom,rpmh-vrm-regulator";
1244 mboxes = <&apps_rsc 0>;
1245 qcom,resource-name = "ldoa22";
David Collins44405432017-03-21 13:16:27 -07001246 qcom,supported-modes =
1247 <RPMH_REGULATOR_MODE_LDO_LPM
1248 RPMH_REGULATOR_MODE_LDO_HPM>;
1249 qcom,mode-threshold-currents = <0 10000>;
David Collins88af9142016-12-09 17:12:52 -08001250 pm8998_l22: regulator-l22 {
1251 regulator-name = "pm8998_l22";
1252 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1253 regulator-min-microvolt = <2864000>;
David Collins93f3b822017-04-10 14:08:30 -07001254 regulator-max-microvolt = <3312000>;
David Collins88af9142016-12-09 17:12:52 -08001255 qcom,init-voltage = <2864000>;
David Collins44405432017-03-21 13:16:27 -07001256 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001257 };
1258 };
1259
1260 rpmh-regulator-ldoa23 {
1261 compatible = "qcom,rpmh-vrm-regulator";
1262 mboxes = <&apps_rsc 0>;
1263 qcom,resource-name = "ldoa23";
David Collins44405432017-03-21 13:16:27 -07001264 qcom,supported-modes =
1265 <RPMH_REGULATOR_MODE_LDO_LPM
1266 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001267 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001268 pm8998_l23: regulator-l23 {
1269 regulator-name = "pm8998_l23";
1270 qcom,set = <RPMH_REGULATOR_SET_ALL>;
David Collins93f3b822017-04-10 14:08:30 -07001271 regulator-min-microvolt = <3000000>;
David Collins88af9142016-12-09 17:12:52 -08001272 regulator-max-microvolt = <3312000>;
David Collins93f3b822017-04-10 14:08:30 -07001273 qcom,init-voltage = <3000000>;
David Collins44405432017-03-21 13:16:27 -07001274 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001275 };
1276 };
1277
1278 rpmh-regulator-ldoa24 {
1279 compatible = "qcom,rpmh-vrm-regulator";
1280 mboxes = <&apps_rsc 0>;
1281 qcom,resource-name = "ldoa24";
David Collins44405432017-03-21 13:16:27 -07001282 qcom,supported-modes =
1283 <RPMH_REGULATOR_MODE_LDO_LPM
1284 RPMH_REGULATOR_MODE_LDO_HPM>;
1285 qcom,mode-threshold-currents = <0 10000>;
Jack Phamcc052ff2017-03-24 14:50:14 -07001286 pm8998_l24-parent-supply = <&pm8998_l12>;
David Collins88af9142016-12-09 17:12:52 -08001287 pm8998_l24: regulator-l24 {
1288 regulator-name = "pm8998_l24";
1289 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1290 regulator-min-microvolt = <3088000>;
1291 regulator-max-microvolt = <3088000>;
1292 qcom,init-voltage = <3088000>;
David Collins44405432017-03-21 13:16:27 -07001293 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001294 };
1295 };
1296
1297 rpmh-regulator-ldoa25 {
1298 compatible = "qcom,rpmh-vrm-regulator";
1299 mboxes = <&apps_rsc 0>;
1300 qcom,resource-name = "ldoa25";
David Collins44405432017-03-21 13:16:27 -07001301 qcom,supported-modes =
1302 <RPMH_REGULATOR_MODE_LDO_LPM
1303 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001304 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001305 pm8998_l25: regulator-l25 {
1306 regulator-name = "pm8998_l25";
1307 qcom,set = <RPMH_REGULATOR_SET_ALL>;
David Collins93f3b822017-04-10 14:08:30 -07001308 regulator-min-microvolt = <3000000>;
1309 regulator-max-microvolt = <3312000>;
1310 qcom,init-voltage = <3000000>;
David Collins44405432017-03-21 13:16:27 -07001311 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001312 };
1313 };
1314
1315 rpmh-regulator-ldoa26 {
1316 compatible = "qcom,rpmh-vrm-regulator";
1317 mboxes = <&apps_rsc 0>;
1318 qcom,resource-name = "ldoa26";
David Collins44405432017-03-21 13:16:27 -07001319 qcom,supported-modes =
1320 <RPMH_REGULATOR_MODE_LDO_LPM
1321 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001322 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001323 pm8998_l26: regulator-l26 {
1324 regulator-name = "pm8998_l26";
1325 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1326 regulator-min-microvolt = <1200000>;
1327 regulator-max-microvolt = <1200000>;
1328 qcom,init-voltage = <1200000>;
David Collins44405432017-03-21 13:16:27 -07001329 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001330 };
1331 };
1332
1333 /* PM8998 L27 = VDD_SSC_CX supply */
1334 rpmh-regulator-lcxlvl {
1335 compatible = "qcom,rpmh-arc-regulator";
1336 mboxes = <&apps_rsc 0>;
1337 qcom,resource-name = "lcx.lvl";
1338 pm8998_l27_level: regulator-l27-level {
1339 regulator-name = "pm8998_l27_level";
1340 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1341 regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
1342 regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
1343 };
1344 };
1345
1346 rpmh-regulator-ldoa28 {
1347 compatible = "qcom,rpmh-vrm-regulator";
1348 mboxes = <&apps_rsc 0>;
1349 qcom,resource-name = "ldoa28";
David Collins44405432017-03-21 13:16:27 -07001350 qcom,supported-modes =
1351 <RPMH_REGULATOR_MODE_LDO_LPM
1352 RPMH_REGULATOR_MODE_LDO_HPM>;
David Collins866cdb92017-04-05 13:39:31 -07001353 qcom,mode-threshold-currents = <0 1>;
David Collins88af9142016-12-09 17:12:52 -08001354 pm8998_l28: regulator-l28 {
1355 regulator-name = "pm8998_l28";
David Collins88af9142016-12-09 17:12:52 -08001356 qcom,set = <RPMH_REGULATOR_SET_ALL>;
David Collins93f3b822017-04-10 14:08:30 -07001357 regulator-min-microvolt = <2856000>;
David Collins88af9142016-12-09 17:12:52 -08001358 regulator-max-microvolt = <3008000>;
David Collins93f3b822017-04-10 14:08:30 -07001359 qcom,init-voltage = <2856000>;
David Collins44405432017-03-21 13:16:27 -07001360 qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>;
David Collins88af9142016-12-09 17:12:52 -08001361 };
1362 };
1363
1364 rpmh-regulator-vsa1 {
1365 compatible = "qcom,rpmh-vrm-regulator";
1366 mboxes = <&apps_rsc 0>;
1367 qcom,resource-name = "vsa1";
1368 pm8998_lvs1: regulator-lvs1 {
1369 regulator-name = "pm8998_lvs1";
1370 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1371 regulator-min-microvolt = <1800000>;
1372 regulator-max-microvolt = <1800000>;
1373 };
1374 };
1375
1376 rpmh-regulator-vsa2 {
1377 compatible = "qcom,rpmh-vrm-regulator";
1378 mboxes = <&apps_rsc 0>;
1379 qcom,resource-name = "vsa2";
1380 pm8998_lvs2: regulator-lvs2 {
1381 regulator-name = "pm8998_lvs2";
1382 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1383 regulator-min-microvolt = <1800000>;
1384 regulator-max-microvolt = <1800000>;
1385 };
1386 };
1387
1388 rpmh-regulator-bobb1 {
1389 compatible = "qcom,rpmh-vrm-regulator";
1390 mboxes = <&apps_rsc 0>;
1391 qcom,resource-name = "bobb1";
David Collins61008122017-08-29 13:55:36 -07001392 qcom,send-defaults;
1393
David Collins88af9142016-12-09 17:12:52 -08001394 pmi8998_bob: regulator-bob {
1395 regulator-name = "pmi8998_bob";
1396 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1397 regulator-min-microvolt = <3312000>;
1398 regulator-max-microvolt = <3600000>;
1399 qcom,init-voltage = <3312000>;
David Collins61008122017-08-29 13:55:36 -07001400 qcom,init-mode = <RPMH_REGULATOR_MODE_BOB_PASS>;
1401 };
1402
1403 pmi8998_bob_ao: regulator-bob-ao {
1404 regulator-name = "pmi8998_bob_ao";
1405 qcom,set = <RPMH_REGULATOR_SET_ACTIVE>;
1406 regulator-min-microvolt = <3312000>;
1407 regulator-max-microvolt = <3600000>;
1408 qcom,init-voltage = <3312000>;
1409 qcom,init-mode = <RPMH_REGULATOR_MODE_BOB_AUTO>;
David Collins88af9142016-12-09 17:12:52 -08001410 };
1411 };
1412
1413 /* PM8005 S1 + S4 = 2 phase VDD_GFX supply */
1414 rpmh-regulator-gfxlvl {
1415 compatible = "qcom,rpmh-arc-regulator";
1416 mboxes = <&apps_rsc 0>;
1417 qcom,resource-name = "gfx.lvl";
1418 pm8005_s1_level: regulator-s1-level {
1419 regulator-name = "pm8005_s1_level";
1420 qcom,set = <RPMH_REGULATOR_SET_ALL>;
David Collins8e1bcbe2017-05-26 17:52:17 -07001421 regulator-min-microvolt
1422 = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
1423 regulator-max-microvolt
1424 = <RPMH_REGULATOR_LEVEL_MAX>;
1425 qcom,init-voltage-level
1426 = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
David Collins88af9142016-12-09 17:12:52 -08001427 };
1428 };
1429
1430 /* PM8005 S2 = VDD_MODEM supply */
1431 rpmh-regulator-msslvl {
1432 compatible = "qcom,rpmh-arc-regulator";
1433 mboxes = <&apps_rsc 0>;
1434 qcom,resource-name = "mss.lvl";
1435 pm8005_s2_level: regulator-s2-level {
1436 regulator-name = "pm8005_s2_level";
1437 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1438 regulator-min-microvolt = <RPMH_REGULATOR_LEVEL_OFF>;
1439 regulator-max-microvolt = <RPMH_REGULATOR_LEVEL_MAX>;
1440 };
1441 };
1442
1443 rpmh-regulator-smpc3 {
1444 compatible = "qcom,rpmh-vrm-regulator";
1445 mboxes = <&apps_rsc 0>;
1446 qcom,resource-name = "smpc3";
1447 pm8005_s3: regulator-s3 {
1448 regulator-name = "pm8005_s3";
1449 qcom,set = <RPMH_REGULATOR_SET_ALL>;
1450 regulator-min-microvolt = <600000>;
1451 regulator-max-microvolt = <600000>;
1452 qcom,init-voltage = <600000>;
1453 };
1454 };
David Collins113cc2772017-06-27 17:26:54 -07001455
1456 refgen: refgen-regulator@ff1000 {
1457 compatible = "qcom,refgen-regulator";
1458 reg = <0xff1000 0x60>;
1459 regulator-name = "refgen";
1460 regulator-enable-ramp-delay = <5>;
1461 status = "disabled";
1462 proxy-supply = <&refgen>;
1463 qcom,proxy-consumer-enable;
1464 };
Harry Yang67111662017-04-05 15:14:52 -07001465};