From patchwork Mon Jun 24 14:53:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 13709676 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B1E11C2BD09 for ; Mon, 24 Jun 2024 14:54:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WuTXqLFpDCY0BIPUh2NyMNpGlCbxlR+a/McwFWj1hXI=; b=E94ZnkbyhFoVr7dickFV0nw3Ns owp/gAPWa9GRj53HX7gBVWwOoZXbTYew+Oqs6dp5J2fIFMnIQm6M8c5IF7m+tI/lpY3h274YSTJpZ MFDcwfVaI8Au4BvjMs8Sw7AZGwATF9qINQoQLQkHBGdhoNPfHBTSo5BQtlSaZCyja5HHY/TU1Hjf6 isuXsAcKI2xLkF7pYGXLS/ueSZPj97miEziPmnFVwj5w2LBnJnxWVCZpae13jfiXZnRoeT5CgQIlb DhLiQZ56u034ydh0Tjj56mMRjiWzkZeb6FEavz+1WtCHaQ81R7GsfFwL4hXm9kyeQZtn1MLf9T6CK Qk7gil0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLl5O-0000000HBfh-1IhW; Mon, 24 Jun 2024 14:54:26 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLl5J-0000000HBdl-0BmO for linux-arm-kernel@lists.infradead.org; Mon, 24 Jun 2024 14:54:22 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 4286860E00; Mon, 24 Jun 2024 14:54:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B04A2C32789; Mon, 24 Jun 2024 14:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719240860; bh=qMaa/gk459yzOTijdAGBgWsv+ODxAAG+KXS4Ln55W5s=; h=From:List-Id:To:Cc:Subject:Date:In-Reply-To:References:From; b=McssQgfhPLvDABD1SY6IBez2jO74wjJe6oAGmtALhDKLxlpwJ+thGugtzPgiga7v1 WAXyu1Q4SCCJB4jnf2Xst7KWbLEGTSYH2VYCxzmGx74Cu8FO8obVpDwT0cfiiBOiNZ H4ldAc3SKE8PsluBTLO4jOrO2z4AKymUAGCyeog7zuao0QsGTbe0NLKah7Y0S86CQD o9lmXMlzWuqGZkQl4+amPbPg0F8jY5R3bi1M4Jl/r3Uv+wyIMRYgpvHWlr5D9bcATl 969ZKJudden09TohwM9I+dgkHSns3Ls4CK5o5FQg0Zpt+Fk7OrUynbHVWAhQ6Rf1iA gxMPlSSTDjZpA== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, soc@kernel.org, Thomas Gleixner Cc: =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH v2 1/2] ARM: dts: armada-{370-xp,375,38x,39x}: Drop #size-cells from mpic node Date: Mon, 24 Jun 2024 16:53:54 +0200 Message-ID: <20240624145355.8034-2-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240624145355.8034-1-kabel@kernel.org> References: <20240624145355.8034-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_075421_256894_7B7321C7 X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The marvell,mpic interrupt controller has no children nodes. Drop the Signed-off-by: Marek Behún --- arch/arm/boot/dts/marvell/armada-370-xp.dtsi | 1 - arch/arm/boot/dts/marvell/armada-375.dtsi | 1 - arch/arm/boot/dts/marvell/armada-38x.dtsi | 1 - arch/arm/boot/dts/marvell/armada-39x.dtsi | 1 - 4 files changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/marvell/armada-370-xp.dtsi b/arch/arm/boot/dts/marvell/armada-370-xp.dtsi index 0b8c2a64b36f..954c891e5aee 100644 --- a/arch/arm/boot/dts/marvell/armada-370-xp.dtsi +++ b/arch/arm/boot/dts/marvell/armada-370-xp.dtsi @@ -168,7 +168,6 @@ mbusc: mbus-controller@20000 { mpic: interrupt-controller@20a00 { compatible = "marvell,mpic"; #interrupt-cells = <1>; - #size-cells = <1>; interrupt-controller; msi-controller; }; diff --git a/arch/arm/boot/dts/marvell/armada-375.dtsi b/arch/arm/boot/dts/marvell/armada-375.dtsi index ddc49547d786..99778b4b7e7b 100644 --- a/arch/arm/boot/dts/marvell/armada-375.dtsi +++ b/arch/arm/boot/dts/marvell/armada-375.dtsi @@ -376,7 +376,6 @@ mpic: interrupt-controller@20a00 { compatible = "marvell,mpic"; reg = <0x20a00 0x2d0>, <0x21070 0x58>; #interrupt-cells = <1>; - #size-cells = <1>; interrupt-controller; msi-controller; interrupts = ; diff --git a/arch/arm/boot/dts/marvell/armada-38x.dtsi b/arch/arm/boot/dts/marvell/armada-38x.dtsi index 446861b6b17b..1181b13deabc 100644 --- a/arch/arm/boot/dts/marvell/armada-38x.dtsi +++ b/arch/arm/boot/dts/marvell/armada-38x.dtsi @@ -408,7 +408,6 @@ mpic: interrupt-controller@20a00 { compatible = "marvell,mpic"; reg = <0x20a00 0x2d0>, <0x21070 0x58>; #interrupt-cells = <1>; - #size-cells = <1>; interrupt-controller; msi-controller; interrupts = ; diff --git a/arch/arm/boot/dts/marvell/armada-39x.dtsi b/arch/arm/boot/dts/marvell/armada-39x.dtsi index 9d1cac49c022..6d05835efb42 100644 --- a/arch/arm/boot/dts/marvell/armada-39x.dtsi +++ b/arch/arm/boot/dts/marvell/armada-39x.dtsi @@ -268,7 +268,6 @@ mpic: interrupt-controller@20a00 { compatible = "marvell,mpic"; reg = <0x20a00 0x2d0>, <0x21070 0x58>; #interrupt-cells = <1>; - #size-cells = <1>; interrupt-controller; msi-controller; interrupts = ; From patchwork Mon Jun 24 14:53:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 13709678 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D7326C2D0D1 for ; Mon, 24 Jun 2024 14:55:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5vQ4uqJSOuONZ06VJSuy3iDqGpAeGMIDYCGSpvmpHXw=; b=3Z08JjqleS8wFSpkVp2/EZh3bp lKS7IY0g9A3Zwn34wescwCqTr6x3i44bmKOCePP3dkA6rYMr1zCd2Uj2mvbK5L4bWDyO10SAEYcdn F5JZuZnSXq7X9enYe4aAM7TH0tgSTGyca15GtO4JWM8fbelLPYSiGx6jTAg+N3NV+VNU30fqoHVsS /y0S6YPGQRtf5PiB1ujr/Xaf863mqDXR901MR4xNjVvPyu6uxkS4WJgaIneEGwpgWVTscjuzTvAVs 1EdHpa/rb4UhXW+YaNwiE/dQSN/BzFz+DGgrVxRY3O9Nv4ov7R5FNGJPlgWfA5IEVJIGDY1XYu/j7 gLVvxXkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLl5k-0000000HBq8-15el; Mon, 24 Jun 2024 14:54:48 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLl5M-0000000HBez-2Rxk for linux-arm-kernel@lists.infradead.org; Mon, 24 Jun 2024 14:54:26 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 6807B60E26; Mon, 24 Jun 2024 14:54:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 811F3C32789; Mon, 24 Jun 2024 14:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719240862; bh=LZEqFfpmjMqfmTtignQSW0nEmvz3KJ0wK4kDIt7qkho=; h=From:List-Id:To:Cc:Subject:Date:In-Reply-To:References:From; b=cmb9ihPTOePnjIFkV0sSefcVDq/Dz6+c6PryMar03K0rN5dwKWoIA1WG86rYahP9R 7otUhJo6oIklRsSlgz26wrYx94HURoOTiWkfbSXoa07K84Vee8v1gtdWqDNpPN+yN/ GcojLixaBwP3/lXWtpli4itXfYlez9zPNnXmQ/F/QQUoF/2HJP+uI9fDq+ChUgLJHv n9ktPFkuWrBHtJXDRzAVjHyeoDgWPbHZ487I2UMfvrOnnsYXs2eZNlbzhIXQpBkDc4 WxXa/JyDjrlGUbaaQDXbnhhdkGEQCu3mYpHvuKpmnwI5PayNIUeqBMwjZIqWUWya+R v1mcKIMLHuYUQ== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, soc@kernel.org, Thomas Gleixner Cc: =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH v2 2/2] dt-bindings: interrupt-controller: convert marvell,mpic binding to YAML Date: Mon, 24 Jun 2024 16:53:55 +0200 Message-ID: <20240624145355.8034-3-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240624145355.8034-1-kabel@kernel.org> References: <20240624145355.8034-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_075424_966445_2B3DDF66 X-CRM114-Status: GOOD ( 20.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the marvell,mpic device-tree binding to YAML. Add myself as maintainer. Signed-off-by: Marek Behún Reviewed-by: Conor Dooley --- .../marvell,armada-370-xp-mpic.txt | 38 ----------- .../interrupt-controller/marvell,mpic.yaml | 63 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 64 insertions(+), 38 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/marvell,armada-370-xp-mpic.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/marvell,mpic.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/marvell,armada-370-xp-mpic.txt b/Documentation/devicetree/bindings/interrupt-controller/marvell,armada-370-xp-mpic.txt deleted file mode 100644 index 5fc03134a999..000000000000 --- a/Documentation/devicetree/bindings/interrupt-controller/marvell,armada-370-xp-mpic.txt +++ /dev/null @@ -1,38 +0,0 @@ -Marvell Armada 370, 375, 38x, XP Interrupt Controller ------------------------------------------------------ - -Required properties: -- compatible: Should be "marvell,mpic" -- interrupt-controller: Identifies the node as an interrupt controller. -- msi-controller: Identifies the node as an PCI Message Signaled - Interrupt controller. -- #interrupt-cells: The number of cells to define the interrupts. Should be 1. - The cell is the IRQ number - -- reg: Should contain PMIC registers location and length. First pair - for the main interrupt registers, second pair for the per-CPU - interrupt registers. For this last pair, to be compliant with SMP - support, the "virtual" must be use (For the record, these registers - automatically map to the interrupt controller registers of the - current CPU) - -Optional properties: - -- interrupts: If defined, then it indicates that this MPIC is - connected as a slave to another interrupt controller. This is - typically the case on Armada 375 and Armada 38x, where the MPIC is - connected as a slave to the Cortex-A9 GIC. The provided interrupt - indicate to which GIC interrupt the MPIC output is connected. - -Example: - - mpic: interrupt-controller@d0020000 { - compatible = "marvell,mpic"; - #interrupt-cells = <1>; - #address-cells = <1>; - #size-cells = <1>; - interrupt-controller; - msi-controller; - reg = <0xd0020a00 0x1d0>, - <0xd0021070 0x58>; - }; diff --git a/Documentation/devicetree/bindings/interrupt-controller/marvell,mpic.yaml b/Documentation/devicetree/bindings/interrupt-controller/marvell,mpic.yaml new file mode 100644 index 000000000000..616a41c87352 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/marvell,mpic.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/marvell,mpic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell Armada 370, 375, 38x, 39x, XP Interrupt Controller + +maintainers: + - Marek Behún + +description: | + The top-level interrupt controller on Marvell Armada 370 and XP. On these + platforms it also provides inter-processor interrupts. + + On Marvell Armada 375, 38x and 39x this controller is wired under ARM GIC. + + Provides MSI handling for the PCIe controllers. + +properties: + compatible: + const: marvell,mpic + + reg: + items: + - description: main registers + - description: per-cpu registers + + interrupts: + items: + - description: | + Parent interrupt on platforms where MPIC is not the top-level + interrupt controller. + + interrupt-controller: true + + '#interrupt-cells': + const: 1 + + msi-controller: true + +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells' + - msi-controller + +additionalProperties: false + +examples: + - | + #include + #include + + interrupt-controller@20a00 { + compatible = "marvell,mpic"; + reg = <0x20a00 0x2d0>, <0x21070 0x58>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <1>; + msi-controller; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 2ca8f35dfe03..17f1ea1eacf3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2211,6 +2211,7 @@ F: Documentation/ABI/testing/sysfs-firmware-turris-mox-rwtm F: Documentation/devicetree/bindings/bus/moxtet.txt F: Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.txt F: Documentation/devicetree/bindings/gpio/gpio-moxtet.txt +F: Documentation/devicetree/bindings/interrupt-controller/marvell,mpic.yaml F: Documentation/devicetree/bindings/leds/cznic,turris-omnia-leds.yaml F: Documentation/devicetree/bindings/watchdog/armada-37xx-wdt.txt F: drivers/bus/moxtet.c