From patchwork Sun Apr 9 18:09:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9671713 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 87F8260365 for ; Sun, 9 Apr 2017 18:11:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F60B27F94 for ; Sun, 9 Apr 2017 18:11:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7326727FA6; Sun, 9 Apr 2017 18:11:15 +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 258E327F94 for ; Sun, 9 Apr 2017 18:11:15 +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=Q37rmi3s8IU/NdHAgjrrxcZZxg irlfjaJpQ4abwiDz4xYZP34xJeeCa0jL+2RYU42r3InODdQYeqfrRC+jDM1tNl1LDlPD96SbJAFcd G47qUVOJXB4WTu2Pn7EFIWei1h9p760BCzR4Ad3mpWGt1QosaSGtQF2KJKRuvwunvG/QBftbwz9Si noP1C1D+v3UiyiE1v8o13saaP/zleJHYwurBqNfcLmnhn4uTj2H2Qq4A9aR13kYTVnIY2I8Mv0vO/ XQvuzFLqCL1mCDcVBOmKyIkY7dfTI5MAOc1sEvEvW/nkeLsoyiQU6mPrYMPi+xRVdTIp+szPAJS1t Qa+YeXtA==; 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 1cxHIv-0003ps-74; Sun, 09 Apr 2017 18:11:13 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cxHHt-0001HE-PG for linux-arm-kernel@lists.infradead.org; Sun, 09 Apr 2017 18:10:14 +0000 Received: by mail-wr0-x242.google.com with SMTP id l28so1591716wre.0 for ; Sun, 09 Apr 2017 11:09:51 -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=QM+NZYXmLUZeUw2kjmsevMmqfjFNSocscLLivdI5qBMwFHRIywB7MshpjjG4rgTlFh nl9kaMtftNc97NfMVOPyn6HNeml8/u0+JuMgT4jdJyjVqO7h8pPJ3ameYe6Eo9v7qMui DrAECXpFP+aPvnAN05FHKkjkgVQHlW++EQ9R1FkHkSEAmLSrog79w6MwqKRzK/E358dD sH6MNX+XGlD5jnj04yg9+2uRgblwx3yZKfo8OO18/5VfgIkPt4fYY8e8wD4/we2SgwIp DxNeID2yz8lLqkgBykkq/B3YtSg9X1LIr4SmvrBJRJX8vvRxN7ZKhP0K7DC3xOXDM2jZ YVyw== 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=HYgjd8N14evqJMIh//nARQ1NuVZF+KYdiLdKYrDlHkSbNIYfnl5ojFKOGrsOhgiWoo G0DkyxaI0z2/TpbUspk9odtiraunJN+ONZqPe+Of19IUgUBLpoCK/TZ9BSkjyTGe4I0k JA4rRG/GQXCB0VwRLOzjtMN9lIHkt4+tkxkC7ugq9zK0z2wosAt/zBXqg6hiqqI9I/NP x+c3HjG5y3blSkDpPHeOOCkcT7vRzEncRaLxJNu6RNpWI7xCb2EBjJJcOi+5mvqjJwfQ YdA3DUCKnvpWAPCFmsByp7TQbhiBPF3SdOcL6BuNvmNnTQHpJFw9z8YiqK1oFiDJh4go PZCQ== X-Gm-Message-State: AFeK/H2zBwafjHM+1n9o2ai1ySbtCiZ0Fh24N4MKVzJuH7rvVq0H5ccHXi5mK6a529BPRA== X-Received: by 10.223.128.99 with SMTP id 90mr45018336wrk.101.1491761390529; Sun, 09 Apr 2017 11:09:50 -0700 (PDT) Received: from localhost.lan ([37.209.189.139]) by smtp.googlemail.com with ESMTPSA id b66sm14366139wrd.29.2017.04.09.11.09.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 09 Apr 2017 11:09:49 -0700 (PDT) From: Ralph Sennhauser To: Thierry Reding Subject: [PATCH v5 4/4] ARM: dts: armada-xp: Use pwm-fan rather than gpio-fan Date: Sun, 9 Apr 2017 20:09:30 +0200 Message-Id: <20170409180931.4884-5-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170409180931.4884-1-ralph.sennhauser@gmail.com> References: <20170409180931.4884-1-ralph.sennhauser@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170409_111010_233850_3BB4C616 X-CRM114-Status: GOOD ( 12.09 ) 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 , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory Clement , devicetree@vger.kernel.org, Rob Herring , linux-gpio@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 --- 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 {