Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 May 2021 08:31:37 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Mark Murray <markm@freebsd.org>
Cc:        =?utf-8?Q?Klaus_K=C3=BCchemann?= <maciphone2@googlemail.com>, freebsd-arm@freebsd.org
Subject:   Re: I2C/IIC working on RPI4 8GB?
Message-ID:  <D205D9F9-8A4D-433B-9AAA-8904850AF787@yahoo.com>
In-Reply-To: <501CB1C0-73D4-4BEF-A1E6-1F13C02EFA42@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> <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>

next in thread | previous in thread | raw e-mail | index | archive | help


On 2021-May-1, at 04:48, Mark Murray <markm at freebsd.org> wrote:

> On 30 Apr 2021, at 15:22, Klaus K=C3=BCchemann <maciphone2 at =
googlemail.com> wrote:
>>=20
>>=20
>> yet another useful document(at least that's what I hope to fix your =
usecase) :
>>=20
>> =
https://www.raspberrypi.org/documentation/configuration/config-txt/gpio.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!


Cool.

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).

(But, for me, it is idle wondering.)

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D205D9F9-8A4D-433B-9AAA-8904850AF787>