I've refactored the patch to preserve datatype information when parsing the dts format, and reproducing it when emitting .dts source. I did this as part of working with a YAML encoding, but the change is independently useful when round tripping through DTC. All of the existing test cases continue to pass. You can see an example of a DTC round trip using one of the test .dts files: $ dtc -o tests/test01-roundtrip.dts tests/test01.dts $ diff tests/test01.dts tests/test01-roundtrip.dts I've got another patch that builds on this to emit YAML. You can find it in my github tree at https://github.com/glikely/dtc if you're interested. data.c | 4 +- dtc-parser.y | 15 ++-- dtc.h | 8 ++ treesource.c | 227 +++++++++++++++++++++++++++++++-------------------------- 4 files changed, 145 insertions(+), 109 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html