From patchwork Thu Jul 2 14:17:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 11639055 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B132C6C1 for ; Thu, 2 Jul 2020 14:27:23 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8A28220772 for ; Thu, 2 Jul 2020 14:27:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="McrvSYd2"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Sl2TTjzw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8A28220772 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=haj9zTnclqkR8B5uDBKft/ZCC8ZU4pCTYYWg/TJK9qk=; b=McrvSYd2I4h4MxfiMBKI4ZIpZ1 IUYS4+Ix007lPpmfAmxsCDrQHdVQrUJ1LNUzxCSYDoiwmeilL1U0XPtGuqEbxQEZqRSdcI0GeN/Z+ 0IbRXy/b9VQYlqR9Us6d+ACJ+WHRzZNO3laqCp6Ob8CEzuqM2iGrQqL0RjODELHYq4TA2edt1vuxU 7nlffn3VTxAV0PVcjEoPA41uOfYTJcCFqSUvWrw6jDTi0RJ+IXsStbTqqvjEXTD0dSo0iC/H4RQJ9 WYAVWQg+J+LLz9LlFK3WCaToxx6F6gPWSRT44ppOtULegwC2ZPHEY7VLSR4ONJMAnwgstqQAEBri/ sfygpViA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr09x-0008Bg-LW; Thu, 02 Jul 2020 14:25:53 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr09t-0008A6-IT for linux-arm-kernel@lists.infradead.org; Thu, 02 Jul 2020 14:25:50 +0000 Received: by mail-ed1-x541.google.com with SMTP id dg28so24111447edb.3 for ; Thu, 02 Jul 2020 07:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=0P63yETtCZy7cAGoDgafSeN36XD6Q/8y9SUCJsklzIU=; b=Sl2TTjzwSjlY2Q45XFnpjkZAYMSWda+yE40Vr4ZMzbf45WKugp/wqROPo3mVS70Qeh 6rrSJ522hSEUbMfdvCCnRIApBpzMMNQ7zosW95YMpgW6FAUBex6eVjXU/6UM7J7xz7ZC vBvCn5BXRM86J8J4owX9S5qS8aHnWROah/VleW8+Y/YRVzQ41DDi68C4sIj8wTv9wtZg vroEPWaLTy2fLdsmJykqeGqv63UmoGLiFU5K1rjyYDmxOWxyeXk1oDy7HILMu4/+iH4t xh9BhxMVXq5jalPjRCbX0STd5QLJO1F/AnrsJSAbvoJj8Q1GZ0EmgsDBECPIrod/CTwt TdmA== 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; bh=0P63yETtCZy7cAGoDgafSeN36XD6Q/8y9SUCJsklzIU=; b=D1jRyJMlJE+4MiEmgYxRTFp+UFDlL6/HSXPrJ5jHly+ISrWNKA39kbDu01o+KHjvlD LfkqIQeYrLllv55lkm3w+GSffSmK3z4RxPvggkisQXyw+71Phg9nwPSqBPDBNvzETsyR j/h9f5DD3V4JfVgtLsbAidixV83Px4xaE047tZAhgyLvGzEcaFoWVQ5z6AQoFtHF9sCF dNBCnYrNG3QR0aAPudsXo3Cn0+KLLFmIXCgnNbO0u7osWZi5ezLyXNcIRrbN3qzWZyUc ECQE5oCy4MucHsjTcp67858hM/vSmHgT5cHAoS1D4aGyup07HxD/yDy/43pCUBlewmC5 lvhg== X-Gm-Message-State: AOAM533kswAUcQYcqMJCeyuNQvaFOUrACxbTAOM8hEE+cmN7kN7/kZpB B0deME8/dE9ZrME7yw+QauWGKqpf/wZaCQ== X-Google-Smtp-Source: ABdhPJxNW8aUC7P/8FBnpgDN16lffoUsadSz8mCqHx5zKjKr2rET0nDVNBdEJxLtRZb50m5Lq78rnQ== X-Received: by 2002:a2e:9744:: with SMTP id f4mr14295946ljj.367.1593699548019; Thu, 02 Jul 2020 07:19:08 -0700 (PDT) Received: from gilgamesh.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id v10sm692581ljg.113.2020.07.02.07.19.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2020 07:19:07 -0700 (PDT) From: Grzegorz Jaszczyk To: tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, s-anna@ti.com Subject: [PATCHv3 0/6] Add TI PRUSS Local Interrupt Controller IRQChip driver Date: Thu, 2 Jul 2020 16:17:53 +0200 Message-Id: <1593699479-1445-1-git-send-email-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_102549_620509_F68259AC X-CRM114-Status: GOOD ( 15.25 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:541 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, grzegorz.jaszczyk@linaro.org, david@lechnology.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-omap@vger.kernel.org, lee.jones@linaro.org, wmills@ti.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi All, The following is a v3 version of the series [1][2] that 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. Please see the v1 cover-letter [1] for details about the features of this interrupt controller. More details can be found in any of the supported SoC TRMs. Eg: Chapter 30.1.6 of AM5728 TRM [3] Please see the individual patches for exact changes in each patch, following are the main changes from v2: - Convert dt-binding to YAML (patch #1). - Address comments from Marc Zyngier regarding patch #2 and update following patches due to those changes. - Dropped the custom helper functions used for interrupt configuration outside of irq driver [4]. Introduce new patch (patch 6) which uses xlate and irq domain mapping functionality in order to map system event through 2 levels of many-to-one mapping i.e. events to channel mapping and channels to host interrupts. [1] https://patchwork.kernel.org/cover/11034561/ [2] https://patchwork.kernel.org/cover/11069749/ [3] http://www.ti.com/lit/pdf/spruhz6 [4] https://patchwork.kernel.org/patch/11069751/ Best regards Grzegorz David Lechner (1): irqchip/irq-pruss-intc: Implement irq_{get,set}_irqchip_state ops Grzegorz Jaszczyk (1): irqchip/irq-pruss-intc: Add event mapping support Suman Anna (4): dt-bindings: irqchip: Add PRU-ICSS interrupt controller bindings irqchip/irq-pruss-intc: Add a PRUSS irqchip driver for PRUSS interrupts irqchip/irq-pruss-intc: Add support for shared and invalid interrupts irqchip/irq-pruss-intc: Add support for ICSSG INTC on K3 SoCs .../interrupt-controller/ti,pruss-intc.yaml | 135 ++++ drivers/irqchip/Kconfig | 10 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-pruss-intc.c | 717 +++++++++++++++++++++ 4 files changed, 863 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ti,pruss-intc.yaml create mode 100644 drivers/irqchip/irq-pruss-intc.c