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/ingenic,intc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Ingenic SoCs interrupt controller devicetree bindings
8
9maintainers:
10  - Paul Cercueil <paul@crapouillou.net>
11
12properties:
13  $nodename:
14    pattern: "^interrupt-controller@[0-9a-f]+$"
15
16  compatible:
17    oneOf:
18      - enum:
19          - ingenic,jz4740-intc
20          - ingenic,jz4760-intc
21          - ingenic,jz4780-intc
22      - items:
23          - enum:
24              - ingenic,jz4775-intc
25              - ingenic,jz4770-intc
26          - const: ingenic,jz4760-intc
27      - items:
28          - const: ingenic,x1000-intc
29          - const: ingenic,jz4780-intc
30      - items:
31          - const: ingenic,jz4725b-intc
32          - const: ingenic,jz4740-intc
33
34  "#interrupt-cells":
35    const: 1
36
37  reg:
38    maxItems: 1
39
40  interrupts:
41    maxItems: 1
42
43  interrupt-controller: true
44
45required:
46  - compatible
47  - reg
48  - interrupts
49  - "#interrupt-cells"
50  - interrupt-controller
51
52examples:
53  - |
54    intc: interrupt-controller@10001000 {
55      compatible = "ingenic,jz4770-intc", "ingenic,jz4760-intc";
56      reg = <0x10001000 0x40>;
57
58      interrupt-controller;
59      #interrupt-cells = <1>;
60
61      interrupt-parent = <&cpuintc>;
62      interrupts = <2>;
63    };
64