From owner-freebsd-arm@freebsd.org Thu Apr 29 16:57:48 2021 Return-Path: <owner-freebsd-arm@freebsd.org> 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 5C8D6630E39 for <freebsd-arm@mailman.nyi.freebsd.org>; Thu, 29 Apr 2021 16:57:48 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4FWMBN29v8z4rrS; Thu, 29 Apr 2021 16:57:48 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from smtpclient.apple (unknown [IPv6:2a02:8011:300b:42:3408:71af:240d:3a03]) (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 C9D75B649; Thu, 29 Apr 2021 16:57:47 +0000 (UTC) (envelope-from markm@FreeBSD.org) Content-Type: multipart/signed; boundary="Apple-Mail=_6FBCB885-E909-4981-8E38-8D5565FBAEE2"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: I2C/IIC working on RPI4 8GB? From: Mark Murray <markm@FreeBSD.org> In-Reply-To: <ED9ABBBE-9B5A-4B51-806C-F91AABE39731@FreeBSD.org> Date: Thu, 29 Apr 2021 17:57:45 +0100 Cc: freebsd-arm <freebsd-arm@freebsd.org> Message-Id: <486E3EA3-EBAE-492E-B12E-E72E3E3E7B6A@FreeBSD.org> References: <1C2DD11C-B1F6-4C2A-9AB0-5F1553520FF5@FreeBSD.org> <20210426161138.a8f44b6e1134f73a411be57d@bidouilliste.com> <CF4C4332-BB2F-47E9-B879-8EEA0E53E848@FreeBSD.org> <C4828BF2-E8B7-45D1-B0F8-5E72AF84D565@yahoo.com> <47A634E3-4938-4AFC-9341-E480CEBF67FB@FreeBSD.org> <20210428101945.67417ef8eba251dcbcb38078@bidouilliste.com> <ED9ABBBE-9B5A-4B51-806C-F91AABE39731@FreeBSD.org> To: Emmanuel Vadot <manu@bidouilliste.com> X-Mailer: Apple Mail (2.3654.80.0.2.43) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors <freebsd-arm.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-arm>, <mailto:freebsd-arm-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arm/> List-Post: <mailto:freebsd-arm@freebsd.org> List-Help: <mailto:freebsd-arm-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-arm>, <mailto:freebsd-arm-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 29 Apr 2021 16:57:48 -0000 --Apple-Mail=_6FBCB885-E909-4981-8E38-8D5565FBAEE2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 28 Apr 2021, at 22:07, Mark Murray <markm@FreeBSD.org> wrote: >=20 > On 28 Apr 2021, at 09:19, Emmanuel Vadot <manu@bidouilliste.com> = wrote: >=20 >> According to this document is this just to detect that the slave hold >> the scl line too long so I don't think that this is the problem here. >> If you have a scope or a logic analyzer I suggest you start by using >> it to confirm that when you scan with i2c -s you see something. >=20 > As it turns out, my logic analyser arrived today. I got an oscilloscope onto pins 3 and 5 (GPIO2 and GPIO3), and "i2c -s" = does not a jot on them. I don't know if this helps, but the gpioctl utility thinks the pins are = both inputs: [root@grasshopper ~]# gpioctl -f /dev/gpioc0 -l -v pin 00: 1 pin 0<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 01: 1 pin 1<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 02: 1 pin 2<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 03: 1 pin 3<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 04: 1 pin 4<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 05: 1 pin 5<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 06: 1 pin 6<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 07: 0 pin 7<OUT>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 08: 0 pin 8<OUT>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 09: 0 pin 9<>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 10: 0 pin 10<>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 11: 0 pin 11<>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 12: 0 pin 12<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 13: 0 pin 13<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 14: 1 pin 14<>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 15: 1 pin 15<>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 16: 0 pin 16<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 17: 0 pin 17<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 18: 0 pin 18<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 19: 0 pin 19<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 20: 0 pin 20<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 21: 0 pin 21<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 22: 0 pin 22<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 23: 0 pin 23<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 24: 0 pin 24<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 25: 0 pin 25<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 26: 0 pin 26<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 27: 0 pin 27<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 28: 1 pin 28<>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 29: 0 pin 29<>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 30: 1 pin 30<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 31: 1 pin 31<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 32: 0 pin 32<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 33: 0 pin 33<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 34: 1 pin 34<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 35: 1 pin 35<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 36: 1 pin 36<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 37: 1 pin 37<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 38: 1 pin 38<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 39: 1 pin 39<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 40: 0 pin 40<>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 41: 0 pin 41<>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 42: 0 pin 42<OUT>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 43: 1 pin 43<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 44: 1 pin 44<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 45: 1 pin 45<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 46: 0 pin 46<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 47: 0 pin 47<IN>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 48: 0 pin 48<>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 49: 0 pin 49<PU>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 50: 0 pin 50<PU>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 51: 0 pin 51<PU>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 52: 0 pin 52<PU>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> pin 53: 0 pin 53<PU>, = caps:<IN,OUT,PU,PD,INTRLL,INTRLH,INTRER,INTREF,INTREB> M -- Mark R V Murray --Apple-Mail=_6FBCB885-E909-4981-8E38-8D5565FBAEE2 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 iQEzBAEBCgAdFiEEyzPHvybPbOpU9MCxQlsJDh9CUqAFAmCK5YkACgkQQlsJDh9C UqDQcwf/SKiDCZTtmgBeh1akp4DOa8saukn4J3vzFngKDzYF9p8Fcw8uXj8EoZ79 2PaQsky/59/1mfCTJs4rtecBKzUI2pck+znEade0VMTmd1naORRZqQ1cQrkzDXIL Rla1skARaakTJPttyFu7LJfoXBX9P5Jtx4YK8Itn6eVM9zxMy8RVG6nGaK407vCe f6eP+iS/FkIsrLld4zqsvnupEh+zB8kpYP+5oV2oEHq35s7C19q8jmbicmf9tRm2 6mtRFlUKTyatcf5r43Ks4/2tDwuMMgPpcjJ/CC4uClktDSreof9V8ZAkBljeWER0 56ThIobEe9QIYmUgHd9S82qCWa0u/Q== =q5T2 -----END PGP SIGNATURE----- --Apple-Mail=_6FBCB885-E909-4981-8E38-8D5565FBAEE2--