Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755293AbdIGLyY (ORCPT ); Thu, 7 Sep 2017 07:54:24 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:46277 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755038AbdIGLyA (ORCPT ); Thu, 7 Sep 2017 07:54:00 -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 DMAMUX support Date: Thu, 7 Sep 2017 13:52:44 +0200 Message-ID: <1504785168-26572-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.47] X-ClientProxiedBy: SFHDAG5NODE1.st.com (10.75.127.13) To SFHDAG5NODE2.st.com (10.75.127.14) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-07_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1897 Lines: 44 This patchset adds support for the STM32 DMA multiplexer. It allows to map any peripheral DMA request to any channel of the product DMAs. This IP has been introduced with STM32H7 SoC. --- Version history: v4: * Add multi-master ability for STM32 DMAMUX * Get rid of st,dmamux property and custom API between STM32 DMAMUX and DMA. Bindings has changed. DMAMUX will read DMA masters from Device Tree from now on. Merely one DMAMUX node is needed now. * Only STM32 DMA are allowed to be connected onto DMAMUX * channelID is computed locally within the driver and crafted in dma_psec to be passed toward DMA master. DMAMUX router sorts out which DMA master will serve the request automatically. * This version forbids the use of DMA in standalone and DMAMUX at the same time : all clients need to be connected either on DMA or DMAMUX ; no mix up v3: * change compatible to st,stm32h7-dmamux to be mode Soc specific * add verbosity in dma-cells --- Pierre-Yves MORDRET (4): dt-bindings: Document the STM32 DMAMUX bindings dmaengine: Add STM32 DMAMUX driver dt-bindings: stm32-dma: add a property to handle STM32 DMAMUX ARM: configs: stm32: Add MDMA support in STM32 defconfig .../devicetree/bindings/dma/stm32-dma.txt | 4 +- .../devicetree/bindings/dma/stm32-dmamux.txt | 84 ++++++ arch/arm/configs/stm32_defconfig | 1 + drivers/dma/Kconfig | 9 + drivers/dma/Makefile | 1 + drivers/dma/stm32-dmamux.c | 321 +++++++++++++++++++++ 6 files changed, 419 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/dma/stm32-dmamux.txt create mode 100644 drivers/dma/stm32-dmamux.c -- 2.7.4