]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: pcf85063: set xtal load capacitance from DT
authorSam Ravnborg <sam@ravnborg.org>
Sat, 19 Jan 2019 09:00:31 +0000 (10:00 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 22 Jan 2019 17:57:10 +0000 (18:57 +0100)
commitbbb4383826b20cdc9efbd8ffdd19a5fa58320175
tree41ba787e79e7d56306df9d480f2ec99b42f0af6f
parent189927e719e36ceefbb8037f23d3849e47833aef
rtc: pcf85063: set xtal load capacitance from DT

Add support for specifying the xtal load capacitance in the DT node.
The pcf85063 supports xtal load capacitance of 7pF or 12.5pF.
If the rtc has the wrong configuration the time will
drift several hours/week.

The driver use the default value 7pF.

The DT may specify either 7000fF or 12500fF.
(The DT uses femto Farad to avoid decimal numbers).
Other values are warned and the driver uses the default value.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Urs Fässler <urs.fassler@bbv.ch>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf85063.c