"cell-index" vs. "index" vs. no index in I2C device nodes

Sean MacLennan smaclennan at pikatech.com
Thu Jun 5 12:54:32 EST 2008


On Wed, 4 Jun 2008 21:19:42 -0500
"Josh Boyer" <jwboyer at linux.vnet.ibm.com> wrote:

> From a device tree perspective, index and cell-index are both
> incorrect.  The IIC macros don't share register blocks with anything,
> are enumerated as unique instances per macro in the device tree, and
> should be able to be distinguished by "regs" and/or unit address.

So say I have an i2c bus and I want to call i2c_get_adapter.
Would I have to know the register address of the i2c bus to lookup the
adapter?

Or would they have aliases like serial ports do?

Cheers,
   Sean



More information about the Linuxppc-dev mailing list