diff --git a/qcom/tuna-rumi.dtsi b/qcom/tuna-rumi.dtsi index e6ac068f..d5c155cd 100644 --- a/qcom/tuna-rumi.dtsi +++ b/qcom/tuna-rumi.dtsi @@ -174,3 +174,19 @@ &APSS_OFF { status = "disabled"; }; + +&tsens0 { + status = "disabled"; +}; + +&tsens1 { + status = "disabled"; +}; + +&tsens2 { + status = "disabled"; +}; + +&tsens3 { + status = "disabled"; +}; diff --git a/qcom/tuna-thermal.dtsi b/qcom/tuna-thermal.dtsi new file mode 100644 index 00000000..0f0afb75 --- /dev/null +++ b/qcom/tuna-thermal.dtsi @@ -0,0 +1,1765 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include + +&soc { + tsens0: tsens0@c228000 { + compatible = "qcom,tsens-v2"; + reg = <0xc228000 0x1ff>, /* TM */ + <0xc222000 0x1ff>; /* SROT */ + #qcom,sensors = <8>; + interrupts = , + ; + interrupt-names = "uplow","critical"; + #thermal-sensor-cells = <1>; + }; + + tsens1: tsens1@c229000 { + compatible = "qcom,tsens-v2"; + reg = <0xc229000 0x1ff>, /* TM */ + <0xc223000 0x1ff>; /* SROT */ + #qcom,sensors = <11>; + interrupts = , + ; + interrupt-names = "uplow","critical"; + #thermal-sensor-cells = <1>; + }; + + tsens2: tsens2@c22a000 { + compatible = "qcom,tsens-v2"; + reg = <0xc22a000 0x1ff>, /* TM */ + <0xc224000 0x1ff>; /* SROT */ + #qcom,sensors = <15>; + interrupts = , + ; + interrupt-names = "uplow","critical"; + #thermal-sensor-cells = <1>; + }; + + tsens3: tsens3@c22b000 { + compatible = "qcom,tsens-v2"; + reg = <0xc22b000 0x1ff>, /* TM */ + <0xc225000 0x1ff>; /* SROT */ + #qcom,sensors = <5>; + interrupts = , + ; + interrupt-names = "uplow","critical"; + #thermal-sensor-cells = <1>; + }; + + qcom,cpu-pause { + compatible = "qcom,thermal-pause"; + + cpu0_pause: cpu0-pause { + qcom,cpus = <&CPU0>; + qcom,cdev-alias = "thermal-pause-1"; + #cooling-cells = <2>; + }; + + 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>; + }; + + APC0_MX_CX_PAUSE: apc0-mx-cx-pause { + qcom,cpus = <&CPU2 &CPU3 &CPU4 &CPU5>; + qcom,cdev-alias = "thermal-pause-3C"; + #cooling-cells = <2>; + }; + + APC1_MX_CX_PAUSE: apc1-mx-cx-pause { + qcom,cpus = <&CPU6 &CPU7>; + qcom,cdev-alias = "thermal-pause-C0"; + #cooling-cells = <2>; + }; + + /* Thermal-engine cooling devices */ + pause-cpu0 { + qcom,cpus = <&CPU0>; + qcom,cdev-alias = "pause-cpu0"; + }; + + 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"; + + cpu0_hotplug: cpu0-hotplug { + qcom,cpu = <&CPU0>; + qcom,cdev-alias = "cpu-hotplug0"; + #cooling-cells = <2>; + }; + + 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,cpufreq-cdev { + compatible = "qcom,cpufreq-cdev"; + + cpu-cluster0 { + qcom,cpus = <&CPU0 &CPU1>; + }; + + cpu-cluster1 { + qcom,cpus = <&CPU2 &CPU3 &CPU4>; + }; + + cpu-cluster2 { + qcom,cpus = <&CPU5 &CPU6>; + }; + + cpu-cluster3 { + qcom,cpus = <&CPU7>; + }; + }; + + qmi_tmd: qmi-tmd-devices { + cdsp { + qcom,instance-id = ; + + cdsp_sw: cdsp { + qcom,qmi-dev-name = "cdsp_sw"; + #cooling-cells = <2>; + }; + + cdsp_sw_hvx: cdsp_sw_hvx { + qcom,qmi-dev-name = "cdsp_sw_hvx"; + #cooling-cells = <2>; + }; + + cdsp_sw_hmx: cdsp_sw_hmx { + qcom,qmi-dev-name = "cdsp_sw_hmx"; + #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 = <16>; + #cooling-cells = <2>; + }; + }; + + limits_stat: limits-stat { + compatible = "qcom,limits-stat"; + qcom,limits-stat-sensor-names = "aoss-0", "cpu-2-0-0", "cpu-2-0-1", + "cpu-2-0-2", "cpu-1-0-0", "cpu-1-0-1", + "cpu-1-1-0", "cpu-1-1-1", "aoss-1", + "cpuss-0-0", "cpuss-0-1", "cpu-1-2-0", "cpu-1-2-1", + "cpu-1-3-0", "cpu-1-3-1", "cpu-1-4-0", "cpu-1-4-1", + "cpu-0-0-0", "cpu-0-1-0", "aoss-2", "camera-0", + "camera-1", "video", "ddr-0", "gpu-0", "gpu-1", + "gpu-2", "gpu-3", "gpu-4", "gpu-5", "nsphvx-0", + "nsphvx-1", "nsphmx-0", "nsphmx-1", "aoss-3", + "mdmss-0", "mdmss-1", "mdmss-2", "mdmss-3"; + }; +}; + +#include "sun-thermal-modem.dtsi" + +&thermal_zones { + aoss-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens0 0>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + cpu-2-0-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens0 1>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu7_emerg0: cpu7-emerg0-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu7_emerg0_1: cpu7-emerg0-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu200_cdev { + trip = <&cpu7_emerg0>; + cooling-device = <&cpu7_pause 1 1>; + }; + + cpu200_cdev1 { + trip = <&cpu7_emerg0_1>; + cooling-device = <&cpu7_hotplug 1 1>; + }; + }; + }; + + cpu-2-0-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens0 2>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu7_emerg1: cpu7-emerg0-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu7_emerg1_1: cpu7-emerg0-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu201_cdev { + trip = <&cpu7_emerg1>; + cooling-device = <&cpu7_pause 1 1>; + }; + + cpu201_cdev1 { + trip = <&cpu7_emerg1_1>; + cooling-device = <&cpu7_hotplug 1 1>; + }; + }; + }; + + cpu-2-0-2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens0 3>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu7_emerg2: cpu7-emerg0-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu7_emerg2_1: cpu7-emerg0-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu202_cdev { + trip = <&cpu7_emerg2>; + cooling-device = <&cpu7_pause 1 1>; + }; + + cpu202_cdev1 { + trip = <&cpu7_emerg2_1>; + cooling-device = <&cpu7_hotplug 1 1>; + }; + }; + }; + + cpu-1-0-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens0 4>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu2_emerg0: cpu2-emerg0-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu2_emerg0_1: cpu2-emerg0-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu100_cdev { + trip = <&cpu2_emerg0>; + cooling-device = <&cpu2_pause 1 1>; + }; + + cpu100_cdev1 { + trip = <&cpu2_emerg0_1>; + cooling-device = <&cpu2_hotplug 1 1>; + }; + }; + }; + + cpu-1-0-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens0 5>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu2_emerg1: cpu2-emerg1-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu2_emerg1_1: cpu2-emerg1-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu101_cdev { + trip = <&cpu2_emerg1>; + cooling-device = <&cpu2_pause 1 1>; + }; + + cpu101_cdev1 { + trip = <&cpu2_emerg1_1>; + cooling-device = <&cpu2_hotplug 1 1>; + }; + }; + }; + + cpu-1-1-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens0 6>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu3_emerg0: cpu3-emerg0-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu3_emerg0_1: cpu3-emerg0-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu110_cdev { + trip = <&cpu3_emerg0>; + cooling-device = <&cpu3_pause 1 1>; + }; + + cpu110_cdev1 { + trip = <&cpu3_emerg0_1>; + cooling-device = <&cpu3_hotplug 1 1>; + }; + }; + }; + + cpu-1-1-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens0 7>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu3_emerg1: cpu3-emerg1-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu3_emerg1_1: cpu3-emerg1-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu111_cdev { + trip = <&cpu3_emerg1>; + cooling-device = <&cpu3_pause 1 1>; + }; + + cpu111_cdev1 { + trip = <&cpu3_emerg1_1>; + cooling-device = <&cpu3_hotplug 1 1>; + }; + }; + }; + + aoss-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 0>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + cpuss-0-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 1>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + cpuss-0-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 2>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + cpu-1-2-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 3>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu4_emerg0: cpu4-emerg0-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu4_emerg0_1: cpu4-emerg0-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu120_cdev { + trip = <&cpu4_emerg0>; + cooling-device = <&cpu4_pause 1 1>; + }; + + cpu120_cdev1 { + trip = <&cpu4_emerg0_1>; + cooling-device = <&cpu4_hotplug 1 1>; + }; + }; + }; + + cpu-1-2-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 4>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu4_emerg1: cpu4-emerg1-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu4_emerg1_1: cpu4-emerg1-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu121_cdev { + trip = <&cpu4_emerg1>; + cooling-device = <&cpu4_pause 1 1>; + }; + + cpu121_cdev1 { + trip = <&cpu4_emerg1_1>; + cooling-device = <&cpu4_hotplug 1 1>; + }; + }; + }; + + cpu-1-3-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 5>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu5_emerg0: cpu5-emerg0-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu5_emerg0_1: cpu5-emerg0-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point4 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu130_cdev { + trip = <&cpu5_emerg0>; + cooling-device = <&cpu5_pause 1 1>; + }; + + cpu130_cdev1 { + trip = <&cpu5_emerg0_1>; + cooling-device = <&cpu5_hotplug 1 1>; + }; + }; + }; + + cpu-1-3-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 6>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu5_emerg1: cpu5-emerg1-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu5_emerg1_1: cpu5-emerg1-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu131_cdev { + trip = <&cpu5_emerg1>; + cooling-device = <&cpu5_pause 1 1>; + }; + + cpu131_cdev1 { + trip = <&cpu5_emerg1_1>; + cooling-device = <&cpu5_hotplug 1 1>; + }; + }; + }; + + cpu-1-4-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 7>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu6_emerg0: cpu6-emerg0-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu6_emerg0_1: cpu6-emerg0-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu140_cdev { + trip = <&cpu6_emerg0>; + cooling-device = <&cpu6_pause 1 1>; + }; + + cpu140_cdev1 { + trip = <&cpu6_emerg0_1>; + cooling-device = <&cpu6_hotplug 1 1>; + }; + }; + }; + + cpu-1-4-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 8>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu6_emerg1: cpu6-emerg1-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu6_emerg1_1: cpu6-emerg1-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu141_cdev { + trip = <&cpu6_emerg1>; + cooling-device = <&cpu6_pause 1 1>; + }; + + cpu141_cdev1 { + trip = <&cpu6_emerg1_1>; + cooling-device = <&cpu6_hotplug 1 1>; + }; + }; + }; + + cpu-0-0-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 9>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu0_emerg0: cpu0-emerg0-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu0_emerg0_1: cpu0-emerg0-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu000_cdev { + trip = <&cpu0_emerg0>; + cooling-device = <&cpu0_pause 1 1>; + }; + + cpu000_cdev1 { + trip = <&cpu0_emerg0_1>; + cooling-device = <&cpu0_hotplug 1 1>; + }; + }; + }; + + cpu-0-1-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens1 10>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + cpu1_emerg0: cpu1-emerg0-cfg { + temperature = <118000>; + hysteresis = <8000>; + type = "passive"; + }; + + cpu1_emerg0_1: cpu1-emerg0-1-cfg { + temperature = <120000>; + hysteresis = <10000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + cpu010_cdev { + trip = <&cpu1_emerg0>; + cooling-device = <&cpu1_pause 1 1>; + }; + + cpu010_cdev1 { + trip = <&cpu1_emerg0_1>; + cooling-device = <&cpu1_hotplug 1 1>; + }; + }; + }; + + aoss-2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 0>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + camera-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 1>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + camera-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 2>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + video { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 3>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + + }; + }; + + ddr-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 4>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + gpu-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 5>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + gpu0_tj_cfg: tj_cfg { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + gpu-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 6>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + gpu1_tj_cfg: tj_cfg { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + gpu-2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 7>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + gpu2_tj_cfg: tj_cfg { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + gpu-3 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 8>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + gpu3_tj_cfg: tj_cfg { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + gpu-4 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 9>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + gpu4_tj_cfg: tj_cfg { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + gpu-5 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 10>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <0>; + type = "passive"; + }; + + gpu5_tj_cfg: tj_cfg { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + nsphvx-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 11>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + nsphvx-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 12>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + nsphmx-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 13>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + nsphmx-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens2 14>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <105000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point2 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + aoss-3 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens3 0>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + }; + + mdmss-0 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens3 1>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + mdmss0_config0: mdmss0-config0 { + temperature = <102000>; + hysteresis = <3000>; + type = "passive"; + }; + + mdmss0_config1: mdmss0-config1 { + temperature = <105000>; + hysteresis = <3000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + lte_cdev0 { + trip = <&mdmss0_config0>; + cooling-device = <&modem_lte_dsc 8 8>; + }; + + nr_scg_cdev0 { + trip = <&mdmss0_config0>; + cooling-device = <&modem_nr_scg_dsc 100 100>; + }; + + nr_cdev0 { + trip = <&mdmss0_config0>; + cooling-device = <&modem_nr_dsc 10 10>; + }; + + lte_cdev2 { + trip = <&mdmss0_config1>; + cooling-device = <&modem_lte_dsc 255 255>; + }; + + nr_cdev2 { + trip = <&mdmss0_config1>; + cooling-device = <&modem_nr_dsc 255 255>; + }; + }; + }; + + mdmss-1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens3 2>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + mdmss1_config0: mdmss1-config0 { + temperature = <102000>; + hysteresis = <3000>; + type = "passive"; + }; + + mdmss1_config1: mdmss1-config1 { + temperature = <105000>; + hysteresis = <3000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + lte_cdev0 { + trip = <&mdmss1_config0>; + cooling-device = <&modem_lte_dsc 8 8>; + }; + + nr_scg_cdev0 { + trip = <&mdmss1_config0>; + cooling-device = <&modem_nr_scg_dsc 100 100>; + }; + + nr_cdev0 { + trip = <&mdmss1_config0>; + cooling-device = <&modem_nr_dsc 10 10>; + }; + + lte_cdev2 { + trip = <&mdmss1_config1>; + cooling-device = <&modem_lte_dsc 255 255>; + }; + + nr_cdev2 { + trip = <&mdmss1_config1>; + cooling-device = <&modem_nr_dsc 255 255>; + }; + }; + }; + + mdmss-2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens3 3>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + mdmss2_config0: mdmss2-config0 { + temperature = <102000>; + hysteresis = <3000>; + type = "passive"; + }; + + mdmss2_config1: mdmss2-config1 { + temperature = <105000>; + hysteresis = <3000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + lte_cdev0 { + trip = <&mdmss2_config0>; + cooling-device = <&modem_lte_dsc 8 8>; + }; + + nr_scg_cdev0 { + trip = <&mdmss2_config0>; + cooling-device = <&modem_nr_scg_dsc 100 100>; + }; + + nr_cdev0 { + trip = <&mdmss2_config0>; + cooling-device = <&modem_nr_dsc 10 10>; + }; + + lte_cdev2 { + trip = <&mdmss2_config1>; + cooling-device = <&modem_lte_dsc 255 255>; + }; + + nr_cdev2 { + trip = <&mdmss2_config1>; + cooling-device = <&modem_nr_dsc 255 255>; + }; + }; + }; + + mdmss-3 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tsens3 4>; + + trips { + trip-point0 { + temperature = <135000>; + hysteresis = <5000>; + type = "passive"; + }; + + mdmss3_config0: mdmss3-config0 { + temperature = <102000>; + hysteresis = <3000>; + type = "passive"; + }; + + mdmss3_config1: mdmss3-config1 { + temperature = <105000>; + hysteresis = <3000>; + type = "passive"; + }; + + trip-point1 { + temperature = <125000>; + hysteresis = <0>; + type = "hot"; + }; + }; + + cooling-maps { + lte_cdev0 { + trip = <&mdmss3_config0>; + cooling-device = <&modem_lte_dsc 8 8>; + }; + + nr_scg_cdev0 { + trip = <&mdmss3_config0>; + cooling-device = <&modem_nr_scg_dsc 100 100>; + }; + + nr_cdev0 { + trip = <&mdmss3_config0>; + cooling-device = <&modem_nr_dsc 10 10>; + }; + + lte_cdev2 { + trip = <&mdmss3_config1>; + cooling-device = <&modem_lte_dsc 255 255>; + }; + + nr_cdev2 { + trip = <&mdmss3_config1>; + cooling-device = <&modem_nr_dsc 255 255>; + }; + }; + }; +}; diff --git a/qcom/tuna.dtsi b/qcom/tuna.dtsi index 8efde20d..3ba6a2cb 100644 --- a/qcom/tuna.dtsi +++ b/qcom/tuna.dtsi @@ -91,6 +91,7 @@ cpu-idle-states = <&GOLD_OFF_CL0 &GOLD_RAIL_OFF_CL0>; power-domains = <&CPU_PD0>; power-domain-names = "psci"; + #cooling-cells = <2>; cpu-release-addr = <0x0 0xE3940000>; next-level-cache = <&L2_0>; capacity-dmips-mhz = <1024>; @@ -115,6 +116,7 @@ cpu-idle-states = <&GOLD_OFF_CL0 &GOLD_RAIL_OFF_CL0>; power-domains = <&CPU_PD1>; power-domain-names = "psci"; + #cooling-cells = <2>; cpu-release-addr = <0x0 0xE3940000>; next-level-cache = <&L2_1>; capacity-dmips-mhz = <1024>; @@ -135,6 +137,7 @@ cpu-idle-states = <&GOLD_OFF_CL1 &GOLD_RAIL_OFF_CL1>; power-domains = <&CPU_PD2>; power-domain-names = "psci"; + #cooling-cells = <2>; cpu-release-addr = <0x0 0xE3940000>; next-level-cache = <&L2_2>; capacity-dmips-mhz = <1321>; @@ -154,6 +157,7 @@ cpu-idle-states = <&GOLD_OFF_CL1 &GOLD_RAIL_OFF_CL1>; power-domains = <&CPU_PD3>; power-domain-names = "psci"; + #cooling-cells = <2>; cpu-release-addr = <0x0 0xE3940000>; next-level-cache = <&L2_3>; capacity-dmips-mhz = <1321>; @@ -173,6 +177,7 @@ cpu-idle-states = <&GOLD_OFF_CL1 &GOLD_RAIL_OFF_CL1>; power-domains = <&CPU_PD4>; power-domain-names = "psci"; + #cooling-cells = <2>; cpu-release-addr = <0x0 0xE3940000>; next-level-cache = <&L2_4>; capacity-dmips-mhz = <1321>; @@ -192,6 +197,7 @@ cpu-idle-states = <&GOLD_OFF_CL2 &GOLD_RAIL_OFF_CL2>; power-domains = <&CPU_PD5>; power-domain-names = "psci"; + #cooling-cells = <2>; cpu-release-addr = <0x0 0xE3940000>; next-level-cache = <&L2_5>; capacity-dmips-mhz = <1321>; @@ -211,6 +217,7 @@ cpu-idle-states = <&GOLD_OFF_CL2 &GOLD_RAIL_OFF_CL2>; power-domains = <&CPU_PD6>; power-domain-names = "psci"; + #cooling-cells = <2>; cpu-release-addr = <0x0 0xE3940000>; next-level-cache = <&L2_6>; capacity-dmips-mhz = <1321>; @@ -230,6 +237,7 @@ cpu-idle-states = <&GOLD_PLUS_OFF &GOLD_PLUS_RAIL_OFF>; power-domains = <&CPU_PD7>; power-domain-names = "psci"; + #cooling-cells = <2>; cpu-release-addr = <0x0 0xE3940000>; next-level-cache = <&L2_7>; capacity-dmips-mhz = <1935>; @@ -2177,6 +2185,7 @@ #include "msm-rdbg.dtsi" #include "tuna-pmic-overlay.dtsi" #include "tuna-walt.dtsi" +#include "tuna-thermal.dtsi" &qupv3_se7_2uart { status = "ok";