Discussion on SOC device tree bindings

Segher Boessenkool segher at kernel.crashing.org
Sat Jan 20 03:50:32 EST 2007


> How about linking in _both_ directions?
>
> -The SOC node describes the shared register with links to the
>  the device nodes it is associated with

This provides all the information you need.

> -The device nodes link to the SOC parent shared register node
> (_but_ don't necessarily specify the device index, since that
>  could be determined by looking at the SOC node)

This information, if handy for the kernel to have, can
be trivially constructed at initialisation time by the
kernel itself.

> Doing both provides flexibility in the way the device tree
> is used.

That flexibility is already there if you describe
everything in the controller node.

> The SOC node in a single place describes the
> shared register which conceptually makes sense.

Exactly.


Segher






More information about the Linuxppc-dev mailing list