Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6276557ybi; Mon, 8 Jul 2019 00:10:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwD1VStbyFSF3cUFdvQ8x6/JAfcNiraNKDafCl/kdGoRLIfsRIiEnW8RuXF8lF1O7dta+z9 X-Received: by 2002:a17:90b:f0f:: with SMTP id br15mr23635363pjb.101.1562569845923; Mon, 08 Jul 2019 00:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562569845; cv=none; d=google.com; s=arc-20160816; b=uHENMrltK3l7NOGyc9IPAxKWjrw53sLPKnZ9H8ope04n8h4EyhChFPKQhwvzvquWRy to3uBE9lcZMycIv+RNTIQfPhAjtfLusZIn9rxHuaqVO77y6662f1xkhEC7GlJGkVLdEz /yMijPMta5QTJElxNtmYgK1GWFos3k353ymxIKbFgGUfhg5IeTl71Es4QOmmLdOccO7Y gRUJNWGW3NGndwGLY8c5X/UyuNRth3uFsKA1Ei1c8zynhhutvuPGQ4lU6T3R688lqScf qwj2XJJ02rE/r8VryUcvylt85N7HnfT9m5tOwQEUGtLOWU13VHRJrbcYG/DI5UOZJW44 O/wg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=BrRcS2Ts0+S5AcxuLtFsmCPOIptQ/S7lXXWgFUi6kWA=; b=RiWehWSyQ6y8yEWnVRRIu79thk7vXehzPVt89xfCB1JjzH3F1clXtYR6wR1DudDzj4 kbI3/53w66yvq7NqVUFSBKeG6/WmAyxhTvNy5SiWFmPaj0312STpJgy7k/uSlbsmPsHP cq8B5NaX21Zn5dRGgpncgeWHmpqd9hVqtuY0baaFoTcIOFZ2287L4QpTKv0W+O+RdDj3 MzlVq2qXP+x+KD97fMudeHln33iox/zoiBuodoJAf2hrFjm+MCkZj+A5L2bcFCc3Z5bT fOYsOvE5iyZxmta9E1RpqUGnth+LxsU+GL4iQjOFSOhTpFY+mgGSYJ1b6MiKVn2z/FC+ iY5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OTI6h2xj; 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 78si18422974pfz.268.2019.07.08.00.10.30; Mon, 08 Jul 2019 00:10:45 -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=OTI6h2xj; 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 S1728968AbfGHDx6 (ORCPT + 99 others); Sun, 7 Jul 2019 23:53:58 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:60216 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727774AbfGHDx4 (ORCPT ); Sun, 7 Jul 2019 23:53:56 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x683qjop025049; Sun, 7 Jul 2019 22:52:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1562557965; bh=BrRcS2Ts0+S5AcxuLtFsmCPOIptQ/S7lXXWgFUi6kWA=; h=From:To:CC:Subject:Date; b=OTI6h2xjNNQdb3BrlzNL/9rQfQhkLJarwU+e1JabV7dNUSUXFfKUKsiD/ikWgEBY9 hxjHyYrtOMQthS+xqFLpEqjBma0vp5rGXgbediC3+mW6bj2lcwK6vDQyHrEL9PnBT+ Tdrkd1DEGu7SLZuMaY+0O9s7gQX1s8k82chb0qSY= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x683qjf7042834 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 7 Jul 2019 22:52:45 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Sun, 7 Jul 2019 22:52:45 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Sun, 7 Jul 2019 22:52:45 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x683qjaa122089; Sun, 7 Jul 2019 22:52:45 -0500 Received: from localhost (irmo.dhcp.ti.com [128.247.58.153]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x683qjm26429; Sun, 7 Jul 2019 22:52:45 -0500 (CDT) From: Suman Anna To: Marc Zyngier , Rob Herring , Thomas Gleixner , Jason Cooper CC: Tony Lindgren , "Andrew F. Davis" , Roger Quadros , Lokesh Vutla , Grygorii Strashko , Sekhar Nori , David Lechner , Murali Karicheri , , , , , Suman Anna Subject: [PATCH 0/6] Add TI PRUSS Local Interrupt Controller IRQChip driver Date: Sun, 7 Jul 2019 22:52:37 -0500 Message-ID: <20190708035243.12170-1-s-anna@ti.com> X-Mailer: git-send-email 2.22.0 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 Hi All, The following series adds an IRQChip driver for the local interrupt controller present within a Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS) present on a number of TI SoCs including OMAP architecture based AM335x, AM437x, AM57xx SoCs, Keystone 2 architecture based 66AK2G SoCs, Davinci architecture based OMAP-L138/DA850 SoCs and the latest K3 architecture based AM65x and J721E SoCs. This series splits out the INTC portions into a separate stand-alone series from the previous PRUSS support patch series [1] as requested by various maintainers. Patches are on top of latest master. The PRUSS local INTC is a unique interrupt controller designed to map a number of SoC-level device or internal PRUSS interrupt sources into a smaller set of output interrupt lines that are connected to various SoC-level processors like the host ARM, PRU cores themselves and optionally to some DSPs, other PRUSS, DMA controllers etc. The following are some of the features: - Capture of 64 (160 on K3) System Events/input interrupt sources - Multiplexing of these system events onto 10 (20 on K3) output interrupt channels in a many-to-one fashion - Multiplexing of the output interrupt channels onto 10 (20 on K3) host interrupts split between multiple processors. Typical integration connects the first 2 host interrupts to PRU cores, and the next 8 host interrupts to ARM cores. - Independent enable and disable of system events and their mapping onto a channel - Independent enable and disable of host events and the mapping to host events per interrupt channel. - Inherent hardward prioritization of events and channels (lower number indicates higher priority). - Additional input interrupt sources multiplexing using either a SoC-level CFG MMR or PRUSS CFG MMR (support will be added through PRU rproc client bindings). More details can be found in any of the supported SoC TRMs. Eg: Chapter 30.1.6 of AM5728 TRM [2] Changes from previous series include: - Update bindings to move away from SoC-specific compatibles - Use new DT properties to add support for shared and exclusive ARM GIC interrupt lines - Include support for Davinci OMAP-L138 and K3 AM65x & J721E SoCs - Split up the driver patch into granular incremental support patches regards Suman [1] https://patchwork.kernel.org/cover/10795721/ [2] http://www.ti.com/lit/pdf/spruhz6 Andrew F. Davis (2): irqchip/irq-pruss-intc: Add a PRUSS irqchip driver for PRUSS interrupts irqchip/irq-pruss-intc: Add API to trigger a PRU sysevent Suman Anna (4): dt-bindings: irqchip: Add PRUSS interrupt controller bindings irqchip/irq-pruss-intc: Add support for shared and invalid interrupts irqchip/irq-pruss-intc: Add helper functions to configure internal mapping irqchip/irq-pruss-intc: Add support for ICSSG INTC on K3 SoCs .../interrupt-controller/ti,pruss-intc.txt | 92 +++ drivers/irqchip/Kconfig | 10 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-pruss-intc.c | 749 ++++++++++++++++++ include/linux/irqchip/irq-pruss-intc.h | 33 + include/linux/pruss_intc.h | 26 + 6 files changed, 911 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ti,pruss-intc.txt create mode 100644 drivers/irqchip/irq-pruss-intc.c create mode 100644 include/linux/irqchip/irq-pruss-intc.h create mode 100644 include/linux/pruss_intc.h -- 2.22.0