Manaf Meethalavalappu Pallikunhi | 902c9790 | 2018-01-05 15:07:32 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. |
Manaf Meethalavalappu Pallikunhi | 52c7ba1 | 2017-09-07 01:41:43 +0530 | [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 | |
Manaf Meethalavalappu Pallikunhi | 07ee081 | 2017-09-07 01:09:06 +0530 | [diff] [blame] | 13 | #include <dt-bindings/thermal/thermal.h> |
| 14 | |
Manaf Meethalavalappu Pallikunhi | ae5420e | 2017-09-07 01:01:08 +0530 | [diff] [blame] | 15 | &clock_cpucc { |
| 16 | lmh_dcvs0: qcom,limits-dcvs@0 { |
| 17 | compatible = "qcom,msm-hw-limits"; |
| 18 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
| 19 | qcom,affinity = <0>; |
| 20 | #thermal-sensor-cells = <0>; |
| 21 | }; |
| 22 | |
| 23 | lmh_dcvs1: qcom,limits-dcvs@1 { |
| 24 | compatible = "qcom,msm-hw-limits"; |
| 25 | interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; |
| 26 | qcom,affinity = <1>; |
| 27 | #thermal-sensor-cells = <0>; |
| 28 | }; |
| 29 | }; |
| 30 | |
Manaf Meethalavalappu Pallikunhi | 30a0fa355 | 2017-08-29 21:09:05 +0530 | [diff] [blame] | 31 | &soc { |
| 32 | qmi-tmd-devices { |
| 33 | compatible = "qcom,qmi_cooling_devices"; |
| 34 | |
| 35 | modem { |
| 36 | qcom,instance-id = <0x0>; |
| 37 | |
| 38 | modem_pa: modem_pa { |
| 39 | qcom,qmi-dev-name = "pa"; |
| 40 | #cooling-cells = <2>; |
| 41 | }; |
| 42 | |
| 43 | modem_proc: modem_proc { |
| 44 | qcom,qmi-dev-name = "modem"; |
| 45 | #cooling-cells = <2>; |
| 46 | }; |
| 47 | |
| 48 | modem_current: modem_current { |
| 49 | qcom,qmi-dev-name = "modem_current"; |
| 50 | #cooling-cells = <2>; |
| 51 | }; |
| 52 | |
| 53 | modem_vdd: modem_vdd { |
| 54 | qcom,qmi-dev-name = "cpuv_restriction_cold"; |
| 55 | #cooling-cells = <2>; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | adsp { |
| 60 | qcom,instance-id = <0x1>; |
| 61 | |
| 62 | adsp_vdd: adsp_vdd { |
| 63 | qcom,qmi-dev-name = "cpuv_restriction_cold"; |
| 64 | #cooling-cells = <2>; |
| 65 | }; |
| 66 | }; |
| 67 | |
| 68 | cdsp { |
| 69 | qcom,instance-id = <0x43>; |
| 70 | |
| 71 | cdsp_vdd: cdsp_vdd { |
| 72 | qcom,qmi-dev-name = "cpuv_restriction_cold"; |
| 73 | #cooling-cells = <2>; |
| 74 | }; |
| 75 | }; |
| 76 | }; |
| 77 | }; |
| 78 | |
Manaf Meethalavalappu Pallikunhi | 52c7ba1 | 2017-09-07 01:41:43 +0530 | [diff] [blame] | 79 | &thermal_zones { |
| 80 | aoss0-usr { |
| 81 | polling-delay-passive = <0>; |
| 82 | polling-delay = <0>; |
| 83 | thermal-governor = "user_space"; |
| 84 | thermal-sensors = <&tsens0 0>; |
| 85 | trips { |
| 86 | active-config0 { |
| 87 | temperature = <125000>; |
| 88 | hysteresis = <1000>; |
| 89 | type = "passive"; |
| 90 | }; |
| 91 | }; |
| 92 | }; |
| 93 | |
| 94 | cpu0-silver-usr { |
| 95 | polling-delay-passive = <0>; |
| 96 | polling-delay = <0>; |
| 97 | thermal-governor = "user_space"; |
| 98 | thermal-sensors = <&tsens0 1>; |
| 99 | trips { |
| 100 | active-config0 { |
| 101 | temperature = <125000>; |
| 102 | hysteresis = <1000>; |
| 103 | type = "passive"; |
| 104 | }; |
| 105 | }; |
| 106 | }; |
| 107 | |
| 108 | cpu1-silver-usr { |
| 109 | polling-delay-passive = <0>; |
| 110 | polling-delay = <0>; |
| 111 | thermal-governor = "user_space"; |
| 112 | thermal-sensors = <&tsens0 2>; |
| 113 | trips { |
| 114 | active-config0 { |
| 115 | temperature = <125000>; |
| 116 | hysteresis = <1000>; |
| 117 | type = "passive"; |
| 118 | }; |
| 119 | }; |
| 120 | }; |
| 121 | |
| 122 | cpu2-silver-usr { |
| 123 | polling-delay-passive = <0>; |
| 124 | polling-delay = <0>; |
| 125 | thermal-governor = "user_space"; |
| 126 | thermal-sensors = <&tsens0 3>; |
| 127 | trips { |
| 128 | active-config0 { |
| 129 | temperature = <125000>; |
| 130 | hysteresis = <1000>; |
| 131 | type = "passive"; |
| 132 | }; |
| 133 | }; |
| 134 | }; |
| 135 | |
| 136 | cpu3-silver-usr { |
| 137 | polling-delay-passive = <0>; |
| 138 | polling-delay = <0>; |
| 139 | thermal-sensors = <&tsens0 4>; |
| 140 | thermal-governor = "user_space"; |
| 141 | trips { |
| 142 | active-config0 { |
| 143 | temperature = <125000>; |
| 144 | hysteresis = <1000>; |
| 145 | type = "passive"; |
| 146 | }; |
| 147 | }; |
| 148 | }; |
| 149 | |
Manaf Meethalavalappu Pallikunhi | c72aba6 | 2017-11-23 16:03:58 +0530 | [diff] [blame] | 150 | cpuss-0-usr { |
Manaf Meethalavalappu Pallikunhi | 52c7ba1 | 2017-09-07 01:41:43 +0530 | [diff] [blame] | 151 | polling-delay-passive = <0>; |
| 152 | polling-delay = <0>; |
| 153 | thermal-sensors = <&tsens0 5>; |
| 154 | thermal-governor = "user_space"; |
| 155 | trips { |
| 156 | active-config0 { |
| 157 | temperature = <125000>; |
| 158 | hysteresis = <1000>; |
| 159 | type = "passive"; |
| 160 | }; |
| 161 | }; |
| 162 | }; |
| 163 | |
Manaf Meethalavalappu Pallikunhi | c72aba6 | 2017-11-23 16:03:58 +0530 | [diff] [blame] | 164 | cpuss-1-usr { |
Manaf Meethalavalappu Pallikunhi | 52c7ba1 | 2017-09-07 01:41:43 +0530 | [diff] [blame] | 165 | polling-delay-passive = <0>; |
| 166 | polling-delay = <0>; |
| 167 | thermal-sensors = <&tsens0 6>; |
| 168 | thermal-governor = "user_space"; |
| 169 | trips { |
| 170 | active-config0 { |
| 171 | temperature = <125000>; |
| 172 | hysteresis = <1000>; |
| 173 | type = "passive"; |
| 174 | }; |
| 175 | }; |
| 176 | }; |
| 177 | |
Manaf Meethalavalappu Pallikunhi | c72aba6 | 2017-11-23 16:03:58 +0530 | [diff] [blame] | 178 | cpu4-silver-usr { |
Manaf Meethalavalappu Pallikunhi | 52c7ba1 | 2017-09-07 01:41:43 +0530 | [diff] [blame] | 179 | polling-delay-passive = <0>; |
| 180 | polling-delay = <0>; |
| 181 | thermal-sensors = <&tsens0 7>; |
| 182 | thermal-governor = "user_space"; |
| 183 | trips { |
| 184 | active-config0 { |
| 185 | temperature = <125000>; |
| 186 | hysteresis = <1000>; |
| 187 | type = "passive"; |
| 188 | }; |
| 189 | }; |
| 190 | }; |
| 191 | |
Manaf Meethalavalappu Pallikunhi | c72aba6 | 2017-11-23 16:03:58 +0530 | [diff] [blame] | 192 | cpu5-silver-usr { |
Manaf Meethalavalappu Pallikunhi | 52c7ba1 | 2017-09-07 01:41:43 +0530 | [diff] [blame] | 193 | polling-delay-passive = <0>; |
| 194 | polling-delay = <0>; |
| 195 | thermal-sensors = <&tsens0 8>; |
| 196 | thermal-governor = "user_space"; |
| 197 | trips { |
| 198 | active-config0 { |
| 199 | temperature = <125000>; |
| 200 | hysteresis = <1000>; |
| 201 | type = "passive"; |
| 202 | }; |
| 203 | }; |
| 204 | }; |
| 205 | |
| 206 | cpu0-gold-usr { |
| 207 | polling-delay-passive = <0>; |
| 208 | polling-delay = <0>; |
| 209 | thermal-sensors = <&tsens0 9>; |
| 210 | thermal-governor = "user_space"; |
| 211 | trips { |
| 212 | active-config0 { |
| 213 | temperature = <125000>; |
| 214 | hysteresis = <1000>; |
| 215 | type = "passive"; |
| 216 | }; |
| 217 | }; |
| 218 | }; |
| 219 | |
| 220 | cpu1-gold-usr { |
| 221 | polling-delay-passive = <0>; |
| 222 | polling-delay = <0>; |
| 223 | thermal-sensors = <&tsens0 10>; |
| 224 | thermal-governor = "user_space"; |
| 225 | trips { |
| 226 | active-config0 { |
| 227 | temperature = <125000>; |
| 228 | hysteresis = <1000>; |
| 229 | type = "passive"; |
| 230 | }; |
| 231 | }; |
| 232 | }; |
| 233 | |
| 234 | gpu0-usr { |
| 235 | polling-delay-passive = <0>; |
| 236 | polling-delay = <0>; |
| 237 | thermal-sensors = <&tsens0 11>; |
| 238 | thermal-governor = "user_space"; |
| 239 | trips { |
| 240 | active-config0 { |
| 241 | temperature = <125000>; |
| 242 | hysteresis = <1000>; |
| 243 | type = "passive"; |
| 244 | }; |
| 245 | }; |
| 246 | }; |
| 247 | |
| 248 | gpu1-usr { |
| 249 | polling-delay-passive = <0>; |
| 250 | polling-delay = <0>; |
| 251 | thermal-governor = "user_space"; |
| 252 | thermal-sensors = <&tsens0 12>; |
| 253 | trips { |
| 254 | active-config0 { |
| 255 | temperature = <125000>; |
| 256 | hysteresis = <1000>; |
| 257 | type = "passive"; |
| 258 | }; |
| 259 | }; |
| 260 | }; |
| 261 | |
| 262 | aoss1-usr { |
| 263 | polling-delay-passive = <0>; |
| 264 | polling-delay = <0>; |
| 265 | thermal-sensors = <&tsens1 0>; |
| 266 | thermal-governor = "user_space"; |
| 267 | trips { |
| 268 | active-config0 { |
| 269 | temperature = <125000>; |
| 270 | hysteresis = <1000>; |
| 271 | type = "passive"; |
| 272 | }; |
| 273 | }; |
| 274 | }; |
| 275 | |
| 276 | mdm-dsp-usr { |
| 277 | polling-delay-passive = <0>; |
| 278 | polling-delay = <0>; |
| 279 | thermal-sensors = <&tsens1 1>; |
| 280 | thermal-governor = "user_space"; |
| 281 | trips { |
| 282 | active-config0 { |
| 283 | temperature = <125000>; |
| 284 | hysteresis = <1000>; |
| 285 | type = "passive"; |
| 286 | }; |
| 287 | }; |
| 288 | }; |
| 289 | |
| 290 | ddr-usr { |
| 291 | polling-delay-passive = <0>; |
| 292 | polling-delay = <0>; |
| 293 | thermal-sensors = <&tsens1 2>; |
| 294 | thermal-governor = "user_space"; |
| 295 | trips { |
| 296 | active-config0 { |
| 297 | temperature = <125000>; |
| 298 | hysteresis = <1000>; |
| 299 | type = "passive"; |
| 300 | }; |
| 301 | }; |
| 302 | }; |
| 303 | |
| 304 | wlan-usr { |
| 305 | polling-delay-passive = <0>; |
| 306 | polling-delay = <0>; |
| 307 | thermal-sensors = <&tsens1 3>; |
| 308 | thermal-governor = "user_space"; |
| 309 | trips { |
| 310 | active-config0 { |
| 311 | temperature = <125000>; |
| 312 | hysteresis = <1000>; |
| 313 | type = "passive"; |
| 314 | }; |
| 315 | }; |
| 316 | }; |
| 317 | |
| 318 | compute-hvx-usr { |
| 319 | polling-delay-passive = <0>; |
| 320 | polling-delay = <0>; |
| 321 | thermal-sensors = <&tsens1 4>; |
| 322 | thermal-governor = "user_space"; |
| 323 | trips { |
| 324 | active-config0 { |
| 325 | temperature = <125000>; |
| 326 | hysteresis = <1000>; |
| 327 | type = "passive"; |
| 328 | }; |
| 329 | }; |
| 330 | }; |
| 331 | |
| 332 | camera-usr { |
| 333 | polling-delay-passive = <0>; |
| 334 | polling-delay = <0>; |
| 335 | thermal-sensors = <&tsens1 5>; |
| 336 | thermal-governor = "user_space"; |
| 337 | trips { |
| 338 | active-config0 { |
| 339 | temperature = <125000>; |
| 340 | hysteresis = <1000>; |
| 341 | type = "passive"; |
| 342 | }; |
| 343 | }; |
| 344 | }; |
| 345 | |
| 346 | mmss-usr { |
| 347 | polling-delay-passive = <0>; |
| 348 | polling-delay = <0>; |
| 349 | thermal-sensors = <&tsens1 6>; |
| 350 | thermal-governor = "user_space"; |
| 351 | trips { |
| 352 | active-config0 { |
| 353 | temperature = <125000>; |
| 354 | hysteresis = <1000>; |
| 355 | type = "passive"; |
| 356 | }; |
| 357 | }; |
| 358 | }; |
| 359 | |
| 360 | mdm-core-usr { |
| 361 | polling-delay-passive = <0>; |
| 362 | polling-delay = <0>; |
| 363 | thermal-sensors = <&tsens1 7>; |
| 364 | thermal-governor = "user_space"; |
| 365 | trips { |
| 366 | active-config0 { |
| 367 | temperature = <125000>; |
| 368 | hysteresis = <1000>; |
| 369 | type = "passive"; |
| 370 | }; |
| 371 | }; |
| 372 | }; |
Manaf Meethalavalappu Pallikunhi | 07ee081 | 2017-09-07 01:09:06 +0530 | [diff] [blame] | 373 | |
| 374 | gpu-virt-max-step { |
| 375 | polling-delay-passive = <10>; |
| 376 | polling-delay = <100>; |
| 377 | thermal-governor = "step_wise"; |
| 378 | trips { |
| 379 | gpu_trip0: gpu-trip0 { |
| 380 | temperature = <95000>; |
| 381 | hysteresis = <0>; |
| 382 | type = "passive"; |
| 383 | }; |
| 384 | }; |
| 385 | cooling-maps { |
| 386 | gpu_cdev0 { |
| 387 | trip = <&gpu_trip0>; |
| 388 | cooling-device = |
| 389 | <&msm_gpu THERMAL_NO_LIMIT |
| 390 | THERMAL_NO_LIMIT>; |
| 391 | }; |
| 392 | }; |
| 393 | }; |
| 394 | |
| 395 | hexa-silv-max-step { |
| 396 | polling-delay-passive = <0>; |
| 397 | polling-delay = <0>; |
| 398 | thermal-governor = "step_wise"; |
| 399 | trips { |
| 400 | silver-trip { |
| 401 | temperature = <120000>; |
| 402 | hysteresis = <0>; |
| 403 | type = "passive"; |
| 404 | }; |
| 405 | }; |
| 406 | }; |
| 407 | |
| 408 | dual-gold-max-step { |
| 409 | polling-delay-passive = <0>; |
| 410 | polling-delay = <0>; |
| 411 | thermal-governor = "step_wise"; |
| 412 | trips { |
| 413 | gold-trip { |
| 414 | temperature = <120000>; |
| 415 | hysteresis = <0>; |
| 416 | type = "passive"; |
| 417 | }; |
| 418 | }; |
| 419 | }; |
| 420 | |
| 421 | pop-mem-step { |
| 422 | polling-delay-passive = <10>; |
| 423 | polling-delay = <0>; |
| 424 | thermal-sensors = <&tsens1 2>; |
| 425 | thermal-governor = "step_wise"; |
| 426 | trips { |
| 427 | pop_trip: pop-trip { |
| 428 | temperature = <95000>; |
| 429 | hysteresis = <0>; |
| 430 | type = "passive"; |
| 431 | }; |
| 432 | }; |
| 433 | cooling-maps { |
| 434 | pop_cdev6 { |
| 435 | trip = <&pop_trip>; |
| 436 | cooling-device = |
| 437 | <&CPU6 THERMAL_NO_LIMIT |
| 438 | (THERMAL_MAX_LIMIT-1)>; |
| 439 | }; |
| 440 | pop_cdev7 { |
| 441 | trip = <&pop_trip>; |
| 442 | cooling-device = |
| 443 | <&CPU7 THERMAL_NO_LIMIT |
| 444 | (THERMAL_MAX_LIMIT-1)>; |
| 445 | }; |
| 446 | }; |
| 447 | }; |
| 448 | |
| 449 | aoss0-lowf { |
| 450 | polling-delay-passive = <0>; |
| 451 | polling-delay = <0>; |
| 452 | thermal-governor = "low_limits_floor"; |
| 453 | thermal-sensors = <&tsens0 0>; |
| 454 | tracks-low; |
| 455 | trips { |
| 456 | aoss0_trip: aoss0-trip { |
| 457 | temperature = <5000>; |
| 458 | hysteresis = <5000>; |
| 459 | type = "passive"; |
| 460 | }; |
| 461 | }; |
| 462 | cooling-maps { |
| 463 | cpu0_vdd_cdev { |
| 464 | trip = <&aoss0_trip>; |
Manaf Meethalavalappu Pallikunhi | 63987fe | 2017-11-28 21:18:22 +0530 | [diff] [blame] | 465 | cooling-device = <&CPU0 2 2>; |
Manaf Meethalavalappu Pallikunhi | 07ee081 | 2017-09-07 01:09:06 +0530 | [diff] [blame] | 466 | }; |
| 467 | cpu6_vdd_cdev { |
| 468 | trip = <&aoss0_trip>; |
Manaf Meethalavalappu Pallikunhi | 63987fe | 2017-11-28 21:18:22 +0530 | [diff] [blame] | 469 | cooling-device = <&CPU6 (THERMAL_MAX_LIMIT-8) |
| 470 | (THERMAL_MAX_LIMIT-8)>; |
Manaf Meethalavalappu Pallikunhi | 07ee081 | 2017-09-07 01:09:06 +0530 | [diff] [blame] | 471 | }; |
| 472 | gpu_vdd_cdev { |
| 473 | trip = <&aoss0_trip>; |
Manaf Meethalavalappu Pallikunhi | c762407 | 2018-01-18 21:12:59 +0530 | [diff] [blame] | 474 | cooling-device = <&msm_gpu 0 0>; |
Manaf Meethalavalappu Pallikunhi | 07ee081 | 2017-09-07 01:09:06 +0530 | [diff] [blame] | 475 | }; |
| 476 | cx_vdd_cdev { |
| 477 | trip = <&aoss0_trip>; |
| 478 | cooling-device = <&cx_cdev 0 0>; |
| 479 | }; |
| 480 | mx_vdd_cdev { |
| 481 | trip = <&aoss0_trip>; |
| 482 | cooling-device = <&mx_cdev 0 0>; |
| 483 | }; |
| 484 | modem_vdd_cdev { |
| 485 | trip = <&aoss0_trip>; |
| 486 | cooling-device = <&modem_vdd 0 0>; |
| 487 | }; |
| 488 | adsp_vdd_cdev { |
| 489 | trip = <&aoss0_trip>; |
| 490 | cooling-device = <&adsp_vdd 0 0>; |
| 491 | }; |
| 492 | cdsp_vdd_cdev { |
| 493 | trip = <&aoss0_trip>; |
| 494 | cooling-device = <&cdsp_vdd 0 0>; |
| 495 | }; |
| 496 | }; |
| 497 | }; |
| 498 | |
Manaf Meethalavalappu Pallikunhi | 07ee081 | 2017-09-07 01:09:06 +0530 | [diff] [blame] | 499 | aoss1-lowf { |
| 500 | polling-delay-passive = <0>; |
| 501 | polling-delay = <0>; |
| 502 | thermal-governor = "low_limits_floor"; |
| 503 | thermal-sensors = <&tsens1 0>; |
| 504 | tracks-low; |
| 505 | trips { |
| 506 | aoss1_trip: aoss1-trip { |
| 507 | temperature = <5000>; |
| 508 | hysteresis = <5000>; |
| 509 | type = "passive"; |
| 510 | }; |
| 511 | }; |
| 512 | cooling-maps { |
| 513 | cpu0_vdd_cdev { |
| 514 | trip = <&aoss1_trip>; |
Manaf Meethalavalappu Pallikunhi | 63987fe | 2017-11-28 21:18:22 +0530 | [diff] [blame] | 515 | cooling-device = <&CPU0 2 2>; |
Manaf Meethalavalappu Pallikunhi | 07ee081 | 2017-09-07 01:09:06 +0530 | [diff] [blame] | 516 | }; |
| 517 | cpu6_vdd_cdev { |
| 518 | trip = <&aoss1_trip>; |
Manaf Meethalavalappu Pallikunhi | 63987fe | 2017-11-28 21:18:22 +0530 | [diff] [blame] | 519 | cooling-device = <&CPU6 (THERMAL_MAX_LIMIT-8) |
| 520 | (THERMAL_MAX_LIMIT-8)>; |
Manaf Meethalavalappu Pallikunhi | 07ee081 | 2017-09-07 01:09:06 +0530 | [diff] [blame] | 521 | }; |
| 522 | gpu_vdd_cdev { |
Manaf Meethalavalappu Pallikunhi | aeb42ed | 2017-10-10 00:21:35 +0530 | [diff] [blame] | 523 | trip = <&aoss1_trip>; |
Manaf Meethalavalappu Pallikunhi | c762407 | 2018-01-18 21:12:59 +0530 | [diff] [blame] | 524 | cooling-device = <&msm_gpu 0 0>; |
Manaf Meethalavalappu Pallikunhi | 07ee081 | 2017-09-07 01:09:06 +0530 | [diff] [blame] | 525 | }; |
| 526 | cx_vdd_cdev { |
| 527 | trip = <&aoss1_trip>; |
| 528 | cooling-device = <&cx_cdev 0 0>; |
| 529 | }; |
| 530 | mx_vdd_cdev { |
| 531 | trip = <&aoss1_trip>; |
| 532 | cooling-device = <&mx_cdev 0 0>; |
| 533 | }; |
| 534 | modem_vdd_cdev { |
| 535 | trip = <&aoss1_trip>; |
| 536 | cooling-device = <&modem_vdd 0 0>; |
| 537 | }; |
| 538 | adsp_vdd_cdev { |
| 539 | trip = <&aoss1_trip>; |
| 540 | cooling-device = <&adsp_vdd 0 0>; |
| 541 | }; |
| 542 | cdsp_vdd_cdev { |
| 543 | trip = <&aoss1_trip>; |
| 544 | cooling-device = <&cdsp_vdd 0 0>; |
| 545 | }; |
| 546 | }; |
| 547 | }; |
| 548 | |
Manaf Meethalavalappu Pallikunhi | 07ee081 | 2017-09-07 01:09:06 +0530 | [diff] [blame] | 549 | lmh-dcvs-01 { |
| 550 | polling-delay-passive = <0>; |
| 551 | polling-delay = <0>; |
| 552 | thermal-governor = "user_space"; |
| 553 | thermal-sensors = <&lmh_dcvs1>; |
| 554 | |
| 555 | trips { |
| 556 | active-config { |
| 557 | temperature = <95000>; |
| 558 | hysteresis = <30000>; |
| 559 | type = "passive"; |
| 560 | }; |
| 561 | }; |
| 562 | }; |
| 563 | |
| 564 | lmh-dcvs-00 { |
| 565 | polling-delay-passive = <0>; |
| 566 | polling-delay = <0>; |
| 567 | thermal-governor = "user_space"; |
| 568 | thermal-sensors = <&lmh_dcvs0>; |
| 569 | |
| 570 | trips { |
| 571 | active-config { |
| 572 | temperature = <95000>; |
| 573 | hysteresis = <30000>; |
| 574 | type = "passive"; |
| 575 | }; |
| 576 | }; |
| 577 | }; |
Manaf Meethalavalappu Pallikunhi | 1558e49 | 2017-11-27 20:24:47 +0530 | [diff] [blame] | 578 | |
| 579 | xo-therm-cpu-step { |
| 580 | polling-delay-passive = <2000>; |
| 581 | polling-delay = <0>; |
| 582 | thermal-sensors = <&pm660_adc_tm 0x4c>; |
| 583 | thermal-governor = "step_wise"; |
| 584 | |
| 585 | trips { |
| 586 | gold_trip0: gold-trip0 { |
| 587 | temperature = <45000>; |
| 588 | hysteresis = <0>; |
| 589 | type = "passive"; |
| 590 | }; |
| 591 | silver_trip1: silver-trip1 { |
Manaf Meethalavalappu Pallikunhi | 01985c7 | 2017-12-06 18:39:40 +0530 | [diff] [blame] | 592 | temperature = <50000>; |
Manaf Meethalavalappu Pallikunhi | 1558e49 | 2017-11-27 20:24:47 +0530 | [diff] [blame] | 593 | hysteresis = <0>; |
| 594 | type = "passive"; |
| 595 | }; |
| 596 | }; |
| 597 | |
| 598 | cooling-maps { |
| 599 | skin_cpu6 { |
| 600 | trip = <&gold_trip0>; |
| 601 | cooling-device = |
| 602 | /* throttle from fmax to 1747200KHz */ |
| 603 | <&CPU6 THERMAL_NO_LIMIT |
| 604 | (THERMAL_MAX_LIMIT-8)>; |
| 605 | }; |
| 606 | skin_cpu7 { |
| 607 | trip = <&gold_trip0>; |
| 608 | cooling-device = |
| 609 | <&CPU7 THERMAL_NO_LIMIT |
| 610 | (THERMAL_MAX_LIMIT-8)>; |
| 611 | }; |
| 612 | skin_cpu0 { |
| 613 | trip = <&silver_trip1>; |
| 614 | /* throttle from fmax to 1516800KHz */ |
| 615 | cooling-device = <&CPU0 THERMAL_NO_LIMIT 2>; |
| 616 | }; |
| 617 | skin_cpu1 { |
| 618 | trip = <&silver_trip1>; |
| 619 | cooling-device = <&CPU1 THERMAL_NO_LIMIT 2>; |
| 620 | }; |
| 621 | skin_cpu2 { |
| 622 | trip = <&silver_trip1>; |
| 623 | cooling-device = <&CPU2 THERMAL_NO_LIMIT 2>; |
| 624 | }; |
| 625 | skin_cpu3 { |
| 626 | trip = <&silver_trip1>; |
| 627 | cooling-device = <&CPU3 THERMAL_NO_LIMIT 2>; |
| 628 | }; |
| 629 | skin_cpu4 { |
| 630 | trip = <&silver_trip1>; |
| 631 | cooling-device = <&CPU4 THERMAL_NO_LIMIT 2>; |
| 632 | }; |
| 633 | skin_cpu5 { |
| 634 | trip = <&silver_trip1>; |
| 635 | cooling-device = <&CPU5 THERMAL_NO_LIMIT 2>; |
| 636 | }; |
| 637 | }; |
| 638 | }; |
| 639 | |
| 640 | xo-therm-mdm-step { |
| 641 | polling-delay-passive = <0>; |
| 642 | polling-delay = <0>; |
| 643 | thermal-sensors = <&pm660_adc_tm 0x4c>; |
| 644 | thermal-governor = "step_wise"; |
| 645 | |
| 646 | trips { |
| 647 | modem_trip0: modem-trip0 { |
| 648 | temperature = <44000>; |
| 649 | hysteresis = <4000>; |
| 650 | type = "passive"; |
| 651 | }; |
| 652 | modem_trip1: modem-trip1 { |
| 653 | temperature = <46000>; |
| 654 | hysteresis = <3000>; |
| 655 | type = "passive"; |
| 656 | }; |
| 657 | modem_trip2: modem-trip2 { |
| 658 | temperature = <48000>; |
Manaf Meethalavalappu Pallikunhi | 01985c7 | 2017-12-06 18:39:40 +0530 | [diff] [blame] | 659 | hysteresis = <3000>; |
Manaf Meethalavalappu Pallikunhi | 1558e49 | 2017-11-27 20:24:47 +0530 | [diff] [blame] | 660 | type = "passive"; |
| 661 | }; |
| 662 | modem_trip3: modem-trip3 { |
| 663 | temperature = <55000>; |
| 664 | hysteresis = <5000>; |
| 665 | type = "passive"; |
| 666 | }; |
| 667 | }; |
| 668 | |
| 669 | cooling-maps { |
| 670 | modem_lvl1 { |
| 671 | trip = <&modem_trip1>; |
| 672 | cooling-device = <&modem_pa 1 1>; |
| 673 | }; |
| 674 | modem_lvl2 { |
| 675 | trip = <&modem_trip2>; |
| 676 | cooling-device = <&modem_pa 2 2>; |
| 677 | }; |
| 678 | modem_lvl3 { |
| 679 | trip = <&modem_trip3>; |
| 680 | cooling-device = <&modem_pa 3 3>; |
| 681 | }; |
| 682 | modem_proc_lvl1 { |
| 683 | trip = <&modem_trip0>; |
| 684 | cooling-device = <&modem_proc 1 1>; |
| 685 | }; |
| 686 | modem_proc_lvl3 { |
| 687 | trip = <&modem_trip3>; |
| 688 | cooling-device = <&modem_proc 3 3>; |
| 689 | }; |
| 690 | }; |
| 691 | }; |
Manaf Meethalavalappu Pallikunhi | 52c7ba1 | 2017-09-07 01:41:43 +0530 | [diff] [blame] | 692 | }; |