mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
1c61a8f958
Hardware -------- RockChip RK3588 ARM64 (8 cores) 4/8/16/32GB LPDDR4X RAM 2500 Base-T RGB LED eMMC Connector SPI-NOR 16MB Micro-SD Slot 2x USB 2.0 Port 2x USB 3.0 Port Headphone Jack M.2 E-Key M.2 M-Key USB PD 5/9/12/15/20V Power Install -------- Uncompress the OpenWrt sysupgrade and write it to a micro SD card or internal eMMC using dd. 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>
68 lines
1.8 KiB
Diff
68 lines
1.8 KiB
Diff
From 4a152231b050590af771fa3cc8462ed08b691a24 Mon Sep 17 00:00:00 2001
|
|
From: Alexey Charkov <alchark@gmail.com>
|
|
Date: Mon, 17 Jun 2024 22:28:54 +0400
|
|
Subject: [PATCH] arm64: dts: rockchip: enable automatic fan control on Rock 5B
|
|
|
|
This links the PWM fan on Radxa Rock 5B as an active cooling device
|
|
managed automatically by the thermal subsystem, with a target SoC
|
|
temperature of 65C and a minimum-spin interval from 55C to 65C to
|
|
ensure airflow when the system gets warm
|
|
|
|
Helped-by: Dragan Simic <dsimic@manjaro.org>
|
|
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
|
|
Signed-off-by: Alexey Charkov <alchark@gmail.com>
|
|
Link: https://lore.kernel.org/r/20240617-rk-dts-additions-v5-4-c1f5f3267f1e@gmail.com
|
|
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
|
|
---
|
|
.../boot/dts/rockchip/rk3588-rock-5b.dts | 32 ++++++++++++++++++-
|
|
1 file changed, 31 insertions(+), 1 deletion(-)
|
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
|
|
@@ -52,7 +52,7 @@
|
|
|
|
fan: pwm-fan {
|
|
compatible = "pwm-fan";
|
|
- cooling-levels = <0 95 145 195 255>;
|
|
+ cooling-levels = <0 120 150 180 210 240 255>;
|
|
fan-supply = <&vcc5v0_sys>;
|
|
pwms = <&pwm1 0 50000 0>;
|
|
#cooling-cells = <2>;
|
|
@@ -278,6 +278,36 @@
|
|
};
|
|
};
|
|
};
|
|
+
|
|
+&package_thermal {
|
|
+ polling-delay = <1000>;
|
|
+
|
|
+ trips {
|
|
+ package_fan0: package-fan0 {
|
|
+ temperature = <55000>;
|
|
+ hysteresis = <2000>;
|
|
+ type = "active";
|
|
+ };
|
|
+
|
|
+ package_fan1: package-fan1 {
|
|
+ temperature = <65000>;
|
|
+ hysteresis = <2000>;
|
|
+ type = "active";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ cooling-maps {
|
|
+ map1 {
|
|
+ trip = <&package_fan0>;
|
|
+ cooling-device = <&fan THERMAL_NO_LIMIT 1>;
|
|
+ };
|
|
+
|
|
+ map2 {
|
|
+ trip = <&package_fan1>;
|
|
+ cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
|
|
&pcie2x1l0 {
|
|
pinctrl-names = "default";
|