Skip to content

Commit 7f3974e

Browse files
AngeloGioacchino Del RegnoMarc Zyngier
authored andcommitted
dt-bindings: interrupt-controller: mediatek,cirq: Migrate to dt schema
Migrate mediatek,cirq.txt to dt schema as mediatek,mtk-cirq.yaml. While at it, I've also fixed some typos that were present in the original txt binding, as it was suggesting that the compatible string would have "mediatek,cirq" as compatible but, in reality, that's supposed to be "mediatek,mtk-cirq" instead. Little rewording on property descriptions also happened for them to be more concise. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221128092217.36552-2-angelogioacchino.delregno@collabora.com
1 parent 247f34f commit 7f3974e

2 files changed

Lines changed: 67 additions & 33 deletions

File tree

Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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,mtk-cirq.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek System Interrupt Controller
8+
9+
maintainers:
10+
- Youlin Pei <youlin.pei@mediatek.com>
11+
12+
description:
13+
In MediaTek SoCs, the CIRQ is a low power interrupt controller designed to
14+
work outside of MCUSYS which comprises with Cortex-Ax cores, CCI and GIC.
15+
The external interrupts (outside MCUSYS) will feed through CIRQ and connect
16+
to GIC in MCUSYS. When CIRQ is enabled, it will record the edge-sensitive
17+
interrupts and generate a pulse signal to parent interrupt controller when
18+
flush command is executed. With CIRQ, MCUSYS can be completely turned off
19+
to improve the system power consumption without losing interrupts.
20+
21+
22+
properties:
23+
compatible:
24+
items:
25+
- enum:
26+
- mediatek,mt2701-cirq
27+
- mediatek,mt8135-cirq
28+
- mediatek,mt8173-cirq
29+
- const: mediatek,mtk-cirq
30+
31+
reg:
32+
maxItems: 1
33+
34+
'#interrupt-cells':
35+
const: 3
36+
37+
interrupt-controller: true
38+
39+
mediatek,ext-irq-range:
40+
$ref: /schemas/types.yaml#/definitions/uint32-array
41+
items:
42+
- description: First CIRQ interrupt
43+
- description: Last CIRQ interrupt
44+
description:
45+
Identifies the range of external interrupts in different SoCs
46+
47+
required:
48+
- compatible
49+
- reg
50+
- '#interrupt-cells'
51+
- interrupt-controller
52+
- mediatek,ext-irq-range
53+
54+
additionalProperties: false
55+
56+
examples:
57+
- |
58+
#include <dt-bindings/interrupt-controller/irq.h>
59+
60+
cirq: interrupt-controller@10204000 {
61+
compatible = "mediatek,mt2701-cirq", "mediatek,mtk-cirq";
62+
reg = <0x10204000 0x400>;
63+
#interrupt-cells = <3>;
64+
interrupt-controller;
65+
interrupt-parent = <&sysirq>;
66+
mediatek,ext-irq-range = <32 200>;
67+
};

0 commit comments

Comments
 (0)