arm64: dts: imx8mp: Enable gpu passive throttling
authorMartin Kepplinger-Novaković <martink@posteo.de>
Thu, 8 May 2025 10:18:02 +0000 (10:18 +0000)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Jun 2025 09:16:10 +0000 (17:16 +0800)
commit1a2ad59da68dd294f994efbf68c5d671f6b42fad
tree59ee08d7585a8594a941bd6a5b8765eee450ec80
parent2a6885e1867242ae112c2b68231c78ce9f62e6f0
arm64: dts: imx8mp: Enable gpu passive throttling

Hook up the gpu as a passive cooling device to the thermal zones' alert
trip point just like the cpu.

The gpu here consists of 3D GPU, 2D GPU and NPU.

One way to test would be to set one "alert" trip point low enough
and watch the cooling device state increase:

echo 10000 > /sys/class/thermal/thermal_zone0/trip_point_0_temp
watch cat /sys/class/thermal/cooling_device*/cur_state

And of course set the trip point back to its original value and watch
the cooling device states jump to 0 again.

Signed-off-by: Martin Kepplinger-Novaković <martink@posteo.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp.dtsi