Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

AngeloGioacchino Del Regno and committed by
Marc Zyngier
7f3974ef 247f34f7

+67 -33
-33
Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt
··· 1 - * Mediatek 27xx cirq 2 - 3 - In Mediatek SOCs, the CIRQ is a low power interrupt controller designed to 4 - work outside MCUSYS which comprises with Cortex-Ax cores,CCI and GIC. 5 - The external interrupts (outside MCUSYS) will feed through CIRQ and connect 6 - to GIC in MCUSYS. When CIRQ is enabled, it will record the edge-sensitive 7 - interrupts and generate a pulse signal to parent interrupt controller when 8 - flush command is executed. With CIRQ, MCUSYS can be completely turned off 9 - to improve the system power consumption without losing interrupts. 10 - 11 - Required properties: 12 - - compatible: should be one of 13 - - "mediatek,mt2701-cirq" for mt2701 CIRQ 14 - - "mediatek,mt8135-cirq" for mt8135 CIRQ 15 - - "mediatek,mt8173-cirq" for mt8173 CIRQ 16 - and "mediatek,cirq" as a fallback. 17 - - interrupt-controller : Identifies the node as an interrupt controller. 18 - - #interrupt-cells : Use the same format as specified by GIC in arm,gic.txt. 19 - - reg: Physical base address of the cirq registers and length of memory 20 - mapped region. 21 - - mediatek,ext-irq-range: Identifies external irq number range in different 22 - SOCs. 23 - 24 - Example: 25 - cirq: interrupt-controller@10204000 { 26 - compatible = "mediatek,mt2701-cirq", 27 - "mediatek,mtk-cirq"; 28 - interrupt-controller; 29 - #interrupt-cells = <3>; 30 - interrupt-parent = <&sysirq>; 31 - reg = <0 0x10204000 0 0x400>; 32 - mediatek,ext-irq-start = <32 200>; 33 - };
+67
Documentation/devicetree/bindings/interrupt-controller/mediatek,mtk-cirq.yaml
··· 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 + };