From patchwork Fri Nov 22 14:58:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 3222771 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7B7DF9F3A0 for ; Fri, 22 Nov 2013 15:01:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E2CC02054A for ; Fri, 22 Nov 2013 15:01:16 +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 E2593205BB for ; Fri, 22 Nov 2013 15:01:12 +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 1VjsCf-0001v2-6z; Fri, 22 Nov 2013 14:59:30 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VjsCA-0000Oo-4H; Fri, 22 Nov 2013 14:58:58 +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 1VjsC0-0000M5-Pc for linux-arm-kernel@lists.infradead.org; Fri, 22 Nov 2013 14:58:50 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id 0845D2C0D6D; Fri, 22 Nov 2013 15:58:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1385132301; bh=jYx6KqLFF29Eysy9aeUkH/KeGCfg3BWRy2Ofid0RoLU=; h=From:To:Cc:Subject:Date; b=Ru0fph5ygnK0wHwCgRpwFHwzsCbc6PVyxX0wQy3phA4DTe9aPwF/mF93yB+G7/CW9 67BwyHllu//1SV3DvpXv9Y84IdbyhN+T14AnomI80L1V0z8RlpBwA5mWoOOQoUsmvy JtRru0oepstw+9S5vk5kyEwDRvvUvnWrk5PJwq0Q= 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 A941C2C0910; Fri, 22 Nov 2013 15:58:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1385132285; bh=jYx6KqLFF29Eysy9aeUkH/KeGCfg3BWRy2Ofid0RoLU=; h=From:To:Cc:Subject:Date; b=tl94Q8AJeN0VlYbxch9TEWeAVotP9Qziwv82pT/6hnQybznjv96FB+O2iyDU5nfqx +O110vlksZ+Lr6vVZQ8qQe/rinE3TC5Q0lstUMz0mAI0a75h74Ln+nBxWP/fXNdpNJ n5FTm/vjG+7dSp+oXznnJluUnICdXAGD7vCF9sZw= X-Hashcash: 1:20:131122:jason@lakedaemon.net::ahl11CvQctGJ5kYc:000000000000000000000000000000000000000005Y1I X-Hashcash: 1:20:131122:andrew@lunn.ch::e8OA95xbcZfcWsbj:0001LFW X-Hashcash: 1:20:131122:gregory.clement@free-electrons.com::XJol1wzrFrNowTdN:0000000000000000000000000000lUR X-Hashcash: 1:20:131122:sebastian.hesselbarth@gmail.com::PGTDasA7+i2Y3VKR:0000000000000000000000000000001f4l X-Hashcash: 1:20:131122:linux@arm.linux.org.uk::UeygKVFVCGac6Jg5:00000000000000000000000000000000000000002Fb X-Hashcash: 1:20:131122:linux-arm-kernel@lists.infradead.org::+0u4qhTEbXyYBNDh:00000000000000000000000001WVo X-Hashcash: 1:20:131122:rob.herring@calxeda.com::ugICR7Av6P0tlFyB:000000000000000000000000000000000000000s10 X-Hashcash: 1:20:131122:pawel.moll@arm.com::m/uj0p+4NBYfQj8D:00000000000000000000000000000000000000000001fGx X-Hashcash: 1:20:131122:mark.rutland@arm.com::i7KxOWtttE30I29M:00000000000000000000000000000000000000000RHgH X-Hashcash: 1:20:131122:swarren@wwwdotorg.org::9seJUAUh3fQ2HXfI:00000000000000000000000000000000000000006A9B X-Hashcash: 1:20:131122:ijc+devicetree@hellion.org.uk::qS7eJ4EU5vfqVbAB:000000000000000000000000000000001Frh X-Hashcash: 1:20:131122:devicetree@vger.kernel.org::IcfggNmlVg2L2OuE:00000000000000000000000000000000000082X From: arno@natisbad.org (Arnaud Ebalard) To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Subject: [PATCHv2] 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 15:58:04 +0100 Message-ID: <87eh68fpqb.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-20131122_095849_282291_B5A35557 X-CRM114-Status: GOOD ( 10.66 ) 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 --- Changes since v1: - use macro instead of value for GPIO voltage level arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts | 12 ++++++++++++ 1 file changed, 12 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..551bfed 100644 --- a/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts +++ b/arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts @@ -1,5 +1,6 @@ /dts-v1/; +#include #include "kirkwood.dtsi" #include "kirkwood-6282.dtsi" @@ -60,6 +61,10 @@ marvell,pins = "mpp29"; marvell,function = "gpio"; }; + pmx_poweroff: pmx-poweroff { + marvell,pins = "mpp30"; + marvell,function = "gpio"; + }; }; clocks { @@ -158,6 +163,13 @@ }; }; + gpio-poweroff { + compatible = "gpio-poweroff"; + pinctrl-0 = <&pmx_poweroff>; + pinctrl-names = "default"; + gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>;