dt-schema

Tooling for devicetree validation using YAML and jsonschema

Description

This package contains test code for devicetree schema validation using the json-schema vocabulary. Schema files are written in YAML (a superset of JSON), and operate on the YAML encoding of Devicetree data. Devicetree data must be transcoded from DTS to YAML before being used by this tool.

There are several tools available:

dt-doc-validate This tool takes a schema file(s) or directory of schema files and validates them against the DT meta-schema.

dt-mk-schema This tool takes user-provided schema file(s) plus the core schema files in this repo, removes everything not needed for validation, applies fix-ups to the schemas, and outputs a single file with the processed schema. This step is done separately to speed up subsequent validation of YAML Devicetrees.

dt-validate This tool takes user-provided YAML Devicetree(s) and either a schema directory or pre-processed schema file and validates the YAML Devicetree against the schema.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://www.devicetree.org


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install dt-schema