From patchwork Wed Oct 16 02:24:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Chen X-Patchwork-Id: 13837612 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CED66D2068F for ; Wed, 16 Oct 2024 02:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4NNa5D6FQ12F2pH4KIb5fzDpI2rzICwJw0V+ICw4xxY=; b=c82Y3nJMHRnylc PbnW+ZP5ZjGrMpB3Qetl7oAnMifIXxh8V+aAw7RXZRrG8PoO5wubAu6AWywPt2d1CnUTO2syiM3R2 3hmYf1CY8Mtb2FWc/Hat/qvZIfjnKdfS6ceTPWTX/qIc76+9shRN25XBxCpAN2n4JqfXK0KFyLrEN 5/SvkvUVb8OlsdwjehHLqTEHKjsfDZj5wtJ8k8XSEiv0UOvBxnznw/PpMYmWEtoMs9smrNBcowtx9 hy0/lM6hMZFHhBcd3qRfRMguW7UkAPSZDaJT4rqr6xWxdTt77ex5+o3NaCb46/kAKbgbuEoRGCGsy /wzWY01EgnD8zv5O+BpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0tkY-0000000ADvi-1a5M; Wed, 16 Oct 2024 02:26:58 +0000 Received: from mail.aspeedtech.com ([211.20.114.72] helo=TWMBX01.aspeed.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0ti5-0000000ADUl-2jwA for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 02:24:27 +0000 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.1258.12; Wed, 16 Oct 2024 10:24:13 +0800 Received: from localhost.localdomain (192.168.10.10) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Wed, 16 Oct 2024 10:24:13 +0800 From: Kevin Chen To: , , , , , , , , , , Subject: [PATCH v4 0/2] Add support for AST2700 INTC driver Date: Wed, 16 Oct 2024 10:24:08 +0800 Message-ID: <20241016022410.1154574-1-kevin_chen@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_192425_709368_5F9D5C58 X-CRM114-Status: GOOD ( 10.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --- v4: aspeed,ast2700-intc.yaml: - Add |' to preserve formatting. - Remove the interrupt nubmer accroding to maxItems of interrupts. drivers/irqchip/irq-aspeed-intc.c - Reduce scope of variables, which are bit and status. - Replace 32 with INTC_IRQS_PER_WORD define. - Remove reduendant tab. v3: aspeed,ast2700-intc.yaml: - Change reg with maxIntems:10 only. - Change interrupt with maxIntems:10 only. - Add description of INT0 and INTC1. - Fix the indentation. drivers/irqchip/irq-aspeed-intc.c: - Change to use CONFIG_ARCH_ASPEED. - Fix indentation. - Remove irq_domain name assignment. - Check all irq numbers first, and set chained. Kevin Chen (2): dt-bindings: interrupt-controller: Add support for ASPEED AST27XX INTC irqchip/aspeed-intc: Add AST27XX INTC support .../aspeed,ast2700-intc.yaml | 86 +++++++++++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-aspeed-intc.c | 140 ++++++++++++++++++ 3 files changed, 227 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2700-intc.yaml create mode 100644 drivers/irqchip/irq-aspeed-intc.c