From patchwork Sun Dec 14 01:42:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 5487061 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 5155B9F30B for ; Sun, 14 Dec 2014 01:44:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F68020A07 for ; Sun, 14 Dec 2014 01:44:12 +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 AD85720A06 for ; Sun, 14 Dec 2014 01:44:11 +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 1XzyCO-0006yx-6i; Sun, 14 Dec 2014 01:42:16 +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 1XzyCJ-0006sH-S9 for linux-arm-kernel@lists.infradead.org; Sun, 14 Dec 2014 01:42:12 +0000 Received: by smtp.natisbad.org (Postfix, from userid 109) id 0BA791700D44; Sun, 14 Dec 2014 02:41:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1418521310; bh=c3O7WBjSDsT2rK0zKaXo5DgHdvbNHsGvUfYoFHX0IEs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=kwl+rgJG+gvcfGkMcY6l7zkkjKWFR/bQtCrBUoBT0WaE1aN+8NxqtWtQQAKyklC9D Lg2Q5x3LGEjD8T8bBRjdNvjzPebz24bntoJAYFv6RSej8dX7LfbjWPMXVX44kN4GD/ 3MIKAKFcBt8tRoBu6MteswrUbIOy0j3Wp8J4qSoc= 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 ACFAE17004FE; Sun, 14 Dec 2014 02:38:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1418521129; bh=c3O7WBjSDsT2rK0zKaXo5DgHdvbNHsGvUfYoFHX0IEs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=2ktHWx/w0x4D075ruLJxYqUiVviS1U/y1FFM/iNAmV2HcujK8tsmuiqTiWabTHkpn CFrC33GY2lWL5TeTzP/FvtiklMhau0R0HVpB1jzJflM2KspAzV1k0g4qyD5TWjB8UB 16k7R0rjPiCGWbI2pL2t8KBePKKqVAxOajfDE8HU= X-Hashcash: 1:20:141214:akpm@linux-foundation.org::H+xA0+jlCqR0K1vl:0000000000000000000000000000000000000NLl X-Hashcash: 1:20:141214:uwe@kleine-koenig.org::dDKFjiyktLI7hEUh:000000000000000000000000000000000000000015xV X-Hashcash: 1:20:141214:mark.rutland@arm.com::GzhoO5csSegW2VPu:000000000000000000000000000000000000000002Nyt X-Hashcash: 1:20:141214:a.zummo@towertech.it::Lv+k7cADfEYRgQNx:000000000000000000000000000000000000000004RAw X-Hashcash: 1:20:141214:peter.huewe@infineon.com::/O7RcXGI6XwZFEP/:000000000000000000000000000000000000052Mj X-Hashcash: 1:20:141214:linus.walleij@linaro.org::1DAHnJgDSAk0wSnA:00000000000000000000000000000000000000Wea X-Hashcash: 1:20:141214:treding@nvidia.com::es3/cSwhfF/U4mLE:00000000000000000000000000000000000000000003Jzd X-Hashcash: 1:20:141214:broonie@kernel.org::rDLg0UFKsnB96EDS:00000000000000000000000000000000000000000000JoT X-Hashcash: 1:20:141214:arnd@arndb.de::bg6to+mD1v4kdp7z:000062JC X-Hashcash: 1:20:141214:darshanapadmadas@gmail.com::tKXnctfD/CrNrLJj:000000000000000000000000000000000004pa/ X-Hashcash: 1:20:141214:rob.herring@calxeda.com::exW+0R5XrBxdoV8S:000000000000000000000000000000000000004sCw X-Hashcash: 1:20:141214:pawel.moll@arm.com::yjZ28/xC9A4duHRx:00000000000000000000000000000000000000000001n31 X-Hashcash: 1:20:141214:swarren@wwwdotorg.org::dgv7gTCSosy4U7ZU:00000000000000000000000000000000000000001rMu X-Hashcash: 1:20:141214:ijc+devicetree@hellion.org.uk::bUy8j7VG1/IORHRN:000000000000000000000000000000001a+J X-Hashcash: 1:20:141214:grant.likely@linaro.org::1XZe74qUc86yEgjT:000000000000000000000000000000000000000c0X X-Hashcash: 1:20:141214:devicetree@vger.kernel.org::OyWok9pULSqQPHTy:000000000000000000000000000000000000QAJ X-Hashcash: 1:20:141214:linux-doc@vger.kernel.org::b7yTy6173IyLsDPY:0000000000000000000000000000000000003Nso X-Hashcash: 1:20:141214:rob@landley.net::ewX1IxfqWEWHAQU6:000tw0 X-Hashcash: 1:20:141214:rtc-linux@googlegroups.com::P7pOkxg1irobBQDY:000000000000000000000000000000000003Rfk X-Hashcash: 1:20:141214:jason@lakedaemon.net::x/NiwWFYNmeM110p:000000000000000000000000000000000000000003638 X-Hashcash: 1:20:141214:linux@roeck-us.net::bznJiTRQeJNeT0It:000000000000000000000000000000000000000000086Qy X-Hashcash: 1:20:141214:jgunthorpe@obsidianresearch.com::+5X+FziYXmaYKtvy:0000000000000000000000000000002oI3 X-Hashcash: 1:20:141214:galak@codeaurora.org::ZpnfENJf3bPUn9Sv:000000000000000000000000000000000000000003Fmp X-Hashcash: 1:20:141214:linux-arm-kernel@lists.infradead.org::dS49tbv0JCQNAIQd:00000000000000000000000001G2Z From: Arnaud Ebalard To: Andrew Morton , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Subject: [PATCHv0 2/5] ARM: mvebu: ISL12057 rtc chip can be used to wake up RN102 In-Reply-To: References: Message-Id: Date: Sun, 14 Dec 2014 02:42:28 +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_174212_230710_E330547E X-CRM114-Status: GOOD ( 12.23 ) 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 102 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-rn102.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/armada-370-netgear-rn102.dts b/arch/arm/boot/dts/armada-370-netgear-rn102.dts index 4e24932c6e30..3b0f2b88ce9e 100644 --- a/arch/arm/boot/dts/armada-370-netgear-rn102.dts +++ b/arch/arm/boot/dts/armada-370-netgear-rn102.dts @@ -87,6 +87,7 @@ isl12057: isl12057@68 { compatible = "isil,isl12057"; reg = <0x68>; + can-wakeup-machine; }; g762: g762@3e {