From patchwork Wed Dec 15 10:58:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre TORGUE X-Patchwork-Id: 12696245 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 E9511C433F5 for ; Wed, 15 Dec 2021 11:01:56 +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: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=UvdGW/VZzxY0cCAouru7G6IvMeB03B8efugLZlsgZ2I=; b=Q+q7j/jNqQUjTN NV1Bi8CK/xqanl1HLaunf8BDYLKC0espJkkP+4pR1rizJUjnK5Y/FwZcGhqdVZH/euSq5DXR+Oetv DlcXyS8/BQrSXXmDgKWyefzf5BAAh8NseCNoPT40Z9Z/9eiQ4JhT/JYeNca/hruuOx8w6PTxxuI5m Uf6Q/WoSTFB9nuEvP/etzlSfAAu6b+awLrMfVU2CCRdD3Td10nQgi8XVjjJqWUNj+E7VlanpLz82J bUu0Iink0h7py5EnPqTiotRwJXRP4mUUCb/GIHwEKQa/f+FhCiLNA9kycTO0YUIG7ct50Fw/uh3H/ W48QMdq8SxnTOeadrW5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxS10-000LbS-H1; Wed, 15 Dec 2021 11:00:06 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxS04-000LDU-0I for linux-arm-kernel@lists.infradead.org; Wed, 15 Dec 2021 10:59:11 +0000 Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 1BFAOkgx014340; Wed, 15 Dec 2021 11:58:55 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=selector1; bh=8tFWO6Ps5CA5NVyFqF1zqR1krUDsIUMBgZKXkDv0nXM=; b=YcQiMCIiONj0bwkHaf1n1ykt8j7UYLo9Lo8mfQ+1TMp9lwUNZICfmVCHa/jEyXv10jm2 ta/2tavFR+ACnHq2UswTkIZ+fgtrn+wXA+d0MzIus1sKQxZR2ejxkR7UGHlNCq4cQdI2 h6g27Ta7efhGV0Vf6xLMOeqFnkmhzxzVouSfBn8lsRb5BCmQ3eUXURD987krtzMOROKG 3on0822GFPphdFas0LUN7Wf4+oPIJhGyPnEWTibDeaQwmdEg+aCBKpsDqMnDREuIlQ2B 6T1/MhUh5S9iTGqzJce8jG8RIdOtEE+4K1sk93NVowOaE6TF+q8QxA4KhEM5Ho/ALjbX jA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3cyeka85r3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Dec 2021 11:58:55 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B14B4100034; Wed, 15 Dec 2021 11:58:54 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A8D40235F6C; Wed, 15 Dec 2021 11:58:54 +0100 (CET) Received: from localhost (10.75.127.49) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Wed, 15 Dec 2021 11:58:54 +0100 From: Alexandre Torgue To: Thomas Gleixner , Marc Zyngier , Rob Herring CC: , , , , Subject: [PATCH v2 4/5] irqchip/stm32-exti: add STM32MP13 support Date: Wed, 15 Dec 2021 11:58:46 +0100 Message-ID: <20211215105847.2328-5-alexandre.torgue@foss.st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211215105847.2328-1-alexandre.torgue@foss.st.com> References: <20211215105847.2328-1-alexandre.torgue@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2021-12-15_08,2021-12-14_01,2021-12-02_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211215_025908_389409_31F4441C X-CRM114-Status: GOOD ( 14.39 ) 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 Enhance stm32-exti driver to support STM32MP13 SoC. This SoC uses the same hardware version than STM32MP15. Only EXTI line mapping is changed and following EXTI lines are supported: GPIO, RTC, I2C[1-5], UxART[1-8], USBH_EHCI, USBH_OHCI, USB_OTG, LPTIM[1-5], ETH[1-2]. Signed-off-by: Alexandre Torgue diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c index b56530675799..646fd15972c9 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -224,6 +224,11 @@ static const struct stm32_exti_drv_data stm32mp1_drv_data = { .irq_nr = ARRAY_SIZE(stm32mp1_desc_irq), }; +static const struct stm32_exti_drv_data stm32mp13_drv_data = { + .exti_banks = stm32mp1_exti_banks, + .bank_nr = ARRAY_SIZE(stm32mp1_exti_banks), +}; + static struct stm32_desc_irq *stm32_exti_get_desc(struct stm32_exti_host_data *host_data, irq_hw_number_t hwirq) { @@ -981,6 +986,7 @@ static int stm32_exti_probe(struct platform_device *pdev) /* platform driver only for MP1 */ static const struct of_device_id stm32_exti_ids[] = { { .compatible = "st,stm32mp1-exti", .data = &stm32mp1_drv_data}, + { .compatible = "st,stm32mp13-exti", .data = &stm32mp13_drv_data}, {}, }; MODULE_DEVICE_TABLE(of, stm32_exti_ids);