18c2ecf20Sopenharmony_ci* Mediatek 27xx cirq
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciIn Mediatek SOCs, the CIRQ is a low power interrupt controller designed to
48c2ecf20Sopenharmony_ciwork outside MCUSYS which comprises with Cortex-Ax cores,CCI and GIC.
58c2ecf20Sopenharmony_ciThe external interrupts (outside MCUSYS) will feed through CIRQ and connect
68c2ecf20Sopenharmony_cito GIC in MCUSYS. When CIRQ is enabled, it will record the edge-sensitive
78c2ecf20Sopenharmony_ciinterrupts and generate a pulse signal to parent interrupt controller when
88c2ecf20Sopenharmony_ciflush command is executed. With CIRQ, MCUSYS can be completely turned off
98c2ecf20Sopenharmony_cito improve the system power consumption without losing interrupts.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciRequired properties:
128c2ecf20Sopenharmony_ci- compatible: should be one of
138c2ecf20Sopenharmony_ci  - "mediatek,mt2701-cirq" for mt2701 CIRQ
148c2ecf20Sopenharmony_ci  - "mediatek,mt8135-cirq" for mt8135 CIRQ
158c2ecf20Sopenharmony_ci  - "mediatek,mt8173-cirq" for mt8173 CIRQ
168c2ecf20Sopenharmony_ci  and "mediatek,cirq" as a fallback.
178c2ecf20Sopenharmony_ci- interrupt-controller : Identifies the node as an interrupt controller.
188c2ecf20Sopenharmony_ci- #interrupt-cells : Use the same format as specified by GIC in arm,gic.txt.
198c2ecf20Sopenharmony_ci- reg: Physical base address of the cirq registers and length of memory
208c2ecf20Sopenharmony_ci  mapped region.
218c2ecf20Sopenharmony_ci- mediatek,ext-irq-range: Identifies external irq number range in different
228c2ecf20Sopenharmony_ci  SOCs.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciExample:
258c2ecf20Sopenharmony_ci	cirq: interrupt-controller@10204000 {
268c2ecf20Sopenharmony_ci		compatible = "mediatek,mt2701-cirq",
278c2ecf20Sopenharmony_ci			     "mediatek,mtk-cirq";
288c2ecf20Sopenharmony_ci		interrupt-controller;
298c2ecf20Sopenharmony_ci		#interrupt-cells = <3>;
308c2ecf20Sopenharmony_ci		interrupt-parent = <&sysirq>;
318c2ecf20Sopenharmony_ci		reg = <0 0x10204000 0 0x400>;
328c2ecf20Sopenharmony_ci		mediatek,ext-irq-start = <32 200>;
338c2ecf20Sopenharmony_ci	};
34