MediaTek System Interrupt Controller

Schema identifier ($id): "http://devicetree.org/schemas/interrupt-controller/mediatek,mtk-cirq.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Youlin Pei <youlin.pei@mediatek.com>"

In MediaTek SoCs, the CIRQ is a low power interrupt controller designed to work outside of MCUSYS which comprises with Cortex-Ax cores, CCI and GIC. The external interrupts (outside MCUSYS) will feed through CIRQ and connect to GIC in MCUSYS. When CIRQ is enabled, it will record the edge-sensitive interrupts and generate a pulse signal to parent interrupt controller when flush command is executed. With CIRQ, MCUSYS can be completely turned off to improve the system power consumption without losing interrupts.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "mediatek,mt2701-cirq", "mediatek,mt8135-cirq", "mediatek,mt8173-cirq", "mediatek,mt8192-cirq"

Item 2

Exact value (const): "mediatek,mtk-cirq"

reg — required here #

Maximum number of items (maxItems): 1

#interrupt-cells — required here #

Exact value (const): 3

interrupt-controller — required here #

true — No constraints added by this property rule.

mediatek,ext-irq-range — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Array item rules (items) #

Item 1

First CIRQ interrupt

Item 2

Last CIRQ interrupt

Identifies the range of external interrupts in different SoCs

Required in this object (required): "compatible", "reg", "#interrupt-cells", "interrupt-controller", "mediatek,ext-irq-range"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

cirq: interrupt-controller@10204000 {
    compatible = "mediatek,mt2701-cirq", "mediatek,mtk-cirq";
    reg = <0x10204000 0x400>;
    #interrupt-cells = <3>;
    interrupt-controller;
    interrupt-parent = <&sysirq>;
    mediatek,ext-irq-range = <32 200>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page