dtc: dt-check-style: Add missing /dts-v1/ to few test cases
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 3 Aug 2026 09:03:04 +0000 (11:03 +0200)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 14 Aug 2026 20:43:23 +0000 (15:43 -0500)
The selftest DTS should still look like a real DTS, so it needs
'/dts-v1/' marking.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260803-n-dts-style-checker-continued-v3-1-6c9776928cea@oss.qualcomm.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
scripts/dtc/dt-style-selftest/bad/dts-child-name-order.dts
scripts/dtc/dt-style-selftest/bad/dts-extend-node-child-name-order.dts
scripts/dtc/dt-style-selftest/bad/dts-extend-node-digit-node-order.dts
scripts/dtc/dt-style-selftest/expected/dts-child-name-order.dts.txt
scripts/dtc/dt-style-selftest/expected/dts-extend-node-child-name-order.dts.txt
scripts/dtc/dt-style-selftest/expected/dts-extend-node-digit-node-order.dts.txt
scripts/dtc/dt-style-selftest/good/dts-child-name-order.dts
scripts/dtc/dt-style-selftest/good/dts-digit-node-order.dts
scripts/dtc/dt-style-selftest/good/dts-extend-node-child-name-order.dts
scripts/dtc/dt-style-selftest/good/dts-extend-node-digit-node-order.dts
scripts/dtc/dt-style-selftest/good/soc.dtsi

index 49c5c10..54be9f0 100644 (file)
@@ -1,4 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+/dts-v1/;
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index 575dadd..296c58a 100644 (file)
@@ -1,4 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+/dts-v1/;
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index f3ffc47..813900e 100644 (file)
@@ -1,4 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+/dts-v1/;
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index 86b1de9..e2eea08 100644 (file)
@@ -1,2 +1,2 @@
 # mode=strict
-bad/dts-child-name-order.dts:14: [child-name-order] child node 'bar' out of name order
+bad/dts-child-name-order.dts:16: [child-name-order] child node 'bar' out of name order
index e3d8fd3..b6e74e6 100644 (file)
@@ -1,2 +1,2 @@
 # mode=strict
-bad/dts-extend-node-child-name-order.dts:20: [child-name-order] child node 'bar' out of name order
+bad/dts-extend-node-child-name-order.dts:22: [child-name-order] child node 'bar' out of name order
index 5250818..bf252e4 100644 (file)
@@ -1,2 +1,2 @@
 # mode=strict
-bad/dts-extend-node-digit-node-order.dts:21: [child-address-order] child node @10000 out of address order
+bad/dts-extend-node-digit-node-order.dts:23: [child-address-order] child node @10000 out of address order
index d2a2787..af0adf5 100644 (file)
@@ -1,4 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+/dts-v1/;
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index d2bf586..cdf3f91 100644 (file)
@@ -1,4 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+/dts-v1/;
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index 47fe545..97d4680 100644 (file)
@@ -1,4 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+/dts-v1/;
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index 0c292fe..faf4996 100644 (file)
@@ -1,4 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+/dts-v1/;
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;
index c602744..deec1a9 100644 (file)
@@ -1,4 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+/dts-v1/;
+
 / {
        #address-cells = <1>;
        #size-cells = <1>;