From owner-freebsd-arm@freebsd.org Wed Apr 28 08:02:00 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3AD6162F53F for ; Wed, 28 Apr 2021 08:02:00 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FVWLc1ClGz3syd; Wed, 28 Apr 2021 08:02:00 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from [IPv6:2a02:8011:300b:42:21ef:5743:3ec3:a016] (unknown [IPv6:2a02:8011:300b:42:21ef:5743:3ec3:a016]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: markm) by smtp.freebsd.org (Postfix) with ESMTPSA id A3F2F34B73; Wed, 28 Apr 2021 08:01:59 +0000 (UTC) (envelope-from markm@FreeBSD.org) Content-Type: multipart/signed; boundary="Apple-Mail=_EAC516F5-CFA7-41D5-8574-4FFD2E7B798F"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: I2C/IIC working on RPI4 8GB? From: Mark Murray In-Reply-To: Date: Wed, 28 Apr 2021 09:01:56 +0100 Cc: freebsd-arm Message-Id: <47A634E3-4938-4AFC-9341-E480CEBF67FB@FreeBSD.org> References: <1C2DD11C-B1F6-4C2A-9AB0-5F1553520FF5@FreeBSD.org> <20210426161138.a8f44b6e1134f73a411be57d@bidouilliste.com> To: Mark Millard X-Mailer: Apple Mail (2.3654.60.0.2.21) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2021 08:02:00 -0000 --Apple-Mail=_EAC516F5-CFA7-41D5-8574-4FFD2E7B798F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 27 Apr 2021, at 21:13, Mark Millard wrote: >=20 > Did you try the suggestion in: >=20 > https://lists.freebsd.org/pipermail/freebsd-arm/2021-April/023687.html >=20 > ? It suggests that you need to have the config.txt swap > the the pins in order to undo another swap that happens > at some internal stage. The swapped problem was indicated > to be visible in the dmesg reporting and the manual swap > was reported to cause the dmesg reporting to produce the > correct overall result. I took apart the i2c1.dtbo overlay that mentions pins 2, 3, and swapped = them, and reassembled the overlay. Nope. Same problem. What I have: [root@grasshopper ~]# dmesg | egrep -i 'ds3231|rtc|i2c|iic|time-of-day' iichb0: mem 0x7e804000-0x7e804fff irq 26 = on simplebus0 iicbus0: on iichb0 iic0: on iicbus0 Warning: no time-of-day clock registered, system time will not be set = accurately [root@grasshopper ~]# ls -al /dev | grep iic crw------- 1 root wheel 0x44 Apr 28 08:42 iic0 I have found a PDF document "BCM2711 ARM Peripherals", and it says "The = BSC controller in the BCM2711 fixes the clock-strectching[sic] bug that = was present in BCM283x devices", so I suspect that the device may not be = hardware compatible with the RPI3 and earlier. Time to dig in and hack. M -- Mark R V Murray --Apple-Mail=_EAC516F5-CFA7-41D5-8574-4FFD2E7B798F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 Comment: GPGTools - http://gpgtools.org iQEzBAEBCgAdFiEEyzPHvybPbOpU9MCxQlsJDh9CUqAFAmCJFnQACgkQQlsJDh9C UqAhNgf+NpEZ0WCJM0aaYSSMmFVXwGGNHZtx+RhU1FkJsGSyqetEHpOKMoOa3ZgQ yTJgnPgInh/Li18XLUe7DBEnGtTd6CoIRfbWyp1IlANfJFXybEtBqE2PMlOJ8ekd DcOICA4yx1glm81LkASoQecRGj9xRYZTcOZ0gzCE6Zltr1LcROoIQgIhDW1c7oMj Y3yQu67ixh2KSFU0ZsHBrDZ4gZM13poxRpF39V4aPQyqyDIQgJV8x8nzDbNrpwy+ R8WCd9PyZp1UYpBTmkOQ3o/6bJvQCWj9SjbcXq08HwOcI4bnD4qpHQjBMhdR2F4C rXfIMD8mxwL7oZBp3oGnJVEqce4Z3Q== =RXYl -----END PGP SIGNATURE----- --Apple-Mail=_EAC516F5-CFA7-41D5-8574-4FFD2E7B798F--