Skip to content

dt-bindings: DTB based validation

Rob Herring linux-devicetree lkml 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 13 repliesSuperseded

Changes in v2 from the cover letter

- Drop processed-schema.json dependency when building 'dtbs'
- Don't allow override of DT_TMP_SCHEMA

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2dt-bindings: kbuild: Pass DT_SCHEMA_FILES to dt-validateDocumentation/devicetree/bindings/Makefile scripts/Makefile.lib+5 -281 reply
2/2dt-bindings: kbuild: Use DTB files for validationDocumentation/devicetree/bindings/Makefile Documentation/devicetree/bindings/writing-schema.rst scripts/Makefile.lib +2 more+11 -430 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] dt-bindings: DTB based validation

This series switches the kernel's DT schema validation from YAML encoded DT files to using DTB files directly. See patch 2 for the full reasoning of why. The diffstat also shows this is a nice simplification (at least from the kernel side). Patch 1 is further reworking of how DT_SCHEMA_FILES works and builds on [1].

Overall, the build time is about the same (still slow) though we do save a dtc call for dtbs_check. Extracting the type information is not cached in any way, so there's some opportunity for a slight optimization there.

Switching to DTB validation found various issues in the bindings and examples. Patches for those issues have already been posted and applied over the last month or so.

v2:
- Drop processed-schema.json dependency when building 'dtbs'
- Don't allow override of DT_TMP_SCHEMA

Rob

[1] https://lore.kernel.org/all/[email protected]/

Rob Herring (2):
dt-bindings: kbuild: Pass DT_SCHEMA_FILES to dt-validate
dt-bindings: kbuild: Use DTB files for validation

 Documentation/devicetree/bindings/Makefile    | 35 ++++---------------
 .../devicetree/bindings/writing-schema.rst    | 12 -------
 scripts/Makefile.lib                          | 25 +++++--------
 scripts/dtc/Makefile                          | 13 -------
 scripts/dtc/update-dtc-source.sh              |  2 +-
 5 files changed, 16 insertions(+), 71 deletions(-)
Signature · 1 line
2.32.0