From patchwork Fri Apr 14 15:40:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9681401 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 125C160132 for ; Fri, 14 Apr 2017 15:42:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 039B32074F for ; Fri, 14 Apr 2017 15:42:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC32324560; Fri, 14 Apr 2017 15:42:22 +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 86B7E2074F for ; Fri, 14 Apr 2017 15:42:22 +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=J94pa+bcjjbvdShRkDhZSdoUTXgowMD+zBs4OL8QlZM=; b=ls/ojhtdo0vzPGDM77Btn9dcNA Hh39QbA0+q8rtH7iGjBbCkQsG+5r4hSB673vAcuQiU7UL/snYdF/z02r8BWxctAwb/MLkR3aDOesd 4w64PrernMuc7Vr+EvZrk0iB3MYH4M+HO//KzmtQiA7X29PDx/p9++fTI8YBHlGkZjxA0/A5xzrar 2FFBNUuE3+dBBFMLcbTtca97FD96Mo1bT95DRCpYlpsskNgyGguaDNHQUuNRBe6+srnYweGlbvVPM A0q5zGXJPLq+Jqryg5KM0OuPLy/zmNsiullJs/nbb4OOYmcHSUIZj8rNom25U+VJ6x/kwFjJsYlSL kUSIi+Kg==; 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 1cz3Ma-0001Nv-7b; Fri, 14 Apr 2017 15:42:20 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cz3Ln-0000kh-M3 for linux-arm-kernel@lists.infradead.org; Fri, 14 Apr 2017 15:41:34 +0000 Received: by mail-wm0-x243.google.com with SMTP id x75so18337391wma.1 for ; Fri, 14 Apr 2017 08:41:15 -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=/ZyTP0sa5RYWTLUlOugkTUOGDC2Z+0teY9PwFP5aJDY=; b=jPZCnMoXvHQ69ihLN0E0umCz4sn9x1vIJ8EBMsc2d3XCtoSQ9sLgb3NXtiLqe0kHAC soX2sWvjGiNHGV99DensQM0AISpfXP8PcVmfK6IOQRQEw0wvo6YnA1j//ZnAjMywaHoH 3X/PKQclB9MQ94uE2BOLLoAeHmPls3kUKa/X/rbD5GdT2/QMKDRk31SK6N6krSq7NmW9 j5HPdbZqc6pK7k65CvT/tUyfWnwXwTeM8n1XP7CiENY4vgJT4tZk/cNk+QLdxeihhg7t ugaBeKCe2pGwq5gmUSssov589Qqni4jSzcZ2+xpmtv+VhLnvuRJ4wGY8SvxoD1arC0qx a5Vg== 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=/ZyTP0sa5RYWTLUlOugkTUOGDC2Z+0teY9PwFP5aJDY=; b=XUPrwol0mwAGHY8+MQYL1KeTsQze3BaCT2vwYsVkHHN0kUNLd3LSFNEtDSaehYnlVw Oxkp5uJZntbUthGHEh5DdlUnXD373rIhG/x5RmQAJj35lcIZjt43fSRKqqvQv92nJl4Z 1+zllCEaApcLbjq9solipNaTOtW0/V9zITrIZECfTrCk0Uhtg09vpKopZY0H8gMBu0rX Xg3IfKlPoiv3dsA8zGeanMrYf+nhIFNlhZfYCjuKI5sdUEjNeoE3YJhl4c5C4a0OCrGI riiB4gwIc/ACaCscp4ewoWnQla/7XIlvSFthkcVv00kWQFLv5yPj1dRw2geRnWgYbzJj obIQ== X-Gm-Message-State: AN3rC/5XwKVqW+xdzPWPEUk3F+rKiCIaDBU4cx4OYSeOzPa7cWTsuJW8 6oIvyYR8GlDxMQ== X-Received: by 10.28.13.71 with SMTP id 68mr7237054wmn.124.1492184474537; Fri, 14 Apr 2017 08:41:14 -0700 (PDT) Received: from localhost.lan ([37.209.189.139]) by smtp.googlemail.com with ESMTPSA id c16sm2769803wrb.56.2017.04.14.08.41.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Apr 2017 08:41:13 -0700 (PDT) From: Ralph Sennhauser To: linux-gpio@vger.kernel.org Subject: [PATCH v6 4/4] ARM: dts: armada-xp: Use pwm-fan rather than gpio-fan Date: Fri, 14 Apr 2017 17:40:55 +0200 Message-Id: <20170414154056.32055-5-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170414154056.32055-1-ralph.sennhauser@gmail.com> References: <20170414154056.32055-1-ralph.sennhauser@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170414_084131_937422_C95CE273 X-CRM114-Status: GOOD ( 11.78 ) 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 , 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/ [Ralph Sennhauser: drop flags paramter from pwms, no longer used] Signed-off-by: Ralph Sennhauser Tested-by: Andrew Lunn Acked-by: Linus Walleij --- 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 9efcf59..6d705f5 100644 --- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts +++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts @@ -308,13 +308,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>; }; dsa {