Maria Yu | f16c160 | 2017-12-22 13:05:17 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #include "msm8953.dtsi" |
| 15 | #include "sdm632-cpu.dtsi" |
Tirupathi Reddy | a5db57f | 2018-02-16 10:13:53 +0530 | [diff] [blame] | 16 | #include "sdm632-regulator.dtsi" |
Maria Yu | f16c160 | 2017-12-22 13:05:17 +0800 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Qualcomm Technologies, Inc. SDM632"; |
| 20 | compatible = "qcom,sdm632"; |
| 21 | qcom,msm-id = <349 0x0>; |
Maria Yu | 9b0870c | 2018-01-25 15:36:28 +0800 | [diff] [blame] | 22 | qcom,msm-name = "SDM632"; |
Lingutla Chandrasekhar | 5fb437c | 2018-02-27 18:04:53 +0530 | [diff] [blame] | 23 | |
| 24 | chosen { |
Teng Fei Fan | 32bd497 | 2018-04-04 16:15:35 +0800 | [diff] [blame] | 25 | bootargs = "kpti=0"; |
Lingutla Chandrasekhar | 5fb437c | 2018-02-27 18:04:53 +0530 | [diff] [blame] | 26 | }; |
Maria Yu | f16c160 | 2017-12-22 13:05:17 +0800 | [diff] [blame] | 27 | }; |
| 28 | |
Amit Nischal | 3b725e6 | 2018-02-15 11:26:27 +0530 | [diff] [blame] | 29 | &clock_gcc_mdss { |
| 30 | compatible = "qcom,gcc-mdss-sdm632"; |
| 31 | }; |
| 32 | |
Amit Nischal | 5f68195 | 2018-01-30 13:07:02 +0530 | [diff] [blame] | 33 | &clock_gcc { |
| 34 | compatible = "qcom,gcc-sdm632"; |
| 35 | }; |
| 36 | |
| 37 | &clock_debug { |
| 38 | compatible = "qcom,cc-debug-sdm632"; |
| 39 | }; |
| 40 | |
Odelu Kukatla | 3de0640 | 2018-05-22 17:31:53 +0530 | [diff] [blame] | 41 | &soc { |
| 42 | devfreq_spdm_cpu { |
| 43 | status = "disabled"; |
| 44 | }; |
| 45 | |
| 46 | devfreq_spdm_gov { |
| 47 | status = "disabled"; |
| 48 | }; |
| 49 | }; |
| 50 | |
Amit Nischal | 5f68195 | 2018-01-30 13:07:02 +0530 | [diff] [blame] | 51 | &clock_gcc_gfx { |
| 52 | compatible = "qcom,gcc-gfx-sdm632"; |
Taniya Das | 1dd6408 | 2018-03-23 16:51:36 +0530 | [diff] [blame] | 53 | qcom,gfxfreq-corner = |
| 54 | < 0 0 >, |
| 55 | < 133330000 1 >, /* Min SVS */ |
| 56 | < 216000000 2 >, /* Low SVS */ |
| 57 | < 320000000 3 >, /* SVS */ |
| 58 | < 400000000 4 >, /* SVS Plus */ |
| 59 | < 510000000 5 >, /* NOM */ |
| 60 | < 560000000 6 >, /* Nom Plus */ |
| 61 | < 650000000 7 >, /* Turbo */ |
| 62 | < 700000000 7 >, /* Turbo */ |
| 63 | < 725000000 7 >; /* Turbo */ |
Amit Nischal | 5f68195 | 2018-01-30 13:07:02 +0530 | [diff] [blame] | 64 | }; |
Rama Krishna Phani A | 42ed9c7 | 2018-03-05 11:33:37 +0530 | [diff] [blame] | 65 | |
| 66 | &thermal_zones { |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 67 | /delete-node/ camera-usr; |
| 68 | /delete-node/ apc1-l2-usr; |
| 69 | /delete-node/ apc0-cpu0-usr; |
| 70 | /delete-node/ apc0-cpu1-usr; |
| 71 | /delete-node/ apc0-cpu2-usr; |
| 72 | /delete-node/ apc0-cpu3-usr; |
| 73 | /delete-node/ apc0-l2-usr; |
| 74 | /delete-node/ gpu0-usr; |
| 75 | /delete-node/ gpu1-usr; |
| 76 | /delete-node/ gpu1-step; |
| 77 | /delete-node/ deca-cpu-max-step; |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 78 | /delete-node/ apc1-cpu0-step; |
| 79 | /delete-node/ apc1-cpu1-step; |
| 80 | /delete-node/ apc1-cpu2-step; |
| 81 | /delete-node/ apc1-cpu3-step; |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 82 | /delete-node/ apc0-cpu0-step; |
| 83 | /delete-node/ apc0-cpu1-step; |
| 84 | /delete-node/ apc0-cpu2-step; |
| 85 | /delete-node/ apc0-cpu3-step; |
| 86 | /delete-node/ camera-lowf; |
| 87 | /delete-node/ apc1-l2-lowf; |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 88 | /delete-node/ apc1-cpu0-lowf; |
| 89 | /delete-node/ apc1-cpu1-lowf; |
| 90 | /delete-node/ apc1-cpu2-lowf; |
| 91 | /delete-node/ apc1-cpu3-lowf; |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 92 | /delete-node/ apc0-cpu0-lowf; |
| 93 | /delete-node/ apc0-cpu1-lowf; |
| 94 | /delete-node/ apc0-cpu2-lowf; |
| 95 | /delete-node/ apc0-cpu3-lowf; |
| 96 | /delete-node/ apc0-l2-lowf; |
| 97 | /delete-node/ gpu0-lowf; |
| 98 | /delete-node/ gpu1-lowf; |
Jishnu Prakash | 097184b | 2018-03-22 14:28:57 +0530 | [diff] [blame] | 99 | /delete-node/ apc1-cpu0-usr; |
| 100 | /delete-node/ apc1-cpu1-usr; |
| 101 | /delete-node/ apc1-cpu2-usr; |
| 102 | /delete-node/ apc1-cpu3-usr; |
Rama Krishna Phani A | 42ed9c7 | 2018-03-05 11:33:37 +0530 | [diff] [blame] | 103 | |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 104 | case-therm-step { |
Rama Krishna Phani A | 42ed9c7 | 2018-03-05 11:33:37 +0530 | [diff] [blame] | 105 | status = "disabled"; |
| 106 | }; |
| 107 | |
Manaf Meethalavalappu Pallikunhi | e5b6ec0 | 2018-04-05 17:30:26 +0530 | [diff] [blame] | 108 | quiet-therm-step { |
| 109 | status = "disabled"; |
| 110 | }; |
| 111 | |
Rama Krishna Phani A | 42ed9c7 | 2018-03-05 11:33:37 +0530 | [diff] [blame] | 112 | video-usr { |
| 113 | polling-delay-passive = <0>; |
| 114 | polling-delay = <0>; |
| 115 | thermal-governor = "user_space"; |
| 116 | thermal-sensors = <&tsens0 3>; |
| 117 | trips { |
| 118 | active-config0 { |
| 119 | temperature = <125000>; |
| 120 | hysteresis = <1000>; |
| 121 | type = "passive"; |
| 122 | }; |
| 123 | }; |
| 124 | }; |
| 125 | |
Jishnu Prakash | 097184b | 2018-03-22 14:28:57 +0530 | [diff] [blame] | 126 | apc1-mhm-usr { |
| 127 | polling-delay-passive = <0>; |
| 128 | polling-delay = <0>; |
| 129 | thermal-sensors = <&tsens0 4>; |
| 130 | thermal-governor = "user_space"; |
| 131 | trips { |
| 132 | active-config0 { |
| 133 | temperature = <125000>; |
| 134 | hysteresis = <1000>; |
| 135 | type = "passive"; |
| 136 | }; |
| 137 | }; |
| 138 | }; |
| 139 | |
| 140 | apc1-cpu0-usr { |
| 141 | polling-delay-passive = <0>; |
| 142 | polling-delay = <0>; |
| 143 | thermal-sensors = <&tsens0 5>; |
| 144 | thermal-governor = "user_space"; |
| 145 | trips { |
| 146 | active-config0 { |
| 147 | temperature = <125000>; |
| 148 | hysteresis = <1000>; |
| 149 | type = "passive"; |
| 150 | }; |
| 151 | }; |
| 152 | }; |
| 153 | |
| 154 | apc1-cpu1-usr { |
| 155 | polling-delay-passive = <0>; |
| 156 | polling-delay = <0>; |
| 157 | thermal-sensors = <&tsens0 6>; |
| 158 | thermal-governor = "user_space"; |
| 159 | trips { |
| 160 | active-config0 { |
| 161 | temperature = <125000>; |
| 162 | hysteresis = <1000>; |
| 163 | type = "passive"; |
| 164 | }; |
| 165 | }; |
| 166 | }; |
| 167 | |
| 168 | apc1-cpu2-usr { |
| 169 | polling-delay-passive = <0>; |
| 170 | polling-delay = <0>; |
| 171 | thermal-sensors = <&tsens0 7>; |
| 172 | thermal-governor = "user_space"; |
| 173 | trips { |
| 174 | active-config0 { |
| 175 | temperature = <125000>; |
| 176 | hysteresis = <1000>; |
| 177 | type = "passive"; |
| 178 | }; |
| 179 | }; |
| 180 | }; |
| 181 | |
| 182 | apc1-cpu3-usr { |
Rama Krishna Phani A | 42ed9c7 | 2018-03-05 11:33:37 +0530 | [diff] [blame] | 183 | polling-delay-passive = <0>; |
| 184 | polling-delay = <0>; |
| 185 | thermal-sensors = <&tsens0 8>; |
| 186 | thermal-governor = "user_space"; |
| 187 | trips { |
| 188 | active-config0 { |
| 189 | temperature = <125000>; |
| 190 | hysteresis = <1000>; |
| 191 | type = "passive"; |
| 192 | }; |
| 193 | }; |
| 194 | }; |
| 195 | |
Jishnu Prakash | 097184b | 2018-03-22 14:28:57 +0530 | [diff] [blame] | 196 | apc1-l2-usr { |
Rama Krishna Phani A | 42ed9c7 | 2018-03-05 11:33:37 +0530 | [diff] [blame] | 197 | polling-delay-passive = <0>; |
| 198 | polling-delay = <0>; |
| 199 | thermal-sensors = <&tsens0 9>; |
| 200 | thermal-governor = "user_space"; |
| 201 | trips { |
| 202 | active-config0 { |
| 203 | temperature = <125000>; |
| 204 | hysteresis = <1000>; |
| 205 | type = "passive"; |
| 206 | }; |
| 207 | }; |
| 208 | }; |
| 209 | |
Jishnu Prakash | 097184b | 2018-03-22 14:28:57 +0530 | [diff] [blame] | 210 | cpuss0-usr { |
Rama Krishna Phani A | 42ed9c7 | 2018-03-05 11:33:37 +0530 | [diff] [blame] | 211 | polling-delay-passive = <0>; |
| 212 | polling-delay = <0>; |
| 213 | thermal-sensors = <&tsens0 13>; |
| 214 | thermal-governor = "user_space"; |
| 215 | trips { |
| 216 | active-config0 { |
| 217 | temperature = <125000>; |
| 218 | hysteresis = <1000>; |
| 219 | type = "passive"; |
| 220 | }; |
| 221 | }; |
| 222 | }; |
| 223 | |
| 224 | camera-usr { |
| 225 | polling-delay-passive = <0>; |
| 226 | polling-delay = <0>; |
| 227 | thermal-sensors = <&tsens0 14>; |
| 228 | thermal-governor = "user_space"; |
| 229 | trips { |
| 230 | active-config0 { |
| 231 | temperature = <125000>; |
| 232 | hysteresis = <1000>; |
| 233 | type = "passive"; |
| 234 | }; |
| 235 | }; |
| 236 | }; |
| 237 | |
| 238 | gpu0-usr { |
| 239 | polling-delay-passive = <0>; |
| 240 | polling-delay = <0>; |
| 241 | thermal-sensors = <&tsens0 15>; |
| 242 | thermal-governor = "user_space"; |
| 243 | trips { |
| 244 | active-config0 { |
| 245 | temperature = <125000>; |
| 246 | hysteresis = <1000>; |
| 247 | type = "passive"; |
| 248 | }; |
| 249 | }; |
| 250 | }; |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 251 | |
| 252 | gpu0-step { |
| 253 | polling-delay-passive = <250>; |
| 254 | polling-delay = <0>; |
| 255 | thermal-sensors = <&tsens0 15>; |
| 256 | thermal-governor = "step_wise"; |
| 257 | |
| 258 | trips { |
| 259 | sdm632_gpu_trip0: gpu-trip0 { |
| 260 | temperature = <95000>; |
| 261 | hysteresis = <0>; |
| 262 | type = "passive"; |
| 263 | }; |
| 264 | }; |
| 265 | cooling-maps { |
| 266 | gpu_cdev0 { |
| 267 | trip = <&sdm632_gpu_trip0>; |
| 268 | cooling-device = |
| 269 | <&msm_gpu THERMAL_NO_LIMIT |
| 270 | THERMAL_NO_LIMIT>; |
| 271 | }; |
| 272 | }; |
| 273 | }; |
| 274 | |
| 275 | hepta-cpu-max-step { |
| 276 | polling-delay-passive = <50>; |
| 277 | polling-delay = <100>; |
| 278 | thermal-governor = "step_wise"; |
| 279 | |
| 280 | trips { |
| 281 | sdm632_cpu_trip:cpu-trip { |
| 282 | temperature = <95000>; |
| 283 | hysteresis = <0>; |
| 284 | type = "passive"; |
| 285 | }; |
| 286 | }; |
| 287 | |
| 288 | cooling-maps { |
| 289 | cpu0_cdev { |
| 290 | trip = <&sdm632_cpu_trip>; |
| 291 | cooling-device = |
| 292 | <&CPU0 THERMAL_NO_LIMIT |
| 293 | (THERMAL_MAX_LIMIT-1)>; |
| 294 | }; |
| 295 | cpu1_cdev { |
| 296 | trip = <&sdm632_cpu_trip>; |
| 297 | cooling-device = |
| 298 | <&CPU1 THERMAL_NO_LIMIT |
| 299 | (THERMAL_MAX_LIMIT-1)>; |
| 300 | }; |
| 301 | cpu2_cdev { |
| 302 | trip = <&sdm632_cpu_trip>; |
| 303 | cooling-device = |
| 304 | <&CPU2 THERMAL_NO_LIMIT |
| 305 | (THERMAL_MAX_LIMIT-1)>; |
| 306 | }; |
| 307 | cpu3_cdev { |
| 308 | trip = <&sdm632_cpu_trip>; |
| 309 | cooling-device = |
| 310 | <&CPU3 THERMAL_NO_LIMIT |
| 311 | (THERMAL_MAX_LIMIT-1)>; |
| 312 | }; |
| 313 | cpu4_cdev { |
| 314 | trip = <&sdm632_cpu_trip>; |
| 315 | cooling-device = |
| 316 | <&CPU4 THERMAL_NO_LIMIT |
| 317 | (THERMAL_MAX_LIMIT-1)>; |
| 318 | }; |
| 319 | cpu5_cdev { |
| 320 | trip = <&sdm632_cpu_trip>; |
| 321 | cooling-device = |
| 322 | <&CPU5 THERMAL_NO_LIMIT |
| 323 | (THERMAL_MAX_LIMIT-1)>; |
| 324 | }; |
| 325 | cpu6_cdev { |
| 326 | trip = <&sdm632_cpu_trip>; |
| 327 | cooling-device = |
| 328 | <&CPU6 THERMAL_NO_LIMIT |
| 329 | (THERMAL_MAX_LIMIT-1)>; |
| 330 | }; |
| 331 | cpu7_cdev { |
| 332 | trip = <&sdm632_cpu_trip>; |
| 333 | cooling-device = |
| 334 | <&CPU7 THERMAL_NO_LIMIT |
| 335 | (THERMAL_MAX_LIMIT-1)>; |
| 336 | }; |
| 337 | }; |
| 338 | }; |
| 339 | |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 340 | apc1-cpu0-step { |
| 341 | polling-delay-passive = <0>; |
| 342 | polling-delay = <0>; |
| 343 | thermal-sensors = <&tsens0 5>; |
| 344 | thermal-governor = "step_wise"; |
| 345 | trips { |
| 346 | apc1_cpu0_trip: apc1-cpu0-trip { |
| 347 | temperature = <105000>; |
| 348 | hysteresis = <15000>; |
| 349 | type = "passive"; |
| 350 | }; |
| 351 | }; |
| 352 | cooling-maps { |
| 353 | cpu4_cdev { |
| 354 | trip = <&apc1_cpu0_trip>; |
| 355 | cooling-device = |
| 356 | <&CPU4 THERMAL_MAX_LIMIT |
| 357 | THERMAL_MAX_LIMIT>; |
| 358 | }; |
| 359 | }; |
| 360 | }; |
| 361 | |
| 362 | apc1-cpu1-step { |
| 363 | polling-delay-passive = <0>; |
| 364 | polling-delay = <0>; |
| 365 | thermal-sensors = <&tsens0 6>; |
| 366 | thermal-governor = "step_wise"; |
| 367 | trips { |
| 368 | apc1_cpu1_trip: apc1-cpu1-trip { |
| 369 | temperature = <105000>; |
| 370 | hysteresis = <15000>; |
| 371 | type = "passive"; |
| 372 | }; |
| 373 | }; |
| 374 | cooling-maps { |
| 375 | cpu5_cdev { |
| 376 | trip = <&apc1_cpu1_trip>; |
| 377 | cooling-device = |
| 378 | <&CPU5 THERMAL_MAX_LIMIT |
| 379 | THERMAL_MAX_LIMIT>; |
| 380 | }; |
| 381 | }; |
| 382 | }; |
| 383 | |
| 384 | apc1-cpu2-step { |
| 385 | polling-delay-passive = <0>; |
| 386 | polling-delay = <0>; |
| 387 | thermal-sensors = <&tsens0 7>; |
| 388 | thermal-governor = "step_wise"; |
| 389 | trips { |
| 390 | apc1_cpu2_trip: apc1-cpu2-trip { |
| 391 | temperature = <105000>; |
| 392 | hysteresis = <15000>; |
| 393 | type = "passive"; |
| 394 | }; |
| 395 | }; |
| 396 | cooling-maps { |
| 397 | cpu6_cdev { |
| 398 | trip = <&apc1_cpu2_trip>; |
| 399 | cooling-device = |
| 400 | <&CPU6 THERMAL_MAX_LIMIT |
| 401 | THERMAL_MAX_LIMIT>; |
| 402 | }; |
| 403 | }; |
| 404 | }; |
| 405 | |
| 406 | apc1-cpu3-step { |
| 407 | polling-delay-passive = <0>; |
| 408 | polling-delay = <0>; |
| 409 | thermal-sensors = <&tsens0 8>; |
| 410 | thermal-governor = "step_wise"; |
| 411 | trips { |
| 412 | apc1_cpu3_trip: apc1-cpu3-trip { |
| 413 | temperature = <105000>; |
| 414 | hysteresis = <15000>; |
| 415 | type = "passive"; |
| 416 | }; |
| 417 | }; |
| 418 | cooling-maps { |
| 419 | cpu7_cdev { |
| 420 | trip = <&apc1_cpu3_trip>; |
| 421 | cooling-device = |
| 422 | <&CPU7 THERMAL_MAX_LIMIT |
| 423 | THERMAL_MAX_LIMIT>; |
| 424 | }; |
| 425 | }; |
| 426 | }; |
| 427 | |
| 428 | cpuss0-step { |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 429 | polling-delay-passive = <0>; |
| 430 | polling-delay = <0>; |
| 431 | thermal-sensors = <&tsens0 13>; |
| 432 | thermal-governor = "step_wise"; |
| 433 | |
| 434 | trips { |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 435 | cpuss0_trip: cpuss0-trip { |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 436 | temperature = <105000>; |
| 437 | hysteresis = <15000>; |
| 438 | type = "passive"; |
| 439 | }; |
| 440 | }; |
| 441 | cooling-maps { |
| 442 | cpu0_cdev { |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 443 | trip = <&cpuss0_trip>; |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 444 | cooling-device = |
| 445 | <&CPU0 THERMAL_MAX_LIMIT |
| 446 | THERMAL_MAX_LIMIT>; |
| 447 | }; |
| 448 | cpu1_cdev { |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 449 | trip = <&cpuss0_trip>; |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 450 | cooling-device = |
| 451 | <&CPU1 THERMAL_MAX_LIMIT |
| 452 | THERMAL_MAX_LIMIT>; |
| 453 | }; |
| 454 | cpu2_cdev { |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 455 | trip = <&cpuss0_trip>; |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 456 | cooling-device = |
| 457 | <&CPU2 THERMAL_MAX_LIMIT |
| 458 | THERMAL_MAX_LIMIT>; |
| 459 | }; |
| 460 | cpu3_cdev { |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 461 | trip = <&cpuss0_trip>; |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 462 | cooling-device = |
| 463 | <&CPU3 THERMAL_MAX_LIMIT |
| 464 | THERMAL_MAX_LIMIT>; |
| 465 | }; |
| 466 | }; |
| 467 | }; |
| 468 | |
| 469 | video-lowf { |
| 470 | polling-delay-passive = <0>; |
| 471 | polling-delay = <0>; |
| 472 | thermal-governor = "low_limits_floor"; |
| 473 | thermal-sensors = <&tsens0 3>; |
| 474 | tracks-low; |
| 475 | |
| 476 | trips { |
| 477 | video_trip: video-trip { |
| 478 | temperature = <5000>; |
| 479 | hysteresis = <5000>; |
| 480 | type = "passive"; |
| 481 | }; |
| 482 | }; |
| 483 | cooling-maps { |
| 484 | cpu0_vdd_cdev { |
| 485 | trip = <&video_trip>; |
| 486 | cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4) |
| 487 | (THERMAL_MAX_LIMIT - 4)>; |
| 488 | }; |
| 489 | gpu_vdd_cdev { |
| 490 | trip = <&video_trip>; |
| 491 | cooling-device = <&msm_gpu 2 2>; |
| 492 | }; |
| 493 | cx_vdd_cdev { |
| 494 | trip = <&video_trip>; |
| 495 | cooling-device = <&cx_cdev 0 0>; |
| 496 | }; |
| 497 | modem_vdd_cdev { |
| 498 | trip = <&video_trip>; |
| 499 | cooling-device = <&modem_vdd 0 0>; |
| 500 | }; |
| 501 | }; |
| 502 | }; |
| 503 | |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 504 | apc1-mhm-low { |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 505 | polling-delay-passive = <0>; |
| 506 | polling-delay = <0>; |
| 507 | thermal-governor = "low_limits_floor"; |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 508 | thermal-sensors = <&tsens0 4>; |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 509 | tracks-low; |
| 510 | |
| 511 | trips { |
| 512 | sdm632_cpuss1_trip: cpuss1-trip { |
| 513 | temperature = <5000>; |
| 514 | hysteresis = <5000>; |
| 515 | type = "passive"; |
| 516 | }; |
| 517 | }; |
| 518 | cooling-maps { |
| 519 | cpu0_vdd_cdev { |
| 520 | trip = <&sdm632_cpuss1_trip>; |
| 521 | cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4) |
| 522 | (THERMAL_MAX_LIMIT - 4)>; |
| 523 | }; |
| 524 | gpu_vdd_cdev { |
| 525 | trip = <&sdm632_cpuss1_trip>; |
| 526 | cooling-device = <&msm_gpu 2 2>; |
| 527 | }; |
| 528 | cx_vdd_cdev { |
| 529 | trip = <&sdm632_cpuss1_trip>; |
| 530 | cooling-device = <&cx_cdev 0 0>; |
| 531 | }; |
| 532 | modem_vdd_cdev { |
| 533 | trip = <&sdm632_cpuss1_trip>; |
| 534 | cooling-device = <&modem_vdd 0 0>; |
| 535 | }; |
| 536 | }; |
| 537 | }; |
| 538 | |
Manaf Meethalavalappu Pallikunhi | ba19d5b | 2018-03-22 17:41:50 +0530 | [diff] [blame] | 539 | apc1-cpu0-lowf { |
| 540 | polling-delay-passive = <0>; |
| 541 | polling-delay = <0>; |
| 542 | thermal-governor = "low_limits_floor"; |
| 543 | thermal-sensors = <&tsens0 5>; |
| 544 | tracks-low; |
| 545 | trips { |
| 546 | cpu4_trip: apc1-cpu0-trip { |
| 547 | temperature = <5000>; |
| 548 | hysteresis = <5000>; |
| 549 | type = "passive"; |
| 550 | }; |
| 551 | }; |
| 552 | cooling-maps { |
| 553 | cpu0_vdd_cdev { |
| 554 | trip = <&cpu4_trip>; |
| 555 | cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4) |
| 556 | (THERMAL_MAX_LIMIT - 4)>; |
| 557 | }; |
| 558 | gpu_vdd_cdev { |
| 559 | trip = <&cpu4_trip>; |
| 560 | cooling-device = <&msm_gpu 2 2>; |
| 561 | }; |
| 562 | cx_vdd_cdev { |
| 563 | trip = <&cpu4_trip>; |
| 564 | cooling-device = <&cx_cdev 0 0>; |
| 565 | }; |
| 566 | modem_vdd_cdev { |
| 567 | trip = <&cpu4_trip>; |
| 568 | cooling-device = <&modem_vdd 0 0>; |
| 569 | }; |
| 570 | }; |
| 571 | }; |
| 572 | |
| 573 | apc1-cpu1-lowf { |
| 574 | polling-delay-passive = <0>; |
| 575 | polling-delay = <0>; |
| 576 | thermal-governor = "low_limits_floor"; |
| 577 | thermal-sensors = <&tsens0 6>; |
| 578 | tracks-low; |
| 579 | trips { |
| 580 | cpu5_trip: apc1-cpu0-trip { |
| 581 | temperature = <5000>; |
| 582 | hysteresis = <5000>; |
| 583 | type = "passive"; |
| 584 | }; |
| 585 | }; |
| 586 | cooling-maps { |
| 587 | cpu0_vdd_cdev { |
| 588 | trip = <&cpu5_trip>; |
| 589 | cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4) |
| 590 | (THERMAL_MAX_LIMIT - 4)>; |
| 591 | }; |
| 592 | gpu_vdd_cdev { |
| 593 | trip = <&cpu5_trip>; |
| 594 | cooling-device = <&msm_gpu 2 2>; |
| 595 | }; |
| 596 | cx_vdd_cdev { |
| 597 | trip = <&cpu5_trip>; |
| 598 | cooling-device = <&cx_cdev 0 0>; |
| 599 | }; |
| 600 | modem_vdd_cdev { |
| 601 | trip = <&cpu5_trip>; |
| 602 | cooling-device = <&modem_vdd 0 0>; |
| 603 | }; |
| 604 | }; |
| 605 | }; |
| 606 | |
| 607 | apc1-cpu2-lowf { |
| 608 | polling-delay-passive = <0>; |
| 609 | polling-delay = <0>; |
| 610 | thermal-governor = "low_limits_floor"; |
| 611 | thermal-sensors = <&tsens0 7>; |
| 612 | tracks-low; |
| 613 | trips { |
| 614 | cpu6_trip: apc1-cpu2-trip { |
| 615 | temperature = <5000>; |
| 616 | hysteresis = <5000>; |
| 617 | type = "passive"; |
| 618 | }; |
| 619 | }; |
| 620 | cooling-maps { |
| 621 | cpu0_vdd_cdev { |
| 622 | trip = <&cpu6_trip>; |
| 623 | cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4) |
| 624 | (THERMAL_MAX_LIMIT - 4)>; |
| 625 | }; |
| 626 | gpu_vdd_cdev { |
| 627 | trip = <&cpu6_trip>; |
| 628 | cooling-device = <&msm_gpu 2 2>; |
| 629 | }; |
| 630 | cx_vdd_cdev { |
| 631 | trip = <&cpu6_trip>; |
| 632 | cooling-device = <&cx_cdev 0 0>; |
| 633 | }; |
| 634 | modem_vdd_cdev { |
| 635 | trip = <&cpu6_trip>; |
| 636 | cooling-device = <&modem_vdd 0 0>; |
| 637 | }; |
| 638 | }; |
| 639 | }; |
| 640 | |
| 641 | apc1-cpu3-lowf { |
| 642 | polling-delay-passive = <0>; |
| 643 | polling-delay = <0>; |
| 644 | thermal-governor = "low_limits_floor"; |
| 645 | thermal-sensors = <&tsens0 8>; |
| 646 | tracks-low; |
| 647 | trips { |
| 648 | cpu7_trip: apc1-cpu3-trip { |
| 649 | temperature = <5000>; |
| 650 | hysteresis = <5000>; |
| 651 | type = "passive"; |
| 652 | }; |
| 653 | }; |
| 654 | cooling-maps { |
| 655 | cpu0_vdd_cdev { |
| 656 | trip = <&cpu7_trip>; |
| 657 | cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4) |
| 658 | (THERMAL_MAX_LIMIT - 4)>; |
| 659 | }; |
| 660 | gpu_vdd_cdev { |
| 661 | trip = <&cpu7_trip>; |
| 662 | cooling-device = <&msm_gpu 2 2>; |
| 663 | }; |
| 664 | cx_vdd_cdev { |
| 665 | trip = <&cpu7_trip>; |
| 666 | cooling-device = <&cx_cdev 0 0>; |
| 667 | }; |
| 668 | modem_vdd_cdev { |
| 669 | trip = <&cpu7_trip>; |
| 670 | cooling-device = <&modem_vdd 0 0>; |
| 671 | }; |
| 672 | }; |
| 673 | }; |
| 674 | |
| 675 | apc1-l2-low { |
| 676 | polling-delay-passive = <0>; |
| 677 | polling-delay = <0>; |
| 678 | thermal-governor = "low_limits_floor"; |
| 679 | thermal-sensors = <&tsens0 9>; |
| 680 | tracks-low; |
| 681 | |
| 682 | trips { |
| 683 | sdm632_cpuss0_trip: cpuss0-trip { |
| 684 | temperature = <5000>; |
| 685 | hysteresis = <5000>; |
| 686 | type = "passive"; |
| 687 | }; |
| 688 | }; |
| 689 | cooling-maps { |
| 690 | cpu0_vdd_cdev { |
| 691 | trip = <&sdm632_cpuss0_trip>; |
| 692 | cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4) |
| 693 | (THERMAL_MAX_LIMIT - 4)>; |
| 694 | }; |
| 695 | gpu_vdd_cdev { |
| 696 | trip = <&sdm632_cpuss0_trip>; |
| 697 | cooling-device = <&msm_gpu 2 2>; |
| 698 | }; |
| 699 | cx_vdd_cdev { |
| 700 | trip = <&sdm632_cpuss0_trip>; |
| 701 | cooling-device = <&cx_cdev 0 0>; |
| 702 | }; |
| 703 | modem_vdd_cdev { |
| 704 | trip = <&sdm632_cpuss0_trip>; |
| 705 | cooling-device = <&modem_vdd 0 0>; |
| 706 | }; |
| 707 | }; |
| 708 | }; |
| 709 | |
| 710 | cpuss0-lowf { |
Manaf Meethalavalappu Pallikunhi | 316da2c | 2018-03-07 01:33:59 +0530 | [diff] [blame] | 711 | polling-delay-passive = <0>; |
| 712 | polling-delay = <0>; |
| 713 | thermal-governor = "low_limits_floor"; |
| 714 | thermal-sensors = <&tsens0 13>; |
| 715 | tracks-low; |
| 716 | |
| 717 | trips { |
| 718 | sdm632_cpuss3_trip: cpuss3-trip { |
| 719 | temperature = <5000>; |
| 720 | hysteresis = <5000>; |
| 721 | type = "passive"; |
| 722 | }; |
| 723 | }; |
| 724 | cooling-maps { |
| 725 | cpu0_vdd_cdev { |
| 726 | trip = <&sdm632_cpuss3_trip>; |
| 727 | cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4) |
| 728 | (THERMAL_MAX_LIMIT - 4)>; |
| 729 | }; |
| 730 | gpu_vdd_cdev { |
| 731 | trip = <&sdm632_cpuss3_trip>; |
| 732 | cooling-device = <&msm_gpu 2 2>; |
| 733 | }; |
| 734 | cx_vdd_cdev { |
| 735 | trip = <&sdm632_cpuss3_trip>; |
| 736 | cooling-device = <&cx_cdev 0 0>; |
| 737 | }; |
| 738 | modem_vdd_cdev { |
| 739 | trip = <&sdm632_cpuss3_trip>; |
| 740 | cooling-device = <&modem_vdd 0 0>; |
| 741 | }; |
| 742 | }; |
| 743 | }; |
| 744 | |
| 745 | camera-lowf { |
| 746 | polling-delay-passive = <0>; |
| 747 | polling-delay = <0>; |
| 748 | thermal-governor = "low_limits_floor"; |
| 749 | thermal-sensors = <&tsens0 14>; |
| 750 | tracks-low; |
| 751 | |
| 752 | trips { |
| 753 | sdm632_camera_trip: camera-trip { |
| 754 | temperature = <5000>; |
| 755 | hysteresis = <5000>; |
| 756 | type = "passive"; |
| 757 | }; |
| 758 | }; |
| 759 | cooling-maps { |
| 760 | cpu0_vdd_cdev { |
| 761 | trip = <&sdm632_camera_trip>; |
| 762 | cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4) |
| 763 | (THERMAL_MAX_LIMIT - 4)>; |
| 764 | }; |
| 765 | gpu_vdd_cdev { |
| 766 | trip = <&sdm632_camera_trip>; |
| 767 | cooling-device = <&msm_gpu 2 2>; |
| 768 | }; |
| 769 | cx_vdd_cdev { |
| 770 | trip = <&sdm632_camera_trip>; |
| 771 | cooling-device = <&cx_cdev 0 0>; |
| 772 | }; |
| 773 | modem_vdd_cdev { |
| 774 | trip = <&sdm632_camera_trip>; |
| 775 | cooling-device = <&modem_vdd 0 0>; |
| 776 | }; |
| 777 | }; |
| 778 | }; |
| 779 | |
| 780 | gpu0-lowf { |
| 781 | polling-delay-passive = <0>; |
| 782 | polling-delay = <0>; |
| 783 | thermal-governor = "low_limits_floor"; |
| 784 | thermal-sensors = <&tsens0 15>; |
| 785 | tracks-low; |
| 786 | |
| 787 | trips { |
| 788 | sdm632_gpu0_trip: gpu0-trip { |
| 789 | temperature = <5000>; |
| 790 | hysteresis = <5000>; |
| 791 | type = "passive"; |
| 792 | }; |
| 793 | }; |
| 794 | cooling-maps { |
| 795 | cpu0_vdd_cdev { |
| 796 | trip = <&sdm632_gpu0_trip>; |
| 797 | cooling-device = <&CPU0 (THERMAL_MAX_LIMIT - 4) |
| 798 | (THERMAL_MAX_LIMIT - 4)>; |
| 799 | }; |
| 800 | gpu_vdd_cdev { |
| 801 | trip = <&sdm632_gpu0_trip>; |
| 802 | cooling-device = <&msm_gpu 2 2>; |
| 803 | }; |
| 804 | cx_vdd_cdev { |
| 805 | trip = <&sdm632_gpu0_trip>; |
| 806 | cooling-device = <&cx_cdev 0 0>; |
| 807 | }; |
| 808 | modem_vdd_cdev { |
| 809 | trip = <&sdm632_gpu0_trip>; |
| 810 | cooling-device = <&modem_vdd 0 0>; |
| 811 | }; |
| 812 | }; |
| 813 | }; |
Rama Krishna Phani A | 42ed9c7 | 2018-03-05 11:33:37 +0530 | [diff] [blame] | 814 | }; |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 815 | |
| 816 | &clock_cpu { |
| 817 | /delete-property/ vdd-cl-supply; |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 818 | compatible = "qcom,cpu-clock-sdm632"; |
| 819 | reg = <0xb114000 0x68>, |
| 820 | <0xb014000 0x68>, |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 821 | <0xb011050 0x8>, |
| 822 | <0xb111050 0x8>, |
| 823 | <0xb1d1050 0x8>, |
Amit Nischal | 0260cbc | 2018-03-18 15:38:59 +0530 | [diff] [blame] | 824 | <0xb011050 0x8>, |
| 825 | <0xb111050 0x8>, |
| 826 | <0x00a4124 0x8>; |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 827 | reg-names = "rcgwr-c0-base", "rcgwr-c1-base", |
Amit Nischal | 0260cbc | 2018-03-18 15:38:59 +0530 | [diff] [blame] | 828 | "apcs-c1-rcg-base", "apcs-c0-rcg-base", |
| 829 | "apcs-cci-rcg-base", "c1-mux", |
| 830 | "c0-mux", "efuse"; |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 831 | qcom,num-clusters = <2>; |
Amit Nischal | 0260cbc | 2018-03-18 15:38:59 +0530 | [diff] [blame] | 832 | vdd-c0-supply = <&apc0_pwrcl_vreg>; |
| 833 | vdd-c1-supply = <&apc1_perfcl_vreg>; |
| 834 | vdd-cci-supply = <&apc0_pwrcl_vreg>; |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 835 | clocks = <&clock_gcc clk_xo_a_clk_src>; |
| 836 | clock-names = "xo_a"; |
| 837 | qcom,speed0-bin-v0-c0 = |
| 838 | < 0 0>, |
| 839 | < 614400000 1>, |
| 840 | < 883200000 2>, |
Amit Nischal | 0260cbc | 2018-03-18 15:38:59 +0530 | [diff] [blame] | 841 | < 1036800000 3>, |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 842 | < 1363200000 4>, |
Amit Nischal | 0260cbc | 2018-03-18 15:38:59 +0530 | [diff] [blame] | 843 | < 1536000000 5>, |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 844 | < 1670400000 6>, |
Taniya Das | 70e4da1 | 2018-04-03 23:30:52 +0530 | [diff] [blame] | 845 | < 1804800000 7>; |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 846 | qcom,speed0-bin-v0-c1 = |
| 847 | < 0 0>, |
Tirupathi Reddy | 037708a | 2018-04-18 14:53:24 +0530 | [diff] [blame] | 848 | < 633600000 1>, |
| 849 | < 902400000 2>, |
| 850 | < 1094400000 3>, |
| 851 | < 1401600000 4>, |
| 852 | < 1555200000 5>, |
| 853 | < 1804800000 6>; |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 854 | qcom,speed0-bin-v0-cci = |
| 855 | < 0 0>, |
| 856 | < 307200000 1>, |
| 857 | < 403200000 2>, |
| 858 | < 499200000 3>, |
| 859 | < 691200000 4>, |
| 860 | < 768000000 5>, |
| 861 | < 787200000 6>; |
Taniya Das | 70e4da1 | 2018-04-03 23:30:52 +0530 | [diff] [blame] | 862 | |
| 863 | qcom,speed6-bin-v0-c0 = |
| 864 | < 0 0>, |
| 865 | < 614400000 1>, |
| 866 | < 883200000 2>, |
| 867 | < 1036800000 3>, |
| 868 | < 1363200000 4>, |
| 869 | < 1536000000 5>, |
| 870 | < 1670400000 6>, |
| 871 | < 1804800000 7>; |
| 872 | qcom,speed6-bin-v0-c1 = |
| 873 | < 0 0>, |
Tirupathi Reddy | 037708a | 2018-04-18 14:53:24 +0530 | [diff] [blame] | 874 | < 633600000 1>, |
| 875 | < 902400000 2>, |
| 876 | < 1094400000 3>, |
| 877 | < 1401600000 4>, |
| 878 | < 1555200000 5>, |
| 879 | < 1804800000 6>; |
Taniya Das | 70e4da1 | 2018-04-03 23:30:52 +0530 | [diff] [blame] | 880 | qcom,speed6-bin-v0-cci = |
| 881 | < 0 0>, |
| 882 | < 307200000 1>, |
| 883 | < 403200000 2>, |
| 884 | < 499200000 3>, |
| 885 | < 691200000 4>, |
| 886 | < 768000000 5>, |
| 887 | < 787200000 6>; |
| 888 | |
| 889 | qcom,speed2-bin-v0-c0 = |
| 890 | < 0 0>, |
| 891 | < 614400000 1>, |
| 892 | < 883200000 2>, |
| 893 | < 1036800000 3>, |
| 894 | < 1363200000 4>, |
| 895 | < 1536000000 5>, |
| 896 | < 1670400000 6>, |
| 897 | < 1804800000 7>; |
| 898 | qcom,speed2-bin-v0-c1 = |
| 899 | < 0 0>, |
Tirupathi Reddy | 037708a | 2018-04-18 14:53:24 +0530 | [diff] [blame] | 900 | < 633600000 1>, |
| 901 | < 902400000 2>, |
| 902 | < 1094400000 3>, |
| 903 | < 1401600000 4>, |
| 904 | < 1555200000 5>, |
| 905 | < 1804800000 6>, |
| 906 | < 2016000000 7>; |
Taniya Das | 70e4da1 | 2018-04-03 23:30:52 +0530 | [diff] [blame] | 907 | qcom,speed2-bin-v0-cci = |
| 908 | < 0 0>, |
| 909 | < 307200000 1>, |
| 910 | < 403200000 2>, |
| 911 | < 499200000 3>, |
| 912 | < 691200000 4>, |
| 913 | < 768000000 5>, |
| 914 | < 787200000 6>; |
| 915 | |
Amit Nischal | 16307db | 2018-02-05 15:45:26 +0530 | [diff] [blame] | 916 | #clock-cells = <1>; |
| 917 | }; |
| 918 | |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 919 | &soc { |
Maria Yu | e31f44b | 2018-03-18 13:32:10 +0530 | [diff] [blame] | 920 | /delete-node/ qcom,msm-cpufreq; |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 921 | msm_cpufreq: qcom,msm-cpufreq { |
| 922 | compatible = "qcom,msm-cpufreq"; |
| 923 | clock-names = |
| 924 | "l2_clk", |
| 925 | "cpu0_clk", |
| 926 | "cpu4_clk"; |
| 927 | clocks = |
Amit Nischal | 0260cbc | 2018-03-18 15:38:59 +0530 | [diff] [blame] | 928 | <&clock_cpu clk_cci_clk >, |
| 929 | <&clock_cpu clk_pwr_clk >, |
| 930 | <&clock_cpu clk_perf_clk >; |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 931 | |
| 932 | qcom,governor-per-policy; |
| 933 | |
| 934 | qcom,cpufreq-table-0 = |
| 935 | < 614400 >, |
| 936 | < 883200 >, |
| 937 | < 1036800 >, |
| 938 | < 1363200 >, |
| 939 | < 1536000 >, |
| 940 | < 1670400 >, |
Taniya Das | 70e4da1 | 2018-04-03 23:30:52 +0530 | [diff] [blame] | 941 | < 1804800 >; |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 942 | |
| 943 | qcom,cpufreq-table-4 = |
Tirupathi Reddy | 037708a | 2018-04-18 14:53:24 +0530 | [diff] [blame] | 944 | < 633600 >, |
| 945 | < 902400 >, |
Maria Yu | 1188730 | 2018-03-19 20:31:46 +0530 | [diff] [blame] | 946 | < 1094400 >, |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 947 | < 1401600 >, |
| 948 | < 1555200 >, |
Taniya Das | 70e4da1 | 2018-04-03 23:30:52 +0530 | [diff] [blame] | 949 | < 1804800 >, |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 950 | < 1996200 >, |
Taniya Das | 70e4da1 | 2018-04-03 23:30:52 +0530 | [diff] [blame] | 951 | < 2016000 >; |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 952 | }; |
| 953 | |
| 954 | cci_cache: qcom,cci { |
| 955 | compatible = "devfreq-simple-dev"; |
| 956 | clock-names = "devfreq_clk"; |
Amit Nischal | 0260cbc | 2018-03-18 15:38:59 +0530 | [diff] [blame] | 957 | clocks = <&clock_cpu clk_cci_clk >; |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 958 | governor = "cpufreq"; |
| 959 | freq-tbl-khz = |
| 960 | < 307200 >, |
| 961 | < 403200 >, |
| 962 | < 499200 >, |
Maria Yu | 1188730 | 2018-03-19 20:31:46 +0530 | [diff] [blame] | 963 | < 691200 >, |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 964 | < 768000 >, |
| 965 | < 787200 >; |
| 966 | }; |
| 967 | |
| 968 | /delete-node/ devfreq-cpufreq; |
| 969 | devfreq-cpufreq { |
| 970 | mincpubw-cpufreq { |
| 971 | target-dev = <&mincpubw>; |
| 972 | cpu-to-dev-map-0 = |
| 973 | < 614400 1611>, |
| 974 | < 1363200 3221>, |
Taniya Das | 70e4da1 | 2018-04-03 23:30:52 +0530 | [diff] [blame] | 975 | < 1804800 5859>; |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 976 | cpu-to-dev-map-4 = |
Maria Yu | 1188730 | 2018-03-19 20:31:46 +0530 | [diff] [blame] | 977 | < 1094400 1611>, |
Maria Yu | 83e0fef | 2018-03-17 15:07:49 +0800 | [diff] [blame] | 978 | < 1401600 3221>, |
Taniya Das | 70e4da1 | 2018-04-03 23:30:52 +0530 | [diff] [blame] | 979 | < 1804800 5859>, |
| 980 | < 2016000 7104>; |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 981 | }; |
| 982 | |
| 983 | cci-cpufreq { |
| 984 | target-dev = <&cci_cache>; |
| 985 | cpu-to-dev-map-0 = |
| 986 | < 614400 307200>, /* SVS */ |
| 987 | < 883200 403200>, |
| 988 | < 1036800 499200>, |
Maria Yu | 1188730 | 2018-03-19 20:31:46 +0530 | [diff] [blame] | 989 | < 1363200 691200>, /* NOM */ |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 990 | < 1536000 768000>, /* NOM+ */ |
| 991 | < 1670400 787200>; /* TURBO */ |
| 992 | cpu-to-dev-map-4 = |
Tirupathi Reddy | 037708a | 2018-04-18 14:53:24 +0530 | [diff] [blame] | 993 | < 633600 307200>, /* SVS */ |
| 994 | < 902400 403200>, |
Maria Yu | 1188730 | 2018-03-19 20:31:46 +0530 | [diff] [blame] | 995 | < 1094400 499200>, /* SVS */ |
| 996 | < 1401600 691200>, /* NOM */ |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 997 | < 1555200 768000>, /* NOM+ */ |
Taniya Das | 70e4da1 | 2018-04-03 23:30:52 +0530 | [diff] [blame] | 998 | < 1804800 787200>; /* TURBO */ |
Maria Yu | accc4bd | 2018-03-14 20:01:30 +0530 | [diff] [blame] | 999 | }; |
| 1000 | }; |
| 1001 | }; |
Jishnu Prakash | 6df5038 | 2018-04-11 20:59:41 +0530 | [diff] [blame] | 1002 | |
| 1003 | &pm8953_vadc { |
| 1004 | pinctrl-0 = <&pa_therm1_default>; |
| 1005 | /delete-node/ chan@13; |
| 1006 | }; |
| 1007 | |
| 1008 | &pm8953_mpps { |
| 1009 | /delete-node/ case_therm; |
| 1010 | }; |
| 1011 | |
| 1012 | &thermal_zones { |
| 1013 | /delete-node/ case-therm-adc; |
| 1014 | /delete-node/ case-therm-step; |
| 1015 | }; |
| 1016 | |
Mao Jinlong | 7d0a803 | 2018-04-26 14:39:52 +0800 | [diff] [blame] | 1017 | #include "sdm632-coresight.dtsi" |
Sunil Khatri | 058e5b5 | 2018-03-12 19:07:23 +0530 | [diff] [blame] | 1018 | |
| 1019 | /* GPU Overrides*/ |
| 1020 | &msm_gpu { |
| 1021 | |
| 1022 | qcom,ca-target-pwrlevel = <4>; |
| 1023 | qcom,initial-pwrlevel = <5>; |
| 1024 | /delete-node/qcom,gpu-pwrlevels; |
| 1025 | |
| 1026 | /* Power levels */ |
| 1027 | qcom,gpu-pwrlevels { |
| 1028 | #address-cells = <1>; |
| 1029 | #size-cells = <0>; |
| 1030 | |
| 1031 | compatible = "qcom,gpu-pwrlevels"; |
| 1032 | /* TURBO LD0 */ |
| 1033 | qcom,gpu-pwrlevel@0 { |
| 1034 | reg = <0>; |
| 1035 | qcom,gpu-freq = <725000000>; |
| 1036 | qcom,bus-freq = <10>; |
| 1037 | qcom,bus-min = <10>; |
| 1038 | qcom,bus-max = <10>; |
| 1039 | }; |
| 1040 | |
| 1041 | /* TURBO */ |
| 1042 | qcom,gpu-pwrlevel@1 { |
| 1043 | reg = <1>; |
| 1044 | qcom,gpu-freq = <650000000>; |
| 1045 | qcom,bus-freq = <10>; |
| 1046 | qcom,bus-min = <10>; |
| 1047 | qcom,bus-max = <10>; |
| 1048 | }; |
| 1049 | |
| 1050 | /* NOM+ */ |
| 1051 | qcom,gpu-pwrlevel@2 { |
| 1052 | reg = <2>; |
| 1053 | qcom,gpu-freq = <560000000>; |
| 1054 | qcom,bus-freq = <10>; |
| 1055 | qcom,bus-min = <8>; |
| 1056 | qcom,bus-max = <10>; |
| 1057 | }; |
| 1058 | |
| 1059 | /* NOM */ |
| 1060 | qcom,gpu-pwrlevel@3 { |
| 1061 | reg = <3>; |
| 1062 | qcom,gpu-freq = <510000000>; |
| 1063 | qcom,bus-freq = <9>; |
| 1064 | qcom,bus-min = <6>; |
| 1065 | qcom,bus-max = <10>; |
| 1066 | }; |
| 1067 | |
| 1068 | /* SVS+ */ |
| 1069 | qcom,gpu-pwrlevel@4 { |
| 1070 | reg = <4>; |
| 1071 | qcom,gpu-freq = <400000000>; |
| 1072 | qcom,bus-freq = <7>; |
| 1073 | qcom,bus-min = <5>; |
| 1074 | qcom,bus-max = <8>; |
| 1075 | }; |
| 1076 | |
| 1077 | /* SVS */ |
| 1078 | qcom,gpu-pwrlevel@5 { |
| 1079 | reg = <5>; |
| 1080 | qcom,gpu-freq = <320000000>; |
| 1081 | qcom,bus-freq = <4>; |
| 1082 | qcom,bus-min = <2>; |
| 1083 | qcom,bus-max = <6>; |
| 1084 | }; |
| 1085 | |
| 1086 | /* Low SVS */ |
| 1087 | qcom,gpu-pwrlevel@6 { |
| 1088 | reg = <6>; |
| 1089 | qcom,gpu-freq = <216000000>; |
Deepak Kumar | 5eca0c9 | 2018-05-24 19:24:04 +0530 | [diff] [blame] | 1090 | qcom,bus-freq = <3>; |
| 1091 | qcom,bus-min = <2>; |
Sunil Khatri | 058e5b5 | 2018-03-12 19:07:23 +0530 | [diff] [blame] | 1092 | qcom,bus-max = <4>; |
| 1093 | }; |
| 1094 | |
| 1095 | qcom,gpu-pwrlevel@7 { |
| 1096 | reg = <7>; |
| 1097 | qcom,gpu-freq = <133300000>; |
Deepak Kumar | 5eca0c9 | 2018-05-24 19:24:04 +0530 | [diff] [blame] | 1098 | qcom,bus-freq = <3>; |
Sunil Khatri | 058e5b5 | 2018-03-12 19:07:23 +0530 | [diff] [blame] | 1099 | qcom,bus-min = <1>; |
| 1100 | qcom,bus-max = <4>; |
| 1101 | }; |
| 1102 | /* XO */ |
| 1103 | qcom,gpu-pwrlevel@8 { |
| 1104 | reg = <8>; |
| 1105 | qcom,gpu-freq = <19200000>; |
| 1106 | qcom,bus-freq = <0>; |
| 1107 | qcom,bus-min = <0>; |
| 1108 | qcom,bus-max = <0>; |
| 1109 | }; |
| 1110 | }; |
| 1111 | }; |