dt-bindings: More use 'enum' instead of 'oneOf' plus 'const' entries
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / riscv / sifive.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/riscv/sifive.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: SiFive SoC-based boards
8
9 maintainers:
10   - Paul Walmsley <paul.walmsley@sifive.com>
11   - Palmer Dabbelt <palmer@sifive.com>
12
13 description:
14   SiFive SoC-based boards
15
16 properties:
17   $nodename:
18     const: '/'
19   compatible:
20     oneOf:
21       - items:
22           - enum:
23               - sifive,hifive-unleashed-a00
24           - const: sifive,fu540-c000
25           - const: sifive,fu540
26
27       - items:
28           - enum:
29               - sifive,hifive-unmatched-a00
30           - const: sifive,fu740-c000
31           - const: sifive,fu740
32
33 additionalProperties: true
34
35 ...