[PATCH 06/17] Document the linux,network-index property.

David Gibson david at gibson.dropbear.id.au
Fri Mar 23 14:19:56 EST 2007


On Thu, Mar 22, 2007 at 12:11:45PM +0100, Segher Boessenkool wrote:
> >>> Segher, what is the the 'other alias' mechanism you are referring
> >>> to that should be dropped?  Is it this proposed linux,network-index
> >>> property?  or something else?
> >>
> >> Just the
> >>
> >> 	pic0: pic at 700 {
> >> 		...
> >> 	}
> >>
> >> labeling thing -- it becomes redundant when the flat tree
> >> stuff would support OF-style aliases, so it can be phased
> >> out then.
> >
> > dtc labels are *not* an alias mechanism: they're essentially a
> > compile-time rather than run-time concept
> 
> Sure.  For flat device trees, you can evaluate the OF-style
> aliases at compile time, too.
> 
> > and they can reference
> > properties as well as nodes
> 
> I didn't know this though.  If that's useful (I don't see how
> right now), you want to keep labels I suppose.

They're of no use at present if you compile direct to dtb.  They're
potentially useful, however, if you compile to asm output, because the
labels are transcribed into symbols within the asm.

The idea is intended to be useful for systems where the bootloader has
to do some poking of the device tree, but doesn't need to change the
size of any properties.  In that case the bootloader can do all the
necessary fixups on the tree without *any* understanding of the flat
tree structure.  It simply links in the device tree structure, and
symbols within it reference all the necessary points for adjustment.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the Linuxppc-dev mailing list