linux/Documentation/devicetree/bindings/rtc
Neelesh Gupta 16b1d26e77 rtc/tpo: Driver to support rtc and wakeup on PowerNV platform
The patch implements the OPAL rtc driver that binds with the rtc
driver subsystem. The driver uses the platform device infrastructure
to probe the rtc device and register it to rtc class framework. The
'wakeup' is supported depending upon the property 'has-tpo' present
in the OF node. It provides a way to load the generic rtc driver in
in the absence of an OPAL driver.

The patch also moves the existing OPAL rtc get/set time interfaces to the
new driver and exposes the necessary OPAL calls using EXPORT_SYMBOL_GPL.

Test results:
-------------
Host:
[root@tul169p1 ~]# ls -l /sys/class/rtc/
total 0
lrwxrwxrwx 1 root root 0 Oct 14 03:07 rtc0 -> ../../devices/opal-rtc/rtc/rtc0
[root@tul169p1 ~]# cat /sys/devices/opal-rtc/rtc/rtc0/time
08:10:07
[root@tul169p1 ~]# echo `date '+%s' -d '+ 2 minutes'` > /sys/class/rtc/rtc0/wakealarm
[root@tul169p1 ~]# cat /sys/class/rtc/rtc0/wakealarm
1413274345
[root@tul169p1 ~]#

FSP:
$ smgr mfgState
standby
$ rtim timeofday

System time is valid: 2014/10/14 08:12:04.225115

$ smgr mfgState
ipling
$

CC: devicetree@vger.kernel.org
CC: tglx@linutronix.de
CC: rtc-linux@googlegroups.com
CC: a.zummo@towertech.it
Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2014-11-17 18:04:01 +11:00
..
atmel,at91rm9200-rtc.txt rtc-at91rm9200: use shadow IMR on at91sam9x5 2013-06-12 16:29:46 -07:00
dallas,ds1339.txt Documentation: dt-bindings: trickle charger dt binding document for ds1339 2014-10-14 02:18:18 +02:00
dw-apb.txt dts: Rename DW APB timer compatible strings 2013-08-29 12:59:02 -07:00
haoyu,hym8563.txt drivers/rtc/rtc-hym8563.c: add optional clock-output-names property 2014-06-06 16:08:08 -07:00
imxdi-rtc.txt drivers/rtc/rtc-imxdi.c: add devicetree support 2012-12-17 17:15:20 -08:00
lpc32xx-rtc.txt
maxim,ds1742.txt drivers/rtc/rtc-ds1742.c: add devicetree support 2014-01-23 16:36:59 -08:00
moxa,moxart-rtc.txt rtc: add MOXA ART RTC driver 2013-09-11 15:58:54 -07:00
nvidia,tegra20-rtc.txt ARM: tegra: add missing clock documentation to DT bindings 2013-12-11 16:41:55 -07:00
olpc-xo1-rtc.txt
orion-rtc.txt rtc: rtc-mv: Add the device tree binding documentation 2012-12-10 21:49:14 +00:00
pxa-rtc.txt RTC: add DT bindings to pxa-rtc 2012-08-16 16:13:07 +08:00
rtc-cmos.txt
rtc-omap.txt drivers/rtc/rtc-omap.c: add rtc wakeup support to alarm events 2013-09-11 15:58:54 -07:00
rtc-opal.txt rtc/tpo: Driver to support rtc and wakeup on PowerNV platform 2014-11-17 18:04:01 +11:00
rtc-palmas.txt drivers/rtc/rtc-palmas.c: support for backup battery charging 2013-09-11 15:58:55 -07:00
s3c-rtc.txt rtc: s3c: add support for RTC of Exynos3250 SoC 2014-10-14 02:18:17 +02:00
sa1100-rtc.txt
snvs-rtc.txt rtc: snvs: add Freescale rtc-snvs driver 2012-10-06 03:05:01 +09:00
spear-rtc.txt
stmp3xxx-rtc.txt rtc: stmp3xxx: Add simple binding for the stmp3xxx-rtc 2012-07-03 13:22:36 +08:00
sun6i-rtc.txt rtc: sun6i: Add sun6i RTC driver 2014-09-19 12:39:19 +02:00
sunxi-rtc.txt rtc: sunxi: change compatibles 2014-04-03 16:21:21 -07:00
twl-rtc.txt
via,vt8500-rtc.txt arm: vt8500: doc: Add device tree bindings for arch-vt8500 devices 2012-09-21 19:23:58 +12:00
xgene-rtc.txt Documentation/devicetree/bindings: add documentation for the APM X-Gene SoC RTC DTS binding 2014-06-06 16:08:06 -07:00