]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
riscv: dts: sifive: unmatched: Add PWM controlled fans
authorRené Rebe <rene@exactco.de>
Sat, 22 Nov 2025 12:19:40 +0000 (13:19 +0100)
committerConor Dooley <conor.dooley@microchip.com>
Sun, 23 Nov 2025 19:59:48 +0000 (19:59 +0000)
This adds the two PWM-controlled fans of the HiFive Unmatched board to
the device tree.

Signed-off-by: René Rebe <rene@exactco.de>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts

index 03ce2cee4e976fc68ee3eb7bcf5be933ff7d957a..850fa1d25be75693b20643e9ab4d4874df838698 100644 (file)
                gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
        };
 
+       fan1 {
+               compatible = "pwm-fan";
+               pwms = <&pwm1 2 7812500 0>;
+       };
+
+       fan2 {
+               compatible = "pwm-fan";
+               pwms = <&pwm1 3 7812500 0>;
+       };
+
        led-controller-1 {
                compatible = "pwm-leds";