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

Josh Boyer jwboyer at linux.vnet.ibm.com
Fri Jun 6 02:21:22 EST 2008


On Thu, 05 Jun 2008 11:13:23 -0500
Timur Tabi <timur at freescale.com> wrote:

> Grant Likely wrote:
> 
> > That is still Linux internal artifacts leaking out.  Don't encode that
> > data into the device tree.
> 
> The I2C bus number is *not* an internal artifact.  On Freescale parts, the one
> I2C adapter is specifically designated I2C1, and the 2nd one is specifically
> designated I2C2.  This is part of the silicon, and so the device tree should
> specify it.

And it does.  It does so by the unique "regs" properties and
unit-names.  You can assign the index that the i2c subsystem needs
based on probe order, like I already said.

I don't know why Jean doesn't like that.  It's not a made up number.

josh



More information about the Linuxppc-dev mailing list