xref: /linux/scripts/dtc/dt-style-selftest/good/yaml-4space.yaml (revision 9611c0ce215a66770ccbe5c126bf57ba8c31bcad)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/test-good-4space.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Test fixture for dt-check-style
8
9maintainers:
10  - Test User <test@example.com>
11
12properties:
13  compatible:
14    const: example,test-4space
15  reg:
16    maxItems: 1
17
18required:
19  - compatible
20  - reg
21
22additionalProperties: false
23
24examples:
25  - |
26    bus@10000 {
27        compatible = "simple-bus";
28        reg = <0x10000 0x1000>;
29        #address-cells = <1>;
30        #size-cells = <1>;
31
32        device@100 {
33            compatible = "example,test-4space";
34            reg = <0x100 0x10>;
35        };
36
37        device@200 {
38            compatible = "example,test-4space";
39            reg = <0x200 0x10>;
40        };
41    };
42