Channagoud Kadabi | 459f011 | 2017-03-20 12:42:15 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #include "sdm845.dtsi" |
| 14 | |
| 15 | / { |
| 16 | model = "Qualcomm Technologies, Inc. SDM845 V2"; |
| 17 | qcom,msm-id = <321 0x20000>; |
| 18 | }; |
David Collins | 3605018 | 2017-04-26 11:41:22 -0700 | [diff] [blame] | 19 | |
Subhash Jadavani | 0842b27 | 2017-07-19 17:05:13 -0700 | [diff] [blame] | 20 | &sdhc_2 { |
Subhash Jadavani | 3497a96 | 2017-07-31 13:57:47 -0700 | [diff] [blame] | 21 | /delete-property/ qcom,sdr104-wa; |
Subhash Jadavani | 0842b27 | 2017-07-19 17:05:13 -0700 | [diff] [blame] | 22 | }; |
| 23 | |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 24 | /delete-node/ &apc0_cpr; |
| 25 | /delete-node/ &apc1_cpr; |
| 26 | |
| 27 | &soc { |
| 28 | /* CPR controller regulators */ |
| 29 | apc0_cpr: cprh-ctrl@17dc0000 { |
| 30 | compatible = "qcom,cprh-sdm845-v2-kbss-regulator"; |
| 31 | reg = <0x17dc0000 0x4000>, |
| 32 | <0x00784000 0x1000>, |
| 33 | <0x17840000 0x1000>; |
| 34 | reg-names = "cpr_ctrl", "fuse_base", "saw"; |
| 35 | clocks = <&clock_gcc GCC_CPUSS_RBCPR_CLK>; |
| 36 | clock-names = "core_clk"; |
| 37 | qcom,cpr-ctrl-name = "apc0"; |
| 38 | qcom,cpr-controller-id = <0>; |
| 39 | |
| 40 | qcom,cpr-sensor-time = <1000>; |
| 41 | qcom,cpr-loop-time = <5000000>; |
| 42 | qcom,cpr-idle-cycles = <15>; |
| 43 | qcom,cpr-up-down-delay-time = <3000>; |
| 44 | qcom,cpr-step-quot-init-min = <11>; |
| 45 | qcom,cpr-step-quot-init-max = <12>; |
| 46 | qcom,cpr-count-mode = <0>; /* All at once */ |
| 47 | qcom,cpr-count-repeat = <20>; |
| 48 | qcom,cpr-down-error-step-limit = <1>; |
| 49 | qcom,cpr-up-error-step-limit = <1>; |
| 50 | qcom,cpr-corner-switch-delay-time = <1042>; |
| 51 | qcom,cpr-voltage-settling-time = <1760>; |
| 52 | qcom,cpr-reset-step-quot-loop-en; |
| 53 | |
| 54 | qcom,voltage-step = <4000>; |
| 55 | qcom,voltage-base = <352000>; |
| 56 | qcom,cpr-saw-use-unit-mV; |
| 57 | |
| 58 | qcom,saw-avs-ctrl = <0x101C031>; |
| 59 | qcom,saw-avs-limit = <0x3B803B8>; |
| 60 | |
| 61 | qcom,cpr-enable; |
| 62 | qcom,cpr-hw-closed-loop; |
| 63 | |
| 64 | qcom,cpr-panic-reg-addr-list = |
| 65 | <0x17dc3a84 0x17dc3a88 0x17840c18>; |
| 66 | qcom,cpr-panic-reg-name-list = |
| 67 | "APSS_SILVER_CPRH_STATUS_0", |
| 68 | "APSS_SILVER_CPRH_STATUS_1", |
| 69 | "SILVER_SAW4_PMIC_STS"; |
| 70 | |
| 71 | qcom,cpr-aging-ref-voltage = <952000>; |
| 72 | vdd-supply = <&pm8998_s13>; |
| 73 | |
| 74 | thread@0 { |
| 75 | qcom,cpr-thread-id = <0>; |
| 76 | qcom,cpr-consecutive-up = <0>; |
| 77 | qcom,cpr-consecutive-down = <0>; |
| 78 | qcom,cpr-up-threshold = <2>; |
| 79 | qcom,cpr-down-threshold = <2>; |
| 80 | |
| 81 | apc0_pwrcl_vreg: regulator { |
| 82 | regulator-name = "apc0_pwrcl_corner"; |
| 83 | regulator-min-microvolt = <1>; |
| 84 | regulator-max-microvolt = <18>; |
| 85 | |
| 86 | qcom,cpr-fuse-corners = <4>; |
| 87 | qcom,cpr-fuse-combos = <16>; |
| 88 | qcom,cpr-speed-bins = <2>; |
| 89 | qcom,cpr-speed-bin-corners = <18 18>; |
| 90 | qcom,cpr-corners = <18>; |
| 91 | |
| 92 | qcom,cpr-corner-fmax-map = <6 12 15 18>; |
| 93 | |
| 94 | qcom,cpr-voltage-ceiling = |
| 95 | <828000 828000 828000 828000 828000 |
| 96 | 828000 828000 828000 828000 828000 |
| 97 | 828000 828000 828000 828000 828000 |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 98 | 884000 1000000 1000000>; |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 99 | |
| 100 | qcom,cpr-voltage-floor = |
| 101 | <568000 568000 568000 568000 568000 |
| 102 | 568000 568000 568000 568000 568000 |
| 103 | 568000 568000 568000 568000 568000 |
| 104 | 568000 568000 568000>; |
| 105 | |
| 106 | qcom,cpr-floor-to-ceiling-max-range = |
| 107 | <32000 32000 32000 32000 32000 |
| 108 | 32000 32000 32000 32000 32000 |
| 109 | 32000 32000 32000 32000 32000 |
| 110 | 32000 40000 40000>; |
| 111 | |
| 112 | qcom,corner-frequencies = |
| 113 | <300000000 403200000 480000000 |
| 114 | 576000000 652800000 748800000 |
| 115 | 825600000 902400000 979200000 |
| 116 | 1056000000 1132800000 1228800000 |
| 117 | 1324800000 1420800000 1516800000 |
| 118 | 1612800000 1689600000 1766400000>; |
| 119 | |
| 120 | qcom,cpr-ro-scaling-factor = |
| 121 | <2594 2795 2576 2761 2469 2673 2198 |
| 122 | 2553 3188 3255 3191 2962 3055 2984 |
| 123 | 2043 2947>, |
| 124 | <2594 2795 2576 2761 2469 2673 2198 |
| 125 | 2553 3188 3255 3191 2962 3055 2984 |
| 126 | 2043 2947>, |
| 127 | <2259 2389 2387 2531 2294 2464 2218 |
| 128 | 2476 2525 2855 2817 2836 2740 2490 |
| 129 | 1950 2632>, |
| 130 | <2259 2389 2387 2531 2294 2464 2218 |
| 131 | 2476 2525 2855 2817 2836 2740 2490 |
| 132 | 1950 2632>; |
| 133 | |
| 134 | qcom,cpr-open-loop-voltage-fuse-adjustment = |
| 135 | <100000 100000 100000 100000>; |
| 136 | |
| 137 | qcom,cpr-closed-loop-voltage-fuse-adjustment = |
| 138 | <100000 100000 100000 100000>; |
| 139 | |
| 140 | qcom,allow-voltage-interpolation; |
| 141 | qcom,allow-quotient-interpolation; |
| 142 | qcom,cpr-scaled-open-loop-voltage-as-ceiling; |
| 143 | |
| 144 | qcom,cpr-aging-max-voltage-adjustment = <15000>; |
| 145 | qcom,cpr-aging-ref-corner = <18>; |
| 146 | qcom,cpr-aging-ro-scaling-factor = <1620>; |
| 147 | qcom,allow-aging-voltage-adjustment = |
| 148 | /* Speed bin 0 */ |
| 149 | <0 1 1 1 1 1 1 1>, |
| 150 | /* Speed bin 1 */ |
| 151 | <0 1 1 1 1 1 1 1>; |
| 152 | qcom,allow-aging-open-loop-voltage-adjustment = |
| 153 | <1>; |
| 154 | }; |
| 155 | }; |
| 156 | |
| 157 | thread@1 { |
| 158 | qcom,cpr-thread-id = <1>; |
| 159 | qcom,cpr-consecutive-up = <0>; |
| 160 | qcom,cpr-consecutive-down = <0>; |
| 161 | qcom,cpr-up-threshold = <2>; |
| 162 | qcom,cpr-down-threshold = <2>; |
| 163 | |
| 164 | apc0_l3_vreg: regulator { |
| 165 | regulator-name = "apc0_l3_corner"; |
| 166 | regulator-min-microvolt = <1>; |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 167 | regulator-max-microvolt = <15>; |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 168 | |
| 169 | qcom,cpr-fuse-corners = <4>; |
| 170 | qcom,cpr-fuse-combos = <16>; |
| 171 | qcom,cpr-speed-bins = <2>; |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 172 | qcom,cpr-speed-bin-corners = <14 15>; |
| 173 | qcom,cpr-corners = |
| 174 | /* Speed bin 0 */ |
| 175 | <14 14 14 14 14 14 14 14>, |
| 176 | /* Speed bin 1 */ |
| 177 | <15 15 15 15 15 15 15 15>; |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 178 | |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 179 | qcom,cpr-corner-fmax-map = |
| 180 | /* Speed bin 0 */ |
| 181 | <4 8 11 14>, |
| 182 | /* Speed bin 1 */ |
| 183 | <4 8 11 15>; |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 184 | |
| 185 | qcom,cpr-voltage-ceiling = |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 186 | /* Speed bin 0 */ |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 187 | <828000 828000 828000 828000 828000 |
| 188 | 828000 828000 828000 828000 828000 |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 189 | 828000 884000 884000 1000000>, |
| 190 | /* Speed bin 1 */ |
| 191 | <828000 828000 828000 828000 828000 |
| 192 | 828000 828000 828000 828000 828000 |
| 193 | 828000 884000 884000 1000000 |
| 194 | 1000000>; |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 195 | |
| 196 | qcom,cpr-voltage-floor = |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 197 | /* Speed bin 0 */ |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 198 | <568000 568000 568000 568000 568000 |
| 199 | 568000 568000 568000 568000 568000 |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 200 | 568000 568000 568000 568000>, |
| 201 | /* Speed bin 1 */ |
| 202 | <568000 568000 568000 568000 568000 |
| 203 | 568000 568000 568000 568000 568000 |
| 204 | 568000 568000 568000 568000 |
| 205 | 568000>; |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 206 | |
| 207 | qcom,cpr-floor-to-ceiling-max-range = |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 208 | /* Speed bin 0 */ |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 209 | <32000 32000 32000 32000 32000 |
| 210 | 32000 32000 32000 32000 32000 |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 211 | 32000 32000 32000 40000>, |
| 212 | /* Speed bin 1 */ |
| 213 | <32000 32000 32000 32000 32000 |
| 214 | 32000 32000 32000 32000 32000 |
| 215 | 32000 32000 32000 40000 40000>; |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 216 | |
| 217 | qcom,corner-frequencies = |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 218 | /* Speed bin 0 */ |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 219 | <300000000 403200000 480000000 |
| 220 | 576000000 652800000 748800000 |
| 221 | 844800000 940800000 1036800000 |
| 222 | 1132800000 1209600000 1305600000 |
David Collins | b7d8a0a | 2017-08-10 17:54:03 -0700 | [diff] [blame^] | 223 | 1401600000 1478400000>, |
| 224 | /* Speed bin 1 */ |
| 225 | <300000000 403200000 480000000 |
| 226 | 576000000 652800000 748800000 |
| 227 | 844800000 940800000 1036800000 |
| 228 | 1132800000 1209600000 1305600000 |
| 229 | 1401600000 1497600000 1593600000>; |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 230 | |
| 231 | qcom,cpr-ro-scaling-factor = |
| 232 | <2857 3056 2828 2952 2699 2796 2447 |
| 233 | 2631 2630 2579 2244 3343 3287 3137 |
| 234 | 3164 2656>, |
| 235 | <2857 3056 2828 2952 2699 2796 2447 |
| 236 | 2631 2630 2579 2244 3343 3287 3137 |
| 237 | 3164 2656>, |
| 238 | <2439 2577 2552 2667 2461 2577 2394 |
| 239 | 2536 2132 2307 2191 2903 2838 2912 |
| 240 | 2501 2095>, |
| 241 | <2439 2577 2552 2667 2461 2577 2394 |
| 242 | 2536 2132 2307 2191 2903 2838 2912 |
| 243 | 2501 2095>; |
| 244 | |
| 245 | qcom,cpr-open-loop-voltage-fuse-adjustment = |
| 246 | <100000 100000 100000 100000>; |
| 247 | |
| 248 | qcom,cpr-closed-loop-voltage-fuse-adjustment = |
| 249 | <100000 100000 100000 100000>; |
| 250 | |
| 251 | qcom,allow-voltage-interpolation; |
| 252 | qcom,allow-quotient-interpolation; |
| 253 | qcom,cpr-scaled-open-loop-voltage-as-ceiling; |
| 254 | |
| 255 | qcom,cpr-aging-max-voltage-adjustment = <15000>; |
| 256 | qcom,cpr-aging-ref-corner = <14>; |
| 257 | qcom,cpr-aging-ro-scaling-factor = <1620>; |
| 258 | qcom,allow-aging-voltage-adjustment = |
| 259 | /* Speed bin 0 */ |
| 260 | <0 1 1 1 1 1 1 1>, |
| 261 | /* Speed bin 1 */ |
| 262 | <0 1 1 1 1 1 1 1>; |
| 263 | qcom,allow-aging-open-loop-voltage-adjustment = |
| 264 | <1>; |
| 265 | }; |
| 266 | }; |
| 267 | }; |
| 268 | |
| 269 | apc1_cpr: cprh-ctrl@17db0000 { |
| 270 | compatible = "qcom,cprh-sdm845-v2-kbss-regulator"; |
| 271 | reg = <0x17db0000 0x4000>, |
| 272 | <0x00784000 0x1000>, |
| 273 | <0x17830000 0x1000>; |
| 274 | reg-names = "cpr_ctrl", "fuse_base", "saw"; |
| 275 | clocks = <&clock_gcc GCC_CPUSS_RBCPR_CLK>; |
| 276 | clock-names = "core_clk"; |
| 277 | qcom,cpr-ctrl-name = "apc1"; |
| 278 | qcom,cpr-controller-id = <1>; |
| 279 | |
| 280 | qcom,cpr-sensor-time = <1000>; |
| 281 | qcom,cpr-loop-time = <5000000>; |
| 282 | qcom,cpr-idle-cycles = <15>; |
| 283 | qcom,cpr-up-down-delay-time = <3000>; |
| 284 | qcom,cpr-step-quot-init-min = <9>; |
| 285 | qcom,cpr-step-quot-init-max = <14>; |
| 286 | qcom,cpr-count-mode = <0>; /* All at once */ |
| 287 | qcom,cpr-count-repeat = <20>; |
| 288 | qcom,cpr-down-error-step-limit = <1>; |
| 289 | qcom,cpr-up-error-step-limit = <1>; |
| 290 | qcom,cpr-corner-switch-delay-time = <1042>; |
| 291 | qcom,cpr-voltage-settling-time = <1760>; |
| 292 | qcom,cpr-reset-step-quot-loop-en; |
| 293 | |
| 294 | qcom,apm-threshold-voltage = <800000>; |
| 295 | qcom,apm-crossover-voltage = <880000>; |
| 296 | qcom,mem-acc-threshold-voltage = <852000>; |
| 297 | qcom,mem-acc-crossover-voltage = <852000>; |
| 298 | |
| 299 | qcom,voltage-step = <4000>; |
| 300 | qcom,voltage-base = <352000>; |
| 301 | qcom,cpr-saw-use-unit-mV; |
| 302 | |
| 303 | qcom,saw-avs-ctrl = <0x101C031>; |
| 304 | qcom,saw-avs-limit = <0x4700470>; |
| 305 | |
| 306 | qcom,cpr-enable; |
| 307 | qcom,cpr-hw-closed-loop; |
| 308 | |
| 309 | qcom,cpr-panic-reg-addr-list = |
| 310 | <0x17db3a84 0x17830c18>; |
| 311 | qcom,cpr-panic-reg-name-list = |
| 312 | "APSS_GOLD_CPRH_STATUS_0", "GOLD_SAW4_PMIC_STS"; |
| 313 | |
| 314 | qcom,cpr-aging-ref-voltage = <1136000>; |
| 315 | vdd-supply = <&pm8998_s12>; |
| 316 | |
| 317 | thread@0 { |
| 318 | qcom,cpr-thread-id = <0>; |
| 319 | qcom,cpr-consecutive-up = <0>; |
| 320 | qcom,cpr-consecutive-down = <0>; |
| 321 | qcom,cpr-up-threshold = <2>; |
| 322 | qcom,cpr-down-threshold = <2>; |
| 323 | |
| 324 | apc1_perfcl_vreg: regulator { |
| 325 | regulator-name = "apc1_perfcl_corner"; |
| 326 | regulator-min-microvolt = <1>; |
| 327 | regulator-max-microvolt = <33>; |
| 328 | |
| 329 | qcom,cpr-fuse-corners = <5>; |
| 330 | qcom,cpr-fuse-combos = <16>; |
| 331 | qcom,cpr-speed-bins = <2>; |
| 332 | qcom,cpr-speed-bin-corners = <28 31>; |
| 333 | qcom,cpr-corners = |
| 334 | /* Speed bin 0 */ |
| 335 | <28 28 28 28 28 28 28 28>, |
| 336 | /* Speed bin 1 */ |
| 337 | <31 31 31 31 31 31 31 31>; |
| 338 | |
| 339 | qcom,cpr-corner-fmax-map = |
| 340 | /* Speed bin 0 */ |
| 341 | <7 14 22 27 28>, |
| 342 | /* Speed bin 1 */ |
| 343 | <7 14 22 27 31>; |
| 344 | |
| 345 | qcom,cpr-voltage-ceiling = |
| 346 | /* Speed bin 0 */ |
| 347 | <828000 828000 828000 828000 828000 |
| 348 | 828000 828000 828000 828000 828000 |
| 349 | 828000 828000 828000 828000 828000 |
| 350 | 828000 828000 828000 884000 884000 |
| 351 | 884000 884000 1104000 1104000 1104000 |
| 352 | 1104000 1136000 1136000>, |
| 353 | /* Speed bin 1 */ |
| 354 | <828000 828000 828000 828000 828000 |
| 355 | 828000 828000 828000 828000 828000 |
| 356 | 828000 828000 828000 828000 828000 |
| 357 | 828000 828000 828000 884000 884000 |
| 358 | 884000 884000 1104000 1104000 1104000 |
| 359 | 1104000 1136000 1136000 1136000 1136000 |
| 360 | 1136000>; |
| 361 | |
| 362 | qcom,cpr-voltage-floor = |
| 363 | /* Speed bin 0 */ |
| 364 | <568000 568000 568000 568000 568000 |
| 365 | 568000 568000 568000 568000 568000 |
| 366 | 568000 568000 568000 568000 568000 |
| 367 | 568000 568000 568000 568000 568000 |
| 368 | 568000 568000 568000 568000 568000 |
| 369 | 568000 568000 568000>, |
| 370 | /* Speed bin 1 */ |
| 371 | <568000 568000 568000 568000 568000 |
| 372 | 568000 568000 568000 568000 568000 |
| 373 | 568000 568000 568000 568000 568000 |
| 374 | 568000 568000 568000 568000 568000 |
| 375 | 568000 568000 568000 568000 568000 |
| 376 | 568000 568000 568000 568000 568000 |
| 377 | 568000>; |
| 378 | |
| 379 | qcom,cpr-floor-to-ceiling-max-range = |
| 380 | /* Speed bin 0 */ |
| 381 | <32000 32000 32000 32000 32000 |
| 382 | 32000 32000 32000 32000 32000 |
| 383 | 32000 32000 32000 32000 32000 |
| 384 | 32000 32000 32000 32000 32000 |
| 385 | 32000 32000 32000 32000 32000 |
| 386 | 32000 32000 32000>, |
| 387 | /* Speed bin 1 */ |
| 388 | <32000 32000 32000 32000 32000 |
| 389 | 32000 32000 32000 32000 32000 |
| 390 | 32000 32000 32000 32000 32000 |
| 391 | 32000 32000 32000 32000 32000 |
| 392 | 32000 32000 32000 32000 32000 |
| 393 | 32000 32000 40000 40000 40000 |
| 394 | 40000>; |
| 395 | |
| 396 | qcom,corner-frequencies = |
| 397 | /* Speed bin 0 */ |
| 398 | <300000000 403200000 480000000 |
| 399 | 576000000 652800000 748800000 |
| 400 | 825600000 902400000 979200000 |
| 401 | 1056000000 1132800000 1209600000 |
| 402 | 1286400000 1363200000 1459200000 |
| 403 | 1536000000 1612800000 1689600000 |
| 404 | 1766400000 1843200000 1920000000 |
| 405 | 1996800000 2092800000 2169600000 |
| 406 | 2246400000 2323200000 2400000000 |
| 407 | 2400000000>, |
| 408 | /* Speed bin 1 */ |
| 409 | <300000000 403200000 480000000 |
| 410 | 576000000 652800000 748800000 |
| 411 | 825600000 902400000 979200000 |
| 412 | 1056000000 1132800000 1209600000 |
| 413 | 1286400000 1363200000 1459200000 |
| 414 | 1536000000 1612800000 1689600000 |
| 415 | 1766400000 1843200000 1920000000 |
| 416 | 1996800000 2092800000 2169600000 |
| 417 | 2246400000 2323200000 2400000000 |
| 418 | 2476800000 2553600000 2630400000 |
| 419 | 2707200000>; |
| 420 | |
| 421 | qcom,cpr-ro-scaling-factor = |
| 422 | <2857 3056 2828 2952 2699 2796 2447 |
| 423 | 2631 2630 2579 2244 3343 3287 3137 |
| 424 | 3164 2656>, |
| 425 | <2857 3056 2828 2952 2699 2796 2447 |
| 426 | 2631 2630 2579 2244 3343 3287 3137 |
| 427 | 3164 2656>, |
| 428 | <2086 2208 2273 2408 2203 2327 2213 |
| 429 | 2340 1755 2039 2049 2474 2437 2618 |
| 430 | 2003 1675>, |
| 431 | <2086 2208 2273 2408 2203 2327 2213 |
| 432 | 2340 1755 2039 2049 2474 2437 2618 |
| 433 | 2003 1675>, |
| 434 | <2086 2208 2273 2408 2203 2327 2213 |
| 435 | 2340 1755 2039 2049 2474 2437 2618 |
| 436 | 2003 1675>; |
| 437 | |
| 438 | qcom,cpr-open-loop-voltage-fuse-adjustment = |
| 439 | <100000 100000 100000 100000 100000>; |
| 440 | |
| 441 | qcom,cpr-closed-loop-voltage-fuse-adjustment = |
| 442 | <100000 100000 100000 100000 100000>; |
| 443 | |
| 444 | qcom,allow-voltage-interpolation; |
| 445 | qcom,allow-quotient-interpolation; |
| 446 | qcom,cpr-scaled-open-loop-voltage-as-ceiling; |
| 447 | |
| 448 | qcom,cpr-aging-max-voltage-adjustment = <15000>; |
| 449 | qcom,cpr-aging-ref-corner = <27 31>; |
| 450 | qcom,cpr-aging-ro-scaling-factor = <1700>; |
| 451 | qcom,allow-aging-voltage-adjustment = |
| 452 | /* Speed bin 0 */ |
| 453 | <0 1 1 1 1 1 1 1>, |
| 454 | /* Speed bin 1 */ |
| 455 | <0 1 1 1 1 1 1 1>; |
| 456 | qcom,allow-aging-open-loop-voltage-adjustment = |
| 457 | <1>; |
| 458 | }; |
| 459 | }; |
| 460 | }; |
| 461 | }; |
| 462 | |
| 463 | &clock_cpucc { |
Deepak Katragadda | a442baa | 2017-07-11 12:27:06 -0700 | [diff] [blame] | 464 | compatible = "qcom,clk-cpu-osm-v2"; |
| 465 | |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 466 | vdd-l3-supply = <&apc0_l3_vreg>; |
| 467 | vdd-pwrcl-supply = <&apc0_pwrcl_vreg>; |
Deepak Katragadda | a442baa | 2017-07-11 12:27:06 -0700 | [diff] [blame] | 468 | vdd-perfcl-supply = <&apc1_perfcl_vreg>; |
| 469 | |
| 470 | qcom,l3-speedbin0-v0 = |
| 471 | < 300000000 0x000c000f 0x00002020 0x1 1 >, |
| 472 | < 403200000 0x500c0115 0x00002020 0x1 2 >, |
| 473 | < 480000000 0x50140219 0x00002020 0x1 3 >, |
| 474 | < 576000000 0x5014031e 0x00002020 0x1 4 >, |
| 475 | < 652800000 0x401c0422 0x00002020 0x1 5 >, |
| 476 | < 748800000 0x401c0527 0x00002020 0x1 6 >, |
| 477 | < 844800000 0x4024062c 0x00002323 0x2 7 >, |
| 478 | < 940800000 0x40240731 0x00002727 0x2 8 >, |
| 479 | < 1036800000 0x40240836 0x00002b2b 0x2 9 >, |
| 480 | < 1132800000 0x402c093b 0x00002f2f 0x2 10 >, |
| 481 | < 1209600000 0x402c0a3f 0x00003232 0x2 11 >, |
| 482 | < 1305600000 0x40340b44 0x00003636 0x2 12 >, |
| 483 | < 1401600000 0x40340c49 0x00003a3a 0x2 13 >, |
| 484 | < 1478400000 0x403c0d4d 0x00003e3e 0x2 14 >; |
| 485 | |
| 486 | qcom,pwrcl-speedbin0-v0 = |
| 487 | < 300000000 0x000c000f 0x00002020 0x1 1 >, |
| 488 | < 403200000 0x500c0115 0x00002020 0x1 2 >, |
| 489 | < 480000000 0x50140219 0x00002020 0x1 3 >, |
| 490 | < 576000000 0x5014031e 0x00002020 0x1 4 >, |
| 491 | < 652800000 0x401c0422 0x00002020 0x1 5 >, |
| 492 | < 748800000 0x401c0527 0x00002020 0x1 6 >, |
| 493 | < 825600000 0x401c062b 0x00002222 0x1 7 >, |
| 494 | < 902400000 0x4024072f 0x00002626 0x1 8 >, |
| 495 | < 979200000 0x40240833 0x00002929 0x1 9 >, |
| 496 | < 1056000000 0x402c0937 0x00002c2c 0x2 10 >, |
| 497 | < 1132800000 0x402c0a3b 0x00002f2f 0x2 11 >, |
| 498 | < 1228800000 0x402c0b40 0x00003333 0x2 12 >, |
| 499 | < 1324800000 0x40340c45 0x00003737 0x2 13 >, |
| 500 | < 1420800000 0x40340d4a 0x00003b3b 0x2 14 >, |
| 501 | < 1516800000 0x403c0e4f 0x00003f3f 0x2 15 >, |
| 502 | < 1612800000 0x403c0f54 0x00004343 0x2 16 >, |
| 503 | < 1689600000 0x40441058 0x00004646 0x2 17 >, |
| 504 | < 1766400000 0x4044115c 0x00004a4a 0x2 18 >; |
| 505 | |
| 506 | qcom,perfcl-speedbin0-v0 = |
| 507 | < 300000000 0x000c000f 0x00002020 0x1 1 >, |
| 508 | < 403200000 0x500c0115 0x00002020 0x1 2 >, |
| 509 | < 480000000 0x50140219 0x00002020 0x1 3 >, |
| 510 | < 576000000 0x5014031e 0x00002020 0x1 4 >, |
| 511 | < 652800000 0x401c0422 0x00002020 0x1 5 >, |
| 512 | < 748800000 0x401c0527 0x00002020 0x1 6 >, |
| 513 | < 825600000 0x401c062b 0x00002222 0x1 7 >, |
| 514 | < 902400000 0x4024072f 0x00002626 0x1 8 >, |
| 515 | < 979200000 0x40240833 0x00002929 0x1 9 >, |
| 516 | < 1056000000 0x402c0937 0x00002c2c 0x1 10 >, |
| 517 | < 1132800000 0x402c0a3b 0x00002f2f 0x1 11 >, |
| 518 | < 1209600000 0x402c0b3f 0x00003232 0x2 12 >, |
| 519 | < 1286400000 0x40340c43 0x00003636 0x2 13 >, |
| 520 | < 1363200000 0x40340d47 0x00003939 0x2 14 >, |
| 521 | < 1459200000 0x403c0e4c 0x00003d3d 0x2 15 >, |
| 522 | < 1536000000 0x403c0f50 0x00004040 0x2 16 >, |
| 523 | < 1612800000 0x403c1054 0x00004343 0x2 17 >, |
| 524 | < 1689600000 0x40441158 0x00004646 0x2 18 >, |
| 525 | < 1766400000 0x4044125c 0x00004a4a 0x2 19 >, |
| 526 | < 1843200000 0x40441360 0x00004d4d 0x2 20 >, |
| 527 | < 1920000000 0x404c1464 0x00005050 0x2 21 >, |
| 528 | < 1996800000 0x404c1568 0x00005353 0x2 22 >, |
| 529 | < 2092800000 0x4054166d 0x00005757 0x2 23 >, |
| 530 | < 2169600000 0x40541771 0x00005a5a 0x2 24 >, |
| 531 | < 2246400000 0x40541875 0x00005e5e 0x2 25 >, |
| 532 | < 2323200000 0x40541979 0x00006161 0x2 26 >, |
| 533 | < 2400000000 0x40541a7d 0x00006464 0x2 27 >; |
| 534 | |
| 535 | qcom,perfcl-speedbin1-v0 = |
| 536 | < 300000000 0x000c000f 0x00002020 0x1 1 >, |
| 537 | < 403200000 0x500c0115 0x00002020 0x1 2 >, |
| 538 | < 480000000 0x50140219 0x00002020 0x1 3 >, |
| 539 | < 576000000 0x5014031e 0x00002020 0x1 4 >, |
| 540 | < 652800000 0x401c0422 0x00002020 0x1 5 >, |
| 541 | < 748800000 0x401c0527 0x00002020 0x1 6 >, |
| 542 | < 825600000 0x401c062b 0x00002222 0x1 7 >, |
| 543 | < 902400000 0x4024072f 0x00002626 0x1 8 >, |
| 544 | < 979200000 0x40240833 0x00002929 0x1 9 >, |
| 545 | < 1056000000 0x402c0937 0x00002c2c 0x1 10 >, |
| 546 | < 1132800000 0x402c0a3b 0x00002f2f 0x1 11 >, |
| 547 | < 1209600000 0x402c0b3f 0x00003232 0x2 12 >, |
| 548 | < 1286400000 0x40340c43 0x00003636 0x2 13 >, |
| 549 | < 1363200000 0x40340d47 0x00003939 0x2 14 >, |
| 550 | < 1459200000 0x403c0e4c 0x00003d3d 0x2 15 >, |
| 551 | < 1536000000 0x403c0f50 0x00004040 0x2 16 >, |
| 552 | < 1612800000 0x403c1054 0x00004343 0x2 17 >, |
| 553 | < 1689600000 0x40441158 0x00004646 0x2 18 >, |
| 554 | < 1766400000 0x4044125c 0x00004a4a 0x2 19 >, |
| 555 | < 1843200000 0x40441360 0x00004d4d 0x2 20 >, |
| 556 | < 1920000000 0x404c1464 0x00005050 0x2 21 >, |
| 557 | < 1996800000 0x404c1568 0x00005353 0x2 22 >, |
| 558 | < 2092800000 0x4054166d 0x00005757 0x2 23 >, |
| 559 | < 2169600000 0x40541771 0x00005a5a 0x2 24 >, |
| 560 | < 2246400000 0x40541875 0x00005e5e 0x2 25 >, |
| 561 | < 2323200000 0x40541979 0x00006161 0x2 26 >, |
| 562 | < 2400000000 0x40541a7d 0x00006464 0x2 27 >, |
| 563 | < 2476800000 0x40541b81 0x00006767 0x2 28 >, |
| 564 | < 2553600000 0x40541c85 0x00006a6a 0x2 29 >, |
| 565 | < 2630400000 0x40541d89 0x00006e6e 0x2 30 >, |
| 566 | < 2707200000 0x40541e8d 0x00007171 0x2 31 >; |
Deepak Katragadda | 30d72dd | 2017-08-01 13:56:00 -0700 | [diff] [blame] | 567 | |
| 568 | qcom,l3-memacc-level-vc-bin0 = <8 13>; |
| 569 | |
| 570 | qcom,pwrcl-memacc-level-vc-bin0 = <12 16>; |
| 571 | |
| 572 | qcom,perfcl-memacc-level-vc-bin0 = <14 22>; |
| 573 | qcom,perfcl-memacc-level-vc-bin1 = <14 22>; |
David Collins | f576476 | 2017-07-20 16:42:42 -0700 | [diff] [blame] | 574 | }; |
| 575 | |
Deepak Katragadda | da47ee9 | 2017-06-07 14:15:09 -0700 | [diff] [blame] | 576 | &clock_gcc { |
| 577 | compatible = "qcom,gcc-sdm845-v2"; |
| 578 | }; |
| 579 | |
| 580 | &clock_camcc { |
| 581 | compatible = "qcom,cam_cc-sdm845-v2"; |
| 582 | }; |
| 583 | |
| 584 | &clock_dispcc { |
| 585 | compatible = "qcom,dispcc-sdm845-v2"; |
| 586 | }; |
| 587 | |
Vicky Wallace | 1762ab3 | 2017-07-12 19:00:04 -0700 | [diff] [blame] | 588 | &clock_gpucc { |
| 589 | compatible = "qcom,gpucc-sdm845-v2"; |
| 590 | }; |
| 591 | |
| 592 | &clock_gfx { |
| 593 | compatible = "qcom,gfxcc-sdm845-v2"; |
| 594 | }; |
| 595 | |
Deepak Katragadda | da47ee9 | 2017-06-07 14:15:09 -0700 | [diff] [blame] | 596 | &clock_videocc { |
| 597 | compatible = "qcom,video_cc-sdm845-v2"; |
| 598 | }; |
Praneeth Paladugu | 5538121 | 2017-07-05 15:02:44 -0700 | [diff] [blame] | 599 | |
Deepak Katragadda | 0836d18 | 2017-07-27 14:23:02 -0700 | [diff] [blame] | 600 | &clock_aop { |
| 601 | compatible = "qcom,aop-qmp-clk-v2"; |
| 602 | }; |
| 603 | |
Praneeth Paladugu | 5538121 | 2017-07-05 15:02:44 -0700 | [diff] [blame] | 604 | &msm_vidc { |
| 605 | qcom,allowed-clock-rates = <100000000 200000000 330000000 |
| 606 | 404000000 444000000 533000000>; |
| 607 | }; |
Reut Zysman | 861fd6c | 2017-07-30 15:39:13 +0300 | [diff] [blame] | 608 | |
| 609 | &spss_utils { |
| 610 | qcom,spss-dev-firmware-name = "spss2d"; /* 8 chars max */ |
| 611 | qcom,spss-test-firmware-name = "spss2t"; /* 8 chars max */ |
| 612 | qcom,spss-prod-firmware-name = "spss2p"; /* 8 chars max */ |
| 613 | }; |
Narendra Muppalla | 4efd344 | 2017-07-24 17:36:15 -0700 | [diff] [blame] | 614 | |
| 615 | &mdss_mdp { |
| 616 | clock-max-rate = <0 0 0 0 430000000 19200000 0>; |
| 617 | }; |