Received: by 10.223.185.116 with SMTP id b49csp1168296wrg; Fri, 23 Feb 2018 13:11:00 -0800 (PST) X-Google-Smtp-Source: AH8x2241j1vlbs8QTfXSP4hnsY9qb4EkT8ZuWI57yaE9VGQbe8S1DzeJARnk8c1NegRQUMuNNOuB X-Received: by 10.99.168.8 with SMTP id o8mr2469872pgf.42.1519420259882; Fri, 23 Feb 2018 13:10:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519420259; cv=none; d=google.com; s=arc-20160816; b=hN59UzhLdf7/dhlP6WVWPbI1qxERhjZu1WgephZc6XaAAcISyIFi/ayyxPuzKiVMXG 1niAYaWmkDbzZfks8h00S4RlEbBsUtIrIfWA2ReQ12VW/a9iCepQGrhroXEoEQCSsokN hpDqI6A33i4oDUwOnbBEqhRqLx0H8n4SlJvAh6CR0A725C0DjqmGsNfQN9vzcpeoopkC kFra/B00RPCju22oRVflYkzOwV9LatGlgu5NmQPAwRU73lxzBwF276ydxNdu9bdsVHgi Ch0GCxD4OZ4rLPMGrVrz5JYuGs7NU0NkO2PFV0WxJ0EsZhRZjzrU0MekD+fi2MrKwaJ4 R+Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=MvvdwFbo4MCDXQa91wYMxHbzCMdix1PXHdpppFwcdbo=; b=xc3S3lPq817EVyeF/W7/YIX3RRDnLMPmjzGaKv1N1NBrBHvi8PY3uKFdiAyOjYHajW ON8leZz4u+fGa7ggl8xlAEgBkdST0bC0IVV9M5GUOsKQIxdshIiXH2cBiofyuOAR0kNT NhcTCzCq7zUOTlM3OiQyJU+vbVFuYutCWpWaG1uFTmxPNF5vR8HR6krv2KC1dyU8SEje /QECIk1KTrIEis9iz8qwOuwSVorUqerDhAnsavLrskHAhRKx2n4F7cxHzvIycb9QGDYc dVxWJUqblI+cwZ9Ptmp4Zyu4ch7M9rDT+/Yu65rbISH2PBvku50wFH82MGL7WJY6ZkYl rAoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@prevasonline.onmicrosoft.com header.s=selector1-prevas-se header.b=gmJv8q/J; 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 y6-v6si2285047plk.705.2018.02.23.13.10.45; Fri, 23 Feb 2018 13:10:59 -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=pass header.i=@prevasonline.onmicrosoft.com header.s=selector1-prevas-se header.b=gmJv8q/J; 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 S1752221AbeBWVJk (ORCPT + 99 others); Fri, 23 Feb 2018 16:09:40 -0500 Received: from mail-eopbgr40102.outbound.protection.outlook.com ([40.107.4.102]:10720 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751843AbeBWVJW (ORCPT ); Fri, 23 Feb 2018 16:09:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevasonline.onmicrosoft.com; s=selector1-prevas-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=MvvdwFbo4MCDXQa91wYMxHbzCMdix1PXHdpppFwcdbo=; b=gmJv8q/J2go8hYsC8bIn2jnE1Cwc8jPaLtC2JsmN24Kc2QQrzXoPddod8/JZE0gA4KmL0eYUQvLYPVt0K1ppvZWsUp8MKevuKt3mKTJz0X+J+PUJSeZaNuwuNcKZciPNcRJofZ9pV4+47wkYNP1mctpRM13c2hVhOWVsFLaZrFQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Rasmus.Villemoes@prevas.se; Received: from prevas-ravi.prevas.se (81.216.59.226) by DB6PR10MB0439.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:11::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Fri, 23 Feb 2018 21:09:17 +0000 From: Rasmus Villemoes To: Rob Herring , Shawn Guo , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Rutland Cc: Andy Tang , Alexander Stein , Rasmus Villemoes , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 2/2] dt/bindings: Add bindings for Layerscape external irqs Date: Fri, 23 Feb 2018 22:09:00 +0100 Message-Id: <20180223210901.23480-3-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180223210901.23480-1-rasmus.villemoes@prevas.dk> References: <20180125150230.7234-1-rasmus.villemoes@prevas.dk> <20180223210901.23480-1-rasmus.villemoes@prevas.dk> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [81.216.59.226] X-ClientProxiedBy: AM5P190CA0019.EURP190.PROD.OUTLOOK.COM (2603:10a6:206:14::32) To DB6PR10MB0439.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:11::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 40d1ba17-baa3-4d5c-4ca6-08d57b01b3ea X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(7021125)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:DB6PR10MB0439; X-Microsoft-Exchange-Diagnostics: 1;DB6PR10MB0439;3:rUvQfen9qjInLvOTtK/dkfjILfnfyjjPbB6pEV/P3vB7r0T/uNUhI/DvEYgGZyVuG4Iv30VhGy00kc6Hp+EKo9vLfxINptteJwdRXnWUkHCvopFLGxH1JfrXD3LGsmoYEak61DienPMk/nD6AQyPnH+NGTAfrT+RlMLHzPkmTOD5yIdVzf85XhYXX1auKHnAmERsHtzHsq0D9sR2+84g7hAP2MUvikWQuQHpl4T2BHhkHnWpX0UJy5uHQ9Mt+Nfk;25:ztQYMAHCTE0qs6GJnJ57F7lyIc5qrq2OGLR92mwnhg85OlBsQcdXI+6KXndi5MwqtUyzSAsKwDhCikMKCJQWhMbd0AklAwtgSLW+naC3MC55TN0nt0b9clw5Q8ky/LjNgGNZGEoFq+0frfG/ih3QQQLnhqQVgcIJHuUzGH1OW2Pq+PLUNjcCkHKCzh21qcpK4wKyNd727BEV3jO2NPDfcP7u7ZDmJMh6FTTzfHKteIXSDfk0wfF6GfA/cfSPwvCEXR3XrYsj/DdIOt4ww0w9yGeHqvwPbniChApSIUe+YiGepk8PacR23V00myncGn6wWLuO0kv0Gu9+WdWw3m1Jow==;31:PLYJDJIvtdbc1aZOHkebYKc7hWEoO3uUqm01bXPGS+xPZZaYqOR0mdh1gs9gsR5AUNOs4O7bYov1lFRQ3LBrDaoBCHj6Q1EkH0c9qUv6Ms0uAaDKL0qY3rkNanb42t6nrwjj9cIdPJ9a5cmthAqzFdmdpnH8cs86pBo1MpHke0hUt7kFKmpEy8BFbR+80gqrce+Sh+FvelU2vW/wIbaSoP1dmhwJWJKD/DjH9Hc7CI4= X-MS-TrafficTypeDiagnostic: DB6PR10MB0439: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(3231197)(944501161)(52105095)(93006095)(3002001)(6041288)(20161123558120)(2016111802025)(20161123564045)(20161123562045)(20161123560045)(6072148)(6043046)(201708071742011);SRVR:DB6PR10MB0439;BCL:0;PCL:0;RULEID:;SRVR:DB6PR10MB0439; X-Microsoft-Exchange-Diagnostics: 1;DB6PR10MB0439;4:Gve37QonKiFh+x6Mp642HIMUfuqt2D/PbO2h+MzemxUjNfHK5f8C8Zwuiv0QsQir6dEK9VSoNXP8zlYjLYE8iwLsjXmGzdna22LoxuVEvwPa46Mkrb1qhXGb0cFVLDmDz/LXpUHZyj82XAK/zQJRy079BiTQrTAxYVK9j2H6kOOCDLecshBm4uELInN4vKttSD114aFsa4fcvGkJPRwPdaf5HBt8GRZ+3KJzSRkwqD5SN6WLh1xyeW72n+htgLTxQVklFV9gJuZIHiO8g3lrgw== X-Forefront-PRVS: 0592A9FDE6 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(366004)(39850400004)(376002)(346002)(189003)(199004)(16586007)(76176011)(8656006)(386003)(110136005)(54906003)(6506007)(51416003)(81156014)(53416004)(316002)(2906002)(8676002)(8936002)(81166006)(72206003)(53936002)(74482002)(8976002)(305945005)(478600001)(6512007)(50466002)(6116002)(7736002)(186003)(1076002)(3846002)(16526019)(50226002)(5660300001)(25786009)(66066001)(26005)(6486002)(97736004)(47776003)(106356001)(68736007)(7416002)(48376002)(6666003)(42882006)(2950100002)(52116002)(36756003)(4326008)(105586002)(69596002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB6PR10MB0439;H:prevas-ravi.prevas.se;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: prevas.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DB6PR10MB0439;23:cY+3R7CpmtcDSlVoAWWyaXJVPvXy42yLodJMaEvFd?= =?us-ascii?Q?9xkJKMPnhQvEP2LPvF7yor0wfh1PIF1F1Y5ijkgD93xFheq6iGA4IaEOWXGg?= =?us-ascii?Q?WrTey89j0hOR/hnL3ZScRy1C9aMsGj+kne18/txD0wUWxLoYZrI90JtJ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YnSRFAX0WJF808A6mCz17ElgGmt0L3THnjp39mvNKVtELsHqj2I2Ru979HP7R8db4ywKvBAFm+0xFg2Uq+mabahwfB80uXPT2JJLR0gTzsTZaMpU4GuDWq4m76Up4vuIWBTlPNqp+UJIS8vEqLJkDHrCjEFeimBfpY/kfpkbDSpwgK8pgbJ9fY31zFwIZQGyhXY9R10UH3N5FUsy1N2RL SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2018 21:09:17.8953 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 40d1ba17-baa3-4d5c-4ca6-08d57b01b3ea X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR10MB0439 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 --- .../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..e510c715e8f6 --- /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: 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"; + ... + 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.15.1