Debian Codegraph @

dtschema/schemas/simple-bus.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2018 Linaro Ltd.
3 # Copyright 2021 Arm Ltd.
4 %YAML 1.2
5 ---
6 $id: http://devicetree.org/schemas/simple-bus.yaml#
7 $schema: http://devicetree.org/meta-schemas/core.yaml#
8
9 title: simple-bus nodes
10 description: Common simple-bus binding
11
12 maintainers:
13 - Rob Herring <[email protected]>
14
15 properties:
16 $nodename:
17 pattern: "^([a-z][a-z0-9\\-]+-bus|bus|localbus|soc|axi|ahb|apb)(@.+)?$"
18 compatible:
19 contains:
20 const: simple-bus
21 ranges: true
22 dma-ranges: true
23 "#address-cells":
24 enum: [ 1, 2 ]
25 "#size-cells":
26 enum: [ 1, 2 ]
27 nonposted-mmio:
28 $ref: /schemas/types.yaml#/definitions/flag
29 description:
30 If present, specifies that direct children of this bus should use
31 non-posted memory accesses (i.e. a non-posted mapping mode) for MMIO
32 ranges.
33
34 patternProperties:
35 # All other properties should be child nodes with unit-address and 'reg'
36 "@(0|[1-9a-f][0-9a-f]*)$":
37 type: object
38 additionalProperties: true
39 properties:
40 reg:
41 items:
42 minItems: 2
43 maxItems: 4
44 minItems: 1
45 maxItems: 1024
46 ranges:
47 oneOf:
48 - items:
49 minItems: 3
50 maxItems: 7
51 minItems: 1
52 maxItems: 1024
53 - $ref: types.yaml#/definitions/flag
54 anyOf:
55 - required:
56 - reg
57 - required:
58 - ranges
59
60 additionalProperties:
61 description:
62 Anything else must be a property or have empty 'ranges'. An empty 'ranges'
63 is only appropriate if the child node is another 'simple-bus' or similar.
64 if:
65 type: object
66 then:
67 properties:
68 ranges:
69 type: boolean
70
71 required:
72 - ranges
73
74 required:
75 - compatible
76 - "#address-cells"
77 - "#size-cells"
78 - ranges