"cell-index" vs. "index" vs. no index in I2C device nodes
Grant Likely
grant.likely at secretlab.ca
Fri Jun 6 02:30:19 EST 2008
On Thu, Jun 5, 2008 at 10:22 AM, Jochen Friedrich <jochen at scram.de> wrote:
> Hi Timur,
>
>> It's a little late for that. I'm okay with coming up with a new property to
>> provide system-level indexing, but it needs to be the same property name for
>> each type of device. I don't want linux,i2c-index and linux,dma-index and
>> linux,ssi-index, etc. I also don't understand why we need the linux, prefix,
>> since device enumeration is not specific to Linux.
>
> Full ACK here.
NAK because there is already a mechanism that does what you want. Its
called the aliases node.
For the record, I'm making 2 arguments here:
1) if you *do* need an enumerated index then use the aliases node.
You don't need to invent a new property
2) for i2c purposes, explicit enumeration is not needed or desired.
All the necessary data is already present in the device tree in that
i2c device nodes are children of i2c bus nodes. The i2c bus numbers
should be dynamically assigned.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
More information about the Linuxppc-dev
mailing list