[PATCH 0/9] dtc: dt-check-style: Improvements for false positives
From: Krzysztof Kozlowski
Date: Sun Jul 26 2026 - 11:47:50 EST
Few improvements and proper handling of top-level node (name, not unit
address sorting) and property (model before compatible) sorting.
Best regards,
Krzysztof
---
Krzysztof Kozlowski (9):
dtc: dt-check-style: Add missing /dts-v1/ to few test cases
dtc: dt-check-style: Simplify setting depth of DtsLine
dtc: dt-check-style: Handle root node in overlays
dtc: dt-check-style: Handle sorting of top-level nodes and properties
dtc: dt-check-style: Drop stray backslash before quote for continuation-alignment
dtc: dt-check-style: Fix alignment of values in continued property lines
dtc: dt-check-style: Consistently call 'kind' as 'file_type'
dtc: dt-check-style: Introduce 'stricter' mode
MAINTAINERS: dt-bindings: Include dt-check-style in DT binding entry
MAINTAINERS | 2 +
scripts/dtc/dt-check-style | 151 +++++++++++++--------
.../dt-style-selftest/bad/dts-child-name-order.dts | 2 +
.../dtc/dt-style-selftest/bad/dts-cont-align.dts | 23 ++++
.../{good => bad}/dts-digit-node-order.dts | 15 +-
.../bad/dts-extend-node-child-name-order.dts | 2 +
.../bad/dts-extend-node-digit-node-order.dts | 2 +
.../dtc/dt-style-selftest/bad/dts-line-length.dts | 21 +++
.../dt-style-selftest/bad/dts-property-order.dts | 5 +
...-property-order.dts => dts-property-order.dtso} | 8 +-
.../dtc/dt-style-selftest/bad/dts-unused-label.dts | 21 +++
.../dtc/dt-style-selftest/bad/yaml-cont-align.yaml | 4 +-
.../expected/dts-child-name-order.dts.txt | 2 +-
.../expected/dts-cont-align.dts.txt | 8 ++
.../expected/dts-digit-node-order.dts.txt | 2 +
.../dts-extend-node-child-name-order.dts.txt | 2 +-
.../dts-extend-node-digit-node-order.dts.txt | 2 +-
.../expected/dts-line-length.dts.txt | 2 +
.../expected/dts-property-order.dts.txt | 12 +-
.../expected/dts-property-order.dtso.txt | 8 ++
.../expected/dts-unused-label.dts.txt | 2 +
.../expected/yaml-cont-align.yaml.txt | 3 +-
.../expected/yaml-value-ws-multiline.yaml.txt | 1 +
.../good/dts-child-name-order.dts | 2 +
.../dtc/dt-style-selftest/good/dts-cont-align.dts | 11 +-
.../good/dts-digit-node-order.dts | 5 +-
.../good/dts-extend-node-child-name-order.dts | 2 +
.../good/dts-extend-node-digit-node-order.dts | 2 +
.../dt-style-selftest/good/dts-property-order.dts | 5 +
scripts/dtc/dt-style-selftest/good/soc.dtsi | 2 +
.../{bad => good}/yaml-cont-align.yaml | 8 +-
31 files changed, 254 insertions(+), 83 deletions(-)
---
base-commit: be3b57e0fa77f8a1c8e6ebea5cf62ab71453ef54
change-id: 20260726-n-dts-style-checker-continued-b6a05e278891
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>