From patchwork Tue Feb 1 16:05:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amelie Delaunay X-Patchwork-Id: 12731994 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 5590EC433F5 for ; Tue, 1 Feb 2022 16:08:15 +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=QFeT6EFpHC7vKajlxDCN89nLhaHEGrohhuyvfw9mb1I=; b=QUDOWm1HbHhxFw Kau3+vxDul9X/lO7ybl6qLTBHkx4eTwc9u9oDGydHStSapsInbPd8ECCG+fl89giEDpQ28Tb2sSyk 3mzXKxIRozmaV1JXtr13SSQHJ+KSpRlhUHKJN96tVMTV8J3GyQm1S5PoASzRiY/pEBqSi0iQVfNt+ LhcI+rBVQJ3OdMn1wBW5fkjbSVNGRavFfaAx3zyMn+scnOQX6DIPOKrsRDkQLsgRpAlWyBuzmxPgL z9iW46ANTF1LrcN20xhLQL55lCfXfeqDrBIZWsN/vqlsTtdREzfL1QqxVBhcE/EoKVjXV4oB+YzPP MaL7/KVhwxQ4K3um0a0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nEvfG-00Cnbo-SK; Tue, 01 Feb 2022 16:05:55 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nEvet-00CnYi-J8 for linux-arm-kernel@lists.infradead.org; Tue, 01 Feb 2022 16:05:34 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 211C8U55030249; Tue, 1 Feb 2022 17:05:16 +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-transfer-encoding : content-type; s=selector1; bh=+MgA2PGfKilYlKlF4j5XzOprcEc+NIN/71Kfe0zvpIk=; b=b6Y6VzMQrNAMwkOD6o1ix8cv/W+ff5kzGDEJ4f4Ubu+DfjAViPt+KYZCRjdQmmJi7a1t xPiV8Dg8sCZtFdXN6B9CYHIiAyTklzYeTPhRbg3iE2dDsjFumUMRerZ4XVAYQh5pWlA4 RvlThCizF9+lAgeDqvjkVBsHL8g55aHU8bbqWmDtc3Vxa4oKp/j5v0+E6MJP5yBZA5bv uQBnk+6JgjaP9CQgdaCxNz5EQ6Hsw210Nu8hAwS5AtsQPtStLjthf2zP5A3m4LxLg3s5 hM4OSqc4XbRORGDULQiVg6CRFOMC6L7HwE5LM+Ir9p7BDSCEyb6Z5Xo/g4CrjDG6yTYG mw== 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 3dxk0rx0w3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 01 Feb 2022 17:05:16 +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 010A4100038; Tue, 1 Feb 2022 17:05:14 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EC3CA226FA9; Tue, 1 Feb 2022 17:05:14 +0100 (CET) Received: from localhost (10.75.127.50) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Tue, 1 Feb 2022 17:05:14 +0100 From: Amelie Delaunay To: Maxime Coquelin , Alexandre Torgue , Rob Herring CC: , , , , Amelie Delaunay Subject: [PATCH 1/2] ARM: dts: stm32: add DMA1, DMA2 and DMAMUX1 on STM32MP13x SoC family Date: Tue, 1 Feb 2022 17:05:05 +0100 Message-ID: <20220201160506.348701-2-amelie.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220201160506.348701-1-amelie.delaunay@foss.st.com> References: <20220201160506.348701-1-amelie.delaunay@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-01_08,2022-02-01_01,2021-12-02_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220201_080532_481799_D495E0DD X-CRM114-Status: GOOD ( 14.10 ) 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 DMA1 and DMA2 on STM32MP13x SoCs are the same than on STM32MP15x SoCs: they offer up to 8 channels and request lines are routed through DMAMUX1. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp131.dtsi | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index 86126dc0d898..e64fa10ac245 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -115,6 +115,50 @@ uart4: serial@40010000 { status = "disabled"; }; + dma1: dma-controller@48000000 { + compatible = "st,stm32-dma"; + reg = <0x48000000 0x400>; + interrupts = , + , + , + , + , + , + , + ; + clocks = <&clk_pclk4>; + #dma-cells = <4>; + st,mem2mem; + dma-requests = <8>; + }; + + dma2: dma-controller@48001000 { + compatible = "st,stm32-dma"; + reg = <0x48001000 0x400>; + interrupts = , + , + , + , + , + , + , + ; + clocks = <&clk_pclk4>; + #dma-cells = <4>; + st,mem2mem; + dma-requests = <8>; + }; + + dmamux1: dma-router@48002000 { + compatible = "st,stm32h7-dmamux"; + reg = <0x48002000 0x40>; + clocks = <&clk_pclk4>; + #dma-cells = <3>; + dma-masters = <&dma1 &dma2>; + dma-requests = <128>; + dma-channels = <16>; + }; + syscfg: syscon@50020000 { compatible = "st,stm32mp157-syscfg", "syscon"; reg = <0x50020000 0x400>; From patchwork Tue Feb 1 16:05:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amelie Delaunay X-Patchwork-Id: 12731993 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 F39DFC433EF for ; Tue, 1 Feb 2022 16:07:59 +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=Tv+mnCNhFvfVzlhBeK047i92u4xmlgjzFVOkhiecGE8=; b=U3eUYkWcMNOHQc HQ5ydJ+mn+co3aK8IIuu/Vea6kLA9ZVewkAQFNOWa9IDP0Ad3NxxLO43ZB49EdlW8DiJSPVG4hEz+ T1gf/HjOXoIYngwrU1YB9w3bEOgv+HXxxhU4L6RbBtMeAkFsOWghdxBh1Mx16ITldUgYEcX4+b23l uOlqVCY4TqyG1C5H7ttz9OL1slS3UEUqmNhfBlRcEcc3ax/NeEWnesp6m63oktFf0YdAotm1R5v38 18gS58yrYTwbWqJZJMW6IOqmczbOz9nz67kIHrW23RgOWn989I7tGiXl3NuJAitFpo9WXuN+Yxyxs pyumH0p1EhT8A1PCHqRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nEvf6-00CnaW-ML; Tue, 01 Feb 2022 16:05:44 +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 1nEveu-00CnYo-39 for linux-arm-kernel@lists.infradead.org; Tue, 01 Feb 2022 16:05:33 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 211FZhqi014100; Tue, 1 Feb 2022 17:05:17 +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-transfer-encoding : content-type; s=selector1; bh=6PYg5Hhedg4uaQloxJmFy2l1dVuPmR6nR41VJNfEuyw=; b=oqT9bxTBsdPQbWEw8zRCkvHS7d0ZOGjZRvt4F1frv3tzh4HMDqo7Xjm5to0uQiRRSrlV lZ+vzDo4K+QpqdupZGDv7+WxhRfia63lXIPuWGtMIMWni2K8q9ZmNiodZ1L+LmPx/USz 9Ws35zLakxRjWrKivI9k4DolcyFKYitA+/+wohyg0ym/Pfm72IxM/PUe1N47n9OPBSLX rurQLGg9a8e/GxSpNcHh14qCFMzgJK7Y0ytP/3rGrSw5lEAw/ZuERIJ0HW1mchvrcYFa hlLFCWlx+dL2URgyiBgl5XNZs+OrMCEKKYl4THKyAYZmyt9QBhctc7kPCssFo1B9W1JT /A== 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 3dy1xm1uw2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 01 Feb 2022 17:05:17 +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 D757410002A; Tue, 1 Feb 2022 17:05:16 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id CF7072248DE; Tue, 1 Feb 2022 17:05:16 +0100 (CET) Received: from localhost (10.75.127.48) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Tue, 1 Feb 2022 17:05:15 +0100 From: Amelie Delaunay To: Maxime Coquelin , Alexandre Torgue , Rob Herring CC: , , , , Amelie Delaunay Subject: [PATCH 2/2] ARM: dts: stm32: add MDMA on STM32MP13x SoC family Date: Tue, 1 Feb 2022 17:05:06 +0100 Message-ID: <20220201160506.348701-3-amelie.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220201160506.348701-1-amelie.delaunay@foss.st.com> References: <20220201160506.348701-1-amelie.delaunay@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-01_08,2022-02-01_01,2021-12-02_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220201_080532_485646_BD7D80EB X-CRM114-Status: GOOD ( 14.54 ) 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 MDMA on STM32MP13x SoCs is the same than on STM32MP15x SoCs: it offers up to 32 channels and supports 48 requests. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp131.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index e64fa10ac245..b2377a22b511 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -165,6 +165,16 @@ syscfg: syscon@50020000 { clocks = <&clk_pclk3>; }; + mdma: dma-controller@58000000 { + compatible = "st,stm32h7-mdma"; + reg = <0x58000000 0x1000>; + interrupts = ; + clocks = <&clk_pclk4>; + #dma-cells = <5>; + dma-channels = <32>; + dma-requests = <48>; + }; + sdmmc1: mmc@58005000 { compatible = "arm,pl18x", "arm,primecell"; arm,primecell-periphid = <0x00253180>;