From patchwork Fri Mar 24 14:18:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9642921 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7DA74601E9 for ; Fri, 24 Mar 2017 14:19:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 703B526E8A for ; Fri, 24 Mar 2017 14:19:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64E9527165; Fri, 24 Mar 2017 14:19:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D4B1B26E8A for ; Fri, 24 Mar 2017 14:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Cl1Om6ZmDR1NKu09GmIEHFUy/sJ6SPIl5BVyX1Nra54=; b=YHeep0r/oQxPN2R2SNDxv5r/kT Joih+ZPfW0iE2jUyENvrrI3Ijzpjvft93U7BXtHvsJzFO9scwVFUfPZ3KTWcizBdmixt30EMCyakS xlrfpueMvd3IZm62rxKQtpEpJmTPGBfxJPYBUdNivDKnw3HWWtorP6RXyRZXstUIqerEvPvQn0wAe Tzo0f5INEge7y4SGSn9NL6VqwRyp3mIMEqls8oJ0Qo8AR29NA1wa0R2XpYsTBpsnORC0Myly0r+6+ krPXXavwhMRfVt+i6AA9dKRt84/cR/zOJChyp4fzIU/jyPnC3yeNTdKsfIxqhlqOwVBGbVtpYVMhK +H8Zh8wg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1crQ3s-0007zR-GN; Fri, 24 Mar 2017 14:19:28 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crQ3G-0007GC-Qk for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2017 14:18:56 +0000 Received: by mail-wm0-x241.google.com with SMTP id u132so884787wmg.1 for ; Fri, 24 Mar 2017 07:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cciiPCXzdqlHOcdQnlAwy6me5wt9WtK0KVv6GPNd0sc=; b=ATUqAQEDJ41W/15vzFDgGi766gdSKJRtEhVg/q5H79NwmEwWjiHttrCXH00BjtriUC +edq0hsy8vLsqyGPi1Ucv/y8U6ws5FuECUW9AOs0ExuHvBbX3HYrjz2mm/KFyJfC3mTr dtytDh8FrSHBHav6239soOq/xRs/TCDtKkbsvseTwJ0Btp2/yXgJ1Mx8ToMJVkmwtJRe YuEFZ4RsLrrbmZH2jSb6K4jn8Hb16K/FXICMPXeRosd+mgd7/qJWPwPr3gBu2PE4cQ2L goe1o6E+cvTClz57OT1+Ibcn//Gu5wRjgi1m4w1ZPHDFVBWAjD/O20xLLphMrbf8wSGN ijEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cciiPCXzdqlHOcdQnlAwy6me5wt9WtK0KVv6GPNd0sc=; b=Ji6FJHSKwl7fctWansDdjPbbsaHOX49uhxhIhHIwEKafwomrDoijt90UOp17sJ/Wz8 pklioyDhFyDuqJ2rukNKyXW0PaQJtfrjVjMMYKSVsSyBwNoi6U7N4hDS6KKdRfyrbHGS GvW4GsGRcsYib3aRpyA0NSiX1K2fs+dKywnSVOBnrmI4WMh2AjyckN5UX9zw9Iru1b28 ba0Sc9xTlLFu+RT9qshfmr/MFvMUInhjMMDuNCtoj1S5OcDO1SX1es+TLulI4egBjSzp FSXQWEs0iHfEgMhAqbpfJa4wK5HI27jAhw1z2dTnGPvG8nw6rhoyBlkrquoDzMPULDdw 7fsQ== X-Gm-Message-State: AFeK/H2kz33+jC5jUnlsD3l7xoneMVXMgPVhfNq4ShpCXPLDOHTuugKOoK7yDxQSULKfVA== X-Received: by 10.28.158.87 with SMTP id h84mr3311161wme.4.1490365113041; Fri, 24 Mar 2017 07:18:33 -0700 (PDT) Received: from localhost.lan ([37.209.189.139]) by smtp.googlemail.com with ESMTPSA id b13sm2638780wmf.6.2017.03.24.07.18.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 07:18:32 -0700 (PDT) From: Ralph Sennhauser To: linux-gpio@vger.kernel.org Subject: [PATCH v3 4/4] mvebu: wrt1900ac: Use pwm-fan rather than gpio-fan Date: Fri, 24 Mar 2017 15:18:14 +0100 Message-Id: <20170324141815.7252-5-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170324141815.7252-1-ralph.sennhauser@gmail.com> References: <20170324141815.7252-1-ralph.sennhauser@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170324_071851_286968_4677A68D X-CRM114-Status: GOOD ( 11.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Andrew Lunn , Jason Cooper , Alexandre Courbot , Linus Walleij , Russell King , Rob Herring , linux-kernel@vger.kernel.org, Gregory Clement , devicetree@vger.kernel.org, Thierry Reding , linux-pwm@vger.kernel.org, Ralph Sennhauser , Imre Kaloz , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andrew Lunn 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: 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 {