[PATCH 0/2] dt-check-style support for indented include fragments

From: Sven Peter

Date: Sun Aug 30 2026 - 14:25:27 EST


Hi,

Some .dtsi files are included from inside a node and carry the
indentation of that context. This is e.g. used for the multi-die
Apple SoCs and dt-check-style currently interprets that as part
of the indent unit and reports spurious warnings for otherwise
correctly indented Apple and Broadcom fragments.

Teach indent-unit-dts to detect and validate the inherited prefix and
make indent-consistent account for it as well. Also add fixtures to
test this.

With this all arm64 device trees pass the relaxed checks.

Best,

Sven

Signed-off-by: Sven Peter <sven@xxxxxxxxxx>
---
Sven Peter (2):
dt-check-style: Handle indented fragments in indent-unit-dts
dt-check-style: Handle indented fragments in indent-consistent

scripts/dtc/dt-check-style | 72 +++++++++++++++++-----
.../dt-style-selftest/bad/dts-fragment-indent.dtsi | 12 ++++
.../bad/dts-fragment-missing-prefix.dtsi | 6 ++
.../bad/dts-indented-ref-node.dtsi | 6 ++
.../expected/dts-fragment-indent.dtsi.txt | 3 +
.../expected/dts-fragment-missing-prefix.dtsi.txt | 2 +
.../expected/dts-indented-ref-node.dtsi.txt | 2 +
.../dtc/dt-style-selftest/good/dts-fragment.dtsi | 19 ++++++
8 files changed, 106 insertions(+), 16 deletions(-)
---
base-commit: a23cbb05744b22719efdc34f9e329a120e81e617
change-id: 20260830-b4-dts-check-fix-db992ba0a7dd

Best regards,
--
Sven Peter <sven@xxxxxxxxxx>