From patchwork Sun Sep 29 21:41:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 2962131 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 832AEBFF0B for ; Sun, 29 Sep 2013 21:42:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 57BC22024F for ; Sun, 29 Sep 2013 21:42:36 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 30EF72024A for ; Sun, 29 Sep 2013 21:42:35 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VQOks-0002lQ-9I; Sun, 29 Sep 2013 21:42:18 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VQOkp-0003nu-TU; Sun, 29 Sep 2013 21:42:15 +0000 Received: from mic92-1-81-57-185-249.fbx.proxad.net ([81.57.185.249] helo=smtp.natisbad.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VQOkn-0003nL-1N for linux-arm-kernel@lists.infradead.org; Sun, 29 Sep 2013 21:42:13 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id 75C222C0749; Sun, 29 Sep 2013 23:41:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1380490909; bh=XF7R9UaAAe1i8FtSKRkezMHKt+v5Xmk9aKBrrjTocHw=; h=From:To:Cc:Subject:Date; b=P8RWDfz09JcNLCH8E5yocCXjqLjqs67hopgya92nWFDLX0EqMUg0Bhohojw6M/GRP EXSOw8agIyGFJlAZHbjBw9iyV0EKkl0XLJF+mDeQsR1zynoN/E8yVQF2yu84S6VKrr d7WWZcvn3tofNxRbZ8xoz2Hr86QnUpP2nSLueXCI= X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from small (localhost [127.0.0.1]) by smtp.natisbad.org (Postfix) with ESMTP id A2CB02C0167; Sun, 29 Sep 2013 23:41:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1380490904; bh=XF7R9UaAAe1i8FtSKRkezMHKt+v5Xmk9aKBrrjTocHw=; h=From:To:Cc:Subject:Date; b=n38miMGHF0yB6/dowbfIGz11r3a4Ck5fGeHdlYUIvpPZAZSC4mWrlw5h1olid9qLo lHbSiav/ooNnbaOiQzxKBcJZ15TrpFvDpQym8H92PeisRtpqYM7j5e5vkeCHA2mvfY gbx2fHHfD1mydd4sfeNWmYGq2vH1LkqXeClWj2rs= X-Hashcash: 1:20:130929:jason@lakedaemon.net::lXq2ZLILj7MEuGiP:0000000000000000000000000000000000000000036pa X-Hashcash: 1:20:130929:andrew@lunn.ch::R6arJ5nOEN1Orv37:0002alh X-Hashcash: 1:20:130929:linux-arm-kernel@lists.infradead.org::AuERYUDivW+qRmoB:00000000000000000000000002PwX X-Hashcash: 1:20:130929:linux@arm.linux.org.uk::IXE6I//3xk5cTxYi:0000000000000000000000000000000000000001bLT From: arno@natisbad.org (Arnaud Ebalard) To: Jason Cooper , Andrew Lunn Subject: [PATCH] ARM: mvebu: Add DT entry for ReadyNAS 102 to use gpio-poweroff driver X-PGP-Key-URL: http://natisbad.org/arno@natisbad.org.asc X-Fingerprint: D3A5 B68A 839B 38A5 815A 781B B77C 0748 A7AE 341B Date: Sun, 29 Sep 2013 23:41:43 +0200 Message-ID: <8738onqp9k.fsf@natisbad.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130929_174213_278425_3D436FDB X-CRM114-Status: GOOD ( 14.47 ) X-Spam-Score: -1.0 (-) Cc: Russell King - ARM Linux , Linux ARM Kernel Mailing List X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Without that fix, at the end of the shutdown process, the board is still powered (led glowing, fan running, ...). Signed-off-by: Arnaud Ebalard --- HI Jason and Andrew, This is not per se a fix for a real problem, as the NAS runs as expected w/o it, it only solves a minor limitation of the shutdown process so I guess it can be queued for 3.13 if it is too late. Additionally, I wonder if I should send another patch to either have ARCH_MVEBU select POWER_SUPPLY, POWER_RESET and POWER_RESET_GPIO, or have mvebu_defconfig modified to enable those, or keep things as they are until there are more users on mvebu. arch/arm/boot/dts/armada-370-netgear-rn102.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/armada-370-netgear-rn102.dts b/arch/arm/boot/dts/armada-370-netgear-rn102.dts index 05e4485..5f7e7ec 100644 --- a/arch/arm/boot/dts/armada-370-netgear-rn102.dts +++ b/arch/arm/boot/dts/armada-370-netgear-rn102.dts @@ -57,6 +57,11 @@ marvell,pins = "mpp56"; marvell,function = "gpio"; }; + + poweroff: poweroff { + marvell,pins = "mpp8"; + marvell,function = "gpio"; + }; }; mdio { @@ -176,4 +181,11 @@ }; }; + gpio_poweroff { + compatible = "gpio-poweroff"; + pinctrl-0 = <&poweroff>; + pinctrl-names = "default"; + gpios = <&gpio0 8 1>; + }; + };