Re: DS3231 RTC module not detected

From: Daniel O'Connor <darius_at_dons.net.au>
Date: Mon, 21 Feb 2022 08:00:44 UTC

> On 20 Feb 2022, at 14:59, Archimedes Gaviola <archimedes.gaviola@gmail.com> wrote:
>> When you say "with the exact DS3231 driver.." what do you mean?
> 
> I mean the appropriate DS3231 driver - ds3231(4) for the module which is a kernel loadable as the dominating driver with 13.0-RELEASE and 14.0-CURRENT which is MAX77620 RTC is the wrong one thus the module will not work properly. The clock stops and goes back to the time when you set it. This behavior is observable when my RPi system is rebooted or shutdown. With the loadable  ds3231 driver, this behavior is no longer observed and working as expected. For your DS1307, there's also an equivalent and perhaps the appropriate driver as described in the manual ds1307(4), it can be loaded as well via kldload.

I tried loading ds1307.ko in the loader but it has no effect on the result - still shows up as a MAX77620 for me.

I haven't tested pulling the power yet as I'm remote from it.

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum