xref: /linux/scripts/dtc/dt-style-selftest/bad/yaml-trailing-comment.yaml (revision 9611c0ce215a66770ccbe5c126bf57ba8c31bcad)
1*efb6347dSDaniel Golle# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*efb6347dSDaniel Golle%YAML 1.2
3*efb6347dSDaniel Golle---
4*efb6347dSDaniel Golle$id: http://devicetree.org/schemas/test-bad-trailing-comment.yaml#
5*efb6347dSDaniel Golle$schema: http://devicetree.org/meta-schemas/core.yaml#
6*efb6347dSDaniel Golle
7*efb6347dSDaniel Golletitle: Test fixture with properties out of order behind trailing comments
8*efb6347dSDaniel Golle
9*efb6347dSDaniel Gollemaintainers:
10*efb6347dSDaniel Golle  - Test User <test@example.com>
11*efb6347dSDaniel Golle
12*efb6347dSDaniel Golleproperties:
13*efb6347dSDaniel Golle  compatible:
14*efb6347dSDaniel Golle    const: example,test-trailing-comment
15*efb6347dSDaniel Golle
16*efb6347dSDaniel Gollerequired:
17*efb6347dSDaniel Golle  - compatible
18*efb6347dSDaniel Golle
19*efb6347dSDaniel GolleadditionalProperties: false
20*efb6347dSDaniel Golle
21*efb6347dSDaniel Golleexamples:
22*efb6347dSDaniel Golle  - |
23*efb6347dSDaniel Golle    foo@0 {  /* the device node */
24*efb6347dSDaniel Golle        reg = <0x0 0x4>;  /* registers */
25*efb6347dSDaniel Golle        compatible = "example,test-trailing-comment";  // misplaced
26*efb6347dSDaniel Golle    };
27