Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1356403imm; Tue, 22 May 2018 02:45:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrykUVe78XJhDDA6ggRx4u+2kf8zH44bvYYko0SZDXe1RNZpwoa4DcYZFwpVzrL5b6pxCl4 X-Received: by 2002:a62:ab10:: with SMTP id p16-v6mr23331150pff.211.1526982333909; Tue, 22 May 2018 02:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526982333; cv=none; d=google.com; s=arc-20160816; b=ctSdqEiLQ1KQ9SvIEZCyHIt6E38gHhxD6mHJy74KqnBScuRt5nI8I2wxPpE3GgyF0B xgjdMRuLdhXCCL5K/JpnKmmYW/M8jcCj5TwRbCMSTwUbSUqBsOBiHAUI/6LhvXph+nTL heQGoK4o3r2QgpBelDaGdcTj0xnTugW3poNtX3XMzz+7l7ac5RrTqcfLhre6sxQfp+X1 imFrB/hqWhEZ7XkglR1CqhbTMqpVslqk1FvLUNUE+4VwhUesNyS69UDLfWaf345LjX8Y HpQyrTyT0HW7FCCMKaNlKC9xngRrNXeSZk++dWl1i1rV7B5tm0btDy08lAckoD89P3k5 9oBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=JKKmnAsu+SnQtMpCiLZhiu18H0ImB5anmaL9RQ+u63c=; b=dsqjtxLJkJPj+rbqKF1f4Q89rWjdjLn2ONHMntHt+ezBwCo1qYbJT3UxnY6nnKb1aZ rLuVVdflEZh3S1LaMi+/w4p3ttY2zJaCecMKBczKhMzfCaPF/QUbf1NftxZCKKpjUhLv nl3vZ9YKkHV0nTUlHqoTCeJDu73NinI1a0xTsC+txRl0liq0yDP6W68cEga/yJy+2Zwm XLie4AW8g6dd6vHpq7FrblPlLZhgqLPyqV7svqCgJg1gfyDh0Ckcq9FQ+JJGdj32a1WJ huJl/BrmBrKVZ2FWEKv3ISFKu9Z4TiCbGnK8Iyerke3et0JR7qLSg8A3ThChP37Xnc4R ED1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si16031394plh.378.2018.05.22.02.45.19; Tue, 22 May 2018 02:45:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751630AbeEVJnT (ORCPT + 99 others); Tue, 22 May 2018 05:43:19 -0400 Received: from mail.bootlin.com ([62.4.15.54]:49698 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751359AbeEVJlA (ORCPT ); Tue, 22 May 2018 05:41:00 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C23932085B; Tue, 22 May 2018 11:40:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 3F96A2086E; Tue, 22 May 2018 11:40:48 +0200 (CEST) From: Miquel Raynal To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Catalin Marinas , Will Deacon , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Cc: Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Antoine Tenart , Maxime Chevallier , Nadav Haklai , Haim Boot , Hanna Hawa , linux-kernel@vger.kernel.org, Miquel Raynal Subject: [PATCH v2 12/16] dt-bindings/interrupt-controller: update Marvell ICU bindings Date: Tue, 22 May 2018 11:40:38 +0200 Message-Id: <20180522094042.24770-13-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180522094042.24770-1-miquel.raynal@bootlin.com> References: <20180522094042.24770-1-miquel.raynal@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change the documentation to reflect the new bindings used for Marvell ICU. This involves describing each interrupt group as a subnode of the ICU node. Each of them having their own compatible. Signed-off-by: Miquel Raynal --- .../bindings/interrupt-controller/marvell,icu.txt | 81 ++++++++++++++++++---- 1 file changed, 69 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/marvell,icu.txt b/Documentation/devicetree/bindings/interrupt-controller/marvell,icu.txt index 649b7ec9d9b1..6f7e4355b3d8 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/marvell,icu.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/marvell,icu.txt @@ -5,6 +5,8 @@ The Marvell ICU (Interrupt Consolidation Unit) controller is responsible for collecting all wired-interrupt sources in the CP and communicating them to the GIC in the AP, the unit translates interrupt requests on input wires to MSG memory mapped transactions to the GIC. +These messages will access a different GIC memory area depending on +their type (NSR, SR, SEI, REI, etc). Required properties: @@ -12,20 +14,19 @@ Required properties: - reg: Should contain ICU registers location and length. +Subnodes: Each group of interrupt is declared as a subnode of the ICU, +with their own compatible. + +Required properties for the icu_nsr/icu_sei subnodes: + +- compatible: Should be "marvell,cp110-icu-nsr" or "marvell,cp110-icu-sei". + - #interrupt-cells: Specifies the number of cells needed to encode an - interrupt source. The value shall be 3. + interrupt source. The value shall be 2. - The 1st cell is the group type of the ICU interrupt. Possible group - types are: + The 1st cell is the index of the interrupt in the ICU unit. - ICU_GRP_NSR (0x0) : Shared peripheral interrupt, non-secure - ICU_GRP_SR (0x1) : Shared peripheral interrupt, secure - ICU_GRP_SEI (0x4) : System error interrupt - ICU_GRP_REI (0x5) : RAM error interrupt - - The 2nd cell is the index of the interrupt in the ICU unit. - - The 3rd cell is the type of the interrupt. See arm,gic.txt for + The 2nd cell is the type of the interrupt. See arm,gic.txt for details. - interrupt-controller: Identifies the node as an interrupt @@ -35,17 +36,73 @@ Required properties: that allows to trigger interrupts using MSG memory mapped transactions. +Note: each 'interrupts' property referring to any 'icu_xxx' node shall + have a different number within [0:206]. + Example: icu: interrupt-controller@1e0000 { compatible = "marvell,cp110-icu"; reg = <0x1e0000 0x440>; + + CP110_LABEL(icu_nsr): icu-nsr { + compatible = "marvell,cp110-icu-nsr"; + #interrupt-cells = <2>; + interrupt-controller; + msi-parent = <&gicp>; + }; + + CP110_LABEL(icu_sei): icu-sei { + compatible = "marvell,cp110-icu-sei"; + #interrupt-cells = <2>; + interrupt-controller; + msi-parent = <&sei>; + }; +}; + +node1 { + interrupt-parent = <&icu_nsr>; + interrupts = <106 IRQ_TYPE_LEVEL_HIGH>; +}; + +node2 { + interrupt-parent = <&icu_sei>; + interrupts = <107 IRQ_TYPE_LEVEL_HIGH>; +}; + +/* Would not work with the above nodes */ +node3 { + interrupt-parent = <&icu_nsr>; + interrupts = <107 IRQ_TYPE_LEVEL_HIGH>; +}; + +Note on legacy bindings: +Before using a subnode for each domain, only NSR were +supported. Bindings were different in this way: + +- #interrupt-cells: The value was 3. + The 1st cell was the group type of the ICU interrupt. Possible + group types were: + ICU_GRP_NSR (0x0) : Shared peripheral interrupt, non-secure + ICU_GRP_SR (0x1) : Shared peripheral interrupt, secure + ICU_GRP_SEI (0x4) : System error interrupt + ICU_GRP_REI (0x5) : RAM error interrupt + The 2nd cell was the index of the interrupt in the ICU unit. + The 3rd cell was the type of the interrupt. See arm,gic.txt for + details. + +Example: + +icu: interrupt-controller@1e0000 { + compatible = "marvell,cp110-icu"; + reg = <0x1e0000 0x440>; + #interrupt-cells = <3>; interrupt-controller; msi-parent = <&gicp>; }; -usb3h0: usb3@500000 { +node1 { interrupt-parent = <&icu>; interrupts = ; }; -- 2.14.1