Hi, On 25/02/2025 11:19:01+0100, Wolfram Sang wrote: > so alarms of the Renesas RZ-N1 RTC can only have one-minute-granularity. > However, it does have a one-second-interrupt. Has it been tried already > for some driver to use such an interrupt to emulate second-granularity > of the alarm? My searches did not yield results so far. > > So the idea is, of course, to the let the alarm fire on the minutes. > Then, enable the second-update irqs until reading the seconds matches > the requested seconds of the alarm. I'd say this is probably useless because you will already be awake anyway so I don't see the clear benefit. > > It would not only gain us a better resolution for alarms, but also > allows for enabling UIE. This is already something you can do. I admit this has become super convoluted since Jon switched UIEs to be handled using the alarm interrupt... -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com