[PATCH 0/5] Improve output type formatting

Rob Herring
2021-05-26T01:03:30Z

This series improves maintaining type information in the output of dtc
from sources without any type annotations such as dtb format. It also
makes the output formatting less dependent on the input source
bracketing. As there's already a bunch of type information in the
checks, we simply need to have the checks add markers.

This is needed in part to be able to run DT schema validation on dtb
files. I also plan to use the schema files to provide type information
for all the properties not covered by the dtc checks. Why not do this
for all the properties? It's possible, but it wouldn't be possible with
just pure schema. The phandle+args patterns with variable cells would
need to recreate the same parsing code.

Rob

Rob Herring (5):
yamltree: Remove marker ordering dependency
checks: Add check_is_cell() for all phandle+arg properties
checks: Drop interrupt_cells_is_cell check
checks: Add markers on known properties
dtc: Drop dts source restriction for yaml output

checks.c | 96 ++++++++++++++++++++++++++++++++++++----------
dtc.c | 2 -
tests/run_tests.sh | 4 +-
yamltree.c | 16 ++++----
4 files changed, 86 insertions(+), 32 deletions(-)

--
2.27.0