Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2022 12:29:06 +0800
From:      Archimedes Gaviola <archimedes.gaviola@gmail.com>
To:        "Daniel O'Connor" <darius@dons.net.au>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: DS3231 RTC module not detected
Message-ID:  <CAJFbk7F7HvJGrf2UJn6hQ-PqfWKmttWLzqmqKHLfHGkJKS=kgg@mail.gmail.com>
In-Reply-To: <94C3A304-B821-4885-A50D-32BD1FBED43D@dons.net.au>
References:  <CAJFbk7EtkjnFBJgr-L3faxaQ2saNgEQ%2BLRPWbRySpwY8wJRh=Q@mail.gmail.com> <F2EFEDCC-1E00-4221-8AF9-3744A7AC359C@dons.net.au> <CAJFbk7Ed2R8M2xAkJQAjiivZie=8Ca_Rt50YEG4P3yWzQLQhrg@mail.gmail.com> <2DF482A7-FEFC-4833-A16B-A7A01B8713DD@dons.net.au> <CAJFbk7GRjq-MheWRhVN1TkLOkAiYx5_NH6K%2B3umN0SMjExyB8Q@mail.gmail.com> <94C3A304-B821-4885-A50D-32BD1FBED43D@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000077ad0605d86b8f65
Content-Type: text/plain; charset="UTF-8"

On Sun, Feb 20, 2022 at 11:51 AM Daniel O'Connor <darius@dons.net.au> wrote:

>
>
> > On 19 Feb 2022, at 22:49, Archimedes Gaviola <
> archimedes.gaviola@gmail.com> wrote:
> > Thanks for your feedback Daniel! With the exact DS3231 driver all the
> concerns I've mentioned were answered. Once it is set manually via date or
> ntpdate, the clock will now continue even if your system is shutdown (with
> unplug power cable) or even detaching the module from the RPi4 system for
> some time and then attaching it back will now be "real-time".
> >
> > You can bring your DS1307 with the exact driver as well. Thanks a lot
> for your help, it is well appreciated.
> >
> 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.

Thanks,
Archimedes

--00000000000077ad0605d86b8f65
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sun, Feb 20, 2022 at 11:51 AM Dani=
el O&#39;Connor &lt;<a href=3D"mailto:darius@dons.net.au">darius@dons.net.a=
u</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"=
><br>
<br>
&gt; On 19 Feb 2022, at 22:49, Archimedes Gaviola &lt;<a href=3D"mailto:arc=
himedes.gaviola@gmail.com" target=3D"_blank">archimedes.gaviola@gmail.com</=
a>&gt; wrote:<br>
&gt; Thanks for your feedback Daniel! With the exact DS3231 driver all the =
concerns I&#39;ve mentioned were answered. Once it is set manually via date=
 or ntpdate, the clock will now continue even if your system is shutdown (w=
ith unplug power cable) or even detaching the module from the RPi4 system f=
or some time and then attaching it back will now be &quot;real-time&quot;.<=
br>
&gt; <br>
&gt; You can bring your DS1307 with the exact driver as well. Thanks a lot =
for your help, it is well appreciated.<br>
&gt; <br>
When you say &quot;with the exact DS3231 driver..&quot; what do you mean?<b=
r></blockquote><div><br></div>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=20
<span class=3D"gmail-im">MAX77620 RTC</span>

is the wrong one thus the module will not work properly. The clock stops an=
d goes back to the time when you set it. This behavior is observable when m=
y RPi system is rebooted or shutdown. With the loadable=C2=A0
ds3231

 driver, this behavior is no longer observed and working as expected. For y=
our DS1307, there&#39;s also an equivalent and perhaps the appropriate driv=
er as described in the manual ds1307(4), it can be loaded as well via kldlo=
ad.<br></div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote=
">Thanks,</div><div class=3D"gmail_quote">Archimedes<br></div></div>

--00000000000077ad0605d86b8f65--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7F7HvJGrf2UJn6hQ-PqfWKmttWLzqmqKHLfHGkJKS=kgg>