David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. |
David Collins | 5ab42b9 | 2016-07-07 17:38:51 -0700 | [diff] [blame] | 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 | |
Harry Yang | 4c05d3e4 | 2017-05-09 16:18:17 -0700 | [diff] [blame] | 13 | #include <dt-bindings/gpio/gpio.h> |
David Collins | 5ab42b9 | 2016-07-07 17:38:51 -0700 | [diff] [blame] | 14 | #include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 15 | |
| 16 | /* Stub regulators */ |
| 17 | / { |
David Collins | 5ab42b9 | 2016-07-07 17:38:51 -0700 | [diff] [blame] | 18 | |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 19 | /* |
| 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 Collins | 3a45794 | 2016-12-09 16:59:51 -0800 | [diff] [blame] | 23 | pm8998_s4: regulator-pm8998-s4 { |
David Collins | 5ab42b9 | 2016-07-07 17:38:51 -0700 | [diff] [blame] | 24 | compatible = "qcom,stub-regulator"; |
David Collins | 3a45794 | 2016-12-09 16:59:51 -0800 | [diff] [blame] | 25 | regulator-name = "pm8998_s4"; |
David Collins | 5ab42b9 | 2016-07-07 17:38:51 -0700 | [diff] [blame] | 26 | qcom,hpm-min-load = <100000>; |
| 27 | regulator-min-microvolt = <1800000>; |
| 28 | regulator-max-microvolt = <1800000>; |
| 29 | }; |
David Collins | 5ab42b9 | 2016-07-07 17:38:51 -0700 | [diff] [blame] | 30 | }; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 31 | |
David Collins | dddb370 | 2017-04-06 17:21:30 -0700 | [diff] [blame] | 32 | &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 Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 40 | regulator-max-microvolt = <1136000>; |
David Collins | dddb370 | 2017-04-06 17:21:30 -0700 | [diff] [blame] | 41 | 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 Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 51 | regulator-max-microvolt = <996000>; |
David Collins | dddb370 | 2017-04-06 17:21:30 -0700 | [diff] [blame] | 52 | qcom,enable-time = <500>; |
| 53 | regulator-always-on; |
| 54 | }; |
| 55 | }; |
| 56 | }; |
| 57 | |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 58 | &soc { |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 59 | /* 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 Collins | 9e688ec | 2017-04-27 15:00:54 -0700 | [diff] [blame] | 78 | qcom,cpr-count-repeat = <20>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 79 | 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 Banuelos | 08408d2 | 2017-05-02 13:34:30 -0700 | [diff] [blame] | 83 | qcom,cpr-reset-step-quot-loop-en; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 84 | |
| 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 Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 90 | qcom,saw-avs-limit = <0x3A003A0>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 91 | |
David Collins | 0c15fda | 2017-04-06 15:16:57 -0700 | [diff] [blame] | 92 | qcom,cpr-enable; |
| 93 | qcom,cpr-hw-closed-loop; |
| 94 | |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 95 | 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 Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 102 | qcom,cpr-aging-ref-voltage = <996000>; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 103 | vdd-supply = <&pm8998_s13>; |
| 104 | |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 105 | thread@1 { |
| 106 | qcom,cpr-thread-id = <1>; |
| 107 | qcom,cpr-consecutive-up = <0>; |
David Collins | 9e688ec | 2017-04-27 15:00:54 -0700 | [diff] [blame] | 108 | qcom,cpr-consecutive-down = <0>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 109 | 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 Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 115 | regulator-max-microvolt = <19>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 116 | |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 117 | qcom,cpr-fuse-corners = <4>; |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 118 | qcom,cpr-fuse-combos = <24>; |
| 119 | qcom,cpr-speed-bins = <3>; |
| 120 | qcom,cpr-speed-bin-corners = <19 19 19>; |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 121 | qcom,cpr-corners = <19>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 122 | |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 123 | qcom,cpr-corner-fmax-map = <6 12 17 19>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 124 | |
| 125 | qcom,cpr-voltage-ceiling = |
David Collins | 94da0bd | 2017-04-05 16:50:46 -0700 | [diff] [blame] | 126 | <872000 872000 872000 872000 872000 |
| 127 | 872000 872000 872000 872000 872000 |
| 128 | 872000 872000 872000 872000 872000 |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 129 | 872000 928000 996000 996000>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 130 | |
| 131 | qcom,cpr-voltage-floor = |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 132 | /* Speed bin 0 */ |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 133 | <568000 568000 568000 568000 568000 |
David Collins | 24466ac | 2017-06-20 17:45:14 -0700 | [diff] [blame] | 134 | 568000 568000 568000 568000 568000 |
| 135 | 568000 568000 568000 568000 568000 |
| 136 | 568000 568000 996000 996000>, |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 137 | /* Speed bin 1 */ |
| 138 | <568000 568000 568000 568000 568000 |
David Collins | 24466ac | 2017-06-20 17:45:14 -0700 | [diff] [blame] | 139 | 568000 568000 568000 568000 568000 |
| 140 | 568000 568000 568000 568000 568000 |
| 141 | 568000 568000 568000 568000>, |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 142 | /* Speed bin 2 */ |
| 143 | <568000 568000 568000 568000 568000 |
David Collins | 24466ac | 2017-06-20 17:45:14 -0700 | [diff] [blame] | 144 | 568000 568000 568000 568000 568000 |
| 145 | 568000 568000 568000 568000 568000 |
| 146 | 568000 568000 568000 568000>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 147 | |
| 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 Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 152 | 32000 32000 40000 40000>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 153 | |
| 154 | qcom,corner-frequencies = |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 155 | /* Speed bin 0 */ |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 156 | <300000000 422400000 499200000 |
| 157 | 576000000 652800000 748800000 |
| 158 | 825600000 902400000 979200000 |
| 159 | 1056000000 1132800000 1209600000 |
| 160 | 1286400000 1363200000 1440000000 |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 161 | 1516800000 1593600000 1651200000 |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 162 | 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 Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 179 | |
David Collins | 78a051b | 2017-04-05 17:52:01 -0700 | [diff] [blame] | 180 | 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 Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 189 | 1950 2632>, |
| 190 | <2259 2389 2387 2531 2294 2464 2218 |
| 191 | 2476 2525 2855 2817 2836 2740 2490 |
David Collins | 78a051b | 2017-04-05 17:52:01 -0700 | [diff] [blame] | 192 | 1950 2632>; |
| 193 | |
David Collins | a67596c | 2017-03-20 14:53:18 -0700 | [diff] [blame] | 194 | qcom,cpr-open-loop-voltage-fuse-adjustment = |
David Collins | 0fd10f0 | 2017-05-15 16:19:55 -0700 | [diff] [blame] | 195 | /* 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 Collins | a67596c | 2017-03-20 14:53:18 -0700 | [diff] [blame] | 222 | |
David Collins | 9a4ab14 | 2017-04-05 17:56:45 -0700 | [diff] [blame] | 223 | qcom,cpr-closed-loop-voltage-fuse-adjustment = |
David Collins | 0fd10f0 | 2017-05-15 16:19:55 -0700 | [diff] [blame] | 224 | /* 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 Collins | 9a4ab14 | 2017-04-05 17:56:45 -0700 | [diff] [blame] | 251 | |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 252 | qcom,allow-voltage-interpolation; |
| 253 | qcom,allow-quotient-interpolation; |
| 254 | qcom,cpr-scaled-open-loop-voltage-as-ceiling; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 255 | |
| 256 | qcom,cpr-aging-max-voltage-adjustment = <15000>; |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 257 | qcom,cpr-aging-ref-corner = <19>; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 258 | qcom,cpr-aging-ro-scaling-factor = <1620>; |
| 259 | qcom,allow-aging-voltage-adjustment = |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 260 | /* Speed bin 0 */ |
| 261 | <0 1 1 1 1 1 1 1>, |
| 262 | /* Speed bin 1 */ |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 263 | <0 1 1 1 1 1 1 1>, |
| 264 | /* Speed bin 2 */ |
David Collins | 4a4a5c6 | 2017-04-06 17:42:24 -0700 | [diff] [blame] | 265 | <0 1 1 1 1 1 1 1>; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 266 | qcom,allow-aging-open-loop-voltage-adjustment = |
| 267 | <1>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 268 | }; |
| 269 | }; |
| 270 | |
| 271 | thread@0 { |
| 272 | qcom,cpr-thread-id = <0>; |
| 273 | qcom,cpr-consecutive-up = <0>; |
David Collins | 9e688ec | 2017-04-27 15:00:54 -0700 | [diff] [blame] | 274 | qcom,cpr-consecutive-down = <0>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 275 | 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 Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 281 | regulator-max-microvolt = <13>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 282 | |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 283 | qcom,cpr-fuse-corners = <4>; |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 284 | 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 Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 294 | |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 295 | 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 Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 302 | |
| 303 | qcom,cpr-voltage-ceiling = |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 304 | /* Speed bin 0 */ |
David Collins | 94da0bd | 2017-04-05 16:50:46 -0700 | [diff] [blame] | 305 | <872000 872000 872000 872000 872000 |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 306 | 872000 872000 872000 928000 996000 |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 307 | 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 Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 316 | |
| 317 | qcom,cpr-voltage-floor = |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 318 | /* Speed bin 0 */ |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 319 | <568000 568000 568000 568000 568000 |
David Collins | 24466ac | 2017-06-20 17:45:14 -0700 | [diff] [blame] | 320 | 568000 568000 568000 568000 996000 |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 321 | 996000>, |
| 322 | /* Speed bin 1 */ |
| 323 | <568000 568000 568000 568000 568000 |
David Collins | 24466ac | 2017-06-20 17:45:14 -0700 | [diff] [blame] | 324 | 568000 568000 568000 568000 568000 |
| 325 | 568000>, |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 326 | /* Speed bin 2 */ |
| 327 | <568000 568000 568000 568000 568000 |
David Collins | 24466ac | 2017-06-20 17:45:14 -0700 | [diff] [blame] | 328 | 568000 568000 568000 568000 568000 |
| 329 | 568000 568000 568000>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 330 | |
| 331 | qcom,cpr-floor-to-ceiling-max-range = |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 332 | /* Speed bin 0 */ |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 333 | <32000 32000 32000 32000 32000 |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 334 | 32000 32000 32000 32000 40000 |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 335 | 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 Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 344 | |
| 345 | qcom,corner-frequencies = |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 346 | /* Speed bin 0 */ |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 347 | <300000000 422400000 499200000 |
| 348 | 576000000 652800000 729600000 |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 349 | 806400000 883200000 960000000 |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 350 | 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 Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 362 | |
David Collins | 78a051b | 2017-04-05 17:52:01 -0700 | [diff] [blame] | 363 | 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 Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 372 | 2501 2095>, |
| 373 | <2439 2577 2552 2667 2461 2577 2394 |
| 374 | 2536 2132 2307 2191 2903 2838 2912 |
David Collins | 78a051b | 2017-04-05 17:52:01 -0700 | [diff] [blame] | 375 | 2501 2095>; |
| 376 | |
David Collins | a67596c | 2017-03-20 14:53:18 -0700 | [diff] [blame] | 377 | qcom,cpr-open-loop-voltage-fuse-adjustment = |
David Collins | 0fd10f0 | 2017-05-15 16:19:55 -0700 | [diff] [blame] | 378 | /* 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 Collins | a67596c | 2017-03-20 14:53:18 -0700 | [diff] [blame] | 405 | |
David Collins | 9a4ab14 | 2017-04-05 17:56:45 -0700 | [diff] [blame] | 406 | qcom,cpr-closed-loop-voltage-fuse-adjustment = |
David Collins | 0fd10f0 | 2017-05-15 16:19:55 -0700 | [diff] [blame] | 407 | /* 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 Collins | 9a4ab14 | 2017-04-05 17:56:45 -0700 | [diff] [blame] | 434 | |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 435 | qcom,allow-voltage-interpolation; |
| 436 | qcom,allow-quotient-interpolation; |
| 437 | qcom,cpr-scaled-open-loop-voltage-as-ceiling; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 438 | |
| 439 | qcom,cpr-aging-max-voltage-adjustment = <15000>; |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 440 | qcom,cpr-aging-ref-corner = <11 11 13>; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 441 | qcom,cpr-aging-ro-scaling-factor = <1620>; |
| 442 | qcom,allow-aging-voltage-adjustment = |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 443 | /* Speed bin 0 */ |
| 444 | <0 1 1 1 1 1 1 1>, |
| 445 | /* Speed bin 1 */ |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 446 | <0 1 1 1 1 1 1 1>, |
| 447 | /* Speed bin 2 */ |
David Collins | 4a4a5c6 | 2017-04-06 17:42:24 -0700 | [diff] [blame] | 448 | <0 1 1 1 1 1 1 1>; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 449 | qcom,allow-aging-open-loop-voltage-adjustment = |
| 450 | <1>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 451 | }; |
| 452 | }; |
| 453 | }; |
| 454 | |
| 455 | apc1_cpr: cprh-ctrl@17db0000 { |
David Collins | 768613b | 2017-07-20 16:14:02 -0700 | [diff] [blame] | 456 | compatible = "qcom,cprh-sdm845-v1-kbss-regulator"; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 457 | 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 Collins | 9e688ec | 2017-04-27 15:00:54 -0700 | [diff] [blame] | 473 | qcom,cpr-count-repeat = <20>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 474 | 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 Banuelos | 08408d2 | 2017-05-02 13:34:30 -0700 | [diff] [blame] | 478 | qcom,cpr-reset-step-quot-loop-en; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 479 | |
| 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 Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 490 | qcom,saw-avs-limit = <0x4200420>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 491 | |
David Collins | 4f0a4e2 | 2017-04-06 15:22:55 -0700 | [diff] [blame] | 492 | qcom,cpr-enable; |
| 493 | qcom,cpr-hw-closed-loop; |
| 494 | |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 495 | 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 Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 500 | qcom,cpr-aging-ref-voltage = <1136000>; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 501 | vdd-supply = <&pm8998_s12>; |
| 502 | |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 503 | thread@0 { |
| 504 | qcom,cpr-thread-id = <0>; |
| 505 | qcom,cpr-consecutive-up = <0>; |
David Collins | 9e688ec | 2017-04-27 15:00:54 -0700 | [diff] [blame] | 506 | qcom,cpr-consecutive-down = <0>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 507 | 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 Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 513 | regulator-max-microvolt = <27>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 514 | |
| 515 | qcom,cpr-fuse-corners = <3>; |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 516 | qcom,cpr-fuse-combos = <24>; |
| 517 | qcom,cpr-speed-bins = <3>; |
| 518 | qcom,cpr-speed-bin-corners = <22 24 25>; |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 519 | qcom,cpr-corners = |
| 520 | /* Speed bin 0 */ |
| 521 | <22 22 22 22 22 22 22 22>, |
| 522 | /* Speed bin 1 */ |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 523 | <24 24 24 24 24 24 24 24>, |
| 524 | /* Speed bin 2 */ |
| 525 | <25 25 25 25 25 25 25 25>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 526 | |
| 527 | qcom,cpr-corner-fmax-map = |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 528 | /* Speed bin 0 */ |
| 529 | <10 17 22>, |
| 530 | /* Speed bin 1 */ |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 531 | <10 17 24>, |
| 532 | /* Speed bin 2 */ |
| 533 | <10 17 25>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 534 | |
| 535 | qcom,cpr-voltage-ceiling = |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 536 | /* Speed bin 0 */ |
David Collins | 94da0bd | 2017-04-05 16:50:46 -0700 | [diff] [blame] | 537 | <828000 828000 828000 828000 828000 |
| 538 | 828000 828000 828000 828000 828000 |
| 539 | 828000 828000 828000 828000 828000 |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 540 | 828000 828000 884000 952000 952000 |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 541 | 1136000 1136000>, |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 542 | /* 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 Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 547 | 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 Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 555 | |
| 556 | qcom,cpr-voltage-floor = |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 557 | /* Speed bin 0 */ |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 558 | <568000 568000 568000 568000 568000 |
| 559 | 568000 568000 568000 568000 568000 |
David Collins | 24466ac | 2017-06-20 17:45:14 -0700 | [diff] [blame] | 560 | 568000 568000 568000 568000 568000 |
| 561 | 568000 568000 568000 568000 568000 |
| 562 | 568000 568000>, |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 563 | /* Speed bin 1 */ |
| 564 | <568000 568000 568000 568000 568000 |
| 565 | 568000 568000 568000 568000 568000 |
David Collins | 24466ac | 2017-06-20 17:45:14 -0700 | [diff] [blame] | 566 | 568000 568000 568000 568000 568000 |
| 567 | 568000 568000 568000 568000 568000 |
| 568 | 568000 568000 568000 568000>, |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 569 | /* Speed bin 2 */ |
| 570 | <568000 568000 568000 568000 568000 |
| 571 | 568000 568000 568000 568000 568000 |
David Collins | 24466ac | 2017-06-20 17:45:14 -0700 | [diff] [blame] | 572 | 568000 568000 568000 568000 568000 |
| 573 | 568000 568000 568000 568000 568000 |
| 574 | 568000 568000 568000 568000 |
| 575 | 568000>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 576 | |
| 577 | qcom,cpr-floor-to-ceiling-max-range = |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 578 | /* Speed bin 0 */ |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 579 | <32000 32000 32000 32000 32000 |
| 580 | 32000 32000 32000 32000 32000 |
| 581 | 32000 32000 32000 32000 32000 |
| 582 | 32000 32000 40000 40000 40000 |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 583 | 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 Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 589 | 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 Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 596 | |
| 597 | qcom,corner-frequencies = |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 598 | /* Speed bin 0 */ |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 599 | <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 Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 606 | 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 Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 615 | 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 Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 626 | |
David Collins | 78a051b | 2017-04-05 17:52:01 -0700 | [diff] [blame] | 627 | 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 Collins | a67596c | 2017-03-20 14:53:18 -0700 | [diff] [blame] | 638 | qcom,cpr-open-loop-voltage-fuse-adjustment = |
David Collins | b67d736 | 2017-05-09 16:25:23 -0700 | [diff] [blame] | 639 | /* 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 Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 656 | < 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 Collins | b67d736 | 2017-05-09 16:25:23 -0700 | [diff] [blame] | 665 | < 0 0 0>; |
David Collins | a67596c | 2017-03-20 14:53:18 -0700 | [diff] [blame] | 666 | |
David Collins | 9a4ab14 | 2017-04-05 17:56:45 -0700 | [diff] [blame] | 667 | qcom,cpr-closed-loop-voltage-fuse-adjustment = |
David Collins | b67d736 | 2017-05-09 16:25:23 -0700 | [diff] [blame] | 668 | /* 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 Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 685 | < 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 Collins | b67d736 | 2017-05-09 16:25:23 -0700 | [diff] [blame] | 694 | < 0 0 0>; |
David Collins | 9a4ab14 | 2017-04-05 17:56:45 -0700 | [diff] [blame] | 695 | |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 696 | qcom,allow-voltage-interpolation; |
| 697 | qcom,allow-quotient-interpolation; |
| 698 | qcom,cpr-scaled-open-loop-voltage-as-ceiling; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 699 | |
| 700 | qcom,cpr-aging-max-voltage-adjustment = <15000>; |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 701 | qcom,cpr-aging-ref-corner = <22 24 25>; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 702 | qcom,cpr-aging-ro-scaling-factor = <1700>; |
| 703 | qcom,allow-aging-voltage-adjustment = |
David Collins | e367ce6 | 2017-05-08 18:15:03 -0700 | [diff] [blame] | 704 | /* Speed bin 0 */ |
| 705 | <0 1 1 1 1 1 1 1>, |
| 706 | /* Speed bin 1 */ |
David Collins | 8babfbe | 2017-05-19 16:00:44 -0700 | [diff] [blame] | 707 | <0 1 1 1 1 1 1 1>, |
| 708 | /* Speed bin 2 */ |
David Collins | 4a4a5c6 | 2017-04-06 17:42:24 -0700 | [diff] [blame] | 709 | <0 1 1 1 1 1 1 1>; |
David Collins | afce5df | 2017-04-06 17:38:40 -0700 | [diff] [blame] | 710 | qcom,allow-aging-open-loop-voltage-adjustment = |
| 711 | <1>; |
David Collins | 8054e5e | 2017-02-28 15:24:52 -0800 | [diff] [blame] | 712 | }; |
| 713 | }; |
| 714 | }; |
| 715 | |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 716 | /* 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 Chandrasekar | 46ab298 | 2017-06-21 12:36:44 -0600 | [diff] [blame] | 729 | |
| 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 Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 736 | }; |
| 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 Chandrasekar | 6e52da6 | 2017-08-03 10:28:22 -0600 | [diff] [blame] | 795 | |
| 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 Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 803 | }; |
| 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 Collins | afb83a3 | 2017-02-07 15:46:54 -0800 | [diff] [blame] | 823 | pm8998_s9_level-parent-supply = <&pm8998_s6_level>; |
| 824 | pm8998_s9_level_ao-parent-supply = <&pm8998_s6_level_ao>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 825 | 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 Collins | afb83a3 | 2017-02-07 15:46:54 -0800 | [diff] [blame] | 830 | qcom,min-dropout-voltage-level = <(-1)>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 831 | }; |
| 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 Collins | afb83a3 | 2017-02-07 15:46:54 -0800 | [diff] [blame] | 838 | qcom,min-dropout-voltage-level = <(-1)>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 839 | }; |
Ram Chandrasekar | 46ab298 | 2017-06-21 12:36:44 -0600 | [diff] [blame] | 840 | |
| 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 Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 847 | }; |
| 848 | |
| 849 | rpmh-regulator-ldoa1 { |
| 850 | compatible = "qcom,rpmh-vrm-regulator"; |
| 851 | mboxes = <&apps_rsc 0>; |
| 852 | qcom,resource-name = "ldoa1"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 853 | qcom,supported-modes = |
| 854 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 855 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 856 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 857 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 863 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 864 | }; |
David Collins | 5fdd8b26 | 2017-07-19 14:55:22 -0700 | [diff] [blame] | 865 | |
| 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 Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 884 | }; |
| 885 | |
| 886 | rpmh-regulator-ldoa2 { |
| 887 | compatible = "qcom,rpmh-vrm-regulator"; |
| 888 | mboxes = <&apps_rsc 0>; |
| 889 | qcom,resource-name = "ldoa2"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 890 | qcom,supported-modes = |
| 891 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 892 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 893 | qcom,mode-threshold-currents = <0 30000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 894 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 900 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
Subhash Jadavani | 413af2c | 2017-04-11 11:45:54 -0700 | [diff] [blame] | 901 | regulator-always-on; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 902 | }; |
| 903 | }; |
| 904 | |
| 905 | rpmh-regulator-ldoa3 { |
| 906 | compatible = "qcom,rpmh-vrm-regulator"; |
| 907 | mboxes = <&apps_rsc 0>; |
| 908 | qcom,resource-name = "ldoa3"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 909 | qcom,supported-modes = |
| 910 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 911 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 912 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 913 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 919 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 920 | }; |
| 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 940 | qcom,supported-modes = |
| 941 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 942 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 943 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 944 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 950 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 951 | }; |
| 952 | }; |
| 953 | |
| 954 | rpmh-regulator-ldoa6 { |
| 955 | compatible = "qcom,rpmh-vrm-regulator"; |
| 956 | mboxes = <&apps_rsc 0>; |
| 957 | qcom,resource-name = "ldoa6"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 958 | qcom,supported-modes = |
| 959 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 960 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 961 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 962 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 968 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 969 | }; |
| 970 | }; |
| 971 | |
| 972 | rpmh-regulator-ldoa7 { |
| 973 | compatible = "qcom,rpmh-vrm-regulator"; |
| 974 | mboxes = <&apps_rsc 0>; |
| 975 | qcom,resource-name = "ldoa7"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 976 | qcom,supported-modes = |
| 977 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 978 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 979 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 980 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 986 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 987 | }; |
| 988 | }; |
| 989 | |
| 990 | rpmh-regulator-ldoa8 { |
| 991 | compatible = "qcom,rpmh-vrm-regulator"; |
| 992 | mboxes = <&apps_rsc 0>; |
| 993 | qcom,resource-name = "ldoa8"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 994 | qcom,supported-modes = |
| 995 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 996 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 997 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 998 | pm8998_l8: regulator-l8 { |
| 999 | regulator-name = "pm8998_l8"; |
| 1000 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 1001 | regulator-min-microvolt = <1200000>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1002 | regulator-max-microvolt = <1248000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1003 | qcom,init-voltage = <1200000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1004 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1005 | }; |
| 1006 | }; |
| 1007 | |
| 1008 | rpmh-regulator-ldoa9 { |
| 1009 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1010 | mboxes = <&apps_rsc 0>; |
| 1011 | qcom,resource-name = "ldoa9"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1012 | qcom,supported-modes = |
| 1013 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1014 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1015 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1016 | pm8998_l9: regulator-l9 { |
| 1017 | regulator-name = "pm8998_l9"; |
| 1018 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1019 | regulator-min-microvolt = <1704000>; |
| 1020 | regulator-max-microvolt = <2928000>; |
| 1021 | qcom,init-voltage = <1704000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1022 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1023 | }; |
| 1024 | }; |
| 1025 | |
| 1026 | rpmh-regulator-ldoa10 { |
| 1027 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1028 | mboxes = <&apps_rsc 0>; |
| 1029 | qcom,resource-name = "ldoa10"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1030 | qcom,supported-modes = |
| 1031 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1032 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1033 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1034 | pm8998_l10: regulator-l10 { |
| 1035 | regulator-name = "pm8998_l10"; |
| 1036 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1037 | regulator-min-microvolt = <1704000>; |
| 1038 | regulator-max-microvolt = <2928000>; |
| 1039 | qcom,init-voltage = <1704000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1040 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1041 | }; |
| 1042 | }; |
| 1043 | |
| 1044 | rpmh-regulator-ldoa11 { |
| 1045 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1046 | mboxes = <&apps_rsc 0>; |
| 1047 | qcom,resource-name = "ldoa11"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1048 | qcom,supported-modes = |
| 1049 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1050 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1051 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1052 | pm8998_l11: regulator-l11 { |
| 1053 | regulator-name = "pm8998_l11"; |
| 1054 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 1055 | regulator-min-microvolt = <1000000>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1056 | regulator-max-microvolt = <1048000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1057 | qcom,init-voltage = <1000000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1058 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1059 | }; |
| 1060 | }; |
| 1061 | |
| 1062 | rpmh-regulator-ldoa12 { |
| 1063 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1064 | mboxes = <&apps_rsc 0>; |
| 1065 | qcom,resource-name = "ldoa12"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1066 | qcom,supported-modes = |
| 1067 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1068 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1069 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1070 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1076 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1077 | }; |
| 1078 | }; |
| 1079 | |
| 1080 | rpmh-regulator-ldoa13 { |
| 1081 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1082 | mboxes = <&apps_rsc 0>; |
| 1083 | qcom,resource-name = "ldoa13"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1084 | qcom,supported-modes = |
| 1085 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1086 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 1087 | qcom,mode-threshold-currents = <0 10000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1088 | pm8998_l13: regulator-l13 { |
| 1089 | regulator-name = "pm8998_l13"; |
| 1090 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1091 | regulator-min-microvolt = <1800000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1092 | regulator-max-microvolt = <2960000>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1093 | qcom,init-voltage = <1800000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1094 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1095 | }; |
| 1096 | }; |
| 1097 | |
| 1098 | rpmh-regulator-ldoa14 { |
| 1099 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1100 | mboxes = <&apps_rsc 0>; |
| 1101 | qcom,resource-name = "ldoa14"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1102 | qcom,supported-modes = |
| 1103 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1104 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 1105 | qcom,mode-threshold-currents = <0 10000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1106 | pm8998_l14: regulator-l14 { |
| 1107 | regulator-name = "pm8998_l14"; |
| 1108 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 1109 | regulator-min-microvolt = <1800000>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1110 | regulator-max-microvolt = <1880000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1111 | qcom,init-voltage = <1800000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1112 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1113 | }; |
| 1114 | }; |
| 1115 | |
| 1116 | rpmh-regulator-ldoa15 { |
| 1117 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1118 | mboxes = <&apps_rsc 0>; |
| 1119 | qcom,resource-name = "ldoa15"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1120 | qcom,supported-modes = |
| 1121 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1122 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1123 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1124 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1130 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1131 | }; |
| 1132 | }; |
| 1133 | |
| 1134 | rpmh-regulator-ldoa16 { |
| 1135 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1136 | mboxes = <&apps_rsc 0>; |
| 1137 | qcom,resource-name = "ldoa16"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1138 | qcom,supported-modes = |
| 1139 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1140 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1141 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1142 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1148 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1149 | }; |
| 1150 | }; |
| 1151 | |
| 1152 | rpmh-regulator-ldoa17 { |
| 1153 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1154 | mboxes = <&apps_rsc 0>; |
| 1155 | qcom,resource-name = "ldoa17"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1156 | qcom,supported-modes = |
| 1157 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1158 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1159 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1160 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1166 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1167 | }; |
| 1168 | }; |
| 1169 | |
| 1170 | rpmh-regulator-ldoa18 { |
| 1171 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1172 | mboxes = <&apps_rsc 0>; |
| 1173 | qcom,resource-name = "ldoa18"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1174 | qcom,supported-modes = |
| 1175 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1176 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1177 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1178 | pm8998_l18: regulator-l18 { |
| 1179 | regulator-name = "pm8998_l18"; |
| 1180 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 1181 | regulator-min-microvolt = <2704000>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1182 | regulator-max-microvolt = <2960000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1183 | qcom,init-voltage = <2704000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1184 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1185 | }; |
| 1186 | }; |
| 1187 | |
| 1188 | rpmh-regulator-ldoa19 { |
| 1189 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1190 | mboxes = <&apps_rsc 0>; |
| 1191 | qcom,resource-name = "ldoa19"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1192 | qcom,supported-modes = |
| 1193 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1194 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1195 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1196 | pm8998_l19: regulator-l19 { |
| 1197 | regulator-name = "pm8998_l19"; |
| 1198 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1199 | regulator-min-microvolt = <2856000>; |
| 1200 | regulator-max-microvolt = <3104000>; |
| 1201 | qcom,init-voltage = <2856000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1202 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1203 | }; |
| 1204 | }; |
| 1205 | |
| 1206 | rpmh-regulator-ldoa20 { |
| 1207 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1208 | mboxes = <&apps_rsc 0>; |
| 1209 | qcom,resource-name = "ldoa20"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1210 | qcom,supported-modes = |
| 1211 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1212 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 1213 | qcom,mode-threshold-currents = <0 10000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1214 | pm8998_l20: regulator-l20 { |
| 1215 | regulator-name = "pm8998_l20"; |
| 1216 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1217 | regulator-min-microvolt = <2704000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1218 | regulator-max-microvolt = <2960000>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1219 | qcom,init-voltage = <2704000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1220 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1221 | }; |
| 1222 | }; |
| 1223 | |
| 1224 | rpmh-regulator-ldoa21 { |
| 1225 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1226 | mboxes = <&apps_rsc 0>; |
| 1227 | qcom,resource-name = "ldoa21"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1228 | qcom,supported-modes = |
| 1229 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1230 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 1231 | qcom,mode-threshold-currents = <0 10000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1232 | pm8998_l21: regulator-l21 { |
| 1233 | regulator-name = "pm8998_l21"; |
| 1234 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1235 | regulator-min-microvolt = <2704000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1236 | regulator-max-microvolt = <2960000>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1237 | qcom,init-voltage = <2704000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1238 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1239 | }; |
| 1240 | }; |
| 1241 | |
| 1242 | rpmh-regulator-ldoa22 { |
| 1243 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1244 | mboxes = <&apps_rsc 0>; |
| 1245 | qcom,resource-name = "ldoa22"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1246 | qcom,supported-modes = |
| 1247 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1248 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 1249 | qcom,mode-threshold-currents = <0 10000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1250 | pm8998_l22: regulator-l22 { |
| 1251 | regulator-name = "pm8998_l22"; |
| 1252 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
| 1253 | regulator-min-microvolt = <2864000>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1254 | regulator-max-microvolt = <3312000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1255 | qcom,init-voltage = <2864000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1256 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1257 | }; |
| 1258 | }; |
| 1259 | |
| 1260 | rpmh-regulator-ldoa23 { |
| 1261 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1262 | mboxes = <&apps_rsc 0>; |
| 1263 | qcom,resource-name = "ldoa23"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1264 | qcom,supported-modes = |
| 1265 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1266 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1267 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1268 | pm8998_l23: regulator-l23 { |
| 1269 | regulator-name = "pm8998_l23"; |
| 1270 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1271 | regulator-min-microvolt = <3000000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1272 | regulator-max-microvolt = <3312000>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1273 | qcom,init-voltage = <3000000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1274 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1275 | }; |
| 1276 | }; |
| 1277 | |
| 1278 | rpmh-regulator-ldoa24 { |
| 1279 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1280 | mboxes = <&apps_rsc 0>; |
| 1281 | qcom,resource-name = "ldoa24"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1282 | qcom,supported-modes = |
| 1283 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1284 | RPMH_REGULATOR_MODE_LDO_HPM>; |
| 1285 | qcom,mode-threshold-currents = <0 10000>; |
Jack Pham | cc052ff | 2017-03-24 14:50:14 -0700 | [diff] [blame] | 1286 | pm8998_l24-parent-supply = <&pm8998_l12>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1287 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1293 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1294 | }; |
| 1295 | }; |
| 1296 | |
| 1297 | rpmh-regulator-ldoa25 { |
| 1298 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1299 | mboxes = <&apps_rsc 0>; |
| 1300 | qcom,resource-name = "ldoa25"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1301 | qcom,supported-modes = |
| 1302 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1303 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1304 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1305 | pm8998_l25: regulator-l25 { |
| 1306 | regulator-name = "pm8998_l25"; |
| 1307 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1308 | regulator-min-microvolt = <3000000>; |
| 1309 | regulator-max-microvolt = <3312000>; |
| 1310 | qcom,init-voltage = <3000000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1311 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1312 | }; |
| 1313 | }; |
| 1314 | |
| 1315 | rpmh-regulator-ldoa26 { |
| 1316 | compatible = "qcom,rpmh-vrm-regulator"; |
| 1317 | mboxes = <&apps_rsc 0>; |
| 1318 | qcom,resource-name = "ldoa26"; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1319 | qcom,supported-modes = |
| 1320 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1321 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1322 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1323 | 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1329 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1330 | }; |
| 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 Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1350 | qcom,supported-modes = |
| 1351 | <RPMH_REGULATOR_MODE_LDO_LPM |
| 1352 | RPMH_REGULATOR_MODE_LDO_HPM>; |
David Collins | 866cdb9 | 2017-04-05 13:39:31 -0700 | [diff] [blame] | 1353 | qcom,mode-threshold-currents = <0 1>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1354 | pm8998_l28: regulator-l28 { |
| 1355 | regulator-name = "pm8998_l28"; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1356 | qcom,set = <RPMH_REGULATOR_SET_ALL>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1357 | regulator-min-microvolt = <2856000>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1358 | regulator-max-microvolt = <3008000>; |
David Collins | 93f3b82 | 2017-04-10 14:08:30 -0700 | [diff] [blame] | 1359 | qcom,init-voltage = <2856000>; |
David Collins | 4440543 | 2017-03-21 13:16:27 -0700 | [diff] [blame] | 1360 | qcom,init-mode = <RPMH_REGULATOR_MODE_LDO_LPM>; |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1361 | }; |
| 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 Collins | 6100812 | 2017-08-29 13:55:36 -0700 | [diff] [blame] | 1392 | qcom,send-defaults; |
| 1393 | |
David Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1394 | 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 Collins | 6100812 | 2017-08-29 13:55:36 -0700 | [diff] [blame] | 1400 | 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 Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1410 | }; |
| 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 Collins | 8e1bcbe | 2017-05-26 17:52:17 -0700 | [diff] [blame] | 1421 | 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 Collins | 88af914 | 2016-12-09 17:12:52 -0800 | [diff] [blame] | 1427 | }; |
| 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 Collins | 113cc277 | 2017-06-27 17:26:54 -0700 | [diff] [blame] | 1455 | |
| 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 Yang | 6711166 | 2017-04-05 15:14:52 -0700 | [diff] [blame] | 1465 | }; |