Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753633AbdLUWoE (ORCPT ); Thu, 21 Dec 2017 17:44:04 -0500 Received: from mail-oi0-f66.google.com ([209.85.218.66]:43479 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750985AbdLUWoC (ORCPT ); Thu, 21 Dec 2017 17:44:02 -0500 X-Google-Smtp-Source: ACJfBotlAMQDln8OraCkqm6+RbSYLd9QHPX8uPqrOCSwTl3deOQclmuoJ2swq6pVk8FXF81sVuVNQw== Date: Thu, 21 Dec 2017 16:44:00 -0600 From: Rob Herring To: Rasmus Villemoes Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Rutland , Andy Tang , Shawn Guo , Alexander Stein , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 2/2] dt/bindings: Add bindings for Layerscape external irqs Message-ID: <20171221224400.26hq6rqjrj6oefqt@rob-hp-laptop> References: <1512743580-15358-1-git-send-email-rasmus.villemoes@prevas.dk> <1513758631-19909-1-git-send-email-rasmus.villemoes@prevas.dk> <1513758631-19909-2-git-send-email-rasmus.villemoes@prevas.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1513758631-19909-2-git-send-email-rasmus.villemoes@prevas.dk> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2228 Lines: 59 On Wed, Dec 20, 2017 at 09:30:30AM +0100, Rasmus Villemoes wrote: > Signed-off-by: Rasmus Villemoes > --- > .../interrupt-controller/fsl,ls-extirq.txt | 37 ++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt > new file mode 100644 > index 000000000000..7e4680866364 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt > @@ -0,0 +1,37 @@ > +* Freescale Layerscape external IRQs > + > +Some Layerscape SOCs (LS1021A, LS1043A, LS1046A) support inverting > +the polarity of certain external interrupt lines. > + > +Required properties: > +- compatible: should be "fsl,-extirq", e.g. "fsl,ls1021a-extirq". > +- interrupt-controller: Identifies the node as an interrupt controller > +- #interrupt-cells: Use the same format as specified by GIC in arm,gic.txt. > +- interrupt-parent: phandle of GIC. > +- syscon: phandle of Supplemental Configuration Unit (scfg) and offset > + to the INTPCR register. > +- interrupts: Specifies the mapping to interrupt numbers in the parent > + interrupt controller. Interrupts are mapped one-to-one to parent > + interrupts. > + > +Optional properties: > +- bit-reverse: This boolean property should be set on the LS1021A if fsl,bit-reverse > + the SCFGREVCR register has been set to all-ones (which is usually > + the case), meaning that all reads and writes of SCFG registers are > + implicitly bit-reversed. Other compatible platforms do not have such > + a register. > + > +Example: > + extirq: extirq { Node name should still be "interrupt-controller". > + compatible = "fsl,ls1021a-extirq"; > + #interrupt-cells = <3>; > + interrupt-controller; > + interrupt-parent = <&gic>; > + syscon = <&scfg 0x1ac>; > + interrupts = <163 164 165 167 168 169>; > + bit-reverse; > + }; > + > + > + interrupts-extended = <&gic GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, > + <&extirq GIC_SPI 1 IRQ_TYPE_LEVEL_LOW>; > -- > 2.7.4 >