rtc: rtc-rpi: Add simple RTC driver for Raspberry Pi
authorDom Cobley <popcornmix@gmail.com>
Fri, 7 Jul 2023 19:00:45 +0000 (20:00 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:34:52 +0000 (11:34 +0000)
commit27caedbce280940cd6fce3941412e19c4fe22432
treea41da1084ddca3c5197356cb0a9db4ace5e79330
parent5eb406db44ffcd0f4008f009d9e8af15f3702ec0
rtc: rtc-rpi: Add simple RTC driver for Raspberry Pi

This supports setting and reading the real time clock
and supports wakeup alarms.

To support wake up alarms you want this bootloader config:
 POWER_OFF_ON_HALT=1
 WAKE_ON_GPIO=0

You can test with:
  echo +600 | sudo tee /sys/class/rtc/rtc0/wakealarm
  sudo halt

That will halt (in an almost no power state),
then wake and restart after 10 minutes.

Signed-off-by: Dom Cobley <popcornmix@gmail.com>
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-rpi.c [new file with mode: 0644]