Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp899795imm; Fri, 8 Jun 2018 07:02:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJqT0kpchE5LxWWmvxFvhrVBymaOk5Pu1lRlzkm7RsbFDaNW1+3Km4kR28V2y3MTtshMDCo X-Received: by 2002:a17:902:1703:: with SMTP id i3-v6mr6810954pli.263.1528466519971; Fri, 08 Jun 2018 07:01:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528466519; cv=none; d=google.com; s=arc-20160816; b=Fs7ERjE9pS3etIK0WKNlunB2CvlgCznKP43Bg5c+EUicauTGFzLvELl8YVQVt78hO1 EkjpDucmkMcpSftQuSNnb5dTyOclMG429lYir6p45uPDjCXkTk5JE3fjSwacCRRPo/ES rzXMcJyzUEcbUsXvRHcnzLp+eETcqwwFxdBgMGaHuXktX/Riu31zB8VxYEF8kXwwEgkL e2svfCHL+t9nG6Vuo5g/pJpSsKC8m7FEnZ06uFo+EeqiwyqYo+a/PmZVdjiC16pdgJOC vo4R337bsoaLH6MZ5C8BACmT0+fZ5yPi0P5y2ER2qD9B4Uu9mMnqaWGBZC/E+ro/YKep 5nUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=WYmEKnNZHSmzpVDQqIv7gRp677teaWr2e/hcuK2Ks2k=; b=t3sLRRwL08nXrOwb67w+i4e5ENnvlU60PwPyIXsmE/hPTrRPnfKbhLpPC5QC2P3Qtc KJxQ6OvSTUGlmLy+70L/Z+6ITs5ss9KNFG1Ru/2td4GfQoG9k9+MaQ5FMGFqJHxXT8Mv cyEq0fn7HpOdo8d3HY/Lxo/YRY6GXyzpCsVTmiku5WtuyDmMXiAivz4xTQ8sMb10rw5Z qT2vBotOZi+CKpM2fIZRh8oRBw7WmbUoxe8wjPoE8r2kP+JpjeXoFhSpNqr6CKwxz9Ha E2ZuSo5cczEqVK8D6Hcs06uKc+4FLH9ldTiLL8MnduHmqcVUX8l2SSi4/HqgUqvq/CPl IjRg== 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 z9-v6si14069325pln.250.2018.06.08.07.01.41; Fri, 08 Jun 2018 07:01:59 -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 S1751576AbeFHOBN convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 Jun 2018 10:01:13 -0400 Received: from mail.bootlin.com ([62.4.15.54]:41520 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbeFHOBL (ORCPT ); Fri, 8 Jun 2018 10:01:11 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 5FAF720737; Fri, 8 Jun 2018 16:01:09 +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 xps13 (AAubervilliers-681-1-128-7.w90-88.abo.wanadoo.fr [90.88.9.7]) by mail.bootlin.com (Postfix) with ESMTPSA id DA26F2069C; Fri, 8 Jun 2018 16:00:58 +0200 (CEST) Date: Fri, 8 Jun 2018 16:00:58 +0200 From: Miquel Raynal To: Rob Herring Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , Catalin Marinas , Will Deacon , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , 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 Subject: Re: [PATCH v2 12/16] dt-bindings/interrupt-controller: update Marvell ICU bindings Message-ID: <20180608160058.04db4613@xps13> In-Reply-To: <20180605202902.GA8875@rob-hp-laptop> References: <20180522094042.24770-1-miquel.raynal@bootlin.com> <20180522094042.24770-13-miquel.raynal@bootlin.com> <20180605202902.GA8875@rob-hp-laptop> Organization: Bootlin X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thanks for reviewing. On Tue, 5 Jun 2018 14:29:02 -0600, Rob Herring wrote: > On Tue, May 22, 2018 at 11:40:38AM +0200, Miquel Raynal wrote: > > 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. > > Need to explain why you need to do this and why breaking backwards > compatibility is okay. As explained by Thomas, backward compatibility is not broken as old bindings are still documented and supported. I will update the commit message to reflect that point. > > > > > 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 > > What happens to SR and REI interrupts? They were unused since the beginning. These values are still detailed below (in the legacy section). [...] > > > - > > - 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 { > > 'interrupt-controller' is the proper node name. Is there no register > range associated sub nodes? I will update the name. A few are used only for NSR, a few only for SEI and others are used for both. But ok, I will add register ranges. > > > + 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>; > > + }; > > Mixture of tabs and spaces. Oops. > > > +}; > > + Thanks, Miquèl