xref: /linux/scripts/dtc/dt-style-selftest/bad/yaml-trailing-comment.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-bad-trailing-comment.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Test fixture with properties out of order behind trailing comments
8
9maintainers:
10  - Test User <test@example.com>
11
12properties:
13  compatible:
14    const: example,test-trailing-comment
15
16required:
17  - compatible
18
19additionalProperties: false
20
21examples:
22  - |
23    foo@0 {  /* the device node */
24        reg = <0x0 0x4>;  /* registers */
25        compatible = "example,test-trailing-comment";  // misplaced
26    };
27