]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rtc: m41t93: Add alarm support
authorAkhilesh Patil <akhilesh@ee.iitb.ac.in>
Sat, 20 Sep 2025 15:02:46 +0000 (20:32 +0530)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 24 Jun 2026 21:08:54 +0000 (23:08 +0200)
commit5b55ff7cace4c176c7ebdf9512e50ac870f17fac
tree858c98fc9ac7d0d4fc9cecbfb91161c773515d07
parentd86e8682593c79d8599537707f49e201456a76de
rtc: m41t93: Add alarm support

Implement alarm feature for rtc-m41t93 by adding necessary
callbacks - set_alarm, read_alarm and alarm_irq_enable.
Enable support to configure alarm 1 out of 2 alarms present in this rtc.
Support only alarm configuration in this commit. This commit does not
implement alarm irq handling.

Use selftests/rtc/rtctest for testing. Tested by observing IRQ pin
(pin 12 of SOX18 package) on logic analyzer going low after alarm
condition is met.

Signed-off-by: Akhilesh Patil <akhilesh@ee.iitb.ac.in>
Link: https://patch.msgid.link/1b272ff1a5392d5eb76e129a4785ac8424763356.1758379856.git.akhilesh@ee.iitb.ac.in
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-m41t93.c