Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2707584imj; Mon, 18 Feb 2019 10:38:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IYTKwoHBPS6YAaeQpni9NfJVq3XwoArp4eKjDWMRHRlGHKo2CNMbw/qHRWTxPytxRN9hOMY X-Received: by 2002:a17:902:1aa:: with SMTP id b39mr27014091plb.244.1550515102000; Mon, 18 Feb 2019 10:38:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550515101; cv=none; d=google.com; s=arc-20160816; b=EFafoST1+NWJs9gKiQNHt1C6wXwn9NuOAeRrjRcSij1+WIQVwXxN/KyBcHGO8VpPhy 74TRNEZ4jYEjqZsy6o2hDuVPmwvRevvjQ288RsJ4Qr+2JyJTO+pyvnBu0Q99R80pe91U LeFXh1AF13I6O+I1Oq6IuTVUGn6+Jkul0BXepRitt4zuzubqyHRRsGyfBEd+f8FJ9mak KDaismmB/ZPbSq7nKhTYLW657AzZ7MnCAkmC2vUW0wBN8buLmjvY9Qk90RXvd4ZWIJ87 kznkhFtzofN25Xd30q9tNPsLlRY+kkYeLv77rP73hgI+thOZe9DgDxWkTdEsYfbpY/li x9+A== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=BwUgpi14rqV/gJZY19S/69h0AQhw5Z5hb0pgDaaH7Dk=; b=hI0WCCfAlqJaXF6YZHrdmK/v9of7+RHjTtcX5nH5tL8hOasDpAKipYjKAXyjlH6bh6 Jz4J5QVHJCw06zuIvTcNd4bJoXBSvjasn5AorPv9Tdqr04fVe/x/eSOLI8PKBoq0HPeA gjePXiH6oFMsgvfGECYqaSYjOEPctQo4Zr1m1jqg9vW+HV3I0RFTyYsjXLUNO9cQ48iN mKokqX6jiCtf9NbFi7nv0ErcCgVDPtNd9MxbrYLv/p2GHODQunS1gBHMOZM85Cyjkx3s CUo8Rfwq2Xu8iFCrhD5NYgjlXnm5X7tKW8Za4FBPL/p85LQnYj7cJYdB1/HMqTASL16V VNeg== 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 e25si13012216pgv.486.2019.02.18.10.38.06; Mon, 18 Feb 2019 10:38:21 -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 S1731281AbfBRPNM (ORCPT + 99 others); Mon, 18 Feb 2019 10:13:12 -0500 Received: from foss.arm.com ([217.140.101.70]:33138 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730904AbfBRPNM (ORCPT ); Mon, 18 Feb 2019 10:13:12 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A6971650; Mon, 18 Feb 2019 07:13:12 -0800 (PST) Received: from why.wild-wind.fr.eu.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AA7323F740; Mon, 18 Feb 2019 07:12:48 -0800 (PST) Date: Mon, 18 Feb 2019 15:12:19 +0000 From: Marc Zyngier To: Lokesh Vutla Cc: Tony Lindgren , Nishanth Menon , Santosh Shilimkar , Rob Herring , , , Linux ARM Mailing List , , Device Tree Mailing List , Sekhar Nori , Tero Kristo , Peter Ujfalusi Subject: Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings Message-ID: <20190218150738.527a0507@why.wild-wind.fr.eu.org> In-Reply-To: <20190212074237.2875-6-lokeshvutla@ti.com> References: <20190212074237.2875-1-lokeshvutla@ti.com> <20190212074237.2875-6-lokeshvutla@ti.com> Organization: ARM Ltd X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Feb 2019 13:12:32 +0530 Lokesh Vutla wrote: > Add the DT binding documentation for Interrupt router driver. > > Signed-off-by: Lokesh Vutla > --- > Changes since v4: > - None > > .../interrupt-controller/ti,sci-intr.txt | 85 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 86 insertions(+) > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.txt > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.txt b/Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.txt > new file mode 100644 > index 000000000000..4b0ca797fda1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.txt > @@ -0,0 +1,85 @@ > +Texas Instruments K3 Interrupt Router > +===================================== > + > +The Interrupt Router (INTR) module provides a mechanism to route M > +interrupt inputs to N interrupt outputs, where all M inputs are selectable > +to be driven per N output. There is one register per output (MUXCNTL_N) that > +controls the selection. > + > + > + Interrupt Router > + +----------------------+ > + | Inputs Outputs | > + +-------+ | +------+ | > + | GPIO |----------->| | irq0 | | Host IRQ > + +-------+ | +------+ | controller > + | . +-----+ | +-------+ > + +-------+ | . | 0 | |----->| IRQ | > + | INTA |----------->| . +-----+ | +-------+ > + +-------+ | . . | > + | +------+ . | > + | | irqM | +-----+ | > + | +------+ | N | | > + | +-----+ | > + +----------------------+ > + > +Configuration of these MUXCNTL_N registers is done by a system controller > +(like the Device Memory and Security Controller on K3 AM654 SoC). System > +controller will keep track of the used and unused registers within the Router. > +Driver should request the system controller to get the range of GIC IRQs > +assigned to the requesting hosts. It is the drivers responsibility to keep > +track of Host IRQs. > + > +Communication between the host processor running an OS and the system > +controller happens through a protocol called TI System Control Interface > +(TISCI protocol). For more details refer: > +Documentation/devicetree/bindings/arm/keystone/ti,sci.txt > + > +TISCI Interrupt Router Node: > +---------------------------- > +- compatible: Must be "ti,sci-intr". > +- interrupt-controller: Identifies the node as an interrupt controller > +- #interrupt-cells: Specifies the number of cells needed to encode an > + interrupt source. The value should be 4. > + First cell should contain the TISCI device ID of source > + Second cell should contain the interrupt source offset > + within the device > + Third cell specifies the trigger type as defined > + in interrupts.txt in this directory. > + Fourth cell should be 1 if the irq is coming from > + interrupt aggregator else 0. This is odd. Doesn't the aggregator have a device ID too, which could be used to discriminate between the two? Thanks, M. -- Without deviation from the norm, progress is not possible.