summaryrefslogtreecommitdiffstats
path: root/scripts/dtc/dt-style-selftest/bad/yaml-trailing-comment.yaml
blob: 2368ada8106f1bec37f968653a74aa0dcd41422a (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
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-trailing-comment.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Test fixture with properties out of order behind trailing comments

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

properties:
  compatible:
    const: example,test-trailing-comment

required:
  - compatible

additionalProperties: false

examples:
  - |
    foo@0 {  /* the device node */
        reg = <0x0 0x4>;  /* registers */
        compatible = "example,test-trailing-comment";  // misplaced
    };