ARM: mvebu: ISL12057 rtc chip can now wake up RN102, RN102 and RN2120
authorArnaud Ebalard <arno@natisbad.org>
Fri, 13 Feb 2015 22:40:39 +0000 (14:40 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Feb 2015 05:21:42 +0000 (21:21 -0800)
Now that alarm support for ISL12057 chip is available w/ the specific
"isil,irq2-can-wakeup-machine" property, let's use that feature of the
driver dedicated to NETGEAR ReadyNAS 102, 104 and 2120 specific routing of
RTC Alarm IRQ#2 pin; on those devices, 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 this "isil,irq2-can-wakeup-machine" boolean property.
This makes 'wakealarm' sysfs entry available to configure the alarm.

Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Peter Huewe <peter.huewe@infineon.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Thierry Reding <treding@nvidia.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Darshana Padmadas <darshanapadmadas@gmail.com>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Landley <rob@landley.net>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Cc: Kumar Gala <galak@codeaurora.org>
Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/boot/dts/armada-370-netgear-rn102.dts
arch/arm/boot/dts/armada-370-netgear-rn104.dts
arch/arm/boot/dts/armada-xp-netgear-rn2120.dts

index 4e24932c6e30709831c54a866445f97d0cb53514..1c83b7ce0982501342eae101e05df9b366077a4e 100644 (file)
@@ -87,6 +87,7 @@
                                isl12057: isl12057@68 {
                                        compatible = "isil,isl12057";
                                        reg = <0x68>;
+                                       isil,irq2-can-wakeup-machine;
                                };
 
                                g762: g762@3e {
index 30586e47986a9738321b2a6d2a085dbc514f600f..5fbfe02964dc5a08c0da65ecf1bae7de18af359f 100644 (file)
@@ -93,6 +93,7 @@
                                isl12057: isl12057@68 {
                                        compatible = "isil,isl12057";
                                        reg = <0x68>;
+                                       isil,irq2-can-wakeup-machine;
                                };
 
                                g762: g762@3e {
index d81430aa4ab32701fcdeb6982312c5ad65d91d8f..fc8bdfcd23486a6e28c14fd639119452e62e14f1 100644 (file)
                                isl12057: isl12057@68 {
                                        compatible = "isil,isl12057";
                                        reg = <0x68>;
+                                       isil,irq2-can-wakeup-machine;
                                };
 
                                /* Controller for rear fan #1 of 3 (Protechnic