From patchwork Thu Nov 21 23:10:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 3220831 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 77C7BC045B for ; Thu, 21 Nov 2013 23:11:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A693A2051F for ; Thu, 21 Nov 2013 23:11:45 +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 C19BD204EC for ; Thu, 21 Nov 2013 23:11:44 +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 1VjdP4-00016c-Om; Thu, 21 Nov 2013 23:11:19 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VjdOw-0000yo-Ox; Thu, 21 Nov 2013 23:11:10 +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 1VjdOr-0000xR-U3 for linux-arm-kernel@lists.infradead.org; Thu, 21 Nov 2013 23:11:06 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id AFEA32C0D64; Fri, 22 Nov 2013 00:10:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1385075440; bh=8eN7Bz2e+UIfrYRfk+XtgHU3qyf7H5NxVG8OxkK2jxk=; h=From:To:Cc:Subject:Date; b=JqCrJFzRp2vvZAmscmzHe+1B6hLhiTzL+bDr3HNCTr9kESae/TVd+vPXcNbqo5fQs /oQg980P7d8OYhvxXc/5O6XyQSOcEpKGG89AjLZBfgUfXKib0sw3wK7iuVG96VmsIe 6PZ4IhIvxlfKbS6psJk07pB+FQoUD9HOUOmWfbR0= X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.6 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 5B5F02C08AD; Fri, 22 Nov 2013 00:10:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1385075426; bh=8eN7Bz2e+UIfrYRfk+XtgHU3qyf7H5NxVG8OxkK2jxk=; h=From:To:Cc:Subject:Date; b=0ogOz5a3F6TPkRTA1FadxA7H0TwFQFxUYl4mLNnOAqwuQw0zpvhzBJWmm9kJuz9In 6Etr16NfwsPzgMZX2hyIf3VWOyRMyOf8zQtTlw5k3p0tQ4CFEAU9J5Jreg7807aPw1 beJrb8e5/KpecO5uR5ebr6J/2PfGyfAHBowwV/KU= X-Hashcash: 1:20:131121:jason@lakedaemon.net::OtyMTuKCdZnr+cLw:000000000000000000000000000000000000000002K+u X-Hashcash: 1:20:131121:andrew@lunn.ch::jnk72RAVAYXXsbdF:0007BGN X-Hashcash: 1:20:131121:gregory.clement@free-electrons.com::kNaJpu1GUtFtUv6w:0000000000000000000000000001O/m X-Hashcash: 1:20:131121:sebastian.hesselbarth@gmail.com::+ZGZV61fDp/PFu1X:0000000000000000000000000000007BfN X-Hashcash: 1:20:131121:linux@arm.linux.org.uk::eccL55BrxPR2LCI5:0000000000000000000000000000000000000000pil X-Hashcash: 1:20:131121:linux-arm-kernel@lists.infradead.org::VzRTbHGhxSTr8vYB:00000000000000000000000005u3M X-Hashcash: 1:20:131121:rob.herring@calxeda.com::MpcIvXHYwuqnUbah:000000000000000000000000000000000000005utq X-Hashcash: 1:20:131121:pawel.moll@arm.com::tR4+ev0OhjhdWncN:00000000000000000000000000000000000000000007aM8 X-Hashcash: 1:20:131121:mark.rutland@arm.com::i5CDq/rMo8PJAU/k:000000000000000000000000000000000000000002WIK X-Hashcash: 1:20:131121:swarren@wwwdotorg.org::QXkIeNLYS7Zexs4J:00000000000000000000000000000000000000002qPe X-Hashcash: 1:20:131121:ijc+devicetree@hellion.org.uk::UhLpu2Kb9IQE0HuK:00000000000000000000000000000000487l X-Hashcash: 1:20:131121:devicetree@vger.kernel.org::TeKvGZFWQriXAlpk:000000000000000000000000000000000000Dpm From: arno@natisbad.org (Arnaud Ebalard) To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Subject: [PATCH] ARM: mvebu: Add DT entry for ReadyNAS Duo v2 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: Fri, 22 Nov 2013 00:10:25 +0100 Message-ID: <87iovl4ahq.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-20131121_181106_267400_BF8B4DD4 X-CRM114-Status: GOOD ( 11.27 ) X-Spam-Score: -1.0 (-) Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Stephen Warren , Ian Campbell , Rob Herring , linux-arm-kernel@lists.infradead.org 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, I have prepared some cleanup patches for existing ReadyNAS .dts files which I intend to send for review in the next fex days. The GPIO voltage level is still a value below but the cleanup patch for this .dts will handle that globally. arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts index e6a102c..4e3cae1 100644 --- a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts +++ b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts @@ -60,6 +60,10 @@ marvell,pins = "mpp29"; marvell,function = "gpio"; }; + pmx_poweroff: pmx-poweroff { + marvell,pins = "mpp30"; + marvell,function = "gpio"; + }; }; clocks { @@ -158,6 +162,13 @@ }; }; + gpio-poweroff { + compatible = "gpio-poweroff"; + pinctrl-0 = <&pmx_poweroff>; + pinctrl-names = "default"; + gpios = <&gpio0 30 1>; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>;