i2c on RPi Zero?

Per Hedeland per at hedeland.org
Sat Jan 5 14:48:22 UTC 2019


I did a bit more testing on the Zero to see if the FreeBSD version
mattered:

FreeBSD-12.0-STABLE-arm-armv6-RPI-B-20190103-r342709.img - still no
luck.

FreeBSD-11.2-STABLE-arm-armv6-RPI-B-20190103-r342709.img - works!
(I.e. dmesg reports as below and /dev/iic{0,1} get created - I haven't
tested actual usage beyond having 'i2c -s' report "no devices found".)

I guess that the i2c support hasn't been removed intentionally,
i.e. this seems to be a regression - or is there some additional
config etc required to enable it with FreeBSD-12? The iic and iicbus
drivers appear to be built into the kernel in both 11 and 12.

(I haven't tested FreeBSD-12 on the Pi B, but I would guess that the
result will be the same as on the Zero, since it seems the hardware is
the same.)

--Per Hedeland

On 2019-01-05 12:56, Per Hedeland wrote:
> Hi,
> 
> Is i2c expected to work on Raspberry Pi Zero? I have FreeBSD running
> just fine on it from FreeBSD-12.0-RELEASE-arm-armv6-RPI-B.img, but
> there is no mention of iic at boot (dmesg), and no /dev/iic* - while
> on a Pi B with
> FreeBSD-11.0-STABLE-arm-armv6-RPI-B-20170105-r311441.img (sorry about
> the different versions) I see:
> 
> iichb0: <BCM2708/2835 BSC controller> mem 0x205000-0x20501f on simplebus0
> iicbus0: <OFW I2C bus> on iichb0
> iic0: <I2C generic I/O> on iicbus0
> iichb1: <BCM2708/2835 BSC controller> mem 0x804000-0x80401f on simplebus0
> iicbus1: <OFW I2C bus> on iichb1
> iic1: <I2C generic I/O> on iicbus1
> 
> Also "What works" on
> https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi has just an
> ominous question mark for i2c on Zero...:-)
> 
> Any hints for debugging/testing would be appreciated.
> 
> Thanks
> 
> --Per Hedeland
> _______________________________________________
> 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"



More information about the freebsd-arm mailing list