Date: Sat, 1 May 2021 17:38:55 +0200 From: Emmanuel Vadot <manu@bidouilliste.com> To: Mark Millard <marklmi@yahoo.com> Cc: Mark Millard via freebsd-arm <freebsd-arm@freebsd.org>, Mark Murray <markm@freebsd.org> Subject: Re: I2C/IIC working on RPI4 8GB? Message-ID: <20210501173855.f3069fe9cbe2d10759cb871c@bidouilliste.com> In-Reply-To: <D205D9F9-8A4D-433B-9AAA-8904850AF787@yahoo.com> 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> <486E3EA3-EBAE-492E-B12E-E72E3E3E7B6A@FreeBSD.org> <A10EA46D-6FE5-4FCD-895C-5A08A974D6DB@yahoo.com> <E9098242-5ED4-401B-9D46-E11A214A0E2F@FreeBSD.org> <F38325DB-DC0E-44F8-A256-A5D6A23925D0@googlemail.com> <501CB1C0-73D4-4BEF-A1E6-1F13C02EFA42@FreeBSD.org> <D205D9F9-8A4D-433B-9AAA-8904850AF787@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 1 May 2021 08:31:37 -0700 Mark Millard via freebsd-arm <freebsd-arm@freebsd.org> wrote: >=20 >=20 > On 2021-May-1, at 04:48, Mark Murray <markm at freebsd.org> wrote: >=20 > > On 30 Apr 2021, at 15:22, Klaus K=FCchemann <maciphone2 at googlemail.c= om> wrote: > >>=20 > >>=20 > >> yet another useful document(at least that's what I hope to fix your us= ecase) : > >>=20 > >> https://www.raspberrypi.org/documentation/configuration/config-txt/gpi= o.md > >=20 > > BINGO!! > >=20 > > I added > >=20 > > gpio=3D2,3=3Da0 > >=20 > > to my config.txt file and after a reboot, > >=20 > > # i2c -f /dev/iic0 -s worked! >=20 >=20 > Cool. >=20 > But it leaves me wondering what the FreeBSD equivalent > for setting the mode of those 2 gpio's to a0 (or other > alternatives) is supposed to look like (even if such > code would not work as things are in the implementation). >=20 > (But, for me, it is idle wondering.) >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" This is supposed to be done by bcm2835_gpio See https://cgit.freebsd.org/src/tree/sys/arm/broadcom/bcm2835/bcm2835_gpio.c#n= 805 --=20 Emmanuel Vadot <manu@bidouilliste.com> <manu@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210501173855.f3069fe9cbe2d10759cb871c>