Re: I2C/IIC working on RPI4 8GB?
Emmanuel Vadot <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 1 May 2021 08:31:37 -0700 Mark Millard via freebsd-arm <[email protected]> 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) > > _______________________________________________ > [email protected] mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "[email protected]" 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 <[email protected]> <[email protected]> _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubscribe, send any mail to "[email protected]"