Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1588268imu; Tue, 6 Nov 2018 00:45:19 -0800 (PST) X-Google-Smtp-Source: AJdET5fOPDI6h2R/P2PnNTYyNXrv67Fshw+npTFTuc8shxQjeGPX1R+pCZRTtYms9rXVxevg/x4A X-Received: by 2002:a17:902:bd0a:: with SMTP id p10-v6mr24626860pls.245.1541493918938; Tue, 06 Nov 2018 00:45:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541493918; cv=none; d=google.com; s=arc-20160816; b=Zw364BPNjMgKHyS7hk70XvTCCmS1pV5jf+PlfSoBnM5T+vZCO7L1/D0T/h06n/WfeR US7zI/rvp+kUjI6VXNwCjFV4/DgkVr39RH4SroV8awlDth0nGb/FogZHvWNrQcWTb3zI B/D0vVo3cfvI2n7jGqwr7MNQXIF56FeqOibroTGgGnUtUH7sHKy5Wp05CcdnSVc8YApV OEHiBzU8uuM3eYturO/iAYntMuhZTvfkX9DnDUK4aNCWiQ1qET4Ynw0MetBAAjYrWr/Y DWi1sTDr/m7pNg+6W6Ivcl0bfcsS/HkckINIk3ZSAigp3iP6W/thjgjiKuqgLw1vX4j0 w3pw== 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=g9QRRzaNo8jRsci1HMuxCZrbCPYQaFRfgAOIE1ssH2U=; b=pXOFobOmT8L523S0geDADlpmQGx0btBJMci7KJd/36SUyt2VNbD0YTNVHc2OeCRCpf Pe1TfUf6MxR6MwD/Ksf74/d83r0d0tmOlhdy5BWEAeSE9jeOj4eBZsM0KqeQejrhnIUl 00caRV/j26Z84FjdRNfW+SL3H7OSWBG+QRC31r5EzWtaEH86G2Vn775gcbqLiDTkkt5S JytLoHTPp6gljtY2ROfMdf4SXfoMDJKNRRurn9UfyOGZFV5Ml0ri8k7E2YA7M70gadvn 8IUO7IMMoymp6n5MV90KxWpWZxEsir1SPfnhhYLNI4HUSuYSJdOPct4+7Pcj/0hQraAF OEEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Xc/agNrD"; 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 r68-v6si50177272pfk.151.2018.11.06.00.45.03; Tue, 06 Nov 2018 00:45:18 -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=@ti.com header.s=ti-com-17Q1 header.b="Xc/agNrD"; 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 S2387714AbeKFSG7 (ORCPT + 99 others); Tue, 6 Nov 2018 13:06:59 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:33278 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730083AbeKFSG7 (ORCPT ); Tue, 6 Nov 2018 13:06:59 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id wA68g9xj093568; Tue, 6 Nov 2018 02:42:09 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1541493729; bh=g9QRRzaNo8jRsci1HMuxCZrbCPYQaFRfgAOIE1ssH2U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Xc/agNrD7g+/4igjC7SFl5SqGYTS+1gRk2w8CdGdtfe6MT0ku0rDF+xTtjLPNZGni Av+xupez0LK1Pfy1gfHjFQZPAnaHVPQuqa8AZvDbF8gEjVerLhFOPnVG6BX/GMMPte 6MAkWBf51D8cx71mW9UgpcAw5FeO/abo2MYv+AqU= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wA68g9Rw024819 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 Nov 2018 02:42:09 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 6 Nov 2018 02:42:09 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 6 Nov 2018 02:42:09 -0600 Received: from uda0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wA68fJ3u032677; Tue, 6 Nov 2018 02:42:05 -0600 From: Lokesh Vutla To: Nishanth Menon , Santosh Shilimkar , Rob Herring , , , CC: Linux ARM Mailing List , , Tero Kristo , Sekhar Nori , Device Tree Mailing List , Grygorii Strashko , Peter Ujfalusi , Lokesh Vutla Subject: [RFC PATCH v3 11/13] dt-bindings: irqchip: Introduce TISCI Interrupt Aggregator bindings Date: Tue, 6 Nov 2018 14:11:03 +0530 Message-ID: <20181106084105.32483-12-lokeshvutla@ti.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181106084105.32483-1-lokeshvutla@ti.com> References: <20181106084105.32483-1-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 Add the DT binding documentation for Interrupt Aggregator driver. Signed-off-by: Lokesh Vutla --- Changes since v2: - None .../interrupt-controller/ti,sci-inta.txt | 74 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.txt diff --git a/Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.txt b/Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.txt new file mode 100644 index 000000000000..17b1fbd90312 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.txt @@ -0,0 +1,74 @@ +Texas Instruments K3 Interrupt Aggregator +========================================= + +The Interrupt Aggregator (INTA) provides a centralized machine +which handles the termination of system events to that they can +be coherently processed by the host(s) in the system. A maximum +of 64 events can be mapped to a single interrupt. + + + Interrupt Aggregator + +-----------------------------------------+ + | Intmap VINT | + | +--------------+ +------------+ | + m ------>| | vint | bit | | 0 |.....|63| vint0 | + . | +--------------+ +------------+ | +------+ + . | . . | | | +Globalevents ------>| . . |------>| INTA | + . | . . | | | + . | . . | +------+ + n ------>| +--------------+ +------------+ | + | | vint | bit | | 0 |.....|63| vintx | + | +--------------+ +------------+ | + | | + +-----------------------------------------+ + +Configuration of these Intmap registers that maps global events to vint is done +by a system controller (like the Device Memory and Security Controller on K3 +AM654 SoC). Driver should request the system controller to get the range +of global events and vints assigned to the requesting host. Management +of these requested resources should be handled by driver and requests +system controller to map specific global event to vint, bit pair. + +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 Aggregator Node: +------------------------------- +- compatible: Must be "ti,sci-inta". +- reg: Should contain registers location and length. +- 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 event source offset + within the device + Third cell specified the interrupt number(vint) + reaching Interrupt aggregator. + Fourth cell specifies the trigger type as defined + in interrupts.txt in this directory. +- interrupt-parent: phandle of irq parent for TISCI intr. +- ti,sci: Phandle to TI-SCI compatible System controller node. +- ti,sci-dev-id: TISCI device ID of the Interrupt Aggregator. +- ti,sci-rm-range-vint: TISCI subtype id representing the virtual interrupts + (vints) range within this IA, assigned to the + requesting host context. +- ti,sci-rm-range-global-event: TISCI subtype id representing the global + events range reaching this IA and are assigned + to the requesting host context. + +Example: +-------- +main_udmass_inta: interrupt-controller@33d00000 { + compatible = "ti,sci-inta"; + reg = <0x0 0x33d00000 0x0 0x100000>; + interrupt-controller; + interrupt-parent = <&main_navss_intr>; + #interrupt-cells = <4>; + ti,sci = <&dmsc>; + ti,sci-dev-id = <179>; + ti,sci-rm-range-vint = <0x0>; + ti,sci-rm-range-global-event = <0x1>; +}; diff --git a/MAINTAINERS b/MAINTAINERS index de6fb2bf70f4..2f20efab4664 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14740,6 +14740,7 @@ F: Documentation/devicetree/bindings/clock/ti,sci-clk.txt F: drivers/clk/keystone/sci-clk.c F: drivers/reset/reset-ti-sci.c F: Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.txt +F: Documentation/devicetree/bindings/interrupt-controller/ti,sci-inta.txt F: drivers/irqchip/irq-ti-sci-intr.c THANKO'S RAREMONO AM/FM/SW RADIO RECEIVER USB DRIVER -- 2.19.1