xref: /freebsd-src/sys/contrib/device-tree/Bindings/interrupt-controller/mediatek,mt6577-sysirq.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
101950c46SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
201950c46SEmmanuel Vadot%YAML 1.2
301950c46SEmmanuel Vadot---
401950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/interrupt-controller/mediatek,mt6577-sysirq.yaml#
501950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
601950c46SEmmanuel Vadot
701950c46SEmmanuel Vadottitle: MediaTek sysirq
801950c46SEmmanuel Vadot
901950c46SEmmanuel Vadotdescription:
1001950c46SEmmanuel Vadot  MediaTek SOCs sysirq support controllable irq inverter for each GIC SPI
1101950c46SEmmanuel Vadot  interrupt.
1201950c46SEmmanuel Vadot
1301950c46SEmmanuel Vadotmaintainers:
1401950c46SEmmanuel Vadot  - Matthias Brugger <matthias.bgg@gmail.com>
1501950c46SEmmanuel Vadot
1601950c46SEmmanuel Vadotproperties:
1701950c46SEmmanuel Vadot  compatible:
1801950c46SEmmanuel Vadot    oneOf:
1901950c46SEmmanuel Vadot      - const: mediatek,mt6577-sysirq
2001950c46SEmmanuel Vadot      - items:
2101950c46SEmmanuel Vadot          - enum:
2201950c46SEmmanuel Vadot              - mediatek,mt2701-sysirq
2301950c46SEmmanuel Vadot              - mediatek,mt2712-sysirq
2401950c46SEmmanuel Vadot              - mediatek,mt6580-sysirq
2501950c46SEmmanuel Vadot              - mediatek,mt6582-sysirq
2601950c46SEmmanuel Vadot              - mediatek,mt6589-sysirq
2701950c46SEmmanuel Vadot              - mediatek,mt6592-sysirq
2801950c46SEmmanuel Vadot              - mediatek,mt6755-sysirq
2901950c46SEmmanuel Vadot              - mediatek,mt6765-sysirq
3001950c46SEmmanuel Vadot              - mediatek,mt6779-sysirq
3101950c46SEmmanuel Vadot              - mediatek,mt6795-sysirq
3201950c46SEmmanuel Vadot              - mediatek,mt6797-sysirq
3301950c46SEmmanuel Vadot              - mediatek,mt7622-sysirq
3401950c46SEmmanuel Vadot              - mediatek,mt7623-sysirq
3501950c46SEmmanuel Vadot              - mediatek,mt7629-sysirq
3601950c46SEmmanuel Vadot              - mediatek,mt8127-sysirq
3701950c46SEmmanuel Vadot              - mediatek,mt8135-sysirq
3801950c46SEmmanuel Vadot              - mediatek,mt8173-sysirq
3901950c46SEmmanuel Vadot              - mediatek,mt8183-sysirq
4001950c46SEmmanuel Vadot              - mediatek,mt8365-sysirq
4101950c46SEmmanuel Vadot              - mediatek,mt8516-sysirq
4201950c46SEmmanuel Vadot          - const: mediatek,mt6577-sysirq
4301950c46SEmmanuel Vadot
4401950c46SEmmanuel Vadot  reg:
4501950c46SEmmanuel Vadot    minItems: 1
4601950c46SEmmanuel Vadot    maxItems: 2
4701950c46SEmmanuel Vadot
4801950c46SEmmanuel Vadot  interrupt-controller: true
4901950c46SEmmanuel Vadot
5001950c46SEmmanuel Vadot  "#interrupt-cells":
51*7d0873ebSEmmanuel Vadot    $ref: arm,gic.yaml#/properties/#interrupt-cells
5201950c46SEmmanuel Vadot
5301950c46SEmmanuel Vadotrequired:
5401950c46SEmmanuel Vadot  - reg
5501950c46SEmmanuel Vadot  - interrupt-controller
5601950c46SEmmanuel Vadot  - "#interrupt-cells"
5701950c46SEmmanuel Vadot
5801950c46SEmmanuel VadotallOf:
5901950c46SEmmanuel Vadot  - $ref: /schemas/interrupt-controller.yaml#
6001950c46SEmmanuel Vadot  - if:
6101950c46SEmmanuel Vadot      properties:
6201950c46SEmmanuel Vadot        compatible:
6301950c46SEmmanuel Vadot          contains:
6401950c46SEmmanuel Vadot            const: mediatek,mt6797-sysirq
6501950c46SEmmanuel Vadot    then:
6601950c46SEmmanuel Vadot      properties:
6701950c46SEmmanuel Vadot        reg:
6801950c46SEmmanuel Vadot          minItems: 2
6901950c46SEmmanuel Vadot    else:
7001950c46SEmmanuel Vadot      properties:
7101950c46SEmmanuel Vadot        reg:
7201950c46SEmmanuel Vadot          maxItems: 1
7301950c46SEmmanuel Vadot
7401950c46SEmmanuel VadotunevaluatedProperties: false
7501950c46SEmmanuel Vadot
7601950c46SEmmanuel Vadotexamples:
7701950c46SEmmanuel Vadot  - |
7801950c46SEmmanuel Vadot    interrupt-controller@10200620 {
7901950c46SEmmanuel Vadot        compatible = "mediatek,mt6797-sysirq", "mediatek,mt6577-sysirq";
8001950c46SEmmanuel Vadot        reg = <0x10220620 0x20>,
8101950c46SEmmanuel Vadot              <0x10220690 0x10>;
8201950c46SEmmanuel Vadot        interrupt-parent = <&gic>;
8301950c46SEmmanuel Vadot        interrupt-controller;
8401950c46SEmmanuel Vadot        #interrupt-cells = <3>;
8501950c46SEmmanuel Vadot    };
86