rtc: tps65910: Support wakeup-source property
authorDmitry Osipenko <digetx@gmail.com>
Wed, 20 Jan 2021 21:16:02 +0000 (00:16 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 25 Jan 2021 22:57:24 +0000 (23:57 +0100)
commit454ba154a62c8806e82a3581c5233a5176cd7dd7
treeb387bd22dadecd72f5ad828093059fee6d123583
parentf66e7f2d32b9f53b4c43d9c4ac0c1c83141db735
rtc: tps65910: Support wakeup-source property

TPS65910 is a PMIC MFD device and RTC is one of its functions. The
wakeup-source DT property is specified for the parent MFD device and we
need to use this property for the RTC in order to allow to use RTC alarm
for waking up system from suspend by default, instead of requiring user
to enable wakeup manually via sysfs.

Tested-by: Peter Geis <pgwipeout@gmail.com>
Tested-by: Matt Merhar <mattmerhar@protonmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210120211603.18555-1-digetx@gmail.com
drivers/rtc/rtc-tps65910.c