Discussion on SOC device tree bindings

Segher Boessenkool segher at kernel.crashing.org
Tue Jan 16 20:07:40 EST 2007


>> The thread started with discussion about the 5200 device tree binding
>> conventions, but has moved to a specific issue.  Now we are talking
>> about how to deal with shared registers.  ie. There are 2 I2C
>> controllers on the 5200, but they share one register.  How is that
>> best represented in the device tree?
>
>   .../i2c-core/i2c-bus at 0
>               /i2c-bus at 1

This describes two i2c buses under one i2c controller;
that's not the same thing.  OTOH, I suspect that's
closer to the real situation.  Grant?

> Or something like that. Make one device that encloses them all.

It's the only way to do it, the shared register can be
in the "reg" property for one device node only.


Segher




More information about the Linuxppc-dev mailing list