Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Nov 2023 21:54:16 +1030
From:      "Daniel O'Connor" <darius@dons.net.au>
To:        =?utf-8?B?6aKo5L6G5pWj5Lq6?= <furaisanjin@gmail.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Conflict DS1307 and MAX77620
Message-ID:  <F7198E6E-D56C-4B51-8B1C-BBFBE6D7A2BB@dons.net.au>
In-Reply-To: <CAJzLSnzUeLhNcOOM7zyxJJrY67_t3V0Gxt3ujSo9C8itXnfdnw@mail.gmail.com>
References:  <CAJzLSnzUeLhNcOOM7zyxJJrY67_t3V0Gxt3ujSo9C8itXnfdnw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 13 Nov 2023, at 08:59, =E9=A2=A8=E4=BE=86=E6=95=A3=E4=BA=BA =
<furaisanjin@gmail.com> wrote:
> I found that a similar discussion was done almost 2 years ago.
>=20
> =
https://lists.freebsd.org/archives/freebsd-arm/2021-November/000600.html
>=20
> I'm using the official FreeBSD 13.2 release.
>=20
> uname -a
> FreeBSD macavity 13.2-RELEASE-p4 FreeBSD 13.2-RELEASE-p4 GENERIC arm64
> freebsd-version -kru
> 13.2-RELEASE-p4
> 13.2-RELEASE-p4
> 13.2-RELEASE-p5
>=20
> I created overlay dtb files for i2c and ds1307, and loaded them at =
boot. FreeBSD detected ds1360 as MAX77620 like below.
>=20
> Nov 12 16:17:18 localhost kernel: rtc1: <MAX77620 RTC> at addr 0xd0 on =
iicbus0
> Nov 12 16:17:18 localhost kernel: rtc1: registered as a time-of-day =
clock, resolution 1.000000s
>=20
> My SBC just has Allwinner H5 and nothing like tegra210. I created a =
custom kernel to remove tegra210. The custom kernel is fine and can =
detect ds1307 correctly.
>=20
> Nov 13 06:21:52 localhost kernel: ds13070: <Dallas DS1307> at addr =
0xd0 on iicbus0
> Nov 13 06:21:52 localhost kernel: ds13070: registered as a time-of-day =
clock, resolution 1.000000s
>=20
> Is there any way to disable max77620 without creating a custom kernel?

I think the way the time is accessed is compatible - or at least I have =
the same confusion (on an RPi4 hat) but the time keeping works fine.

That said it would be nice to fix - are you able to try the suggested =
change by Ian?

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F7198E6E-D56C-4B51-8B1C-BBFBE6D7A2BB>