OSDN Git Service

arm64: dts: marvell: clearfog-gt-8k: add pwm-fan
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 9 Mar 2021 15:20:08 +0000 (15:20 +0000)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Fri, 2 Apr 2021 19:47:09 +0000 (21:47 +0200)
Add pwm-fan support for controlling the fan speed.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts

index eb01cc9..b1723ac 100644 (file)
                ethernet2 = &cp1_eth2;
        };
 
+       pwm {
+               compatible = "pwm-fan";
+               pinctrl-names = "default";
+               pinctrl-0 = <&cp0_fan_pwm_pins>;
+               pwms = <&cp0_gpio2 16 40000>;
+       };
+
        v_3_3: regulator-3-3v {
                compatible = "regulator-fixed";
                regulator-name = "v_3_3";