1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2400-vic.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Aspeed Vectored Interrupt Controller
8
9maintainers:
10  - Andrew Jeffery <andrew@codeconstruct.com.au>
11
12description:
13  The AST2400 and AST2500 SoC families include a legacy register layout before
14  a redesigned layout, but the bindings do not prescribe the use of one or the
15  other.
16
17properties:
18  compatible:
19    enum:
20      - aspeed,ast2400-vic
21      - aspeed,ast2500-vic
22
23  reg:
24    maxItems: 1
25
26  interrupt-controller: true
27
28  "#interrupt-cells":
29    const: 1
30    description:
31      Specifies the number of cells needed to encode an interrupt source. It
32      must be 1 as the VIC has no configuration options for interrupt sources.
33      The single cell defines the interrupt number.
34
35  valid-sources:
36    $ref: /schemas/types.yaml#/definitions/uint32-array
37    maxItems: 2
38    description:
39      A bitmap of supported sources for the implementation.
40
41required:
42  - compatible
43  - reg
44  - interrupt-controller
45  - "#interrupt-cells"
46
47allOf:
48  - $ref: /schemas/interrupt-controller.yaml
49
50additionalProperties: false
51
52examples:
53  - |
54    interrupt-controller@1e6c0080 {
55         compatible = "aspeed,ast2400-vic";
56         reg = <0x1e6c0080 0x80>;
57         interrupt-controller;
58         #interrupt-cells = <1>;
59         valid-sources = <0xffffffff 0x0007ffff>;
60    };
61
62...
63