rtc: rzn1: Add oscillator offset support
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 May 2022 08:25:03 +0000 (10:25 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 17 May 2022 21:11:44 +0000 (23:11 +0200)
commitbe4a11cf98aff5d456eae947a49b6163393d9420
treefbe0e559a2b2f97d9ecba00a1897ce502d4594fe
parentb5ad1bf00d2c4bf96bf9318f44a929f0b22dd29c
rtc: rzn1: Add oscillator offset support

The RZN1 RTC can compensate the imprecision of the oscillator up to
approximately 190ppm.

Seconds can last slightly shorter or longer depending on the
configuration.

Below ~65ppm of correction, we can change the time spent in a second
every minute, which is the most accurate compensation that the RTC can
offer. Above, the compensation will be active every 20s.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220516082504.33913-5-miquel.raynal@bootlin.com
drivers/rtc/rtc-rzn1.c