xref: /linux/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt6577-sysirq.yaml (revision ef9226cd56b718c79184a3466d32984a51cb449c)
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/mediatek,mt6577-sysirq.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MediaTek sysirq
8
9description:
10  MediaTek SOCs sysirq support controllable irq inverter for each GIC SPI
11  interrupt.
12
13maintainers:
14  - Matthias Brugger <matthias.bgg@gmail.com>
15
16properties:
17  compatible:
18    oneOf:
19      - const: mediatek,mt6577-sysirq
20      - items:
21          - enum:
22              - mediatek,mt2701-sysirq
23              - mediatek,mt2712-sysirq
24              - mediatek,mt6580-sysirq
25              - mediatek,mt6582-sysirq
26              - mediatek,mt6589-sysirq
27              - mediatek,mt6592-sysirq
28              - mediatek,mt6755-sysirq
29              - mediatek,mt6765-sysirq
30              - mediatek,mt6779-sysirq
31              - mediatek,mt6795-sysirq
32              - mediatek,mt6797-sysirq
33              - mediatek,mt7622-sysirq
34              - mediatek,mt7623-sysirq
35              - mediatek,mt7629-sysirq
36              - mediatek,mt8127-sysirq
37              - mediatek,mt8135-sysirq
38              - mediatek,mt8173-sysirq
39              - mediatek,mt8183-sysirq
40              - mediatek,mt8365-sysirq
41              - mediatek,mt8516-sysirq
42          - const: mediatek,mt6577-sysirq
43
44  reg:
45    minItems: 1
46    maxItems: 2
47
48  interrupt-controller: true
49
50  "#interrupt-cells":
51    $ref: "arm,gic.yaml#/properties/#interrupt-cells"
52
53required:
54  - reg
55  - interrupt-controller
56  - "#interrupt-cells"
57
58allOf:
59  - $ref: /schemas/interrupt-controller.yaml#
60  - if:
61      properties:
62        compatible:
63          contains:
64            const: mediatek,mt6797-sysirq
65    then:
66      properties:
67        reg:
68          minItems: 2
69    else:
70      properties:
71        reg:
72          maxItems: 1
73
74unevaluatedProperties: false
75
76examples:
77  - |
78    interrupt-controller@10200620 {
79        compatible = "mediatek,mt6797-sysirq", "mediatek,mt6577-sysirq";
80        reg = <0x10220620 0x20>,
81              <0x10220690 0x10>;
82        interrupt-parent = <&gic>;
83        interrupt-controller;
84        #interrupt-cells = <3>;
85    };
86