rtc: pcf85363: Allow to wake up system without IRQ
authorMike Looijmans <mike.looijmans@topic.nl>
Mon, 21 Aug 2023 07:20:13 +0000 (09:20 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 27 Aug 2023 22:05:45 +0000 (00:05 +0200)
commit1e786b03705938870dafb629f2248f88d507a0ff
tree00c93776ab9918f1769d159c44eee172eedaa145
parent6ec3f5ec2eecabab065a39f5e04562c8c3c81ece
rtc: pcf85363: Allow to wake up system without IRQ

When wakeup-source is set in the devicetree, set up the device for
using the output as interrupt instead of clock. This is similar to
how other RTC devices handle this.

This allows the clock chip to turn on the board when wired to do
so in hardware.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Link: https://lore.kernel.org/r/20230821072013.7072-1-mike.looijmans@topic.nl
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf85363.c