linux/scripts/dtc/dt-style-selftest/good/dts-preprocessor.dts
Krzysztof Kozlowski 29a91b7593 dtc: dt-check-style: Handle properly DTC-style includes
dt-check-style was not properly handling DTC directives (starting with
'/', e.g. /dts-v1/ or /include/), thus a few DTS files had false
positive like:

  apm/apm-merlin.dts:1: [indent-unit-dts] indent unit must be 1 tab in DTS, got '\t\t'

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260709-dts-style-checker-v5-5-fcc147cb697d@oss.qualcomm.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
2026-07-20 15:50:57 -05:00

22 lines
316 B
Plaintext

// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
/*
* Test fixture: preprocessor directive
*/
/dts-v1/;
#include "soc.dtsi"
#include<dt-bindings/gpio/gpio.h>
/ {
compatible = "example,test-board";
#address-cells = <1>;
#size-cells = <1>;
leds {
led-0 {
compatible = "example,led";
};
};
};