summaryrefslogtreecommitdiffstats
path: root/scripts/dtc/dt-style-selftest/bad/yaml-child-addr-order.yaml
blob: 3df56e69a1ff83eeee305bbcf4b23bc6fa0f387c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-child-order.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Test fixture with addressed children out of order

maintainers:
  - Test User <test@example.com>

properties:
  compatible:
    const: example,test-child-order
  reg:
    maxItems: 1

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    bus@10000 {
        compatible = "simple-bus";
        reg = <0x10000 0x1000>;
        #address-cells = <1>;
        #size-cells = <1>;

        device@200 {
            compatible = "example,test-child-order";
            reg = <0x200 0x10>;
        };

        device@100 {
            compatible = "example,test-child-order";
            reg = <0x100 0x10>;
        };
    };