Skip to contentSkip to conversation

arm64: dts: allwinner: h616: Add CPU cooling map

PATCH Applied Jernej Skrabec 2 participants 2 messages Nov 4 – Nov 9

Subsystems (2)
lore
Share & tools
lore

Jernej Skrabec

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: allwinner: h616: Add CPU cooling map

The CPU thermal zone has passive trip points, but no cooling map, so nothing throttles the CPUs and only the critical trip point ever acts, by shutting the system down. Throttle the CPUs above the 70 C trip point.

---
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +10 -0
index c6b3a3f8359a..e4e0b999473e 100644
@@ -1105,6 +1105,16 @@ cpu_critical: cpu-trip-2 {
 					hysteresis = <0>;
 				};
 			};
+
+			cooling-maps {
+				map0 {
+					trip = <&cpu_target>;
+					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
 		};
 
 		gpu-thermal {

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 6 lines · Jernej Skrabec

The CPU thermal zone has passive trip points, but no cooling map, so nothing throttles the CPUs and only the critical trip point ever acts, by shutting the system down. Throttle the CPUs above the 70 C trip point.

Applied to sunxi/dt-for-7.5 in sunxi, thanks!

[1/1] arm64: dts: allwinner: h616: Add CPU cooling map

      https://git.kernel.org/sunxi/linux/c/a7f6e476aaed

Best regards,

Signature · 1 line
Chen-Yu Tsai <[email protected]>