Commit 8035eaad authored by Andrew Lunn's avatar Andrew Lunn Committed by Gregory CLEMENT

ARM: dts: armada-xp: Use pwm-fan rather than gpio-fan

The mvebu GPIO driver can also perform PWM on some pins. Use the pwm-fan
driver to control the fan of the WRT1900AC, giving us finer grained control
over its speed and hence noise.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
URL: https://patchwork.ozlabs.org/patch/427291/
[Ralph Sennhauser: drop flags paramter from pwms, no longer used]
Signed-off-by: default avatarRalph Sennhauser <ralph.sennhauser@gmail.com>
Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
parent 7cb2acb3
......@@ -308,13 +308,11 @@ power {
};
};
gpio_fan {
pwm_fan {
/* SUNON HA4010V4-0000-C99 */
compatible = "gpio-fan";
gpios = <&gpio0 24 0>;
gpio-fan,speed-map = <0 0
4500 1>;
compatible = "pwm-fan";
pwms = <&gpio0 24 4000>;
};
dsa {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment