Date: Sat, 5 Jan 2019 15:32:07 +0100 From: Per Hedeland <per@hedeland.org> To: freebsd-arm@freebsd.org Subject: Re: i2c on RPi Zero? Message-ID: <dc9441e2-9858-989e-a135-3ae37de0925b@hedeland.org> In-Reply-To: <229e0d36-a07b-8551-9613-0bf5748352e7@hedeland.org> References: <229e0d36-a07b-8551-9613-0bf5748352e7@hedeland.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dc9441e2-9858-989e-a135-3ae37de0925b>