I2C/IIC working on RPI4 8GB?
Emmanuel Vadot
manu at bidouilliste.com
Sat May 1 15:38:59 UTC 2021
On Sat, 1 May 2021 08:31:37 -0700
Mark Millard via freebsd-arm <freebsd-arm at freebsd.org> wrote:
>
>
> On 2021-May-1, at 04:48, Mark Murray <markm at freebsd.org> wrote:
>
> > On 30 Apr 2021, at 15:22, Klaus Küchemann <maciphone2 at googlemail.com> wrote:
> >>
> >>
> >> yet another useful document(at least that's what I hope to fix your usecase) :
> >>
> >> https://www.raspberrypi.org/documentation/configuration/config-txt/gpio.md
> >
> > BINGO!!
> >
> > I added
> >
> > gpio=2,3=a0
> >
> > to my config.txt file and after a reboot,
> >
> > # 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.)
>
> ===
> Mark Millard
> marklmi at yahoo.com
> ( dsl-only.net went
> away in early 2018-Mar)
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at 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#n805
--
Emmanuel Vadot <manu at bidouilliste.com> <manu at FreeBSD.org>
More information about the freebsd-arm
mailing list