From patchwork Sun Dec 14 01:42:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 5487071 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 2682BBEEA8 for ; Sun, 14 Dec 2014 01:45:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 43B7420A07 for ; Sun, 14 Dec 2014 01:45:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7244120A06 for ; Sun, 14 Dec 2014 01:45:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XzyDC-0007Fj-Jr; Sun, 14 Dec 2014 01:43:06 +0000 Received: from 36.223.133.77.rev.sfr.net ([77.133.223.36] helo=smtp.natisbad.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XzyD6-00076e-Tv for linux-arm-kernel@lists.infradead.org; Sun, 14 Dec 2014 01:43:01 +0000 Received: by smtp.natisbad.org (Postfix, from userid 109) id 297131700D55; Sun, 14 Dec 2014 02:42:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1418521337; bh=3F5VItRonwooHfHGoqC5a+z98IH5jAAorR9KEubB2YA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=IQtx9p2LUNu4Q8rzGgMR6qL0dlwyu6e50SPvyW/D/fTmhrd3WX6WHj0uU5YDl8t7u E2sGf3P0im6XSzOG9ePDOoCQ6S777TIlVB4Fhruit3iW2Cwfcjf6TuJCaSxieCiAxX 37+QSaooH+7VcvRYiyGDFxSXqJHYQ5DbHaobUbI8= X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from small (localhost [IPv6:::1]) by smtp.natisbad.org (Postfix) with ESMTP id 785291700425; Sun, 14 Dec 2014 02:39:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1418521148; bh=3F5VItRonwooHfHGoqC5a+z98IH5jAAorR9KEubB2YA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=DOjKIofJ3uTGt3EjU/5QTfySNLyqfWzwQpzdZ2b4N89/eistkU5boJOGnbCCg4qoX /U2JvaX/GGaVfxaoe/uXHhXmAzEFNweb2VFtEi8zUErzGMr7ikSiWzKr8C1jYoRXYO BqCQ8omMJjmEj8i/qyeYkZrc+FtArx7CL5O2htdQ= X-Hashcash: 1:20:141214:akpm@linux-foundation.org::Y/v1aPjjBrmXeOD3:0000000000000000000000000000000000006XsG X-Hashcash: 1:20:141214:uwe@kleine-koenig.org::wMpkkFva5YJ9dZrj:00000000000000000000000000000000000000000hFN X-Hashcash: 1:20:141214:mark.rutland@arm.com::Ttd/w7qJzFQ67s1j:000000000000000000000000000000000000000009Vhh X-Hashcash: 1:20:141214:a.zummo@towertech.it::1VtPrkr8hp8M6Ilt:000000000000000000000000000000000000000000flL X-Hashcash: 1:20:141214:peter.huewe@infineon.com::8+5hahUfJrZC1i0i:0000000000000000000000000000000000000HEIO X-Hashcash: 1:20:141214:linus.walleij@linaro.org::TFdzm1X0eezqyNI2:00000000000000000000000000000000000001o0o X-Hashcash: 1:20:141214:treding@nvidia.com::5ZI2P4DHssYJ2EAM:00000000000000000000000000000000000000000006u5k X-Hashcash: 1:20:141214:broonie@kernel.org::dRI7vTkfC8jXeza9:00000000000000000000000000000000000000000002eaz X-Hashcash: 1:20:141214:arnd@arndb.de::vDN7EcohEpE6euYv:00008KVW X-Hashcash: 1:20:141214:darshanapadmadas@gmail.com::ZvFgh7eJ7Mdtt8DS:000000000000000000000000000000000004vbY X-Hashcash: 1:20:141214:rob.herring@calxeda.com::xtOTStNkMNo9sdeG:000000000000000000000000000000000000000iTO X-Hashcash: 1:20:141214:pawel.moll@arm.com::XAnmh6RtuBGT7BSl:00000000000000000000000000000000000000000007M6F X-Hashcash: 1:20:141214:swarren@wwwdotorg.org::gDbbisNnBF1eO0Hs:00000000000000000000000000000000000000000fhc X-Hashcash: 1:20:141214:ijc+devicetree@hellion.org.uk::foUqObXHpcAkwXWj:000000000000000000000000000000001FZI X-Hashcash: 1:20:141214:grant.likely@linaro.org::D6kTBP9nY6hmGm7g:00000000000000000000000000000000000000DDxq X-Hashcash: 1:20:141214:devicetree@vger.kernel.org::LwnWwgzd+9jxsls0:000000000000000000000000000000000001TwH X-Hashcash: 1:20:141214:linux-doc@vger.kernel.org::CmV93/i8fj7dyVu6:00000000000000000000000000000000000037pk X-Hashcash: 1:20:141214:rob@landley.net::Q9kflaaK/2O8cQU2:00148a X-Hashcash: 1:20:141214:rtc-linux@googlegroups.com::gYmm0OG0nqjZfZda:00000000000000000000000000000000000FtTk X-Hashcash: 1:20:141214:jason@lakedaemon.net::uwlXkp4E5F0YU59a:000000000000000000000000000000000000000005uFk X-Hashcash: 1:20:141214:linux@roeck-us.net::JjOoOAr68LnCUNQJ:00000000000000000000000000000000000000000002HJ9 X-Hashcash: 1:20:141214:jgunthorpe@obsidianresearch.com::A/BpzHSKFU+jE/Jr:00000000000000000000000000000004kd X-Hashcash: 1:20:141214:galak@codeaurora.org::bV3OEl1pMzn8W2iX:000000000000000000000000000000000000000003bUq X-Hashcash: 1:20:141214:linux-arm-kernel@lists.infradead.org::pCSG5z+tpBJaQkoI:00000000000000000000000009LS8 From: Arnaud Ebalard To: Andrew Morton , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Subject: [PATCHv0 3/5] ARM: mvebu: ISL12057 rtc chip can be used to wake up RN104 In-Reply-To: References: Message-Id: <6dc1eda8fd516d76b9c2986e5fa8a21378c71d54.1418519430.git.arno@natisbad.org> Date: Sun, 14 Dec 2014 02:42:47 +0100 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-20141213_174301_359147_C18C2DB8 X-CRM114-Status: GOOD ( 12.14 ) X-Spam-Score: 0.3 (/) Cc: Mark Rutland , linux-doc@vger.kernel.org, Linus Walleij , Arnd Bergmann , Ian Campbell , Jason Gunthorpe , rtc-linux@googlegroups.com, Thierry Reding , Guenter Roeck , devicetree@vger.kernel.org, Jason Cooper , Pawel Moll , Stephen Warren , Rob Herring , Grant Likely , Mark Brown , Peter Huewe , Darshana Padmadas , linux-arm-kernel@lists.infradead.org, Alessandro Zummo , Rob Landley , Kumar Gala X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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 Now that alarm support for ISL12057 chip is available, let's use a feature of the driver dedicated to NETGEAR ReadyNAS 104 specific routing of RTC IRQ#2 pin; on the device, this pin is not connected to the SoC but to a PMIC, which allows the device to be powered up when RTC alarm rings. For that to work, the chip needs to be explicitly marked as a device wakeup source using the "can-wakeup-machine" boolean property. This makes 'wakealarm' sysfs entry available to configure the alarm. Signed-off-by: Arnaud Ebalard --- arch/arm/boot/dts/armada-370-netgear-rn104.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/armada-370-netgear-rn104.dts b/arch/arm/boot/dts/armada-370-netgear-rn104.dts index 30586e47986a..997a691c9f6c 100644 --- a/arch/arm/boot/dts/armada-370-netgear-rn104.dts +++ b/arch/arm/boot/dts/armada-370-netgear-rn104.dts @@ -93,6 +93,7 @@ isl12057: isl12057@68 { compatible = "isil,isl12057"; reg = <0x68>; + can-wakeup-machine; }; g762: g762@3e {