Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp818158ybn; Tue, 24 Sep 2019 09:59:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7m7w1UwrqJnL4oNFvOt+Yfejnc7ZseVWn/UBQ+nrDcpY1xelZv8++4YvLgC1B4rC2YdHU X-Received: by 2002:a17:906:13cd:: with SMTP id g13mr3357908ejc.302.1569344361893; Tue, 24 Sep 2019 09:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569344361; cv=none; d=google.com; s=arc-20160816; b=NHvhZg6z4pTY+4djGlyn/kBbFHnD0C70/Le8nv3z6qLXT6xrHhav0hgXJqWKX3RSc1 yD/1l+OX4cGFGo187PqrRrM8S+Pu9pdPu0sXwmxU/9o89GOzSy5nUAJ/ouMK6qI2VTJn fiFMKSZSrjXIsZj4RfPgY49KTKPJBdFggo9aH5XV0U3BVGA8Lri5yKdr/i03j+CDoW1i +PEM1CJKiTI4L6a5Cf84lkW54ckNx3CT6TvgUaEXHrxLJ8Mz0Y4BpohnF/7HWGDe28bQ Y6MSwysh1TWNpaf/CJfkuuK4nBXQgP4L2fVkDRCdj+6CUnU8FMQUnc1xeyXmPo4eyprw nWiA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=2OLfuXiFg/K6Ngi61A7Rn/H+KigqrmZn8UEqNuYxMnU=; b=mP68aEFOOHorlTB5XG/gPG5Q+xh+Zmop+LGv98tDxEHqVEjXlXjA/lS1l/qNJ+HaXY Msb9V1o4A4GB2MegZdGVv/ch7XfInes45LehABRie4hyCiO1xbBbjVViGJMwPyjr9jeH dgKzbYrnOcIHMORBaKaLs3J4t4WPRv3K3DnEmUTZXJ69PE0jogtIWZTzHjnMd1KcvOF+ IxbnBugnPoFPDi4Doh2g62VbFi8gtyWRXA3eYu0Zp6etl5eNDylb//FAS0wAjhyj9ISo kipcBjUDWYKHpKc7XZEsNgfqWaTEd1h6bAYJfEKx0URnUbRAtcOjVw9yIGUxl+nkdH1g K3SQ== 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 p28si1411416ejn.88.2019.09.24.09.58.58; Tue, 24 Sep 2019 09:59:21 -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 S2439397AbfIWKPg (ORCPT + 99 others); Mon, 23 Sep 2019 06:15:36 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:57822 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439241AbfIWKPf (ORCPT ); Mon, 23 Sep 2019 06:15:35 -0400 Received: from [5.158.153.52] (helo=kurt.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1iCLNS-0001oR-WA; Mon, 23 Sep 2019 12:15:31 +0200 From: Kurt Kanzenbach To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland Cc: linux-kernel@vger.kernel.org, Rasmus Villemoes , devicetree@vger.kernel.org, Kurt Kanzenbach Subject: [PATCH v6 2/2] dt/bindings: Add bindings for Layerscape external irqs Date: Mon, 23 Sep 2019 12:15:13 +0200 Message-Id: <20190923101513.32719-3-kurt@linutronix.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190923101513.32719-1-kurt@linutronix.de> References: <20190923101513.32719-1-kurt@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 .../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. + +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"; + #address-cells = <1>; + #size-cells = <0>; + ... + 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