Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3645396ybn; Fri, 27 Sep 2019 09:14:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxK4YQI9klkKX9e+wZtbKotRGQQSG031FuRhdF85z79MDdw+kpdZC9U+MUt7naBC8rjIcP2 X-Received: by 2002:a50:852c:: with SMTP id 41mr5308619edr.201.1569600853484; Fri, 27 Sep 2019 09:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569600853; cv=none; d=google.com; s=arc-20160816; b=Z2AjPunxNMhfV6xMDEaiVXB6j9OT2no3SMtLiqnm9ZxgQa8tFAqamEP4PVU12Ek10b u+Ew8cfY2jGcTjcja17OFWzDiu29XJdH2ApKxSlM1qZ26MWMW3IX2B+/j1qqp4qy7qtl XUjYLnZQkJZX02QDZujg+r6bNlen9mAJR+1/H1vrJHWeHQfnQzDc3b0t9uW8gISfOVeR exTht7IdQ/claWSjdhs+itIeaE0kR+dauOkL7EiAtkmTNyJBQ8P6q1Es7tlshzBZeYU/ zhgCaRQ9zuMb32fxWZwsYB6W74terZTGV8ybzIfN9gesmkxhMBhccpBgcOEvlspM7Cjb Tq6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=X3psm7pGYecaR7OkJEumX87W65GK4kSG3NWHyS2qiTE=; b=A/nVMW5me20JroiOPswM05i402caFy+b+dnoaz8DbDg0it98VcXoMlXEi1mjdheGdd oTAQo8h7kENumgyJLrS6puDOw3GTPiXJETuB+9e7SYY+JkBMpgYAtNdAcRIg2zJjj1qe aBy7/IZbUDYwjZS+NG6G+gm8sK/bKGRw5t2hNvJjwFy7ajS2F+Tynxzit+OJQAe4jZxj KJQ8hdQRUoA5Ovvufu6FQ4FIv2FmArkPqrafYSSqA81OZT7M2rvHRQwLkCr9O1e4KLbD s3zreJ54q4YpJGtqVyP2xY3b9F7FQIUfnS5QEjQiQQg2RRgVn7x8r/+yg347uXM1huii vfLQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s24si2878924ejb.16.2019.09.27.09.13.44; Fri, 27 Sep 2019 09:14:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728015AbfI0QLW (ORCPT + 99 others); Fri, 27 Sep 2019 12:11:22 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:35214 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727273AbfI0QLU (ORCPT ); Fri, 27 Sep 2019 12:11:20 -0400 Received: by mail-ot1-f66.google.com with SMTP id z6so2725523otb.2; Fri, 27 Sep 2019 09:11:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=X3psm7pGYecaR7OkJEumX87W65GK4kSG3NWHyS2qiTE=; b=r43PAhduF3KjjdjLsEKqRjwC3U6VP2X2Oimesstu3qcxlO4DNUYgLciWZM31vG/zj5 edfiSUd0h0yOuiP234LSx7IZdcjdID2HX8/KpAhIg6v2HuqUGBpNVMOqTL/pa552XZS5 tsErxZ43+DiXbwlp4PoBbj78OdpmxqjlptZrRuojD+btwlcrJvJ+9oex3LbXo1+J8VzV zp81MWu6LvqQIkIuWma1qGLLdiGQm+cVKSlEfAL3ycVSnklF1OtSq2K3OozSeef3T6qj Kz/1HaY8Cea7/q82M74Yhjfd7URWpc8IWUCPJwzL02KDw2IAmvu5PyuC6HhDy94rYxCc qQmQ== X-Gm-Message-State: APjAAAVnDYAIc/cnFZvh6blc0vAZOwA4OszSRFPCrmslOICXfyrOidM2 1HxzhZUlkKuZoPveiIkUUg== X-Received: by 2002:a05:6830:17d8:: with SMTP id p24mr3932919ota.72.1569600679834; Fri, 27 Sep 2019 09:11:19 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id n17sm1011131otk.5.2019.09.27.09.11.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 09:11:19 -0700 (PDT) Date: Fri, 27 Sep 2019 11:11:18 -0500 From: Rob Herring To: Kurt Kanzenbach Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Rutland , linux-kernel@vger.kernel.org, Rasmus Villemoes , devicetree@vger.kernel.org Subject: Re: [PATCH v6 2/2] dt/bindings: Add bindings for Layerscape external irqs Message-ID: <20190927161118.GA19333@bogus> References: <20190923101513.32719-1-kurt@linutronix.de> <20190923101513.32719-3-kurt@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190923101513.32719-3-kurt@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 23, 2019 at 12:15:13PM +0200, Kurt Kanzenbach wrote: > From: Rasmus Villemoes > > This adds Device Tree binding documentation for the external interrupt > lines with configurable polarity present on some Layerscape SOCs. > > Signed-off-by: Rasmus Villemoes > Signed-off-by: Kurt Kanzenbach > --- > > Changes since v5: > > - Add #address-cells and #size-cells to parent > - Mention LS2088A and the ISC unit Repeating some of my lost comments from v2 2 years ago... > > .../interrupt-controller/fsl,ls-extirq.txt | 47 +++++++++++++++++++ > 1 file changed, 47 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..7b53f9cc8019 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt > @@ -0,0 +1,47 @@ > +* Freescale Layerscape external IRQs > + > +Some Layerscape SOCs (LS1021A, LS1043A, LS1046A, LS2088A) support > +inverting the polarity of certain external interrupt lines. > + > +The device node must be a child of the node representing the > +Supplemental Configuration Unit (SCFG) or the Interrupt Sampling > +Control (ISC) Unit. > + > +Required properties: > +- compatible: should be "fsl,-extirq", e.g. "fsl,ls1021a-extirq". > +- interrupt-controller: Identifies the node as an interrupt controller > +- #interrupt-cells: Must be 2. The first element is the index of the > + external interrupt line. The second element is the trigger type. > +- interrupt-parent: phandle of GIC. > +- reg: Specifies the Interrupt Polarity Control Register (INTPCR) in the SCFG. > +- fsl,extirq-map: Specifies the mapping to interrupt numbers in the parent > + interrupt controller. Interrupts are mapped one-to-one to parent > + interrupts. This should be an 'interrupt-map' instead. > + > +Optional properties: > +- fsl,bit-reverse: This boolean property should be set on the LS1021A > + if 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. Couldn't you just read that register and tell? Does this apply to only the extirq register or all of scfg? > + > +Example: > + scfg: scfg@1570000 { > + compatible = "fsl,ls1021a-scfg", "syscon"; > + #address-cells = <1>; > + #size-cells = <0>; As the child node(s) are memory mapped, this should not be 0. And you need 'ranges'. > + ... > + extirq: interrupt-controller { > + compatible = "fsl,ls1021a-extirq"; > + #interrupt-cells = <2>; > + interrupt-controller; > + interrupt-parent = <&gic>; > + reg = <0x1ac>; > + fsl,extirq-map = <163 164 165 167 168 169>; > + fsl,bit-reverse; > + }; > + }; > + > + > + interrupts-extended = <&gic GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, > + <&extirq 1 IRQ_TYPE_LEVEL_LOW>; > -- > 2.20.1 >