mvebu: backport upstream ethernet driver improvements and enable buffer manager support
[openwrt/openwrt.git] / target / linux / mvebu / patches-4.4 / 206-mvebu_wrt1900ac_use_pwm-fan_rather_than_gpio-fan.patch
1 The mvebu gpio driver can also perform PWM on some pins. Us the
2 pwm-fan driver to control the fan of the WRT1900AC, giving us fine
3 grain control over its speed and hence noise.
4
5 Signed-off-by: Andrew Lunn <andrew@lunn.ch>
6 ---
7 arch/arm/boot/dts/armada-xp-wrt1900ac.dts | 8 +++-----
8 1 file changed, 3 insertions(+), 5 deletions(-)
9
10 --- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
11 +++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
12 @@ -428,13 +428,11 @@
13 };
14 };
15
16 - gpio_fan {
17 + pwm_fan {
18 /* SUNON HA4010V4-0000-C99 */
19 - compatible = "gpio-fan";
20 - gpios = <&gpio0 24 0>;
21
22 - gpio-fan,speed-map = <0 0
23 - 4500 1>;
24 + compatible = "pwm-fan";
25 + pwms = <&gpio0 24 4000 0>;
26 };
27
28 dsa@0 {