Skip to content

Commit 62cdf0a

Browse files
unicornxinochisa
authored andcommitted
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>
1 parent 8630ed6 commit 62cdf0a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@
7373
};
7474

7575
/ {
76+
pwmfan: pwm-fan {
77+
compatible = "pwm-fan";
78+
cooling-levels = <103 128 179 230 255>;
79+
pwms = <&pwm 0 40000 0>;
80+
#cooling-cells = <2>;
81+
};
82+
7683
thermal-zones {
7784
soc-thermal {
7885
polling-delay-passive = <1000>;

0 commit comments

Comments
 (0)