]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: rockchip: add passive GPU cooling on RK3588
authorAlexey Charkov <alchark@gmail.com>
Mon, 17 Jun 2024 18:28:53 +0000 (22:28 +0400)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 24 Jun 2024 16:14:01 +0000 (18:14 +0200)
As the GPU support on RK3588 has been merged upstream, along with OPP
values, add a corresponding cooling map for passive cooling using the GPU.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Link: https://lore.kernel.org/r/20240617-rk-dts-additions-v5-3-c1f5f3267f1e@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi

index 78bc9dc97044d2247f37be50f3675fca1c6f027c..6cc1ca46ac1118f3090b6837da5f25d747ce1b4b 100644 (file)
                };
 
                gpu_thermal: gpu-thermal {
-                       polling-delay-passive = <0>;
+                       polling-delay-passive = <100>;
                        polling-delay = <0>;
                        thermal-sensors = <&tsadc 5>;
 
                        trips {
+                               gpu_alert: gpu-alert {
+                                       temperature = <85000>;
+                                       hysteresis = <2000>;
+                                       type = "passive";
+                               };
+
                                gpu_crit: gpu-crit {
                                        temperature = <115000>;
                                        hysteresis = <0>;
                                        type = "critical";
                                };
                        };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpu_alert>;
+                                       cooling-device =
+                                               <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
                };
 
                npu_thermal: npu-thermal {