[PATCH v2 4/8] arm64: dts: allwinner: h616: Throttle the GPU from the GPU thermal zone

From: Arun Iyengar via B4 Relay

Date: Wed Nov 11 2026 - 01:02:00 EST


From: Arun Iyengar <aiyengar1990@xxxxxxxxx>

The gpu-thermal zone only has the 110 C critical trip point, and the
GPU node is not a cooling device. Once a board describes GPU operating
points (panfrost devfreq), the only reaction to a hot Mali-G31 is
therefore a shutdown.

Make the GPU a cooling device and add a passive trip point at 85 C
(2 C hysteresis) that lets the thermal core lower the GPU OPP. 85 C is
the CPU alert level mainline uses on the H6 (same thermal sensor
generation), and is below the 90 C at which the vendor BSP for the
H616 throttles the GPU (it maps the GPU to its CPU "target" trip).

Boards without a GPU OPP table are not affected: panfrost then
registers no devfreq cooling device and the map stays unbound.

Signed-off-by: Arun Iyengar <aiyengar1990@xxxxxxxxx>
---
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
index 68bd6137c316..93c3b8279241 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
@@ -162,6 +162,7 @@ gpu: gpu@1800000 {
clock-names = "core", "bus";
power-domains = <&prcm_ppu 2>;
resets = <&ccu RST_BUS_GPU>;
+ #cooling-cells = <2>;
status = "disabled";
};

@@ -1124,12 +1125,24 @@ gpu-thermal {
sustainable-power = <1100>;

trips {
- gpu_temp_critical: gpu-trip-0 {
+ gpu_alert: gpu-trip-0 {
+ temperature = <85000>;
+ type = "passive";
+ hysteresis = <2000>;
+ };
+ gpu_temp_critical: gpu-trip-1 {
temperature = <110000>;
type = "critical";
hysteresis = <0>;
};
};
+
+ cooling-maps {
+ map0 {
+ trip = <&gpu_alert>;
+ cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
};

ve-thermal {

--
2.55.0