summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/writing-schema.rst
diff options
context:
space:
mode:
authorHugo Villeneuve <hvilleneuve@dimonoff.com>2023-10-02 21:38:12 +0300
committerRob Herring <robh@kernel.org>2023-10-04 16:54:43 +0300
commit00d589ace5f4edae7d5e5e5d0727196c8d681363 (patch)
tree0de0455d3a7cb9e6675daf08cce21ae0b6f4ebf2 /Documentation/devicetree/bindings/writing-schema.rst
parent482b9626b95c4f8e5f7f3a9054b496eec4edc8fe (diff)
downloadlinux-00d589ace5f4edae7d5e5e5d0727196c8d681363.tar.xz
dt-bindings: writing-schema: add example for multiple DT_SCHEMA_FILES
Variable DT_SCHEMA_FILES can specify multiple files or patterns, but the documentation does not indicate how to do it. Each entry needs to be separated by a column symbol ':'. Add an example to make it more obvious how to specify multiple DT_SCHEMA_FILES. Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Link: https://lore.kernel.org/r/20231002183813.1702052-1-hugo@hugovil.com Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/writing-schema.rst')
-rw-r--r--Documentation/devicetree/bindings/writing-schema.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/writing-schema.rst b/Documentation/devicetree/bindings/writing-schema.rst
index 4a381d20f2b4..0a6cf19a1459 100644
--- a/Documentation/devicetree/bindings/writing-schema.rst
+++ b/Documentation/devicetree/bindings/writing-schema.rst
@@ -159,11 +159,14 @@ It is possible to run both in a single command::
make dt_binding_check dtbs_check
It is also possible to run checks with a subset of matching schema files by
-setting the ``DT_SCHEMA_FILES`` variable to a specific schema file or pattern.
+setting the ``DT_SCHEMA_FILES`` variable to 1 or more specific schema files or
+patterns (partial match of a fixed string). Each file or pattern should be
+separated by ':'.
::
make dt_binding_check DT_SCHEMA_FILES=trivial-devices.yaml
+ make dt_binding_check DT_SCHEMA_FILES=trivial-devices.yaml:rtc.yaml
make dt_binding_check DT_SCHEMA_FILES=/gpio/
make dtbs_check DT_SCHEMA_FILES=trivial-devices.yaml