Debian Codegraph @

dtschema/schemas/root-node.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2018 Linaro Ltd.
3 # Copyright 2018,2021 Arm Ltd.
4 %YAML 1.2
5 ---
6 $id: http://devicetree.org/schemas/root-node.yaml#
7 $schema: http://devicetree.org/meta-schemas/core.yaml#
8
9 title: Common root node
10 description: |
11 Common properties always required in the root node of the tree
12
13 maintainers:
14 - [email protected]
15
16 properties:
17 $nodename:
18 const: "/"
19 model: { "$ref" : "types.yaml#/definitions/string-array"}
20 chassis-type:
21 enum:
22 - desktop
23 - laptop
24 - convertible
25 - server
26 - all-in-one
27 - tablet
28 - handset
29 - watch
30 - embedded
31 - television
32 - spectacles
33 "#address-cells":
34 enum: [1, 2]
35 "#size-cells":
36 enum: [1, 2]
37
38 dma-coherent: true
39 interrupt-parent: true
40
41 memory: false
42
43 patternProperties:
44 "@(0|[1-9a-f][0-9a-f]*)$":
45 type: object
46 additionalProperties: true
47
48 properties:
49 reg:
50 items:
51 minItems: 2
52 maxItems: 4
53 minItems: 1
54 maxItems: 1024
55 ranges:
56 oneOf:
57 - items:
58 minItems: 3
59 maxItems: 7
60 minItems: 1
61 maxItems: 1024
62 - $ref: types.yaml#/definitions/flag
63 anyOf:
64 - required:
65 - reg
66 - required:
67 - ranges
68
69 required:
70 - compatible
71 - model
72 - "#address-cells"
73 - "#size-cells"
74
75 additionalProperties: true
76
77 examples:
78 - |
79 / {
80 compatible = "acme,boogieboard";
81 model = "Acme Ltd. Boogieboard developer system";
82 chassis-type = "embedded";
83 #address-cells = <1>;
84 #size-cells = <1>;
85 memory@0 {
86 reg = <0 0x10000000>;
87 };
88 $path = "/";
89 }