mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
6a0a6c45ed
Backport upstreamed dts updates for rk3588. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> Link: https://github.com/openwrt/openwrt/pull/16149 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
51 lines
1.4 KiB
Diff
51 lines
1.4 KiB
Diff
From b78f87940a79321a444083aca46ac3e8e53d1a90 Mon Sep 17 00:00:00 2001
|
|
From: Alexey Charkov <alchark@gmail.com>
|
|
Date: Mon, 17 Jun 2024 22:28:53 +0400
|
|
Subject: [PATCH] arm64: dts: rockchip: add passive GPU cooling on RK3588
|
|
|
|
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 | 16 +++++++++++++++-
|
|
1 file changed, 15 insertions(+), 1 deletion(-)
|
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
|
|
@@ -2493,17 +2493,31 @@
|
|
};
|
|
|
|
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 {
|