Date: Mon, 13 Nov 2023 21:18:21 +0900 From: =?UTF-8?B?6aKo5L6G5pWj5Lq6?= <furaisanjin@gmail.com> To: Andrew Turner <andrew@fubar.geek.nz> Cc: FreeBSD ARM List <freebsd-arm@freebsd.org> Subject: Re: Conflict DS1307 and MAX77620 Message-ID: <CAJzLSnx38cvdnK3v3xGYy_kj6ndZXfXPp9Yvv0UajKKyjnwOVg@mail.gmail.com> In-Reply-To: <44B013F8-F710-4CD7-82ED-71B413186346@fubar.geek.nz> References: <CAJzLSnzUeLhNcOOM7zyxJJrY67_t3V0Gxt3ujSo9C8itXnfdnw@mail.gmail.com> <44B013F8-F710-4CD7-82ED-71B413186346@fubar.geek.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000b8dbeb060a07ac53 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello all. Thank you for the comments. I tried 14,0-RC4 and it worked as expected. I will switch to 14.0 once it is released. Best regards, furaisanjin 2023=E5=B9=B411=E6=9C=8813=E6=97=A5(=E6=9C=88) 20:40 Andrew Turner <andrew@= fubar.geek.nz>: > > On 12 Nov 2023, at 22:29, =E9=A2=A8=E4=BE=86=E6=95=A3=E4=BA=BA <furaisanj= in@gmail.com> wrote: > > Hello all. > > I found that a similar discussion was done almost 2 years ago. > > https://lists.freebsd.org/archives/freebsd-arm/2021-November/000600.html > > I'm using the official FreeBSD 13.2 release. > > 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 > > I created overlay dtb files for i2c and ds1307, and loaded them at boot. > FreeBSD detected ds1360 as MAX77620 like below. > > 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 > > My SBC just has Allwinner H5 and nothing like tegra210. I created a custo= m > kernel to remove tegra210. The custom kernel is fine and can detect ds130= 7 > correctly. > > Nov 13 06:21:52 localhost kernel: ds13070: <Dallas DS1307> at addr 0xd0 o= n > iicbus0 > Nov 13 06:21:52 localhost kernel: ds13070: registered as a time-of-day > clock, resolution 1.000000s > > 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 he= lps. > > Andrew > > --000000000000b8dbeb060a07ac53 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello all.</div><div><br></div><div>Thank you for the= comments. I tried 14,0-RC4 and it worked as expected. I will switch to 14.= 0 once it is released.</div><div><br></div><div>Best regards,</div><div>fur= aisanjin<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cla= ss=3D"gmail_attr">2023=E5=B9=B411=E6=9C=8813=E6=97=A5(=E6=9C=88) 20:40 Andr= ew Turner <<a href=3D"mailto:andrew@fubar.geek.nz">andrew@fubar.geek.nz<= /a>>:<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"><div><b= r><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 <<a href=3D"mailto:furaisanjin@gmail.com" ta= rget=3D"_blank">furaisanjin@gmail.com</a>> wrote:</div><br><div><div dir= =3D"ltr"><div>Hello all.</div><div><br></div><div>I found that a similar di= scussion was done almost 2 years ago.</div><div><br></div><div><a href=3D"h= ttps://lists.freebsd.org/archives/freebsd-arm/2021-November/000600.html" ta= rget=3D"_blank">https://lists.freebsd.org/archives/freebsd-arm/2021-Novembe= r/000600.html</a></div><div><br></div><div>I'm using the official FreeB= SD 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<b= r>13.2-RELEASE-p4<br>13.2-RELEASE-p4<br>13.2-RELEASE-p5</div><div><br></div= ><div>I created overlay dtb files for i2c and ds1307, and loaded them at bo= ot. FreeBSD detected ds1360 as MAX77620 like below.</div><div><br></div><di= v>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 ha= s=20 Allwinner H5 and nothing like tegra210. I created a custom kernel to remov= e tegra210. The custom kernel is fine and can detect ds1307 correctly.</div= ><div><br></div>Nov 13 06:21:52 localhost kernel: ds13070: <Dallas DS130= 7> at addr 0xd0 on iicbus0<br><div>Nov 13 06:21:52 localhost kernel: ds1= 3070: 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 mig= ht have been fixed in=C2=A0<a href=3D"https://cgit.freebsd.org/src/commit/?= id=3Da534b50e245d8" target=3D"_blank">https://cgit.freebsd.org/src/commit/?= id=3Da534b50e245d8</a>, however this wasn=E2=80=99t MFCd to the stable/13 b= ranch. You could try cherry-picking that patch, or test with 14-RELEASE whe= n it=E2=80=99s released to see if it helps.</div><div><br></div><div>Andrew= </div><br></div></blockquote></div> --000000000000b8dbeb060a07ac53--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJzLSnx38cvdnK3v3xGYy_kj6ndZXfXPp9Yvv0UajKKyjnwOVg>