Received: by 10.223.176.5 with SMTP id f5csp2154525wra; Sun, 4 Feb 2018 22:10:43 -0800 (PST) X-Google-Smtp-Source: AH8x225VpRwfVjCjgutSVU7aCvt0yeleLoajLB548yGMW8x3zJH5ls2B78bHZNJttmyDrsbDgdSR X-Received: by 10.101.101.149 with SMTP id u21mr10849676pgv.251.1517811043101; Sun, 04 Feb 2018 22:10:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517811043; cv=none; d=google.com; s=arc-20160816; b=ZIqpUywppIXw8igKCKNwytoJwTQqwQJ6k0HjjUcPJyKVCF1PgQI7oZbBfZQeV6h3g0 ZT2lFa99bO8BuqefBNzw3suKdAukJFr9LEOzk1L+13vzDGvIvdB71nIl6jnu89DOfchd p7Cit6T2FJec9YI1WnrRR8XXlpn8s+jFbzAFpkQqoWI7wIH8cCuSyanYAx5df4kk3yOC 4LYBM1UFgbBBk0EzRXId2SzvXeFLETjdwxbJzL0i1ppgjaCE+mSHpXIPY6miupEWz6as XctbWUs96j2Ys4GBHXcTnGwDF5tLHlPnN4viRTiTIJcW4uHADY1r3sJhl3Ped5+35QDS z/nw== 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:arc-authentication-results; bh=pVgAXeK6m/jPD2x1jFC3NRAo0INdatKQKhS1Dhku+t4=; b=ivmN0WOe8GWi89gT+nGGaWKG444D6z0zP7LxmnYNLyL/W4NhshxX4oiKwNBlnfDMhI vd/mvgDcSkYRmqvvYMDioZYFPyxdUnL0zJ/xJ97rFITHLStwaTeLLP2+4wV7p3pEVPzB PevKtH9c+SdatsBYbRMx99x3FlATUGPRCLN8LRymEInJaR1SDMf/2E8ODhvjGNcFEGVE F7BOldXVhWrsHCdOVbXU26HpeoFYtYa9DMTQE37iVR/ruMzn6ogZScm1zyJiDlb7j0BL ehGWLeezyEOQINojAOAKdkmF5a/CHL7kq7W8Zoub8n+6D3sTra2EbY1e2QRDG4scWQfe d2qA== 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 d2si3681790pgq.82.2018.02.04.22.10.29; Sun, 04 Feb 2018 22:10:43 -0800 (PST) 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 S1752611AbeBEGHO (ORCPT + 99 others); Mon, 5 Feb 2018 01:07:14 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36960 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750784AbeBEGHH (ORCPT ); Mon, 5 Feb 2018 01:07:07 -0500 Received: by mail-pg0-f65.google.com with SMTP id o1so3419484pgn.4; Sun, 04 Feb 2018 22:07:07 -0800 (PST) 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=pVgAXeK6m/jPD2x1jFC3NRAo0INdatKQKhS1Dhku+t4=; b=iCKuVtVHFY7qPbPaEtX7S7rAqLIc/drWBhItc4PC7p2vvtl9UbQQaG3nVQyJJzdTv9 GDM3txrVNC6iTIWHw6JVZPaFvYlPh+Hk5SgePMeHBno+GgXfoEE5/WJ3Ac+WRfGD4119 r6zOOv+itk6ExMOPUAfBHzWg6JutlSad3vp+ID9gxCyCU3hP3ARGnD/cxPN6POTUvck8 Bonvp5ZC12JoOSvM+DuQKOYf4guo79MXJ4DGrGW8zrrvBKzdioMsLKUOCgl89oAsPtwI Aukv2omZ+NWDJcDqUsj+Wu3uaOgkAU4xZZ/zvhlW6wo00sCzu9fmgXa6NZRA91NyFzoC EeVg== X-Gm-Message-State: AKwxytd4uFUeKedSj6J4C0RLzVgoa++JBntP14ofyi4zH/0NZYGRKOUh B51aG4UUaGdA7aK0n4zgbQ== X-Received: by 10.99.143.18 with SMTP id n18mr5195978pgd.254.1517810827334; Sun, 04 Feb 2018 22:07:07 -0800 (PST) Received: from localhost ([50.225.178.238]) by smtp.gmail.com with ESMTPSA id 27sm2040848pfj.173.2018.02.04.22.07.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 Feb 2018 22:07:06 -0800 (PST) Date: Mon, 5 Feb 2018 00:07:05 -0600 From: Rob Herring To: Rasmus Villemoes Cc: Shawn Guo , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Rutland , Andy Tang , Alexander Stein , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v4 2/2] dt/bindings: Add bindings for Layerscape external irqs Message-ID: <20180205060705.cg3qywtqs65w74ee@rob-hp-laptop> References: <20180122092133.23177-1-rasmus.villemoes@prevas.dk> <20180125150230.7234-1-rasmus.villemoes@prevas.dk> <20180125150230.7234-2-rasmus.villemoes@prevas.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180125150230.7234-2-rasmus.villemoes@prevas.dk> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 25, 2018 at 04:02:30PM +0100, Rasmus Villemoes wrote: > This adds Device Tree binding documentation for the external interrupt > lines with configurable polarity present on some Layerscape SOCs. > > Signed-off-by: Rasmus Villemoes > --- > Changes since v3: Add non-empty commit log. > > .../interrupt-controller/fsl,ls-extirq.txt | 44 ++++++++++++++++++++++ > 1 file changed, 44 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..a71ce2c3eeae > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt > @@ -0,0 +1,44 @@ > +* Freescale Layerscape external IRQs > + > +Some Layerscape SOCs (LS1021A, LS1043A, LS1046A) 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). > + > +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. > +- offset: offset to the Interrupt Polarity Control Register (INTPCR) > + register in the SCFG. > +- interrupts: Specifies the mapping to interrupt numbers in the parent > + interrupt controller. Interrupts are mapped one-to-one to parent > + interrupts. > + > +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. > + > +Example: > + scfg: scfg@1570000 { > + compatible = "fsl,ls1021a-scfg", "syscon"; > + ... > + extirq: interrupt-controller { > + compatible = "fsl,ls1021a-extirq"; > + #interrupt-cells = <3>; > + interrupt-controller; > + interrupt-parent = <&gic>; > + offset = <0x1ac>; Use reg here instead (with a length). > + interrupts = <163 164 165 167 168 169>; These don't look like GIC interrupt cells. Building this with current dtc will have errors. > + fsl,bit-reverse; > + }; > + }; > + > + > + interrupts-extended = <&gic GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, > + <&extirq GIC_SPI 1 IRQ_TYPE_LEVEL_LOW>; > -- > 2.15.1 >