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/nxp,lpc3220-mic.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP LPC32xx MIC, SIC1 and SIC2 Interrupt Controllers
8
9maintainers:
10  - Vladimir Zapolskiy <vz@mleia.com>
11
12properties:
13  compatible:
14    enum:
15      - nxp,lpc3220-mic
16      - nxp,lpc3220-sic
17
18  reg:
19    maxItems: 1
20
21  interrupt-controller: true
22
23  '#interrupt-cells':
24    const: 2
25
26  interrupts:
27    items:
28      - description: Regular interrupt request
29      - description: Fast interrupt request
30
31required:
32  - compatible
33  - reg
34  - interrupt-controller
35  - '#interrupt-cells'
36
37allOf:
38  - if:
39      properties:
40        compatible:
41          contains:
42            const: nxp,lpc3220-sic
43    then:
44      required:
45        - interrupts
46
47additionalProperties: false
48
49examples:
50  - |
51    #include <dt-bindings/interrupt-controller/irq.h>
52
53    mic: interrupt-controller@40008000 {
54        compatible = "nxp,lpc3220-mic";
55        reg = <0x40008000 0x4000>;
56        interrupt-controller;
57        #interrupt-cells = <2>;
58    };
59
60    interrupt-controller@4000c000 {
61        compatible = "nxp,lpc3220-sic";
62        reg = <0x4000c000 0x4000>;
63        interrupt-controller;
64        #interrupt-cells = <2>;
65        interrupt-parent = <&mic>;
66        interrupts = <0 IRQ_TYPE_LEVEL_LOW>,
67                    <30 IRQ_TYPE_LEVEL_LOW>;
68    };
69