From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED296606A31A for ; Tue, 1 Dec 2026 16:32:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=lfFswknk; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VGoc5l+q DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=FUdfTvjFotaJhIBvMVJ2IIuyxnJ5GRP7fs3lvvoi9wc=; b=lfFswknk1c0sFhZfab2poVbHzu PsNW4QT1h1ouJeRgF2sZGuQWttLAHPnsZzfD44FzoHqNhxl+8ua+suTVmZeR1YHPXAlGlpJ8OkRuS X9Yp6mjF9VRTGs9g3eWhyk3W6eeODq1+bvwSHvHQDbg+8XmM2cYVDq06Dkr/h6yaTU9vXqhLRICrv hNvnG6g5GxoP363xJKaK0+dpakGc9jXmfk4ZhlvbmwZBMBAlx5OvdZ5HTo8RVNmXVaIDu4AA75z3M DT2Lp7W5P8+l5g8j3v0EsUnEzS8fZcEjBPkR+UKy88QCdOPJKrklnh7ocNyvDqbIBcHvlyJkf97UM 2iatjzXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYQmM-00000008ja2-3PuQ; Tue, 01 Dec 2026 16:32:30 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYQmL-00000008jZp-2loA for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 16:32:29 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id C445A625D9; Tue, 1 Dec 2026 16:32:28 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796142748; b=RM7CsSg/+hGOj6T7otbcrtG6E/0e1iSL6mADS4D+w4sdujjxGPGb+9oKdE6h+BPwdHFp dNaG5Usktcyz7Hl5tU4D2g38336ygfZvUWZzH8lEFj4xfFkrAvh3c4dj2fNSHojffuI5L GgHTCSRBXcvaBuVlZ822KYV5SgWi6lwTq31H06BAj7d0eEyUhpCG6GAp8vVcs/lhesU0w mUqmkPf+GZdUP0BpZG4ic3ZYtqfPyAeUjDa7Fvi3D0xM53d3fU9saQThUZWw7ldamwf6P GfFuvZu0pNwJ3GJa2NSG+L9T4CGTNtmc7W6vG9mUBemO+C8Z5MsyusJDPQrODdL3Fhg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796142748; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=FUdfTvjFotaJhIBvMVJ2IIuyxnJ5GRP7fs3lvvoi9wc=; b=U9QsWLyJAPv1+d+3vE8XJS+ox2U7mlITGJLLON3B4HqBKzkKugLEVSdxXcvEw4pLJEyh VlBkmbiaB/z2Q0Y9BNbtHWyn6gf+/8p7b0tLoXW407oZ928ieLZvpCJpc/1GfWHiC+Gyl 1jGG/hQDgMGzDHYeKuNkA2zXukf6I14uk2p2XIqgpcMJzHXk2votsm7NA1hCp3yObnC3r xV+xONWIvuASmOCpqkcF43dKtBONOWnZCVyaIvUKERY2QERq1LXZZ0pPdY8bHLFOOmrdi 4/cgBs8vCdRfZSrTxSCR7raLQpANZNvKrBFsHp7yUKe4w64nQmrinO/P2AjGD6iWxMQ== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 9C6281F00898; Tue, 1 Dec 2026 16:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796142748; bh=FUdfTvjFotaJhIBvMVJ2IIuyxnJ5GRP7fs3lvvoi9wc=; h=From:Subject:Date:To:Cc:Reply-To; b=VGoc5l+qsq141tUIOjXJ5MkrFeEHkA96ac8ogmHwGyMQpRLqNhSzYLEOeRlDX6KMT IN5dFrYG8b719yJwHb3TdAPDfKhWy4CEGX1+eskTL+t6C2DoNTrsMgcOiTqUOR63eu stv0JR5XfVXfhbnIxGBogvl9aX+UTY2/+9Vn5HM0btrWuWdhPLZjKvB9cl8dC+PNXZ HhndLS7vmFmfzkYU37wz0eiQ7Vcm96Kwvgr0KDEifJKReZhWPf3lbSWkpDiVQhyDDy TMYcNShD6XVdkuj+hyBRyA9RSnDWUgD6WSqjrE0vOZRBgGh62byR0RTTWJ4hsXwElW 5o8GhkU5JL8cw== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id ED8CA4EEA0; Tue, 1 Dec 2026 16:32:26 +0000 (UTC) From: Fil Dunsky via B4 Relay Subject: [PATCH v6 0/2] irqchip: Add Cortina Systems CS75xx peripheral interrupt controller Date: Tue, 01 Dec 2026 19:32:25 +0300 Message-Id: <20261201-cs75xx-intc-v6-0-bcd0a80afd62@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/1WNQQ6DIBQFr9KwLg2gX2xXvUfTBeJHaao2YImN8 e4F3ehykjfzZuLRWfTkdpqJw2C9HfoIxflEdKv6BqmtIxPBRMEZB6q9hGmith81rXIhSsa1VFC TaHwcGjuttcdzY/+tXqjHlEiL1vpxcL/1LuRpt5U5l4dyyCmjTBWyNBkgmOzedMq+L3roSCoH2 LmCHV2IrhEVStCAV6n37rIsf2BWvez0AAAA X-Change-ID: 20261015-cs75xx-intc-b422801c7a5d To: Thomas Gleixner , Radu Rendec , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796142745; l=4029; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=E2YvHSY1k1Patu6IYM4v4YLj94n2/c1gfOU9641g0Zc=; b=iG0NGeR9s83AqW+fAMiHLn4Dbaz8gSYUHi84m+qCVwyHnxyz47tjvUu/RYf8EmVyfclltjVMX /bA8JuWKLKQD4XR6rlmKNWM6YHVdMLyIzLCIgKlUhf9v2+NYMtjY6hX X-Developer-Key: i=filipp.dunsky@gmail.com; a=ed25519; pk=JAYP8e2rJ54DHOmhNtXud8rl1igAaAXoOHxtJmVXI1g= X-Endpoint-Received: by B4 Relay for filipp.dunsky@gmail.com/20260930 with auth_id=1085 X-Original-From: Fil Dunsky X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: filipp.dunsky@gmail.com Sender: "linux-arm-kernel" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 The timers, GPIO banks, I2C, MDIO, SPI and a few other low speed peripherals of the Cortina Systems CS75xx ("Goldengate G2") SoCs share one GIC interrupt. This series adds the binding and a chained driver for the small controller in the peripheral register block that reports the level of these 15 sources and masks them; each source is acknowledged in its peripheral. There is a second status/enable pair right behind it whose purpose I do not know; it is not described. The driver used to be part of a series with the GPIO, I2C and watchdog drivers and the device tree changes. That series is now split per subsystem. The driver depends on OF and HAS_IOMEM, with no dependency on the platform series [1], which is under review separately. The device tree nodes will follow with the other CS75xx dts changes once the platform is merged. There is no public documentation; the register layout comes from the GPL vendor kernels and was checked on a Securifi Almond+ (CS7542), where the GPIO and I2C interrupts of the board are delivered through this controller. The v5 IRQ flags and normal initialization path were checked in RAM with PROVE_LOCKING; MMIO cleanup on initialization failure was reviewed but not fault-injected on the board. [1] https://lore.kernel.org/all/20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com/ --- Changes in v6: - Instantiate the IRQ domain with its generic chip and parent handler initialized before the domain becomes visible (Thomas Gleixner). - Use guard_chained_irq() and combine the two int declarations. - Base the series on tip irq/drivers, which provides the chained IRQ guard. - Cross-compile the corrected driver for ARM. Check the publication order, cleanup and dispatch with a host test using the driver source. - Link to v5: https://patch.msgid.link/20261120-cs75xx-intc-v5-0-f2be75c5e97c@gmail.com Changes in v5: - replace the ARCH_CORTINA_ACCESS || COMPILE_TEST dependency and architecture default with OF, retaining HAS_IOMEM, so the driver can be merged without the platform series - build built-in on ARM and x86-64 with COMPILE_TEST=n and without the platform series; check that OF and MMIO dependencies gate the option - require HAS_IOMEM for COMPILE_TEST builds - mark child interrupts as level-triggered and keep them non-probeable - release the reserved MMIO region on initialization failure - Link to v4: https://patch.msgid.link/20261117-cs75xx-intc-v4-0-0a678f35e5f3@gmail.com Changes in v4: - rebase on v7.4-rc1; update the platform reference to v7 - split out of "Cortina Systems CS75xx: interrupt controller, GPIO, I2C and TWD watchdog" so that each driver can go through its own tree; no longer based on the platform series - declare the variables of the chained handler from the longest to the shortest line - do not wrap lines that fit in 100 columns (Thomas) - collect Reviewed-by tags - Link to v3: https://patch.msgid.link/20261013-b4-cs75xx-s2-v3-0-181bb0d23f4c@gmail.com Changes in v3: - rebase on v6 of the platform series - Link to v2: https://patch.msgid.link/20261013-b4-cs75xx-s2-v2-0-94f8c0a90cda@gmail.com Changes in v2: - rebase on v5 of the platform series - Link to v1: https://patch.msgid.link/20261012-b4-cs75xx-s2-v1-0-8a7641b7b79c@gmail.com Cc: linux-arm-kernel@lists.infradead.org --- Fil Dunsky (2): dt-bindings: interrupt-controller: Add Cortina Systems CS7542 peripheral interrupt controller irqchip: Add Cortina Systems CS75xx peripheral interrupt controller .../interrupt-controller/cortina,cs7542-intc.yaml | 57 +++++++++ drivers/irqchip/Kconfig | 12 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-cs75xx.c | 129 +++++++++++++++++++++ 4 files changed, 199 insertions(+) --- base-commit: d4673c92ff7f50ef7de22c887f0909b837c2a34a change-id: 20261015-cs75xx-intc-b422801c7a5d Best regards, -- Fil Dunsky