From patchwork Thu Mar 16 06:42:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9627351 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 96ADA6048C for ; Thu, 16 Mar 2017 06:43:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86F5D27F10 for ; Thu, 16 Mar 2017 06:43:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B94C28637; Thu, 16 Mar 2017 06:43:59 +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 1EFA527F10 for ; Thu, 16 Mar 2017 06:43:59 +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=NgRmmqjpnHX5sN9I+xoVpa7FVmpF+PVBfVSFEs8+MtI=; b=IWRc2Us4N9ZPGVcLqWZ2L+H/Vr 572/QQuDKuiY9fxSZpOl/f8T833irPKCYvzlLSN3ruBFrC3Y1OHbi7vo4/57hlNeGQ344NhO/DFat S3nLHnYXp8mhk/Tf0K65oKBxscVELon5VSiSEEV/N7BhXWoeqnulVO3cnWIFd4xRWMw3U4gHGcTR5 OCr9bcviRFJPUO6Bm4QsF7TkGHjwcnU83y/9tTpYsRu1I+JtfZN3D31AibOKcMI7zj8lpzAOvdIgM 33q76c8uVM5NbmFUjFOCN5yFspVXVP2HQ0I91kW7EvY4HjH3Oj0Vef/PERtsJdhvixBoKZDfTWgSQ MssKhywA==; 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 1coP8g-0004bz-RF; Thu, 16 Mar 2017 06:43:58 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coP8C-00042r-Eb for linux-arm-kernel@lists.infradead.org; Thu, 16 Mar 2017 06:43:31 +0000 Received: by mail-wm0-x242.google.com with SMTP id u132so7980854wmg.1 for ; Wed, 15 Mar 2017 23:43:08 -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=UiEeP/ohTjfZJScaanot+5NLgabBuzoL/KMnn5QK4D0=; b=EA2N/xuTkU64kcETFZXp7vMwRp9JH3qGwKxK7k+m7Nui3bEhzjmifPMAMcOsEC2OrD q9wdV+YirDk0sf5dONK3CPtB55QCpdHeydpNfCp6lPh+/tcXqkiZ1xZ7qabxhjMEEGBB T9n3JGd7ghoGi+v3oRivpLxALJwLiadAcwpihW1avV17Sekbsro0y0QjI3pZ42OJFybT DRIWLyhmi2QZ5ovD+HaNxtJWZ56opOc8rJm27QSql0gaa6afIqxJJHDwmQBqRt+byd4K DwV/hyXe13hfvRVGREzAjAA+BBKuVxhfUWiymLsgR6CUBpfsWItEOS/xAAXOgGmWTbFt S2+A== 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=UiEeP/ohTjfZJScaanot+5NLgabBuzoL/KMnn5QK4D0=; b=MrvlkdGM+GN1QGknA2QWKA9K7t6sSDWSR+1sHGZsJ3DVb0MfdRHnmrXWxsMUUUYbt/ rlVH5O2bVM6BzMpUDnlNcpsRXr22w41ATGO2HXkL8BLipJooLPiKQbxkmIuhIBu6cqsq 3GxaAvmvPXN9j5K4Ug5aIaMWo/bJdsQEyHkqwl7CrRF/rRsmLzbwABWQ4vjwbCsRhRB5 do+wlvr4kAOtHg3eYkOmCzmZKCRB42t1G+6elPlxNvi6OSOWDf729449Hw5uvzCaPZet R158uPLdgTkiAchpQUuTtah3v0BF9FaExxZrLVx7bFzpkixHM8DsEdfmOBEHc7mSY56Z c81A== X-Gm-Message-State: AFeK/H1Gh+xI4nOuz/3MhXWbHshRABVT5zoAzi68azO5qWhC4GLqoCEvmdFrsHGFEom3hg== X-Received: by 10.28.60.66 with SMTP id j63mr7669189wma.74.1489646586790; Wed, 15 Mar 2017 23:43:06 -0700 (PDT) Received: from localhost.lan ([37.209.189.139]) by smtp.googlemail.com with ESMTPSA id o63sm3039825wmo.30.2017.03.15.23.43.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Mar 2017 23:43:05 -0700 (PDT) From: Ralph Sennhauser To: linux-gpio@vger.kernel.org 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170315_234328_641825_46FE30C5 X-CRM114-Status: GOOD ( 11.67 ) 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 , "open list:PWM SUBSYSTEM" , open list , Gregory Clement , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Rob Herring , Thierry Reding , Ralph Sennhauser , Imre Kaloz , "moderated list:ARM/Marvell Kirkwood and Armada 370, 375, 38x, ..." , 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. 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 {