Date: Mon, 13 Nov 2023 11:40:27 +0000 From: Andrew Turner <andrew@fubar.geek.nz> To: =?utf-8?B?6aKo5L6G5pWj5Lq6?= <furaisanjin@gmail.com> Cc: FreeBSD ARM List <freebsd-arm@freebsd.org> Subject: Re: Conflict DS1307 and MAX77620 Message-ID: <44B013F8-F710-4CD7-82ED-71B413186346@fubar.geek.nz> 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
--Apple-Mail=_4FEDE1AA-E3FC-44B9-BFC6-C47133011EF4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 12 Nov 2023, at 22:29, =E9=A2=A8=E4=BE=86=E6=95=A3=E4=BA=BA = <furaisanjin@gmail.com> wrote: >=20 > Hello all. >=20 > 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? It looks like this might have been fixed in = https://cgit.freebsd.org/src/commit/?id=3Da534b50e245d8, however this = wasn=E2=80=99t MFCd to the stable/13 branch. You could try = cherry-picking that patch, or test with 14-RELEASE when it=E2=80=99s = released to see if it helps. Andrew --Apple-Mail=_4FEDE1AA-E3FC-44B9-BFC6-C47133011EF4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"content-type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; = -webkit-nbsp-mode: space; line-break: = after-white-space;"><br><div><blockquote type=3D"cite"><div>On 12 Nov = 2023, at 22:29, =E9=A2=A8=E4=BE=86=E6=95=A3=E4=BA=BA = <furaisanjin@gmail.com> wrote:</div><br = class=3D"Apple-interchange-newline"><div><div dir=3D"ltr"><div>Hello = all.</div><div><br></div><div>I found that a similar discussion was done = almost 2 years ago.</div><div><br></div><div><a = href=3D"https://lists.freebsd.org/archives/freebsd-arm/2021-November/00060= 0.html">https://lists.freebsd.org/archives/freebsd-arm/2021-November/00060= 0.html</a></div><div><br></div><div>I'm using the official FreeBSD 13.2 = release.</div><div><br></div><div>uname -a<br>FreeBSD macavity = 13.2-RELEASE-p4 FreeBSD 13.2-RELEASE-p4 GENERIC arm64<br>freebsd-version = -kru<br>13.2-RELEASE-p4<br>13.2-RELEASE-p4<br>13.2-RELEASE-p5</div><div><b= r></div><div>I created overlay dtb files for i2c and ds1307, and loaded = them at boot. FreeBSD detected ds1360 as MAX77620 like = below.</div><div><br></div><div>Nov 12 16:17:18 localhost kernel: rtc1: = <MAX77620 RTC> at addr 0xd0 on iicbus0<br>Nov 12 16:17:18 = localhost kernel: rtc1: registered as a time-of-day clock, resolution = 1.000000s</div><div><br></div><div>My SBC just has=20 Allwinner H5 and nothing like tegra210. I created a custom kernel to = remove tegra210. The custom kernel is fine and can detect ds1307 = correctly.</div><div><br></div>Nov 13 06:21:52 localhost kernel: = ds13070: <Dallas DS1307> at addr 0xd0 on iicbus0<br><div>Nov 13 = 06:21:52 localhost kernel: ds13070: registered as a time-of-day clock, = resolution 1.000000s</div><div><br></div><div>Is there any way to = disable max77620 without creating a custom = kernel?</div></div></div></blockquote><br></div><div>It looks like this = might have been fixed = in https://cgit.freebsd.org/src/commit/?id=3Da534b50e245d8, however = this wasn=E2=80=99t MFCd to the stable/13 branch. You could try = cherry-picking that patch, or test with 14-RELEASE when it=E2=80=99s = released to see if it = helps.</div><div><br></div><div>Andrew</div><br></body></html>= --Apple-Mail=_4FEDE1AA-E3FC-44B9-BFC6-C47133011EF4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44B013F8-F710-4CD7-82ED-71B413186346>