mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 11:41:29 -04:00
Provide good/ and bad/ DTS and YAML fixtures plus a small runner that feeds them to dt-check-style and diffs the output against expected text files. Wired into a new top-level dt_style_selftest make target so the suite can be exercised independently of the full tree. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Link: https://patch.msgid.link/80fec5d2cfcdee0f9c5e2d4921ebbd4115d392b7.1779908995.git.daniel@makrotopia.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
30 lines
497 B
Plaintext
30 lines
497 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
/*
|
|
* Test fixture: a properly formatted .dts using one-tab indent.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
/ {
|
|
compatible = "example,test-board";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
bus@10000 {
|
|
compatible = "simple-bus";
|
|
reg = <0x10000 0x1000>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
device@100 {
|
|
compatible = "example,test";
|
|
reg = <0x100 0x10>;
|
|
};
|
|
|
|
device@200 {
|
|
compatible = "example,test";
|
|
reg = <0x200 0x10>;
|
|
};
|
|
};
|
|
};
|