xref: /linux/scripts/dtc/dt-style-selftest/bad/yaml-label-in-string.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-label-in-string.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Test fixture where a label is only "referenced" inside a string
8
9maintainers:
10  - Test User <test@example.com>
11
12properties:
13  compatible:
14    const: example,test-label-in-string
15  reg:
16    maxItems: 1
17
18required:
19  - compatible
20  - reg
21
22additionalProperties: false
23
24examples:
25  - |
26    foo: device@1000 {
27        compatible = "example,test-label-in-string";
28        reg = <0x1000 0x100>;
29        info = "see &foo for details";
30    };
31