|
|
Subscribe / Log in / New account

An alternative device-tree source language

An alternative device-tree source language

Posted Aug 10, 2017 9:23 UTC (Thu) by grawity (subscriber, #80596)
Parent article: An alternative device-tree source language

If there was a "dts2yaml" tool, wouldn't that improve the situation a bit without requiring to officially add a new format? Validators could just as easily read from a pipe.


to post comments

An alternative device-tree source language

Posted Aug 10, 2017 11:17 UTC (Thu) by pantoniou (subscriber, #85257) [Link]

There is one, it's a patch for DTC that outputs YAML instead of DTB.

Now this converts the generated output file, it does not do anything about the sources.

Since DTS input is preprocessed and DTC throws away type information while parsing it is hard to do an accurate translation.
Source files are not particularly complicated though, so someone might write a tool that works on a source level and gets most of it right.

Manual inspection will be needed.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds