#include &msm_gpu { #cooling-cells = <2>; }; &soc { tsens0: tsens0@c271000 { compatible = "qcom,tsens-v2"; reg = <0x0c271000 0x1ff>, /* TM */ <0x0c222000 0x1ff>; /* SROT */ #qcom,sensors = <16>; interrupts-extended = <&intc GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>, <&intc GIC_SPI 640 IRQ_TYPE_LEVEL_HIGH>, <&pdc 20 IRQ_TYPE_EDGE_RISING>; interrupt-names = "uplow","critical", "cold"; #thermal-sensor-cells = <1>; }; tsens1: tsens1@c272000 { compatible = "qcom,tsens-v2"; reg = <0x0c272000 0x1ff>, /* TM */ <0x0c223000 0x1ff>; /* SROT */ #qcom,sensors = <11>; interrupts = , ; interrupt-names = "uplow","critical"; #thermal-sensor-cells = <1>; }; qcom,cpu-pause { compatible = "qcom,thermal-pause"; cpu1_pause: cpu1-pause { qcom,cpus = <&CPU1>; qcom,cdev-alias = "thermal-pause-2"; #cooling-cells = <2>; }; cpu2_pause: cpu2-pause { qcom,cpus = <&CPU2>; qcom,cdev-alias = "thermal-pause-4"; #cooling-cells = <2>; }; cpu3_pause: cpu3-pause { qcom,cpus = <&CPU3>; qcom,cdev-alias = "thermal-pause-8"; #cooling-cells = <2>; }; cpu4_pause: cpu4-pause { qcom,cpus = <&CPU4>; qcom,cdev-alias = "thermal-pause-10"; #cooling-cells = <2>; }; cpu5_pause: cpu5-pause { qcom,cpus = <&CPU5>; qcom,cdev-alias = "thermal-pause-20"; #cooling-cells = <2>; }; cpu6_pause: cpu6-pause { qcom,cpus = <&CPU6>; qcom,cdev-alias = "thermal-pause-40"; #cooling-cells = <2>; }; cpu7_pause: cpu7-pause { qcom,cpus = <&CPU7>; qcom,cdev-alias = "thermal-pause-80"; #cooling-cells = <2>; }; APC1_pause: apc1-pause { qcom,cpus = <&CPU4 &CPU5 &CPU6 &CPU7>; qcom,cdev-alias = "thermal-pause-F0"; #cooling-cells = <2>; }; cpu_4_5_pause: cpu-4-5-pause { qcom,cpus = <&CPU4 &CPU5>; qcom,cdev-alias = "thermal-pause-30"; #cooling-cells = <2>; }; cpu_6_7_pause: cpu-6-7-pause { qcom,cpus = <&CPU6 &CPU7>; qcom,cdev-alias = "thermal-pause-C0"; #cooling-cells = <2>; }; /* Thermal-engine cooling devices */ pause-cpu1 { qcom,cpus = <&CPU1>; qcom,cdev-alias = "pause-cpu1"; }; pause-cpu2 { qcom,cpus = <&CPU2>; qcom,cdev-alias = "pause-cpu2"; }; pause-cpu3 { qcom,cpus = <&CPU3>; qcom,cdev-alias = "pause-cpu3"; }; pause-cpu4 { qcom,cpus = <&CPU4>; qcom,cdev-alias = "pause-cpu4"; }; pause-cpu5 { qcom,cpus = <&CPU5>; qcom,cdev-alias = "pause-cpu5"; }; pause-cpu6 { qcom,cpus = <&CPU6>; qcom,cdev-alias = "pause-cpu6"; }; pause-cpu7 { qcom,cpus = <&CPU7>; qcom,cdev-alias = "pause-cpu7"; }; }; qcom,cpu-hotplug { compatible = "qcom,cpu-hotplug"; cpu1_hotplug: cpu1-hotplug { qcom,cpu = <&CPU1>; qcom,cdev-alias = "cpu-hotplug1"; #cooling-cells = <2>; }; cpu2_hotplug: cpu2-hotplug { qcom,cpu = <&CPU2>; qcom,cdev-alias = "cpu-hotplug2"; #cooling-cells = <2>; }; cpu3_hotplug: cpu3-hotplug { qcom,cpu = <&CPU3>; qcom,cdev-alias = "cpu-hotplug3"; #cooling-cells = <2>; }; cpu4_hotplug: cpu4-hotplug { qcom,cpu = <&CPU4>; qcom,cdev-alias = "cpu-hotplug4"; #cooling-cells = <2>; }; cpu5_hotplug: cpu5-hotplug { qcom,cpu = <&CPU5>; qcom,cdev-alias = "cpu-hotplug5"; #cooling-cells = <2>; }; cpu6_hotplug: cpu6-hotplug { qcom,cpu = <&CPU6>; qcom,cdev-alias = "cpu-hotplug6"; #cooling-cells = <2>; }; cpu7_hotplug: cpu7-hotplug { qcom,cpu = <&CPU7>; qcom,cdev-alias = "cpu-hotplug7"; #cooling-cells = <2>; }; }; qcom,cpu-voltage-cdev { compatible = "qcom,cc-cooling-devices"; apc1_cluster: thermal-cluster-1-2 { qcom,cluster0 = <&CPU4 &CPU5 &CPU6>; qcom,cluster1 = <&CPU7>; #cooling-cells = <2>; }; }; thermal_ddr_freq_table: thermal-ddr-freq-table { qcom,freq-tbl = < 2092800 >; }; ddr_cdev: qcom,ddr-cdev { compatible = "qcom,ddr-cooling-device"; #cooling-cells = <2>; qcom,freq-table = <&thermal_ddr_freq_table>; qcom,bus-width = <4>; interconnects = <&mc_virt MASTER_LLCC &mc_virt SLAVE_EBI1>; }; qmi_tmd: qmi-tmd-devices { compatible = "qcom,qmi-cooling-devices"; cdsp { qcom,instance-id = ; cdsp_sw: cdsp { qcom,qmi-dev-name = "cdsp_sw"; #cooling-cells = <2>; }; cdsp_hw: cdsp_hw { qcom,qmi-dev-name = "cdsp_hw"; #cooling-cells = <2>; }; }; }; qcom,userspace-cdev { compatible = "qcom,userspace-cooling-devices"; display_fps: display-fps { qcom,max-level = <3>; #cooling-cells = <2>; }; }; qcom,cpufreq-cdev { compatible = "qcom,cpufreq-cdev"; cpu-cluster0 { qcom,cpus = <&CPU0 &CPU1 &CPU2 &CPU3>; }; cpu-cluster1 { qcom,cpus = <&CPU4 &CPU5 &CPU6>; }; cpu-cluster2 { qcom,cpus = <&CPU7>; }; }; qcom,devfreq-cdev { compatible = "qcom,devfreq-cdev"; qcom,devfreq = <&msm_gpu>; }; limits_stat: limits-stat { compatible = "qcom,limits-stat"; qcom,limits-stat-sensor-names = "cpu-0-0", "cpu-0-1", "cpu-0-2", "cpu-0-3", "cpu-1-0", "cpu-1-2", "cpu-1-4", "cpu-1-6", "gpuss-0", "gpuss-1", "nspss-0", "nspss-1", "nspss-2"; }; }; #include "crow-thermal-modem.dtsi" &thermal_zones { aoss-0 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 0>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; }; cpuss-0 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 1>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; }; cpuss-1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 2>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; }; cpu-1-0 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens0 3>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu4_emerg0: cpu4-emerg0-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu10_cdev { trip = <&cpu4_emerg0>; cooling-device = <&cpu4_pause 1 1>; }; }; }; cpu-1-1 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens0 4>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu4_emerg1: cpu4-emerg1-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu11_cdev { trip = <&cpu4_emerg1>; cooling-device = <&cpu4_pause 1 1>; }; }; }; cpu-1-2 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens0 5>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu5_emerg0: cpu5-emerg0-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu12_cdev { trip = <&cpu5_emerg0>; cooling-device = <&cpu5_pause 1 1>; }; }; }; cpu-1-3 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens0 6>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu5_emerg1: cpu5-emerg1-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu13_cdev { trip = <&cpu5_emerg1>; cooling-device = <&cpu5_pause 1 1>; }; }; }; cpu-1-4 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens0 7>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu6_emerg0: cpu6-emerg0-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu14_cdev { trip = <&cpu6_emerg0>; cooling-device = <&cpu6_pause 1 1>; }; }; }; cpu-1-5 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens0 8>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu6_emerg1: cpu6-emerg1-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu15_cdev { trip = <&cpu6_emerg1>; cooling-device = <&cpu6_pause 1 1>; }; }; }; cpu-1-6 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens0 9>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu7_emerg0: cpu7-emerg0-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu16_cdev { trip = <&cpu7_emerg0>; cooling-device = <&cpu7_pause 1 1>; }; }; }; cpu-1-7 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens0 10>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu7_emerg1: cpu7-emerg1-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu17_cdev { trip = <&cpu7_emerg1>; cooling-device = <&cpu7_pause 1 1>; }; }; }; cpu-0-0 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 11>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; }; cpu-0-1 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens0 12>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu1_emerg: cpu1-emerg-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu01_cdev { trip = <&cpu1_emerg>; cooling-device = <&cpu1_pause 1 1>; }; }; }; cpu-0-2 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 13>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu2_emerg: cpu2-emerg-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu02_cdev { trip = <&cpu2_emerg>; cooling-device = <&cpu2_pause 1 1>; }; }; }; cpu-0-3 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 14>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; cpu3_emerg: cpu3-emerg-cfg { temperature = <110000>; hysteresis = <10000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { cpu02_cdev { trip = <&cpu3_emerg>; cooling-device = <&cpu3_pause 1 1>; }; }; }; ddr { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens0 15>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; ddr_config0: ddr0-config { temperature = <90000>; hysteresis = <5000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { gold_cdev0 { trip = <&ddr_config0>; cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; gold_cdev1 { trip = <&ddr_config0>; cooling-device = <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; gold_cdev2 { trip = <&ddr_config0>; cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; gold_plus_cdev { trip = <&ddr_config0>; cooling-device = <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; ddr_cdev { trip = <&ddr_config0>; cooling-device = <&ddr_cdev 1 1>; }; }; }; aoss-1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 0>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; }; nspss-0 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens1 1>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; nspss_0_config: junction-config { temperature = <95000>; hysteresis = <5000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { nsp_cdev { trip = <&nspss_0_config>; cooling-device = <&cdsp_sw THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; nspss-1 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens1 2>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; nspss_1_config: junction-config { temperature = <95000>; hysteresis = <5000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { nsp_cdev { trip = <&nspss_1_config>; cooling-device = <&cdsp_sw THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; nspss-2 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens1 3>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; nspss_2_config: junction-config { temperature = <95000>; hysteresis = <5000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { nsp_cdev { trip = <&nspss_2_config>; cooling-device = <&cdsp_sw THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; mdmss-0 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 4>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; mdmss0_config0: mdmss0-config0 { temperature = <102000>; hysteresis = <3000>; type = "passive"; }; mdmss0_config1: mdmss0-config1 { temperature = <105000>; hysteresis = <3000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; }; mdmss-1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 5>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; mdmss1_config0: mdmss1-config0 { temperature = <102000>; hysteresis = <3000>; type = "passive"; }; mdmss1_config1: mdmss1-config1 { temperature = <105000>; hysteresis = <3000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; }; mdmss-2 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 6>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; mdmss2_config0: mdmss2-config0 { temperature = <102000>; hysteresis = <3000>; type = "passive"; }; mdmss2_config1: mdmss2-config1 { temperature = <105000>; hysteresis = <3000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; }; mdmss-3 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 7>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; mdmss3_config0: mdmss3-config0 { temperature = <102000>; hysteresis = <3000>; type = "passive"; }; mdmss3_config1: mdmss3-config1 { temperature = <105000>; hysteresis = <3000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; }; camera-0 { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 8>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; }; gpuss-0 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens1 9>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; gpu0_tj_cfg: tj_cfg { temperature = <95000>; hysteresis = <5000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { gpu0_cdev { trip = <&gpu0_tj_cfg>; cooling-device = <&msm_gpu 0 THERMAL_NO_LIMIT>; }; }; }; gpuss-1 { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens1 10>; trips { thermal-engine-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; thermal-hal-config { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; gpu1_tj_cfg: tj_cfg { temperature = <95000>; hysteresis = <5000>; type = "passive"; }; reset-mon-cfg { temperature = <115000>; hysteresis = <5000>; type = "passive"; }; }; cooling-maps { gpu1_cdev { trip = <&gpu1_tj_cfg>; cooling-device = <&msm_gpu 0 THERMAL_NO_LIMIT>; }; }; }; zeroc { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 128>; trips { thermal-engine-config { temperature = <1>; hysteresis = <1>; type = "passive"; }; min_temp_trip: cold-trip { temperature = <1>; hysteresis = <1>; type = "passive"; }; }; cooling-maps { modem_vdd_cdev { trip = <&min_temp_trip>; cooling-device = <&modem_vdd 1 1>; }; }; }; };