From patchwork Mon Jul 29 07:08:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varshini Rajendran X-Patchwork-Id: 13744464 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 D0C75C3DA61 for ; Mon, 29 Jul 2024 07:13:45 +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=DssWFTxx7HRvSb/f7TF3SYReb/M8ik39y09OaCpnJT0=; b=yOwwUnK0h8fsyJgLqLLMqSbEFe 2orroLD34f/YLMwk8q03lGhpCcX5lEEEwWmFGFb8FhFvh137R7S9cm35oIMttsTQ1VOc22Z6a/6a3 TyGPIOnul0VwCnOzoAB3ofPxq7aFgtjciJkDNM5lTAL11Opge2h+UNwtIjXJGimX+fDNH+3oaI11c 7o2Rw7LZ+A2P+NTVgUcO/7nvfSWb2FJlQAUqPFJbAxxhePijBSwuCESwzZAChLgq09RWIPDcw6NtR LquhMLUX/ByoatVxR7i1wT4S3RQtPbALyiLIwgXdL8dJQ2SMZSBLXh7T+aLgCi/GHo1u8C2JE22zs f4J190bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYKZe-0000000AIYf-0kcM; Mon, 29 Jul 2024 07:13:38 +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 1sYKVF-0000000AGrY-06s7 for linux-arm-kernel@lists.infradead.org; Mon, 29 Jul 2024 07:09:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1722236945; x=1753772945; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FVK9wR6Wo6gRh2hzH07gqe36H17j5T1xR0c0wlKxflk=; b=MKZHoo38i7QvK05Jy7YT3Ow0QzlUwux3Jz4ZOxEzzCpX48dnnRN3W7rS 3hBse0YrsJMnXWeGbZkSUKLZGhE8BDgu2X4QnQ4MfbF2PTU4a7Js0uIhZ b3qIUqZ0SlIaqDS7NRPtuKs6QniQkVkB6IDFL7FmI5ZJxa0BATznwMNgh cd+T+HWphigHkAbDUBiGYIrJCRbkjphO12Js1I2ug7rm12SzxQOvvl4ni gVipC2pgHAZoBy6vERY46fh9DcslzFJbTa0j7Ap+vjLktpKZvbnyK4QeL WE3/EI2lyEPU4kU3bCTKPIwEWfjOdL6is+lU/qbrVfzb0TXB81+3jHG7x g==; X-CSE-ConnectionGUID: /xcbkqlfTo+UjYKU1jzHkw== X-CSE-MsgGUID: xk0+ohGQRdCqf5XaAZK3lA== X-IronPort-AV: E=Sophos;i="6.09,245,1716274800"; d="scan'208";a="30454158" 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; 29 Jul 2024 00:09:04 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 29 Jul 2024 00:08:36 -0700 Received: from che-lt-i67070.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 29 Jul 2024 00:08:33 -0700 From: Varshini Rajendran To: , , , , , CC: , Hari Prasath Subject: [PATCH v6 17/27] irqchip/atmel-aic5: Add support for sam9x7 aic Date: Mon, 29 Jul 2024 12:38:29 +0530 Message-ID: <20240729070829.1991064-1-varshini.rajendran@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240729065603.1986074-1-varshini.rajendran@microchip.com> References: <20240729065603.1986074-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-20240729_000905_160744_1674DB46 X-CRM114-Status: GOOD ( 11.89 ) 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 --- Changes in v6: - Reverted back to the patch in version 3 considering the complexity involving in using DT match data. --- 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);