From nobody Mon Nov 13 11:40:27 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4STSDD2dQsz51GYY for ; Mon, 13 Nov 2023 11:40:44 +0000 (UTC) (envelope-from bT.dviprj1f30=sal1xodabuv8=z45c5kjj6y@em790814.fubar.geek.nz) Received: from e2i209.smtp2go.com (e2i209.smtp2go.com [103.2.140.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4STSDD0sbZz4Qyx for ; Mon, 13 Nov 2023 11:40:43 +0000 (UTC) (envelope-from bT.dviprj1f30=sal1xodabuv8=z45c5kjj6y@em790814.fubar.geek.nz) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=mgy720.a1-4.dyn; x=1699876543; h=Feedback-ID: X-Smtpcorp-Track:To:Date:Subject:Message-Id:From:Reply-To:Sender: List-Unsubscribe; bh=8iwwOsQIka3LAuAlVBxFICP7+vsYgLPr9KVB6w4NtS8=; b=kqv9ipvx wYQSZDIB9K+n7IdNm1jQArhQW9BtVTwcs3hiZi3RH6UatE3SB2F7ZswrmN3CipPF4Wj9mZlmD8cmd Mx5zQQhXd2s/DvNdosP9k3iaCGSDFyVciqg79g0qslK60RytyDOD3YBrDiWHmz0zI9QY2t8Qa513y nEfDrWAcdcZFlB928h5hY+u5tbb9pd1GTdurC+TKD2z/p6IRvQ7XTUdsSbTH3ub6wdwhoGpJCD8OG /WHqRz3ZZU7ii11SqZud60CqSwWi89lcPL8/6WTirts9wfz8woIRA1uOGMDqnfQJ00VyMuESsitXf p6xnzKXTnH9XvmMbBcoG/hJ0uw==; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fubar.geek.nz; i=@fubar.geek.nz; q=dns/txt; s=s790814; t=1699875643; h=from : subject : to : message-id : date; bh=8iwwOsQIka3LAuAlVBxFICP7+vsYgLPr9KVB6w4NtS8=; b=XPqzQFXe/1ADv8GnhgRmHUsUKB3itTtB5L3HZS8il9Qq89VFnD2DDXV5n/LRggbkVHd4j f5j4z1lNjkJUqBz5Ra3M0na1AeVEw7p9O/z4aidGjUn7yaAVkaG61Dg+FRmZ/By3K3TIrwH tSO8jP7bTYEioodXhwARbI+GAyEKzgjEMgjVwcEvOg47j+oS03kUEDCG2QonpI+kpDCKkOG XZLcboKRAY4f7ZD9GyELGC1ndtHh5o8qqqylJ1OLaYmHbJJ5zuYaS/3zzLvmeTUnVrtyeG3 D6DJ2fSyh6TzIs41GKs1Nzsj2WJty+3V9UvGaMHmPGFfKFInys7s1OC0JsSg== Received: from [10.176.58.103] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2-S2G) (envelope-from ) id 1r2VJ1-Y8PLIT-BW; Mon, 13 Nov 2023 11:40:39 +0000 Received: from [10.99.243.232] (helo=morbo.fubar.geek.nz) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96.1-S2G) (envelope-from ) id 1r2VJ1-9ERV4n-0M; Mon, 13 Nov 2023 11:40:39 +0000 Received: from smtpclient.apple (cpc91210-cmbg18-2-0-cust37.5-4.cable.virginm.net [81.102.44.38]) by morbo.fubar.geek.nz (Postfix) with ESMTPSA id 5E0BA25AFB; Mon, 13 Nov 2023 11:40:38 +0000 (UTC) From: Andrew Turner Message-Id: <44B013F8-F710-4CD7-82ED-71B413186346@fubar.geek.nz> Content-Type: multipart/alternative; boundary="Apple-Mail=_4FEDE1AA-E3FC-44B9-BFC6-C47133011EF4" List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.100.2.1.4\)) Subject: Re: Conflict DS1307 and MAX77620 Date: Mon, 13 Nov 2023 11:40:27 +0000 In-Reply-To: Cc: FreeBSD ARM List To: =?utf-8?B?6aKo5L6G5pWj5Lq6?= References: X-Mailer: Apple Mail (2.3774.100.2.1.4) X-Smtpcorp-Track: 1r2VJ19ERV4n0u.lts2bhop4WUvH Feedback-ID: 790814m:790814amQcrys:790814s6u9U-FwW8 X-Report-Abuse: Please forward a copy of this message, including all headers, to X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:23352, ipnet:103.2.140.0/22, country:US] X-Rspamd-Queue-Id: 4STSDD0sbZz4Qyx --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 = 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: 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: 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
On 12 Nov = 2023, at 22:29, =E9=A2=A8=E4=BE=86=E6=95=A3=E4=BA=BA = <furaisanjin@gmail.com> wrote:

Hello = all.

I found that a similar discussion was done = almost 2 years ago.


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=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.

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

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--