Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp902277ybx; Thu, 7 Nov 2019 04:25:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzrXsg64/CRfPmQD21edHkUP+QnQDgms8uQLLCxJrm/ijsJ12rCcnYWZs1Cyiiv7azl9Hwy X-Received: by 2002:a05:6402:2029:: with SMTP id ay9mr3241619edb.47.1573129507063; Thu, 07 Nov 2019 04:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573129507; cv=none; d=google.com; s=arc-20160816; b=ra4xpUA2fvbjZgNRsiFZU/TH3JTvzn+8dIYwzkMPnA8r2PqvziXtWLK63Br6ookF9u N1z4yZBLVqwbHjJigmbggUsedyQfHLjimeJ0ZqPquqGEUHlR5RZCsXa+t9+QG12VvnJN Skw3/MTyE6yQCFmzXvKFKOdtVA8lEe52EGaH02bwRmNdzFvylWRPxxNOBKcDBP+EixEL mhaArjGX+2wcmIh12dvPQAtRukZuWE+ZEsDkBKKK2ilm/ork735JB5pBQlJLRh4LjiYA bueVq1E4E0fBwBjY+IykDkr6G+jxSN1m5ZI0ivji8xNUV41+1AgdywwjfFoZXP8wQB9b MJ1A== 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 :dkim-signature; bh=5tXZQK5SdTJcD5DX2NXTTLlsnWvLwQp4hXBzaAdJsJs=; b=K0D50hSa4iqC01+LpGOlH+YpNAo/eIB815vcuRezs3hVrIx3XBu78YBI0j89qQJUzm 2+4tk+FGfe+hWRHJiA7qRHqpIvMfhhah+mrqvfgtlI3+LwrmX47a+kWGS5SULp0JLVQH bq6cVNZZYQKrcT3WxqC3PF7E3YH1DEdgsBfCW1/1AwS+epqHOhu0xlApEI+77gd9qIXd r4XhfQlDiOlP93ypDujRydC0wj5ecSxnH6oM93U2QV/i7/NqLJhZwnN+jSCSeyNfolaf VYTm/49im12uqquD2D7IDrgjPcPF7Jel20MJ+G0vev2CBBqydqoLiXOwo9vGAqJoXXnA fIWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=UJiJ0fjw; 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 m33si1364450edc.126.2019.11.07.04.24.32; Thu, 07 Nov 2019 04:25:07 -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=@rasmusvillemoes.dk header.s=google header.b=UJiJ0fjw; 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 S2388479AbfKGMVY (ORCPT + 99 others); Thu, 7 Nov 2019 07:21:24 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35085 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbfKGMVW (ORCPT ); Thu, 7 Nov 2019 07:21:22 -0500 Received: by mail-lf1-f68.google.com with SMTP id y6so1452376lfj.2 for ; Thu, 07 Nov 2019 04:21:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5tXZQK5SdTJcD5DX2NXTTLlsnWvLwQp4hXBzaAdJsJs=; b=UJiJ0fjwIKuwCzH+zPZtV0Co4tqdg0CUHNzYt5OW7bM1U/LYZgQRs0QIqlCVL17kAJ wJswvXJwH4Z4cK8i2ejta754pexIH0jAoC/5VRwQTZDafB5D/EeEQK8hQZIFDDEI3FMG A9wdf5VNNAgdOXAMu4pPYzzhznosW6fQ7/uDM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5tXZQK5SdTJcD5DX2NXTTLlsnWvLwQp4hXBzaAdJsJs=; b=UeU7C0J07AJz/sfWWJmq1NTM0qBr9FMVuwOcNUkHsokF2OiDWfTU2YMaeHthaW1ywN 40jdCCIK2uKcywJkG1v/5zgsg+UPd+NOQoBI6tOHgw7azhTtokEm/G7w7/RlOMcvez5f KFLgjUxRF9T4uFGaNDNv46NdTV8e8CQOEnL7uiU0SMUrahJ4GroqjaYK6vMOcowaL2yw dINQfXbCyTGdd49Ny1KT+FJ08poxwM+uedClq50Ow+hi6aVxaloINXPFNidfsWF//c93 hDvU27k0Ry+3tiO2X/NIOJEnryikb3rPlvLeHKlfrk/Jq4qgpBf2HESlSlWHI5+PpYqg Sc6A== X-Gm-Message-State: APjAAAWnMVnuxjqtPQsLOPBayIeGdMgLc1Gdq+rb70hCa905p00OEUyk naXC9ijbO3jCR7ENuKMb+6ndeA== X-Received: by 2002:a19:98e:: with SMTP id 136mr2189671lfj.27.1573129279668; Thu, 07 Nov 2019 04:21:19 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id x1sm1937325lff.90.2019.11.07.04.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 04:21:19 -0800 (PST) From: Rasmus Villemoes To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland Cc: Rasmus Villemoes , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Kurt Kanzenbach Subject: [PATCH v7 1/2] dt/bindings: Add bindings for Layerscape external irqs Date: Thu, 7 Nov 2019 13:21:14 +0100 Message-Id: <20191107122115.6244-2-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191107122115.6244-1-linux@rasmusvillemoes.dk> References: <20191107122115.6244-1-linux@rasmusvillemoes.dk> 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 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 | 49 +++++++++++++++++++ 1 file changed, 49 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..f0ad7801e8cf --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/fsl,ls-extirq.txt @@ -0,0 +1,49 @@ +* 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-cells: Must be 2. The first element is the index of the + external interrupt line. The second element is the trigger type. +- #address-cells: Must be 0. +- interrupt-controller: Identifies the node as an interrupt controller +- reg: Specifies the Interrupt Polarity Control Register (INTPCR) in + the SCFG. +- interrupt-map: Specifies the mapping from external interrupts to GIC + interrupts. +- interrupt-map-mask: Must be <0xffffffff 0>. + +Example: + scfg: scfg@1570000 { + compatible = "fsl,ls1021a-scfg", "syscon"; + reg = <0x0 0x1570000 0x0 0x10000>; + big-endian; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x1570000 0x10000>; + + extirq: interrupt-controller@1ac { + compatible = "fsl,ls1021a-extirq"; + #interrupt-cells = <2>; + #address-cells = <0>; + interrupt-controller; + reg = <0x1ac 4>; + interrupt-map = + <0 0 &gic GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, + <1 0 &gic GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, + <2 0 &gic GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, + <3 0 &gic GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>, + <4 0 &gic GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, + <5 0 &gic GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; + interrupt-map-mask = <0xffffffff 0x0>; + }; + }; + + + interrupts-extended = <&gic GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, + <&extirq 1 IRQ_TYPE_LEVEL_LOW>; -- 2.23.0