From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756843AbdHYOfg (ORCPT ); Fri, 25 Aug 2017 10:35:36 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:3286 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754867AbdHYOcS (ORCPT ); Fri, 25 Aug 2017 10:32:18 -0400 From: Pierre-Yves MORDRET To: Vinod Koul , Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre Torgue , Russell King , Dan Williams , "M'boumba Cedric Madianga" , Fabrice GASNIER , Herbert Xu , Fabien DESSENNE , Amelie Delaunay , Pierre-Yves MORDRET , , , , Subject: [PATCH v4 0/4] Add STM32 MDMA driver Date: Fri, 25 Aug 2017 16:31:02 +0200 Message-ID: <1503671466-32029-1-git-send-email-pierre-yves.mordret@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG4NODE3.st.com (10.75.127.12) To SFHDAG5NODE2.st.com (10.75.127.14) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-08-25_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support for the STM32 MDMA controller. The Master Direct memory access (MDMA) provides high-speed data transfer between memory and memory or between peripherals and memory. Contrary to STM32 DMA, the STM32 MDMA controller supports hardware LLI and uses a larger integrated FIFO (128 vs 16 bytes) --- Version history: v4: * Add safe getter/setter macros * forbid DMA preparation in cyclic mode yet * Optimize burst and memory width for memcpy * replace of_property_xx by device_property_xx v3: * Update header template * Unsigned expression compared with zero * Rework stm32_mdma_get_max_width * moved to src/dst case where they are used in set_xfer * Change of_property_* with device_property_* * Add dev_warn whether default value is used * Indentation * Add MODULE_* v2: * change compatible into st,stm32h7-mdma to be more SoC specific * Add MDMA support in DT for H7 * Add MDMA support in STM32 defconfig --- Pierre-Yves MORDRET (4): dt-bindings: Document the STM32 MDMA bindings dmaengine: Add STM32 MDMA driver ARM: dts: stm32: Add MDMA support for STM32H743 SoC ARM: configs: stm32: Add MDMA support in STM32 defconfig .../devicetree/bindings/dma/stm32-mdma.txt | 94 ++ arch/arm/boot/dts/stm32h743.dtsi | 10 + arch/arm/configs/stm32_defconfig | 1 + drivers/dma/Kconfig | 12 + drivers/dma/Makefile | 1 + drivers/dma/stm32-mdma.c | 1618 ++++++++++++++++++++ 6 files changed, 1736 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/stm32-mdma.txt create mode 100644 drivers/dma/stm32-mdma.c -- 2.7.4