From patchwork Mon Mar 27 19:43:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Sennhauser X-Patchwork-Id: 9647433 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 066A1601D7 for ; Mon, 27 Mar 2017 20:05:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E110728437 for ; Mon, 27 Mar 2017 20:05:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D18392843D; Mon, 27 Mar 2017 20:05:26 +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 6F51128437 for ; Mon, 27 Mar 2017 20:05:26 +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=AlXceewkdQFNuVE6rC99WTxM51PkajtitTuZNGutX3k=; b=nzF8gtHkqQ5C+taHVxdau1JE8R yiazaBT8XEL3SHhXorSQyVhuZ6xsPPqiNtIzevr0k2QrPY+aMdQ2//icO6GH5PhRDGqBn4ppJxvqg Z4ECuZxfaeRzmVMWJLIUM4l9U1Zb62JUrXiQ46JP6zIGJODt5rXF8vAMxFOzWjfz/wTVRk5i3lYQ8 iUNze00JiVnmQKj8lTodlgGAtRwL7I/SDcrNHkzYQjSp97laNTeSJ65FLrlKaMyDv2XDC77Z96UCi oCfx/DGNTCF7WlIMhe1x5M2YX6yN2BuqPLaYRzJom4iFScvt8cNWvjABj1cJO7AuMbhvT7prumKh2 BnyP5xMQ==; 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 1csatF-00035I-Ca; Mon, 27 Mar 2017 20:05:21 +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 1csaYI-0000xm-Tw for linux-arm-kernel@lists.infradead.org; Mon, 27 Mar 2017 19:43:47 +0000 Received: by mail-wr0-x242.google.com with SMTP id u1so16372529wra.3 for ; Mon, 27 Mar 2017 12:43:19 -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=Dt46SNOQyCXlDRnTf9MhLMB9c3JB6WLC80tJfevAch0=; b=i3XEpnbyjrBr96BUk7upX9oRbtsS87P3Lppk7M7E4b5QzKsHkkGM2oRcFIKmxUsfZ0 BgpqKOan1d7jAJ7g8d02+48MeY5he1WIj/K4X/EFtmVuCEwUOysiGS0CGv2UvrLZUS4/ 1PSn+1d3IpNuCW9Arh9sl4HwXaGEUBudPQd7Ms+OWBcFkxlQpphKvX47loIKFg1EBsrF 1ITpOqGTsH82mreuw57z0Bl31l5lVwGP3sLO4qg198NSICsUkZ1GFMO+A7DS7feAAwTM dL2MBZHMQ6pzbxohx5yjNnU8ot3uQE7LjhLyBu+UoqNN2P6TPlZ4y1Jn55iyhgvaTS4+ liVA== 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=Dt46SNOQyCXlDRnTf9MhLMB9c3JB6WLC80tJfevAch0=; b=HAKZyRF8pBD/eSDg/3ag14FR7qeVh7SR+yq++fs5Z3e3cL/qeg/R1Ycrnl5wz75EfI YZi46VTmnfGSj2mbyk5zJjJ/YzUL6L0yKR4V4yn/ptdZKUPRYXqUOkdBTnb8jNTtqWV+ 1NyXzak1m7of3dZj1WufTpgacc4oU/cPOIApz4DHore5vyOKar+x7MtAgBYLZPfqTIlT J8kxkEg/pJnw1chPqJM3m2onQp+ZyWA4HjG4CSshpJWhpWF8M1IinMNv9e7Je8et/+YV m5Ufzr7EEi53Cte6uuabcXW/NrMs5wMDGQI/ydUDtDHX8WEwF8piPe40BSeA6iw1inM0 zhbA== X-Gm-Message-State: AFeK/H28W50AqCTM2227FaPvPr0VsDWhEUIV6mNoH9cx3XtJafwkSSQPK/LoYk+LrJWhOA== X-Received: by 10.28.173.193 with SMTP id w184mr11405480wme.106.1490643798649; Mon, 27 Mar 2017 12:43:18 -0700 (PDT) Received: from localhost.lan ([37.209.189.139]) by smtp.googlemail.com with ESMTPSA id k203sm701657wmk.4.2017.03.27.12.43.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Mar 2017 12:43:17 -0700 (PDT) From: Ralph Sennhauser To: Linus Walleij , Thierry Reding Subject: [PATCH v4 4/4] mvebu: wrt1900ac: Use pwm-fan rather than gpio-fan Date: Mon, 27 Mar 2017 21:43:00 +0200 Message-Id: <20170327194301.1104-5-ralph.sennhauser@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170327194301.1104-1-ralph.sennhauser@gmail.com> References: <20170327194301.1104-1-ralph.sennhauser@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170327_124343_526502_4766EA3B X-CRM114-Status: GOOD ( 11.56 ) 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 , linux-gpio@vger.kernel.org, Russell King , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory Clement , devicetree@vger.kernel.org, Rob Herring , 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/ [Ralph Sennhauser: drop flags paramter from pwms, no longer used] 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 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 {