I2C/IIC working on RPI4 8GB?

Daniel Braniss danny at cs.huji.ac.il
Tue Apr 27 07:27:44 UTC 2021



> On 26 Apr 2021, at 17:06, Emmanuel Vadot <manu at bidouilliste.com> wrote:
> 
> On Sun, 25 Apr 2021 18:41:31 +0300
> Daniel Braniss <danny at cs.huji.ac.il <mailto:danny at cs.huji.ac.il>> wrote:
> 
>> 
>> 
>>> On 25 Apr 2021, at 15:32, Mark Murray <markm at FreeBSD.org> wrote:
>>> 
>>> Hi All,
>>> 
>>> Does anyone here have IIC/I2C working on a CURRENT (I'm running latest) FreeBSD?
>>> 
>>> I've never seen it work; Last time I had working IIC was on an RPI3.
>>> 
>>> There is a /dev/iic0, and I have a known working RTC on it, but the scan just times out:
>>> 
>>> [root at grasshopper ~]# i2c -s
>>> Hardware may not support START/STOP scanning; trying less-reliable read method.
>>> <TIMEOUT>
>>> Scanning I2C devices on /dev/iic0: <none found>
>>> 
>>> 
>>> I suspect something not-quite-right in DTS land, but I lack the knowledge to investigate. I've done some random stumbling around in the dark with overlays and the like, but I've either seen the above error, or a total lack of /dev/iic0.
>>> 
>>> Thanks!
>>> 
>>> M
>>> --
>>> Mark R V Murray
>>> 
>> 
>> Q1: do you see /dev/iic?
>> Q2: i2c -s shows anything?
>> 
>> fianlly, you can try my patch, it works for me, but I understand it?s a five kilo hammer :-)
> 
> RPI doesn't uses twsi so that will not change a thing.
vey true
should read Subject: before answering!
I guess not all i2c/iic are born equal:-)

danny



More information about the freebsd-arm mailing list