dtc: Add program to convert dts files from v0 to v1

David Gibson david at gibson.dropbear.id.au
Tue May 20 13:02:35 EST 2008

On Mon, May 19, 2008 at 09:23:02PM -0500, Jon Loeliger wrote:
> > This patch adds a new utility program, convert-dtsv0, to the dtc
> > sources.  This program will convert dts files from v0 to v1,
> > preserving comments and spacing.  It also includes some heuristics to
> > guess an appropriate base to use in the v1 output (so it will use hex
> > for the contents of reg properties and decimal for clock-frequency
> > properties, for example).  They're limited and imperfect, but not
> > terrible.
> > 
> > The guts of the converter program is a modified version of the lexer
> > from dtc itself.
> > 
> > Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
> Applied.
> For the record, I'd like to eventually retire this program
> as well as support for /dts-v0/.

Noted.  I think having this program available will help speed up the
arrival of the day we can do that, though.

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_!

More information about the Linuxppc-dev mailing list