How complete should the DTS be?

David Gibson david at
Thu Jan 10 17:02:45 EST 2008

On Thu, Jan 10, 2008 at 12:53:57AM -0500, Sean MacLennan wrote:
> David Gibson wrote:
> > Hrm... I'd say this is not something which has a firm convention yet.
> > It's going to become more of an issue once we get a macros system for
> > dtc, so the "440EP" macro would have all the devices, even if some are
> > not connected on a given board.
> >
> > I'm contemplating suggesting that we adopt the "status" property from
> > IEEE1275 to cover this.
> >
> >   
> When I am laying out the dts, leaving out what isn't used makes the dts 
> file cleaner, at least in my view. It doesn't hurt to have the second 
> i2c bus there, but it also doesn't help and leaving it out points out 
> that it is not used.
> When we get a macro system I assume the second i2c bus will be there but 
> hidden by a macro. It will still be clean and shouldn't cause grief.

Right, but if it is there we'll want to mark it as unused in some way
so that the kernel doesn't waste resources attempting to drive it.

David Gibson			| I'll have my music baroque, and my code
david AT	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!

More information about the Linuxppc-dev mailing list