Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1745029imm; Sat, 6 Oct 2018 09:30:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV63cWpKizxnGiQi5M0tIyiINymZY7KAtoWTcBJiyPVoHEJhYPZlfT6CKQ4t34EedLmXmiOVA X-Received: by 2002:a62:c8c3:: with SMTP id i64-v6mr17650827pfk.183.1538843433521; Sat, 06 Oct 2018 09:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538843433; cv=none; d=google.com; s=arc-20160816; b=rDt8pB9lWbwi3VpFdX0Lyg4rUlbp0en+hO5mkwPgORaecnwBtAG9J3QAFkOvRwfupY 46llEdW1zqSpqokq7NC5HBibQzIVEjl/9wjk3lkwpTkuBkINa0YH9VcmEoq99OSXyfue m4bkaq6mix5+bWjkUy8z9bRD/unVpO/6px7TFsK/gjVpGw6NuVZa+y4CbRyksPWFmVvk w+uQtfcES9txsFIfdE/d+uLCb7MrLBMn9QatGzlhXTr6mNTFvMlpyRBUmXoJyljU4buS CLhqmiz4R0i0ia16+PQV1dc8J8R7VMnZopVrL2YemMHNR2qeOUZ44bo6i13lM6tDxZ+Q W9qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Mx+k+8UlU6t+lRSMyrxqshCbhbVL3if/0SY8ujaZ/Ng=; b=hx4stOU9GFyrlSlm/jqhlH6/x6uBGlCEuTcs/ebWmP5E7Jd3vTjLIdKUl4AMpM3WUq 0Gy6oEQEP1rqLG1scCiKX63XOtFOeG+Mo5W8c5l18e/sWtFQzTB567oLXfS1uA3Wm+as jqWhrUoDg/5x5nzH+rQg+/pTnbHs12/B9zuIHs5qJZPawr26eimhJCCXp9CGavhxgTnA hcPNyyDLPWXnARuh1faNyJkbS4YD+nfdFyN3a4PkSY8sr36OhTf1ZQr3jbz6pgvGPX0U oF4H3M/rn23lWn9GxROES/wiFoWTFowz8V1W6nnYVjF5/GGe3lCfyq6cbbvZ6udFcVN+ BFGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vi12rti+; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10-v6si10169080pgs.362.2018.10.06.09.30.18; Sat, 06 Oct 2018 09:30:33 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vi12rti+; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727771AbeJFXeJ (ORCPT + 99 others); Sat, 6 Oct 2018 19:34:09 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:42046 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725266AbeJFXeJ (ORCPT ); Sat, 6 Oct 2018 19:34:09 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id w96GTV2i022913; Sat, 6 Oct 2018 11:29:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1538843371; bh=Mx+k+8UlU6t+lRSMyrxqshCbhbVL3if/0SY8ujaZ/Ng=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=vi12rti+ZyCjHpEkI1Wn32HPx1g4tNFX9KdgvgdrcmXwzq2y/dOUjo4oLcSJ6r5fx kAOK9Dgwx6CQTwx4DFDJCHmNlaVzvbSqDBwM1RI6Vye6G6zPztXXxSzqvtaV7aK+RB QixRAOHi8vq4UqeZrb6CcaR42nFXgN2cMdm8Zu9s= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w96GTVB8000928; Sat, 6 Oct 2018 11:29:31 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Sat, 6 Oct 2018 11:29:31 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Sat, 6 Oct 2018 11:29:31 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w96GTUMq012991; Sat, 6 Oct 2018 11:29:30 -0500 Date: Sat, 6 Oct 2018 11:29:29 -0500 From: Nishanth Menon To: Lokesh Vutla CC: Tero Kristo , , , , Rob Herring , Santosh Shilimkar , Device Tree Mailing List , Linux ARM Mailing List , , Sekhar Nori Subject: Re: [PATCH 1/2] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings Message-ID: <20181006162929.u6uh4ffn6gm3incf@akan> References: <20181006072812.15814-1-lokeshvutla@ti.com> <20181006072812.15814-2-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20181006072812.15814-2-lokeshvutla@ti.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12:58-20181006, Lokesh Vutla wrote: > Add the DT binding documentation for Interrupt router driver. > > Signed-off-by: Lokesh Vutla > --- > .../interrupt-controller/ti,sci-intr.txt | 83 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 84 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..681ca53cc5fb > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.txt > @@ -0,0 +1,83 @@ > +Texas Instruments K3 Interrupt Router > +===================================== > + > +The Interrupt Router (INTR) module provides a mechanism to mux 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 | |----->| GIC | > + | 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 GIC 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 3. > + 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. > +- interrupt-parent: phandle of irq parent for TISCI intr. The parent must > + use the same interrupt-cells format as GIC. > +- ti,sci: Phandle to TI-SCI compatible System controller node. > +- ti,sci-dst-id: TISCI device ID of the destination IRQ controller. > +- ti,sci-rm-range-girq: Tuple corresponding to unique TISCI resource type that > + defines the dst host irq ranges assigned to this > + interrupt router from this host context. > + Tuple should be of format . > + Rob, DT maintainers, I'd like a feedback from DT maintainers on this 'range' topic. TISCI Firmware [1] currently seems to define a type corresponding to a device ID[2]. in AM6 device, for example, this is different, however have a 1 to 1 correspondence. However, there is expectation that type will end up as device ID in a future SoC. While this is subject to much debate internally, I'd like some feedback if this is OK from Device tree representation - it is true that Firmware does look at it as type, however in some future SoC, it could be that the values themselves may correspond one to one with a device id -> The original wish was that types might be something reusable across SoCs, but that is turning out to be more of a theoretical wish than any thing practical. [1]http://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am6x/resasg_types.html [2]http://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am6x/devices.html -- Regards, Nishanth Menon