Received: by 10.223.176.46 with SMTP id f43csp2244188wra; Thu, 25 Jan 2018 07:04:55 -0800 (PST) X-Google-Smtp-Source: AH8x226hcmhTwAW6kPE2ke7bglLtU8wTme+Te/zL5FkPxqHalW+yIhOPpJBGmUMEgV00Ek+vfoFj X-Received: by 10.98.137.197 with SMTP id n66mr16406864pfk.70.1516892695494; Thu, 25 Jan 2018 07:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516892695; cv=none; d=google.com; s=arc-20160816; b=G7RBMQ72dN973O9ED5bA9WVswG/57pmLh+OlZaTtnIboQ7FyA6ubP7jpAQi0l1PbiC gFMqc7283l+Eg5xHDQtQYS5gxGdMnLID7fYKaoMQKE/D+uwqJHfSqjR4utHvfSMyakpF efG3Vfa1iansb2cx5wluYaGh9rcmO/7aKO1V7H+13kWKZQiPb9CyURLOBJ5b+Iict1YY +UTilckga3l8a9sVo5Dt3WmRB7Lj/pQDAy5HrYESUdIj1wGus818mrbnThB6x3MMfHmY iTA4bZwvz6qMskgPgzsCnSF+/Eu7Zi/VPktyxkPFhi7Htyv/yX7UGdMu60VgxAsmYalU PKvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=L/bXetLADigG5eD4ZWiJLnoqFmTvRxLK5iIuVCWxPk0=; b=KBGSrXA96vN/eHbcmp/tUIBHFqDnvc9JuZFqrzu8bevElAw0fhpyNlbhYoQWpCX4aF ovc13KxVUB71QrCTuDVMr7oYdqMWtml/gryWRcPX6uAXQiwYlOsQM//YHWOWWIE4oQdy LhSaRO2GW86jcLJnjvQfRHxPM+AH2SZJXLsAOumhHc6Qzsh28MnQ0KJFR4S7+GP5Lxff 6ZVUEEkfUjJSJx7RGCm2H6UKi71oE4/Fx36mdiKiChU5D+jP01ru8UKZqT2pVsUHyREv aC3HqB24gnhzj19CteOFt3TF1xs4LiMdrJsP7hRsr0jMUQzf4WvEra4ezZGeAeVumks1 DBWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@prevas.dk header.s=ironport1 header.b=HKxBW+8N; 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 q188si1668354pga.444.2018.01.25.07.04.16; Thu, 25 Jan 2018 07:04:55 -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; dkim=fail header.i=@prevas.dk header.s=ironport1 header.b=HKxBW+8N; 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 S1751526AbeAYPCo (ORCPT + 99 others); Thu, 25 Jan 2018 10:02:44 -0500 Received: from mail01.prevas.se ([62.95.78.3]:45781 "EHLO mail01.prevas.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751045AbeAYPCm (ORCPT ); Thu, 25 Jan 2018 10:02:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=2440; q=dns/txt; s=ironport1; t=1516892562; x=1548428562; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=Ae1Tk+tjtAoWNSwk3Zighhr18BNGqV+CkFQiL8q5ZIU=; b=HKxBW+8NQfTXpygp3GMasfG3frJwYif71X9trlLtgAEM+tMI8x1b2Kag g2KH3xBTe2vx/JJhmFZuGTziNLbu26tKwzwB/+rKshQzLb+6CdzegzSyM Arv01viqtYK8Ro6bzaHLQrJRI0XiqEP6zy7lzcwYkkYRtjSpjSy3Oh49t U=; X-IronPort-AV: E=Sophos;i="5.46,412,1511823600"; d="scan'208";a="3128897" Received: from vmprevas4.prevas.se (HELO smtp.prevas.se) ([172.16.8.104]) by ironport1.prevas.se with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jan 2018 16:02:41 +0100 Received: from prevas-ravi.prevas.se (172.16.8.31) by smtp.prevas.se (172.16.8.104) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 25 Jan 2018 16:02:40 +0100 From: Rasmus Villemoes To: Rob Herring , Shawn Guo , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Rutland CC: Andy Tang , Alexander Stein , Rasmus Villemoes , , Subject: [PATCH v4 2/2] dt/bindings: Add bindings for Layerscape external irqs Date: Thu, 25 Jan 2018 16:02:30 +0100 Message-ID: <20180125150230.7234-2-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180125150230.7234-1-rasmus.villemoes@prevas.dk> References: <20180122092133.23177-1-rasmus.villemoes@prevas.dk> <20180125150230.7234-1-rasmus.villemoes@prevas.dk> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.16.8.31] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + interrupts = <163 164 165 167 168 169>; + fsl,bit-reverse; + }; + }; + + + interrupts-extended = <&gic GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, + <&extirq GIC_SPI 1 IRQ_TYPE_LEVEL_LOW>; -- 2.15.1