mbox series

[0/3] rtc: pcf2127: add alarm support

Message ID 20200607170610.24534-1-liambeguin@gmail.com
Headers show
Series rtc: pcf2127: add alarm support | expand


Liam Beguin June 7, 2020, 5:06 p.m. UTC
From: Liam Beguin <lvb@xiphos.com>

The board used to test this series has the interrupt line of the RTC
connected to a circuit controlling the power of the board.
An event on the interrupt line while the board is off will power it on.

This was tested on a PCA2129, with:

	$ date "2010-10-10 10:10"
	Sun Oct 10 10:10:00 UTC 2010
	$ /usr/sbin/rtcwake -u -d /dev/rtc0  -s10 --mode off
	[ ... ]
	$ # power on after 10 seconds

Liam Beguin (3):
  rtc: pcf2127: add pca2129 device id
  rtc: pcf2127: add alarm support
  rtc: pcf2127: reset alarm interrupt at power on

 drivers/rtc/rtc-pcf2127.c | 131 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 128 insertions(+), 3 deletions(-)