Re: [PATCH] rtc: ds1307: support m41t0 variant

From: Alexandre Belloni
Date: Sat Apr 08 2017 - 11:20:08 EST


On 23/03/2017 at 16:54:57 -0700, Stefan Agner wrote:
> The m41t0 variant is very similar to the already supported m41t00
> variant, with the notable exception of the oscillator fail bit.
> The data sheet notes:
>
> If the oscillator fail (OF) bit is internally set to a '1,' this
> indicates that the oscillator has either stopped, or was stopped
> for some period of time and can be used to judge the validity of
> the clock and date data.
>
> The bit will get cleared with a regular write of the system time,
> so no changes are needed to clear it.
>
> Signed-off-by: Stefan Agner <stefan@xxxxxxxx>
> ---
> Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 +
> drivers/rtc/rtc-ds1307.c | 13 +++++++++++++
> 2 files changed, 14 insertions(+)
>
Applied, thanks.

--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com