From patchwork Mon Nov 28 11:53:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 26687 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5609636wrr; Mon, 28 Nov 2022 04:03:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf57SDDESVekp7xTE0EuOIQjxYqNFjzPbGYyy4cJrxrH/v4H0EayhOJ0toO1p15JKkViAQ5t X-Received: by 2002:a63:e646:0:b0:470:15cd:d428 with SMTP id p6-20020a63e646000000b0047015cdd428mr46476339pgj.213.1669637036283; Mon, 28 Nov 2022 04:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669637036; cv=none; d=google.com; s=arc-20160816; b=yX7xZ/RilzxVM8CxnuHUP6fGpFiu/FjgDiWSc3vAUefzDEwnRb8jb3D+E41iVz7Vhi hj6a0nlPf15oTNXbXZs7HvJMh6uB1HnAv3OG/nKL6utEwL3R9C0kdEb8oSQYnolPCwNk wnL8YOn+cFwvP61drhGd2+Vh6uH/TCM6CSizDA6tAhJTtsHx9U0Ei/dhaLR21rtCR3is Mb4Sg6bxkVGaGoyluKyWbJhUUIYO6Z8MkfrIYqTF38YwuUMutUVv065A84zB71+v03+o RsKMnJWBqV0k/vttUzKTbeLK6Hy2LsIvFdp/JcodHI8seokEMMv9S1oAvY/3GdvFoVr+ LVWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=nIAGqdDi+SEN0a9cB7VPs2VBlFaaafPvI55T3q0QYVE=; b=Ve9rn8o7qdM99T/2xfiXmuaMiTxKcT5wsTte7BeROIVByLOKXHU70ibmCnqfRsvT7d 5rWKWHPCvTTTkMmUqjjbt1jD37SFLdfRd0DSzKo5jLxdRpN1itjXopmu6oASyKTfGrXa Q3QC76lTbOMGTsZrnj+6NUmZkyVEHMiB2jM7HCb9CzMg1b13kW0xfao9VfVwINks/R2A SKmiP+/UWVbvjOi/o7K66zXZnQJuwIu/qJCmNw6rowdoiPRyFQgtead5gYtHJnbpkmdv UgesVmtQIdV0Sq6LpwsDlLYArsVaL5qmewkD1hadTQZRvplYG1e+2yDmVTHyP1KhX8nh ew0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uttu0RVr; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=+rLBIgog; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a17090a4a8f00b0020d65f31df8si10026802pjh.143.2022.11.28.04.03.37; Mon, 28 Nov 2022 04:03:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uttu0RVr; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=+rLBIgog; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230166AbiK1LyM (ORCPT + 99 others); Mon, 28 Nov 2022 06:54:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231295AbiK1LyB (ORCPT ); Mon, 28 Nov 2022 06:54:01 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2754E272 for ; Mon, 28 Nov 2022 03:54:00 -0800 (PST) Date: Mon, 28 Nov 2022 11:53:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669636438; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nIAGqdDi+SEN0a9cB7VPs2VBlFaaafPvI55T3q0QYVE=; b=uttu0RVrj6HtouQJcNZ3a3Fx/jbP9LjdlxMw+V0u3pK82BV3jdaR6Z6Xc+QUkCPRnDsUuX RmlW/xfj/MkwFToUy973BiwHI0jsJ2xRH+uBrL8JoEPbEHdfIOCPsgaks2AqznYcSYygMa W53d0OBs6Z5oZaoULbvodF5h71FjSM9fQGRqD2Fs0VpBosqZO3/cYJNoEmLdp8yfiigIQ3 REYBfhhPZ6MCEygfpu+1xsDWYIrXW+AlFh2xyrefgVLrjBmdhG6gvqHxEX/xsXoFByqdrB QYJb/C7Rtql8PsGnEG6sivdgBRrNf/ra/8sk65cVFJ+5vqpHZBHtQHavaD1X3A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669636438; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nIAGqdDi+SEN0a9cB7VPs2VBlFaaafPvI55T3q0QYVE=; b=+rLBIgogsWwopyUk9Vpofpe8f4ef/QvoX48bxviqEFJu8hJnQe7dMdA/f3IeWt4VdYxNl4 FXSxfUDkbdZya2BA== From: "irqchip-bot for AngeloGioacchino Del Regno" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] dt-bindings: interrupt-controller: mediatek,cirq: Migrate to dt schema Cc: AngeloGioacchino Del Regno , Krzysztof Kozlowski , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20221128092217.36552-2-angelogioacchino.delregno@collabora.com> References: <20221128092217.36552-2-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Message-ID: <166963643751.4906.13879386200356661666.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750731555707906149?= X-GMAIL-MSGID: =?utf-8?q?1750741324801148343?= The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 7f3974ef4e31d730e7aa902b30800ba0962277da Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/7f3974ef4e31d730e7aa902b30800ba0962277da Author: AngeloGioacchino Del Regno AuthorDate: Mon, 28 Nov 2022 10:22:14 +01:00 Committer: Marc Zyngier CommitterDate: Mon, 28 Nov 2022 11:43:42 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 Reviewed-by: Krzysztof Kozlowski Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20221128092217.36552-2-angelogioacchino.delregno@collabora.com --- Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt | 33 --------------------------------- Documentation/devicetree/bindings/interrupt-controller/mediatek,mtk-cirq.yaml | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 33 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,mtk-cirq.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt b/Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt deleted file mode 100644 index 5865f4f..0000000 --- a/Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt +++ /dev/null @@ -1,33 +0,0 @@ -* Mediatek 27xx cirq - -In Mediatek SOCs, the CIRQ is a low power interrupt controller designed to -work outside 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. - -Required properties: -- compatible: should be one of - - "mediatek,mt2701-cirq" for mt2701 CIRQ - - "mediatek,mt8135-cirq" for mt8135 CIRQ - - "mediatek,mt8173-cirq" for mt8173 CIRQ - and "mediatek,cirq" as a fallback. -- interrupt-controller : Identifies the node as an interrupt controller. -- #interrupt-cells : Use the same format as specified by GIC in arm,gic.txt. -- reg: Physical base address of the cirq registers and length of memory - mapped region. -- mediatek,ext-irq-range: Identifies external irq number range in different - SOCs. - -Example: - cirq: interrupt-controller@10204000 { - compatible = "mediatek,mt2701-cirq", - "mediatek,mtk-cirq"; - interrupt-controller; - #interrupt-cells = <3>; - interrupt-parent = <&sysirq>; - reg = <0 0x10204000 0 0x400>; - mediatek,ext-irq-start = <32 200>; - }; diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,mtk-cirq.yaml b/Documentation/devicetree/bindings/interrupt-controller/mediatek,mtk-cirq.yaml new file mode 100644 index 0000000..4f1132c --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/mediatek,mtk-cirq.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/mediatek,mtk-cirq.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek System Interrupt Controller + +maintainers: + - Youlin Pei + +description: + 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: + compatible: + items: + - enum: + - mediatek,mt2701-cirq + - mediatek,mt8135-cirq + - mediatek,mt8173-cirq + - const: mediatek,mtk-cirq + + reg: + maxItems: 1 + + '#interrupt-cells': + const: 3 + + interrupt-controller: true + + mediatek,ext-irq-range: + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - description: First CIRQ interrupt + - description: Last CIRQ interrupt + description: + Identifies the range of external interrupts in different SoCs + +required: + - compatible + - reg + - '#interrupt-cells' + - interrupt-controller + - mediatek,ext-irq-range + +additionalProperties: false + +examples: + - | + #include + + 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>; + };