Loading arch/arm64/boot/dts/qcom/sdm855-thermal.dtsi 0 → 100644 +447 −0 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <dt-bindings/thermal/thermal.h> &thermal_zones { aoss0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&tsens0 0>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-0-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&tsens0 1>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-0-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&tsens0 2>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-0-2-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&tsens0 3>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-0-3-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 4>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpuss-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 5>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpuss-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 6>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 7>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 8>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-2-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 9>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-3-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 10>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-4-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 11>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-5-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 12>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-6-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 13>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-7-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 14>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; gpuss-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 15>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; aoss-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 0>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cwlan-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 1>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; video-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 2>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; ddr-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 3>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; q6-hvx-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 4>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; camera-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 5>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cmpss-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 6>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; mdm-core-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 7>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; npu-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 8>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; mdm-vec-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 9>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; mdm-scl-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 10>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; gpuss-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&tsens1 11>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; pop-mem-step { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens1 3>; thermal-governor = "step_wise"; trips { pop_trip: pop-trip { temperature = <95000>; hysteresis = <0>; type = "passive"; }; }; cooling-maps { pop_cdev4 { trip = <&pop_trip>; cooling-device = <&CPU4 THERMAL_NO_LIMIT (THERMAL_MAX_LIMIT-1)>; }; pop_cdev5 { trip = <&pop_trip>; cooling-device = <&CPU5 THERMAL_NO_LIMIT (THERMAL_MAX_LIMIT-1)>; }; pop_cdev6 { trip = <&pop_trip>; cooling-device = <&CPU6 THERMAL_NO_LIMIT (THERMAL_MAX_LIMIT-1)>; }; pop_cdev7 { trip = <&pop_trip>; cooling-device = <&CPU7 THERMAL_NO_LIMIT (THERMAL_MAX_LIMIT-1)>; }; }; }; }; arch/arm64/boot/dts/qcom/sdm855.dtsi +9 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_0>; sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; #cooling-cells = <2>; L2_0: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading Loading @@ -94,6 +95,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_1>; sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; #cooling-cells = <2>; L2_1: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading Loading @@ -125,6 +127,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_2>; sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; #cooling-cells = <2>; L2_2: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading Loading @@ -156,6 +159,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_3>; sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; #cooling-cells = <2>; L2_3: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading Loading @@ -187,6 +191,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_4>; sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>; #cooling-cells = <2>; L2_4: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x40000>; Loading Loading @@ -218,6 +223,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_5>; sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>; #cooling-cells = <2>; L2_5: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x40000>; Loading Loading @@ -249,6 +255,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_6>; sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>; #cooling-cells = <2>; L2_6: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x40000>; Loading Loading @@ -280,6 +287,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_7>; sched-energy-costs = <&CPU_COST_2 &CLUSTER_COST_2>; #cooling-cells = <2>; L2_7: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x80000>; Loading Loading @@ -2975,3 +2983,4 @@ #include "sdm855-pm.dtsi" #include "sdm855-audio.dtsi" #include "sdm855-vidc.dtsi" #include "sdm855-thermal.dtsi" Loading
arch/arm64/boot/dts/qcom/sdm855-thermal.dtsi 0 → 100644 +447 −0 Original line number Diff line number Diff line /* Copyright (c) 2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <dt-bindings/thermal/thermal.h> &thermal_zones { aoss0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&tsens0 0>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-0-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&tsens0 1>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-0-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&tsens0 2>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-0-2-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&tsens0 3>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-0-3-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 4>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpuss-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 5>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpuss-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 6>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 7>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 8>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-2-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 9>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-3-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 10>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-4-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 11>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-5-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 12>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-6-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 13>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cpu-1-7-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 14>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; gpuss-0-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens0 15>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; aoss-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 0>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cwlan-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 1>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; video-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 2>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; ddr-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 3>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; q6-hvx-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 4>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; camera-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 5>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; cmpss-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 6>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; mdm-core-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 7>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; npu-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 8>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; mdm-vec-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 9>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; mdm-scl-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&tsens1 10>; thermal-governor = "user_space"; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; gpuss-1-usr { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&tsens1 11>; trips { active-config0 { temperature = <125000>; hysteresis = <1000>; type = "passive"; }; }; }; pop-mem-step { polling-delay-passive = <10>; polling-delay = <0>; thermal-sensors = <&tsens1 3>; thermal-governor = "step_wise"; trips { pop_trip: pop-trip { temperature = <95000>; hysteresis = <0>; type = "passive"; }; }; cooling-maps { pop_cdev4 { trip = <&pop_trip>; cooling-device = <&CPU4 THERMAL_NO_LIMIT (THERMAL_MAX_LIMIT-1)>; }; pop_cdev5 { trip = <&pop_trip>; cooling-device = <&CPU5 THERMAL_NO_LIMIT (THERMAL_MAX_LIMIT-1)>; }; pop_cdev6 { trip = <&pop_trip>; cooling-device = <&CPU6 THERMAL_NO_LIMIT (THERMAL_MAX_LIMIT-1)>; }; pop_cdev7 { trip = <&pop_trip>; cooling-device = <&CPU7 THERMAL_NO_LIMIT (THERMAL_MAX_LIMIT-1)>; }; }; }; };
arch/arm64/boot/dts/qcom/sdm855.dtsi +9 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_0>; sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; #cooling-cells = <2>; L2_0: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading Loading @@ -94,6 +95,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_1>; sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; #cooling-cells = <2>; L2_1: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading Loading @@ -125,6 +127,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_2>; sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; #cooling-cells = <2>; L2_2: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading Loading @@ -156,6 +159,7 @@ cache-size = <0x8000>; next-level-cache = <&L2_3>; sched-energy-costs = <&CPU_COST_0 &CLUSTER_COST_0>; #cooling-cells = <2>; L2_3: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x20000>; Loading Loading @@ -187,6 +191,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_4>; sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>; #cooling-cells = <2>; L2_4: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x40000>; Loading Loading @@ -218,6 +223,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_5>; sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>; #cooling-cells = <2>; L2_5: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x40000>; Loading Loading @@ -249,6 +255,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_6>; sched-energy-costs = <&CPU_COST_1 &CLUSTER_COST_1>; #cooling-cells = <2>; L2_6: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x40000>; Loading Loading @@ -280,6 +287,7 @@ cache-size = <0x20000>; next-level-cache = <&L2_7>; sched-energy-costs = <&CPU_COST_2 &CLUSTER_COST_2>; #cooling-cells = <2>; L2_7: l2-cache { compatible = "arm,arch-cache"; cache-size = <0x80000>; Loading Loading @@ -2975,3 +2983,4 @@ #include "sdm855-pm.dtsi" #include "sdm855-audio.dtsi" #include "sdm855-vidc.dtsi" #include "sdm855-thermal.dtsi"