Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751567AbdCRPxH (ORCPT ); Sat, 18 Mar 2017 11:53:07 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35985 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164AbdCRPxC (ORCPT ); Sat, 18 Mar 2017 11:53:02 -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 v2 4/4] mvebu: wrt1900ac: Use pwm-fan rather than gpio-fan Date: Sat, 18 Mar 2017 16:43:04 +0100 Message-Id: <20170318154305.28348-5-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170318154305.28348-1-ralph.sennhauser@gmail.com> References: <20170318154305.28348-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