c7a8bb8aa97a44209bd277685712c77ea1dd3c08
[openwrt/staging/blocktrron.git] /
1 From b78f87940a79321a444083aca46ac3e8e53d1a90 Mon Sep 17 00:00:00 2001
2 From: Alexey Charkov <alchark@gmail.com>
3 Date: Mon, 17 Jun 2024 22:28:53 +0400
4 Subject: [PATCH] arm64: dts: rockchip: add passive GPU cooling on RK3588
5
6 As the GPU support on RK3588 has been merged upstream, along with OPP
7 values, add a corresponding cooling map for passive cooling using the GPU.
8
9 Signed-off-by: Alexey Charkov <alchark@gmail.com>
10 Link: https://lore.kernel.org/r/20240617-rk-dts-additions-v5-3-c1f5f3267f1e@gmail.com
11 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
12 ---
13 arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 16 +++++++++++++++-
14 1 file changed, 15 insertions(+), 1 deletion(-)
15
16 --- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
17 +++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
18 @@ -2493,17 +2493,31 @@
19 };
20
21 gpu_thermal: gpu-thermal {
22 - polling-delay-passive = <0>;
23 + polling-delay-passive = <100>;
24 polling-delay = <0>;
25 thermal-sensors = <&tsadc 5>;
26
27 trips {
28 + gpu_alert: gpu-alert {
29 + temperature = <85000>;
30 + hysteresis = <2000>;
31 + type = "passive";
32 + };
33 +
34 gpu_crit: gpu-crit {
35 temperature = <115000>;
36 hysteresis = <0>;
37 type = "critical";
38 };
39 };
40 +
41 + cooling-maps {
42 + map0 {
43 + trip = <&gpu_alert>;
44 + cooling-device =
45 + <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
46 + };
47 + };
48 };
49
50 npu_thermal: npu-thermal {