From nobody Sun Dec 08 03:40:54 2024 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 4Y5W4V2MmFz5fyVL for ; Sun, 08 Dec 2024 03:41:14 +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]) by mx1.freebsd.org (Postfix) with ESMTP id 4Y5W4T64VPz4sfN for ; Sun, 8 Dec 2024 03:41:13 +0000 (UTC) (envelope-from darius@dons.net.au) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2403:580d:ae98:0:1d3:8d36:7882:e071]) by midget.dons.net.au (Postfix) with ESMTPSA id 4B1FA74F97C; Sun, 08 Dec 2024 14:11:05 +1030 (ACDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dons.net.au; s=default; t=1733629267; bh=pOeK9ThzDksMGfRtlEIxtq/5YCu7M6ffMcrYXyUBM9o=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=ecoFngCMl8G5w3ObXqyLfd2X+Mo94ORyonYiK6xzmBQiI8FMeioQbD0N3E3r0caJ0 9Na2AtiUSzuyAhBL7w7h+fZu/UMQZ89ymzanBc/eDJvikYyEdX1zD6CuYw4ZH68YZu OPlwbd/HoS6dgmEBipfxVe7UVIUyl3AhPZZa8fraoIQnj8u2WAcXGfOemFnjSaMZyr b2r3726OfiN5RuFRh1hIQdx51TOlSfbYaUdlSq7gvXKGxnOEhe6TdYvouHCSBAepJd fN6gFNcmpMU1Urp9ntwna+C7coYgxMOq0su1SH/KGPMir4pr5gapJzW/nEhGhojD5y aBZRX8S17jIlg== 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 \(3826.200.121\)) Subject: Re: DS1307 on rpi4B From: Daniel O'Connor In-Reply-To: Date: Sun, 8 Dec 2024 14:10:54 +1030 Cc: FreeBSD ARM List Content-Transfer-Encoding: quoted-printable Message-Id: References: <431FB386-F515-4D77-A855-18055A48E432@dons.net.au> To: =?utf-8?B?6aKo5L6G5pWj5Lq6?= X-Mailer: Apple Mail (2.3826.200.121) X-Rspamd-Action: no action X-Rspamd-Server: midget.dons.net.au X-Spam-Status: No, score=-1.10 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: 4Y5W4T64VPz4sfN X-Spamd-Bar: ---- Hi, > On 8 Dec 2024, at 12:35, =E9=A2=A8=E4=BE=86=E6=95=A3=E4=BA=BA = wrote: > I modified config.txt to load this dtbo and add one more line to set = GPIO pins in [pi4] >=20 > gpio=3D12,13=3Da5,pu >=20 > This works fine and RTC starts working. One strange thing is that = "gpioctl -l -v" doesn't show correct pin setting somehow. I assumed = there should be PU on pin 12 and 13. >=20 > pin 12: 1 pin 12<>, = caps: > pin 13: 1 pin 13<>, = caps: Strange - I don't know if the pull ups on the SoC are suitable for I2C. = The modules I have used have pull ups as real resistors - in internal = pull-ups on SoCs tend to have a pretty broad range due to the way they = are fabricated. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum