From nobody Mon Nov 13 11:24:16 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 4STRsq0BMPz51D0T for ; Mon, 13 Nov 2023 11:24:47 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (midget.dons.net.au [IPv6:2403:580d:ae98:0:225:90ff:fe47:39b4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "dons.net.au", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4STRsp28qTz4P5Y for ; Mon, 13 Nov 2023 11:24:45 +0000 (UTC) (envelope-from darius@dons.net.au) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple ([IPv6:2403:580d:ae98:0:ec76:82c1:7587:e045]) (authenticated bits=0) by midget.dons.net.au (8.17.2/8.17.1) with ESMTPSA id 3ADBOQXO010541 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 13 Nov 2023 21:54:26 +1030 (ACDT) (envelope-from darius@dons.net.au) X-Authentication-Warning: midget.dons.net.au: Host [IPv6:2403:580d:ae98:0:ec76:82c1:7587:e045] claimed to be smtpclient.apple Content-Type: text/plain; charset=utf-8 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 From: "Daniel O'Connor" In-Reply-To: Date: Mon, 13 Nov 2023 21:54:16 +1030 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: =?utf-8?B?6aKo5L6G5pWj5Lq6?= X-Mailer: Apple Mail (2.3774.100.2.1.4) X-Spam-Status: No, score=0.40 X-Rspamd-Action: no action X-Rspamd-Server: midget.dons.net.au 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:4764, ipnet:2403:5800::/27, country:AU] X-Rspamd-Queue-Id: 4STRsp28qTz4P5Y > On 13 Nov 2023, at 08:59, =E9=A2=A8=E4=BE=86=E6=95=A3=E4=BA=BA = 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: 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? 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