Debian Codegraph @

dtschema/meta-schemas/interrupts.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2018 Linaro Ltd.
3 # Copyright 2018 Arm Ltd.
4 %YAML 1.2
5 ---
6 $id: http://devicetree.org/meta-schemas/interrupts.yaml#
7 $schema: https://json-schema.org/draft/2019-09/schema
8
9 properties:
10 interrupts:
11 $ref: cell.yaml#/array
12 interrupts-extended:
13 properties:
14 # interrupts-extended should just refer back to interrupts
15 $ref: true
16 interrupt-map:
17 $ref: cell.yaml#/array
18 interrupt-map-mask:
19 $ref: cell.yaml#/array
20 interrupt-controller:
21 if:
22 type: object
23 required: [type]
24 then:
25 $ref: nodes.yaml
26 else:
27 $ref: boolean.yaml
28
29 dependentRequired:
30 interrupt-map: ['#interrupt-cells']
31 'interrupt-map-mask': [ interrupt-map ]
32
33 dependentSchemas:
34 'interrupts':
35 properties:
36 interrupt-parent: false # interrupt-parent is implicitly allowed (added by tooling)
37
38 '#interrupt-cells':
39 anyOf:
40 - required:
41 - interrupt-controller
42 - required:
43 - interrupt-map