On Sun, 2016-06-19 at 11:36 -0700, Lundberg, Johannes wrote:
> I am trying to figure out how to get I2C support on Intel Atom x5
> (Cherryview), which should be same for Baytrail platforms.
> On the Serial I/O device (PCI device 24) there are 8 devices.
> #0 is DMA controller
> #1-7 are I2C controllers (1 & 2 available on GPIO pins).
> I assume that all traffic to/from the I2C controllers must go via the
> controller although I'm not 100% sure.
> In page 23 in the atom-z8000-datasheet-vol-2 there is a nice table of
> PCI configuration space.
> On Linux they have
> that takes care of the I2C and DMA parts.
> The ichiic (ig4) driver seems to be working on this platform and
> through the registers it seems to be basically the same as i2c
> driver, but it doesn't not detect any devices on the I2C bus
> (I have confirmed that the devices are recognized on Linux on the
There is no way to automatically detect devices on an i2c bus. You
can, with some incomplete success, detect which addresses are in use.
Even when you can detect there is a device at a given address, there
is no way to figure out what that device is (and in some rare cases,
even probing for the address being in use can perturb the device).
So, in the linux case, something must be telling the OS which drivers
to attach to which addresses. I have no idea what that mechanism might
be, if it's not FDT.
In freebsd, you can specify i2c devices using FDT data, or hints.
> We also need a Mailbox (IOSF-SB MBI) driver and it is quite simple so
> have already ported this.
> What is left to do I guess would be to implement a DMA driver that
> with ig4 or create a new ig4 driver that is extended to use the DMA
> controller, and implement the DMA controller driver.
> Implementing from scratch would be quite the undertaking. Can we
> any existing DMA infrastructure for this?
> Any one interested in helping?
> I have a board called "UP" which is very similar to Raspberry Pi but
> SoC. It has IC20 and IC21 available on the 40-pin connector.
> Since it's Intel most stuff just works. Thanks to mmacy accelerated
> graphics is also working (on separate branch).
> It really is a great board for anyone who likes to tinker :)
> Other TODO stuff:
> Port Imer's GPIO driver from DragonFly
> Add support for S0ix sleep states (would be useful for all new Intel
> power laptops since Haswell)
> And more...
email@example.com mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"