Re: FreeBSD 14, RPI CM3+ - how to use I2C?

From: Daniel Braniss <danny_at_cs.huji.ac.il>
Date: Wed, 27 Sep 2023 08:32:20 UTC
hi,
is there a similar solution for allwinner i2c(twsi)?
cheers,
	danny


> On 21 Sep 2023, at 16:50, Emmanuel Vadot <manu@bidouilliste.com> wrote:
> 
> On Thu, 21 Sep 2023 15:09:45 +0200
> "Patrick M. Hausen" <pmh@hausen.com <mailto:pmh@hausen.com>> wrote:
> 
>> Hi,
>> 
>>> Am 21.09.2023 um 14:10 schrieb Patrick M. Hausen <pmh@hausen.com>:
>>> dtoverlay=i2c1,pins_44_45
>>> dtoverlay=i2c-rtc,mcp7940x
>>> 
>>> Source: https://docs.turingpi.com/docs/turing-pi1-cluster-management-bus-i2c
>>> 
>>> Did that, but
>>> 
>>> i2c -s
>>> 
>>> shows now output [...]
>> 
>> Turns out the FreeBSD installation does not come with all (?) overlays
>> by default like e.g. Ubuntu.
>> 
>> I downloaded the two missing files from here:
>> 
>> https://github.com/raspberrypi/firmware
>> 
>> and placed them in /boot/efi/overlays.
> 
> We don't install them all on the image but everything is packaged in
> the rpi-firmware package.
> 
>> Bingo:
>> 
>> root@pi1:~ # i2c -s
>> 57 5c
>> root@pi1:~ # i2c -a 0x57 -o 0xf2 -d r -c 1
>> ff
>> 
>> Now I finally understand what all of this weird stuff *is* - sort of ;-)
>> 
>> Kind regards,
>> Patrick
> 
> 
> -- 
> Emmanuel Vadot <manu@bidouilliste.com <mailto:manu@bidouilliste.com>> <manu@freebsd.org <mailto:manu@freebsd.org>>