Thread (74 messages) 74 messages, 12 authors, 2008-06-27

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

From: Grant Likely <hidden>
Date: 2008-06-05 15:39:17

On Thu, Jun 5, 2008 at 9:13 AM, Timur Tabi [off-list ref] wrote:
Josh Boyer wrote:
quoted
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.
I think we should just expand the definition of cell-index to include standard
device enumeration for when it's needed.  The original definition is too
limited, IMHO.
nak

if you need explicit indexing then use an alias.  My opinion however
is that explicit indexing is unnecessary and is just an artifact of
current i2c subsystem internals.  There is already enough information
in the device tree to match i2c devices with i2c busses without
resorting to indexes.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help