From patchwork Tue Sep 3 06:42:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 13788101 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 CCB47CA101E for ; Tue, 3 Sep 2024 06:45:53 +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:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=V9TviM+i1ZjJUyheNnc+sI50H7oef/9k82aOmWn2ERk=; b=kKr9UNi7vOp5e21brs50OUEf82 mXcqIjpeQDgKKRfm0aRcpJTqrkv2STeXI4zSqwvz9Spw8kyQZZICy65fi25xcYAdjtNDB0HBQH8DL 18ldvexv46ST/dXiAkX3ddB9qa5hWgOvhCafS2+Lsiug5fZqXG5iQ6W4RZ9nJAvdDPtsQYkvCpuVN 3tEj9iiJWlf6eAL8cpCGtAp+Wy45XMnQxVRmnffoxqZZwSDeG3HAudcBwWxzF3ZUG6QcAB5bQKH6e VWLRSoPe8VXj7ObcywbHUU0yPi9iVdk6XyK8MAnv+v4zi8QGVZKe708MppHup/RVNLPvxmffCL6+U QgVhHZsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slNIO-0000000GWBL-3X7m; Tue, 03 Sep 2024 06:45:44 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slNFm-0000000GVKt-1hlC for linux-arm-kernel@lists.infradead.org; Tue, 03 Sep 2024 06:43:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1725345782; x=1756881782; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gL9dZp5U38zASfkVhT0h6bfIfXahRLMY3SOEI2yl+VY=; b=OjBk0NjchhVQPm2sj9FALd0p9JUd9Acq1/Gti6OuzJYPsD7VEGH6s8hH KuUI94pAh2VQK68RwhkOBeYaNMkTWjIzpUDlmp6jX0v4Jd1KQduRxTtPC RmICCylJvyxXU93oXfXh+bC8W5IbUJT3qa+75v3Du0roeYwCBVs4TnIhG b1TzdUJAAl0v9Y2fSSVR6bXBh958C+PdZsq1ZbBE4o8a58v8KiJF2lXNs 9pNviaFG1+FJc7f3yIUT3quyE5WUUKnS70KgPNsvq5RovzGrCEnBu8ESP quU77yq64i3e7JxMt8VxB90P8yljU7KiQAeSuYDco6fSMO7L/+XT87Q9i Q==; X-CSE-ConnectionGUID: j0abaAbSTdKNTu62ztN/1Q== X-CSE-MsgGUID: atbhysjgR6unHOnZQokCPQ== X-IronPort-AV: E=Sophos;i="6.10,197,1719903600"; d="scan'208";a="31877353" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Sep 2024 23:43:01 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 2 Sep 2024 23:42:55 -0700 Received: from che-lt-i67070.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 2 Sep 2024 23:42:52 -0700 From: Varshini Rajendran To: , , , , , CC: , Hari Prasath Subject: [PATCH v7 04/12] irqchip/atmel-aic5: Add support for sam9x7 aic Date: Tue, 3 Sep 2024 12:12:52 +0530 Message-ID: <20240903064252.49530-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240903063913.48307-1-varshini.rajendran@microchip.com> References: <20240903063913.48307-1-varshini.rajendran@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_234302_540220_88004793 X-CRM114-Status: GOOD ( 11.61 ) 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 From: Hari Prasath Add support for the Advanced interrupt controller(AIC) chip in the sam9x7. Signed-off-by: Hari Prasath Signed-off-by: Varshini Rajendran Acked-by: Nicolas Ferre --- Changes in v7: - Removed the line break in the function. --- drivers/irqchip/irq-atmel-aic5.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c index 145535bd7560..f9168efa4160 100644 --- a/drivers/irqchip/irq-atmel-aic5.c +++ b/drivers/irqchip/irq-atmel-aic5.c @@ -320,6 +320,7 @@ static const struct of_device_id aic5_irq_fixups[] __initconst = { { .compatible = "atmel,sama5d3", .data = sama5d3_aic_irq_fixup }, { .compatible = "atmel,sama5d4", .data = sama5d3_aic_irq_fixup }, { .compatible = "microchip,sam9x60", .data = sam9x60_aic_irq_fixup }, + { .compatible = "microchip,sam9x7", .data = sam9x60_aic_irq_fixup }, { /* sentinel */ }, }; @@ -406,3 +407,11 @@ static int __init sam9x60_aic5_of_init(struct device_node *node, return aic5_of_init(node, parent, NR_SAM9X60_IRQS); } IRQCHIP_DECLARE(sam9x60_aic5, "microchip,sam9x60-aic", sam9x60_aic5_of_init); + +#define NR_SAM9X7_IRQS 70 + +static int __init sam9x7_aic5_of_init(struct device_node *node, struct device_node *parent) +{ + return aic5_of_init(node, parent, NR_SAM9X7_IRQS); +} +IRQCHIP_DECLARE(sam9x7_aic5, "microchip,sam9x7-aic", sam9x7_aic5_of_init);