aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChen Wang <unicorn_wang@outlook.com>2025-02-12 17:42:02 +0800
committerInochi Amaoto <inochiama@gmail.com>2025-02-18 10:11:37 +0800
commit62cdf0a06dd5a650e4ca95b6f3a13daa48cf517a (patch)
tree9d80f9145912156cd23592a314adf10293b24e88
parentMAINTAINERS: update info for SOPHGO DEVICETREES and DRIVERS (diff)
downloadwireguard-linux-62cdf0a06dd5a650e4ca95b6f3a13daa48cf517a.tar.xz
wireguard-linux-62cdf0a06dd5a650e4ca95b6f3a13daa48cf517a.zip
riscv: sophgo: dts: add pwm-fan for Milk-V Pioneer
Milk-V Pioneer uses fan as cooling-device, and speed of the fan is controlled by the first channel of pwm controller of SG2042. Signed-off-by: Chen Wang <unicorn_wang@outlook.com> Link: https://lore.kernel.org/r/dd23362328f77dd91aa9354848bbb0abad0f554b.1739351437.git.unicorn_wang@outlook.com Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Diffstat (limited to '')
-rw-r--r--arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
index be596d01ff8d..74c997ed8283 100644
--- a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
+++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
@@ -73,6 +73,13 @@
};
/ {
+ pwmfan: pwm-fan {
+ compatible = "pwm-fan";
+ cooling-levels = <103 128 179 230 255>;
+ pwms = <&pwm 0 40000 0>;
+ #cooling-cells = <2>;
+ };
+
thermal-zones {
soc-thermal {
polling-delay-passive = <1000>;