Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751787AbdCPGoR (ORCPT ); Thu, 16 Mar 2017 02:44:17 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34627 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbdCPGnT (ORCPT ); Thu, 16 Mar 2017 02:43:19 -0400 From: Ralph Sennhauser To: linux-gpio@vger.kernel.org Cc: Andrew Lunn , Imre Kaloz , Ralph Sennhauser , Jason Cooper , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Mark Rutland , Russell King , Thierry Reding , Linus Walleij , Alexandre Courbot , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Marvell Kirkwood and Armada 370, 375, 38x,...), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-pwm@vger.kernel.org (open list:PWM SUBSYSTEM) Subject: [PATCH 4/4] mvebu: wrt1900ac: Use pwm-fan rather than gpio-fan Date: Thu, 16 Mar 2017 07:42:18 +0100 Message-Id: <20170316064218.9169-5-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170316064218.9169-1-ralph.sennhauser@gmail.com> References: <20170316064218.9169-1-ralph.sennhauser@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1010 Lines: 36 From: Andrew Lunn The mvebu gpio driver can also perform PWM on some pins. Us 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: Andrew Lunn URL: https://patchwork.ozlabs.org/patch/427291/ Signed-off-by: Ralph Sennhauser --- arch/arm/boot/dts/armada-xp-linksys-mamba.dts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts index 3744ba3..836b275e 100644 --- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts +++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts @@ -293,13 +293,11 @@ }; }; - 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 0>; }; dsa { -- 2.10.2