From patchwork Mon Aug 31 15:09:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Jaszczyk X-Patchwork-Id: 248743 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3399104ilg; Mon, 31 Aug 2020 08:10:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdhzFN2JIZN3xHOFDHWhnS9jDggmtLNS1IuQjcG5VxXJ8BflzPSbYctlFH8g7+ZTpoMjJb X-Received: by 2002:a17:906:640c:: with SMTP id d12mr1526426ejm.388.1598886599930; Mon, 31 Aug 2020 08:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598886599; cv=none; d=google.com; s=arc-20160816; b=zntWWOCnzlzvLb6lNK4PQNsVaV6f83Csx0L3Kn9K/dWY4wCHWEy+BGOu2vWkcHcHF5 ChRL2e1H0W1db8sJBqnNEO4DmweIwG4nIo29/yiZAd67YsOSUBPNnPf8zmID1eGYCWFJ bCocUI0+UVPbalIrHR0cfoHiQm9TWIfAnF7Phk4CgulIvPB+RgIxjbfTACcDntw3etHj +jl4bzFLjAlRhl0CE5gAh9r1IDcwkvNZyYVcO3oRJTI2YIivZ75mbx2mSCQDUX5LcigT 6+feaE3hWl476xEkznwrlq1pZXKWbiN2m/bfRo9jQOHFeY3r2dyxIkfvVJZeTyeS5qYD z7wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=m+ousw4fXr79+y3y64jWSrgKPSzonc7IxBJ1mGORPXc=; b=D3CFZ97dYnOb/MrtzKMwg6KcktJyPEsj9ZEBdQSsrE4b7JH9nizxdOycpAAW3Jr8e+ BPMhd1vMMHvmGoNOBdHM/WXQLKaSuo+8fSvPr20flz9T3von5JEXmAWUjCXbh1eubMp6 /xImM8z6PdQVu2iMqX2kAlZZDZ2/54pvIKIiqQ16L2JqfRswZghM4L0zKsX7PsMTjc+3 fmW1YL/PiW6o1IPJUs0uUT2AV2pvnxWVtdJjRz3otbmC90QAOPn5k2lt7cYngASCRIr3 X4W2Em1V2eCCM+8vnfTjW0+Ub2D9EBv8IIF4YJQDgsZJMVnzIvs2GfXniEFBiDrlHh7R MrUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oxU1FAWk; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si4945521edv.170.2020.08.31.08.09.59; Mon, 31 Aug 2020 08:09:59 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oxU1FAWk; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728219AbgHaPJz (ORCPT + 6 others); Mon, 31 Aug 2020 11:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728148AbgHaPJr (ORCPT ); Mon, 31 Aug 2020 11:09:47 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5842C061575 for ; Mon, 31 Aug 2020 08:09:46 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id x77so3707874lfa.0 for ; Mon, 31 Aug 2020 08:09:46 -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=m+ousw4fXr79+y3y64jWSrgKPSzonc7IxBJ1mGORPXc=; b=oxU1FAWkMAdlZNofP3Lz0EkAx+ley9wg9Sx9jjQQ4URQ+XnKMUyalJ9n4R1ITqQNY8 zH8oWA2z44OCkJtwldUGo4AF8wC9aAadul21JlM4bgVWsrGzqhRlrf1ptBhtWXZMi3Eq OFV+dHajvGnbRLrgAX3DLD77kxYX2E1teXA/WpMbtfFS9VMBn312R9eiGCCaboCjr+ki e2UzaAk6tROAdQputt3xy4WQoiqqRDRav6pQ4Q2VNX3bBRAHPZZwelsgKvatj+VpX9+C kalDx6pnXBODp/P56GV5O9gwDFxXzsIKUrwNlzMqErWq4pHLuhHitVorXFJpCepq3c0f sqcg== 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=m+ousw4fXr79+y3y64jWSrgKPSzonc7IxBJ1mGORPXc=; b=KAU7hzww+5+TBENzheaXEKQ5WPX/LE15+bH0ByV7xlSt+h1wZfRAoEjD5hjKsi/HGa bnoJWBzbn1kFlyFbIv220fyQzxYIE8qoGgCFphQzRfW2Lyyw5QAO4e45j+odlMAULkZU zPTlTg1AXhVbtkyzdJMkLnQQEyjrSsknTWd5HuCScViED7xbQ3GB9IhmoRhIMfZ59NXW gHs4spZVoe6uPTUMBvtHWV4aKtbvr/hFCmoMOY78ak46dIjOVj6S/NB1MhfKJ1vS+RYR xU5DNfb/Pd1P38Y8NwnQQ10cSzzgzgwk8oD+mV9Wlt1LoeFbfy8cj6CUYRBfz4R3X/EY mo1Q== X-Gm-Message-State: AOAM5309BTwR15ICDX4BvguLuH3WGVp6rZwB+Um3UlQl62Opsxp9VW9L YHqpNDpJe2jLtdI2arttH0uYXQ== X-Received: by 2002:ac2:42c2:: with SMTP id n2mr894835lfl.117.1598886584936; Mon, 31 Aug 2020 08:09:44 -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 w6sm2034388lfn.73.2020.08.31.08.09.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Aug 2020 08:09:43 -0700 (PDT) From: Grzegorz Jaszczyk To: tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, s-anna@ti.com Cc: grzegorz.jaszczyk@linaro.org, robh+dt@kernel.org, lee.jones@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, david@lechnology.com, praneeth@ti.com Subject: [RESEND PATCH v5 0/5] Add TI PRUSS Local Interrupt Controller IRQChip driver Date: Mon, 31 Aug 2020 17:09:13 +0200 Message-Id: <1598886558-16546-1-git-send-email-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi All, The following is a v4 version of the series [1-4] 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 [5] Please see the individual patches for exact changes in each patch, following are the main changes from v4: - Update dt-binding description (no functional changes). - Use more meaningful define/variable names, drop redundant error messages, fix error handling in case of irq == 0 (patch #2). [1] https://patchwork.kernel.org/cover/11034561/ [2] https://patchwork.kernel.org/cover/11069749/ [3] https://patchwork.kernel.org/cover/11639055/ [4] https://patchwork.kernel.org/cover/11688727/ [5] http://www.ti.com/lit/pdf/spruhz6 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 a PRUSS irqchip driver for PRUSS interrupts Suman Anna (3): dt-bindings: irqchip: Add PRU-ICSS interrupt controller bindings irqchip/irq-pruss-intc: Add logic for handling reserved interrupts irqchip/irq-pruss-intc: Add support for ICSSG INTC on K3 SoCs .../interrupt-controller/ti,pruss-intc.yaml | 158 +++++ drivers/irqchip/Kconfig | 10 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-pruss-intc.c | 658 +++++++++++++++++++++ 4 files changed, 827 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ti,pruss-intc.yaml create mode 100644 drivers/irqchip/irq-pruss-intc.c -- 2.7.4