From patchwork Fri Jul 28 10:30:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 13331682 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 E71D9C001DE for ; Fri, 28 Jul 2023 10:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=21VDUUqrlKKnzzXixbUT6n8Du+VDtIYlhkIZ3ctZQ84=; b=SklanSrKNlj21b HPeqcAHv31gwD/w2Ko2ql88c8U6rvgk95QiCjk8cJNJFAEqsLhXkpJPorZ0O4EMj5Dqv0Zxr3wLEr o3Qx4QIKJPPQdQ3aiaHe/NqVd5ea3/WJr+gMIhKH6ELr2RkeQNWbBtEugu9qMT2YIrqC4HMOJ4NXO 5EOvwdEEjDayvQtWVAiZq7rYBp18BMalL6ViNJKfyUjzjI6GURwprpy1XmGIU23XaK1qCUxEMxkEd GU3cCjWSUb2jLCX157y55BoDm1ePzMW2G8QFbI2X2hAaDaXJB0IK+BjLulxS5SpZj7itUXSfwQun4 obOYAzQfnXYppKvOPbIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qPKjv-002y0Y-2A; Fri, 28 Jul 2023 10:30:31 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qPKjf-002xuj-2E for linux-arm-kernel@lists.infradead.org; Fri, 28 Jul 2023 10:30:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1690540215; x=1722076215; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xbMFJDkuvSAVzLORTJHW0ZL04qI1N0hFjbaAsJ5qgb0=; b=fWJ2VOaFPiuHKihW0Pqmcv4BKZverh6zS+feBTDuHwwU4TS7JYg0T+nc S2CNEJ+wPy4f9sZRm70K93BfhYQ+RQAhFmqp2wl7GYnsZgZFvByGpKLiV 8b5EL765Tpd8eHZEMuyMK84ujwqp2rcktq/0KrjqqWY/ZXSgNe3ILkjLF q9brXBfVpqHhyPUj+r4yaEIV1EmaV2yxXKfl/vXcc8HLZaVOZOtFMKxdX 53WrkAH4Lq5ikcnx0dRUuUuoUaWW4AJEz+cAbqV1PI1nmtVFxTosIT7aV XT/jyst08N3XsGEXEl4BgsE+g2arp6uJ5cKVuRMzRg5W1+iKO2SM+PljH Q==; X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="scan'208";a="222729088" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Jul 2023 03:30:15 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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.21; Fri, 28 Jul 2023 03:30:14 -0700 Received: from che-lt-i67070.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 28 Jul 2023 03:30:11 -0700 From: Varshini Rajendran To: , , , , , , CC: , Hari Prasath Subject: [PATCH v3 42/50] irqchip/atmel-aic5: Add support for sam9x7 aic Date: Fri, 28 Jul 2023 16:00:02 +0530 Message-ID: <20230728103002.267440-1-varshini.rajendran@microchip.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-20230728_033015_798365_FD9DED34 X-CRM114-Status: GOOD ( 10.73 ) 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 --- drivers/irqchip/irq-atmel-aic5.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/irqchip/irq-atmel-aic5.c b/drivers/irqchip/irq-atmel-aic5.c index 145535bd7560..bab11900f3ef 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,12 @@ 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);