summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt6577-sysirq.yaml
blob: e1a379c052e44cd3484c92c165fdd7f9ca987ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/interrupt-controller/mediatek,mt6577-sysirq.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: MediaTek sysirq

description:
  MediaTek SOCs sysirq support controllable irq inverter for each GIC SPI
  interrupt.

maintainers:
  - Matthias Brugger <matthias.bgg@gmail.com>

properties:
  compatible:
    oneOf:
      - const: mediatek,mt6577-sysirq
      - items:
          - enum:
              - mediatek,mt2701-sysirq
              - mediatek,mt2712-sysirq
              - mediatek,mt6580-sysirq
              - mediatek,mt6582-sysirq
              - mediatek,mt6589-sysirq
              - mediatek,mt6592-sysirq
              - mediatek,mt6755-sysirq
              - mediatek,mt6765-sysirq
              - mediatek,mt6779-sysirq
              - mediatek,mt6795-sysirq
              - mediatek,mt6797-sysirq
              - mediatek,mt7622-sysirq
              - mediatek,mt7623-sysirq
              - mediatek,mt7629-sysirq
              - mediatek,mt8127-sysirq
              - mediatek,mt8135-sysirq
              - mediatek,mt8173-sysirq
              - mediatek,mt8183-sysirq
              - mediatek,mt8365-sysirq
              - mediatek,mt8516-sysirq
          - const: mediatek,mt6577-sysirq

  reg:
    minItems: 1
    maxItems: 2

  interrupt-controller: true

  "#interrupt-cells":
    $ref: "arm,gic.yaml#/properties/#interrupt-cells"

required:
  - reg
  - interrupt-controller
  - "#interrupt-cells"

allOf:
  - $ref: /schemas/interrupt-controller.yaml#
  - if:
      properties:
        compatible:
          contains:
            const: mediatek,mt6797-sysirq
    then:
      properties:
        reg:
          minItems: 2
    else:
      properties:
        reg:
          maxItems: 1

unevaluatedProperties: false

examples:
  - |
    interrupt-controller@10200620 {
        compatible = "mediatek,mt6797-sysirq", "mediatek,mt6577-sysirq";
        reg = <0x10220620 0x20>,
              <0x10220690 0x10>;
        interrupt-parent = <&gic>;
        interrupt-controller;
        #interrupt-cells = <3>;
    };