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: 420811 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-lb0-x23e.google.com (mail-lb0-x23e.google.com [IPv6:2a00:1450:4010:c04::23e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 672461400D5 for ; Sun, 14 Dec 2014 12:41:42 +1100 (AEDT) Received: by mail-lb0-f190.google.com with SMTP id 10sf795030lbg.17 for ; Sat, 13 Dec 2014 17:41:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=from:to:cc:subject:in-reply-to:references:message-id:date :user-agent:mime-version:content-type:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=H7NHqyeOf4zBj6Zh2Rc6Jc8dqwlxrhdj+zwzr00YUXg=; b=e7hNjt6GDUfXp3u7FTv0T08mIwpzdrOrUbuy0IG5MkXFaD2CpCWKblmM2d7ILs9nMR AtWP3yZPValLWPWRNvtdkzNredQwECXdVSatTgDlgsF1naKpUz3IJ25FjuJ/GxKlDhy7 PVk+9B/RR3yQF1wOuBajr02+3rNkjXwybBtts9DOdmDRvKTvWUxxdwpRZocbhK3ywis5 G+nNa/Q+7rEg5qD8Pv4Rllz+VIrAibBKPgr2AO19alAj4SUxVp938vFHw/7vGWQQsTwc 4V/0whDjK9YcRJANN6jK4Zziah7fw9Of0F7oBN7QSJ5+pC45OpHEI9mnCz+h3+8McErE PRtA== X-Received: by 10.152.42.173 with SMTP id p13mr225lal.6.1418521299155; Sat, 13 Dec 2014 17:41:39 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.152.170.227 with SMTP id ap3ls584744lac.60.gmail; Sat, 13 Dec 2014 17:41:38 -0800 (PST) X-Received: by 10.112.138.234 with SMTP id qt10mr3710607lbb.4.1418521298318; Sat, 13 Dec 2014 17:41:38 -0800 (PST) Received: from smtp.natisbad.org (36.223.133.77.rev.sfr.net. [77.133.223.36]) by gmr-mx.google.com with ESMTP id jv2si351388wid.1.2014.12.13.17.41.38 for ; Sat, 13 Dec 2014 17:41:38 -0800 (PST) Received-SPF: pass (google.com: domain of arno@natisbad.org designates 77.133.223.36 as permitted sender) client-ip=77.133.223.36; Received: by smtp.natisbad.org (Postfix, from userid 109) id 1DC101700D4D; Sun, 14 Dec 2014 02:41:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on humble X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00, T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from small (localhost [IPv6:::1]) by smtp.natisbad.org (Postfix) with ESMTP id ACFAE17004FE; Sun, 14 Dec 2014 02:38:49 +0100 (CET) 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?= Cc: Mark Rutland , Alessandro Zummo , Peter Huewe , Linus Walleij , Thierry Reding , Mark Brown , Arnd Bergmann , Darshana Padmadas , Rob Herring , Pawel Moll , Stephen Warren , Ian Campbell , Grant Likely , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, Rob Landley , rtc-linux@googlegroups.com, Jason Cooper , Guenter Roeck , Jason Gunthorpe , Kumar Gala , linux-arm-kernel@lists.infradead.org Subject: [rtc-linux] [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-Original-Sender: arno@natisbad.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of arno@natisbad.org designates 77.133.223.36 as permitted sender) smtp.mail=arno@natisbad.org; dkim=pass header.i=@natisbad.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , 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 {