From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from TWMBX01.aspeed.com (mail.aspeedtech.com [211.20.114.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0C7B86347; Sat, 6 Sep 2025 01:48:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.20.114.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757123337; cv=none; b=jUkEVEFqa7b32OESXIWy/vEYYECjeaNWXlqwa7jZiWg7Dn2EL764MjvqwGKoV9800YHm3gfEHUn3PqzrFXzll6WPbvyXxlM7ZNT550Smjxu3NHFLAnq09MhLrZ+J/sDgrYbTmXX6cECRTGO5RmHL7syRKuXQFJ3YKRd6MY4J9V4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757123337; c=relaxed/simple; bh=3aQYYaokH+Ot6EQMafhSMNQH2vr4TOQXkwRG2VTsVcw=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=cCylleerQirkhco7b7na/aAj3bPLtfpWF28/mn+PFiyjZeu6GrHEQi6LbVbIidtFGiIqTm5/2WRAx5dc9rVNKbYuouTBGGhjgR/+5FjuJLTy1+9/91rpjRf6GVJFqc5tMntM4PG7vKf6CCEgV8ZIyykWa9ENtmY8JDQPCf2k8wk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass smtp.mailfrom=aspeedtech.com; arc=none smtp.client-ip=211.20.114.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aspeedtech.com Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Sat, 6 Sep 2025 09:48:46 +0800 Received: from twmbx02.aspeed.com (192.168.10.13) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Sat, 6 Sep 2025 09:48:46 +0800 From: Ryan Chen To: ryan_chen , Eddie James , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , Lee Jones , , , , Subject: [PATCH v3 0/4] irqchip: Add support for Aspeed AST2700 SCU interrupt controller Date: Sat, 6 Sep 2025 09:48:42 +0800 Message-ID: <20250906014846.861368-1-ryan_chen@aspeedtech.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain This series adds support for the SCU (System Control Unit) interrupt controllers on the Aspeed AST2700 SoC. AST2700 follows the same multi-instance SCU interrupt controller design as AST2600, with four independent interrupt domains (scu-ic0 to 3). However, unlike previous SoCs that use a single register for both enable and status bits, AST2700 splits them into separate IER (Interrupt Enable) and ISR (Interrupt Status) registers. To support this, the driver is refactored to use a variant-based init structure, selected by compatible string. Register access is also converted from regmap to MMIO (via `of_iomap()`), and a per-variant IRQ handler is used depending on register layout. v3: - irq-aspeed-scu-ic.c - update for bracket-rules. - update TAB not spaces to align. - remove stray TAB. - update end up aligned. - add missing _ier, _isr in SCU_VARIANT. - add two different mask/unmask/ functions for split and combined. v2: - Refactor SCU IC driver to support variant-based initialization - Add AST2700 compatible strings to YAML and header files - Extend DT bindings in mfd and irqchip for AST2700 - Add IRQ handler logic for separate IER/ISR layout Ryan Chen (4): irqchip/aspeed-scu-ic: Refactor driver to support variant-based initialization dt-bindings: mfd: aspeed: Add AST2700 SCU compatibles dt-bindings: interrupt-controller: aspeed: Add AST2700 SCU IC compatibles irqchip/aspeed-scu-ic: Add support AST2700 SCU interrupt controllers .../aspeed,ast2500-scu-ic.yaml | 6 +- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 4 + drivers/irqchip/irq-aspeed-scu-ic.c | 242 +++++++++++------- .../interrupt-controller/aspeed-scu-ic.h | 14 + 4 files changed, 173 insertions(+), 93 deletions(-) -- 2.34.1