[PATCH] The default fan policy causes rock5b to restart when streaming media and sometimes the policy does not always work

Steven Feng steven at joint-cloud.com
Tue Oct 31 20:59:21 PDT 2023


Signed-off-by: Steven Feng <steven at joint-cloud.com>
---
 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
index 8ab60968f275..974d09a8cb26 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
@@ -38,10 +38,20 @@ analog-sound {
 
 	fan: pwm-fan {
 		compatible = "pwm-fan";
-		cooling-levels = <0 95 145 195 255>;
+		cooling-levels = <72 94 117 139 162 184 207 229 255>;
 		fan-supply = <&vcc5v0_sys>;
 		pwms = <&pwm1 0 50000 0>;
 		#cooling-cells = <2>;
+		rockchip,temp-trips = <
+					40000	1
+					45000	2
+					50000	3
+					55000	4
+					60000	5
+					65000	6
+					70000	7
+					75000	8
+				>;
 	};
 
 	vcc5v0_host: vcc5v0-host-regulator {
-- 
2.34.1




More information about the Linux-rockchip mailing list