Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-08-03 Thread Pierre Yves MORDRET
otipaikka/Domicile: Helsinki > > On 2017-08-02 17:28, Pierre Yves MORDRET wrote: >> Correct router needs 3 parameters and among those 2 are forwarded though out >> dma_spec. But when you say "ChannelID is dynamically allocated" you mean >> dma_get_any_slave_chan

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-08-02 Thread Pierre Yves MORDRET
On 08/02/2017 11:19 AM, Peter Ujfalusi wrote: > > > On 2017-08-02 07:55, Vinod Koul wrote: >> On Tue, Aug 01, 2017 at 09:32:50AM +0000, Pierre Yves MORDRET wrote: >>> >>> >>> On 07/31/2017 02:31 PM, Vinod Koul wrote: >>>> On Wed, Jul 2

[RESEND PATCH] ARM: dts: stm32: Add DMAMUX support for STM32H743 SoC

2017-07-11 Thread Pierre-Yves MORDRET
This patch adds DMAMUX support for STM32H743 SoC. Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- arch/arm/boot/dts/stm32h743.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h74

[RESEND PATCH] ARM: dts: stm32: Add DMA support for STM32H743 SoC

2017-07-11 Thread Pierre-Yves MORDRET
This patch adds DMA support for STM32H743 SoC. Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- arch/arm/boot/dts/stm32h743.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm

[RESEND PATCH] ARM: dts: stm32: Add DMA support for STM32F746 SoC

2017-07-11 Thread Pierre-Yves MORDRET
This patch adds DMA support for STM32F746 SoC. Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- arch/arm/boot/dts/stm32f746.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm

Re: [PATCH v3 0/5] Add support for the STM32F7 I2C

2017-07-20 Thread Pierre Yves MORDRET
On 07/06/2017 05:53 PM, Pierre-Yves MORDRET wrote: > This patchset adds support for the I2C controller embedded in STM32F7xx SoC. > It enables I2C transfer in interrupt mode with Standard-mode, Fast-mode and > Fast-mode+ bus speed. Gentle ping for driver review since DT Bindings has b

Re: [PATCH v3 0/5] Add STM32 DMAMUX support

2017-07-20 Thread Pierre Yves MORDRET
On 07/06/2017 02:20 PM, Pierre-Yves MORDRET wrote: > 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. > Gentle ping for driver review si

Re: [PATCH v2 0/4] Add STM32 MDMA driver

2017-07-20 Thread Pierre Yves MORDRET
On 07/06/2017 02:25 PM, Pierre-Yves MORDRET wrote: > 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, th

Re: [PATCH v2 2/4] dmaengine: Add STM32 MDMA driver

2017-07-21 Thread Pierre Yves MORDRET
On 07/21/2017 09:55 AM, Vinod Koul wrote: > On Thu, Jul 06, 2017 at 02:25:39PM +0200, Pierre-Yves MORDRET wrote: > >> +config STM32_MDMA >> +bool "STMicroelectronics STM32 master dma support" >> +depends on ARCH_STM32 || COMPILE_TEST >

Re: [PATCH v2 2/4] dmaengine: Add STM32 MDMA driver

2017-07-21 Thread Pierre Yves MORDRET
On 07/21/2017 11:54 AM, Vinod Koul wrote: > On Fri, Jul 21, 2017 at 09:30:00AM +0000, Pierre Yves MORDRET wrote: >>>> +static enum dma_slave_buswidth stm32_mdma_get_max_width(u32 buf_len, u32 >>>> tlen) >>>> +{ >>>> + enum dma_sl

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-07-24 Thread Pierre Yves MORDRET
On 07/22/2017 08:51 AM, Vinod Koul wrote: > On Thu, Jul 06, 2017 at 02:20:20PM +0200, Pierre-Yves MORDRET wrote: >> +static int stm32_dmamux_probe(struct platform_device *pdev) >> +{ >> +struct device_node *node = pdev->dev.of_node; >> +struct device_

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-07-26 Thread Pierre Yves MORDRET
On 07/26/2017 07:29 AM, Vinod Koul wrote: > On Mon, Jul 24, 2017 at 01:55:10PM +0000, Pierre Yves MORDRET wrote: > >>>> + >>>> + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); >>>> + if (!res) >>>> + return -ENODEV;

[PATCH v3 4/4] ARM: configs: stm32: Add MDMA support in STM32 defconfig

2017-07-26 Thread Pierre-Yves MORDRET
This patch adds MDMA support in STM32 defconfig file Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: * None v2: * Add MDMA support in STM32 defconfig --- --- arch/arm/configs/stm32_defconfig | 1 + 1 file changed, 1 ins

[PATCH v3 2/4] dmaengine: Add STM32 MDMA driver

2017-07-26 Thread Pierre-Yves MORDRET
buffer or other peripherals (w/ integrated FIFO). Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: * Update header template * Unsigned expression compar

[PATCH v3 1/4] dt-bindings: Document the STM32 MDMA bindings

2017-07-26 Thread Pierre-Yves MORDRET
This patch adds documentation of device tree bindings for the STM32 MDMA controller. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> Acked-by: Rob Herring <r...@kernel.org> --- Versio

[PATCH v3 0/4] Add STM32 MDMA driver

2017-07-26 Thread Pierre-Yves MORDRET
* * 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

[PATCH v3 3/4] ARM: dts: stm32: Add MDMA support for STM32H743 SoC

2017-07-26 Thread Pierre-Yves MORDRET
This patch adds MDMA support for STM32H743 SoC. Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: * None v2: * Add MDMA support in DT for H7 --- --- arch/arm/boot/dts/stm32h743.dtsi | 10 ++ 1 file changed, 10 inse

Re: [PATCH v2 2/4] dmaengine: Add STM32 MDMA driver

2017-07-24 Thread Pierre Yves MORDRET
On 07/21/2017 12:32 PM, Pierre Yves MORDRET wrote: > > > On 07/21/2017 11:54 AM, Vinod Koul wrote: >> On Fri, Jul 21, 2017 at 09:30:00AM +0000, Pierre Yves MORDRET wrote: >>>>> +static enum dma_slave_buswidth stm32_mdma_get_max_width(

Re: [PATCH v2 3/5] i2c: i2c-stm32f7: add driver

2017-06-29 Thread Pierre Yves MORDRET
> until I find time to look again seems wrong to me. > > On Tue, Jun 20, 2017 at 01:41:28PM +0200, Pierre-Yves MORDRET wrote: >> This patch adds initial support for the STM32F7 I2C controller. >> >> Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com&g

[PATCH] ARM: dts: stm32: Add DMAMUX support for STM32H743 SoC

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds DMAMUX support for STM32H743 SoC. Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- arch/arm/boot/dts/stm32h743.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm32h74

[PATCH v3 1/5] dt-bindings: Document the STM32 DMAMUX bindings

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds the documentation of device tree bindings for the STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: * change compatible to st,st

[PATCH v3 5/5] ARM: configs: stm32: Add DMAMUX support in STM32 defconfig

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds DMAMUX support in STM32 defconfig file Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: v2: * None --- --- arch/arm/configs/stm32_defconfig |

[PATCH v3 0/5] Add STM32 DMAMUX support

2017-07-06 Thread Pierre-Yves MORDRET
* add verbosity in dma-cells --- Pierre-Yves MORDRET (5): dt-bindings: Document the STM32 DMAMUX bindings dmaengine: Add STM32 DMAMUX driver dt-bindings: stm32-dma: Add property to handle STM32 DMAMUX dmaengine: stm32-dma: Add support for STM32 DMAMUX ARM: configs: stm32: Add DMAMUX support

[PATCH v2 2/4] dmaengine: Add STM32 MDMA driver

2017-07-06 Thread Pierre-Yves MORDRET
buffer or other peripherals (w/ integrated FIFO). Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v2: * change compatible into st,stm32h7-mdma to be more

[PATCH v2 1/4] dt-bindings: Document the STM32 MDMA bindings

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds documentation of device tree bindings for the STM32 MDMA controller. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v2: * change compatible int

[PATCH v2 0/4] Add STM32 MDMA driver

2017-07-06 Thread Pierre-Yves MORDRET
(128 vs 16 bytes) --- Version history: 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

[PATCH] ARM: dts: stm32: Add DMA support for STM32F746 SoC

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds DMA support for STM32F746 SoC. Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- arch/arm/boot/dts/stm32f746.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm

[PATCH] ARM: dts: stm32: Add DMA support for STM32H743 SoC

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds DMA support for STM32H743 SoC. Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- arch/arm/boot/dts/stm32h743.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743.dtsi b/arch/arm/boot/dts/stm

[PATCH v3 4/5] dmaengine: stm32-dma: Add support for STM32 DMAMUX

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds support for STM32 DMAMUX. When the STM32 DMA controller is behind a STM32 DMAMUX the request line number has not to be handled by DMA but DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord.

[PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-07-06 Thread Pierre-Yves MORDRET
ed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: * change compatible to st,stm32h7-dmamux to be mode Soc specific v2: * Dynamic channelID allocation. * Change of_property_... by device_property. * New clock management.

[PATCH v3 3/5] dt-bindings: stm32-dma: Add property to handle STM32 DMAMUX

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds an optional property needed for STM32 DMA controller addressed via STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: * None v2:

[PATCH v2 3/4] ARM: dts: stm32: Add MDMA support for STM32H743 SoC

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds MDMA support for STM32H743 SoC. Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v2: * Add MDMA support in DT for H7 --- --- arch/arm/boot/dts/stm32h743.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/ar

[PATCH v2 4/4] ARM: configs: stm32: Add MDMA support in STM32 defconfig

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds MDMA support in STM32 defconfig file Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v2: * Add MDMA support in STM32 defconfig --- --- arch/arm/configs/stm32_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/ar

[PATCH v3 1/5] dt-bindings: i2c-stm32: Document the STM32F7 I2C bindings

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds the documentation of device tree bindings for STM32F7 I2C Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: * None v2: * Remove i2c-ti

[PATCH v3 2/5] i2c: i2c-stm32f4: use generic definition of speed enum

2017-07-06 Thread Pierre-Yves MORDRET
This patch uses a more generic definition of speed enum for i2c-stm32f4 driver. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> Reviewed-by: Ludovic BARRE <ludovic.ba...@st.com> --- Versi

[PATCH v3 0/5] Add support for the STM32F7 I2C

2017-07-06 Thread Pierre-Yves MORDRET
SCL Falling/Rising bindings and System clock to compute its timings. * I2C Device Tree Update --- Pierre-Yves MORDRET (5): dt-bindings: i2c-stm32: Document the STM32F7 I2C bindings i2c: i2c-stm32f4: use generic definition of speed enum i2c: i2c-stm32f7: add driver ARM: dts

[PATCH v3 4/5] ARM: dts: stm32: Add I2C1 support for STM32F746 SoC

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds I2C1 support for STM32F746 SoC. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: * None v2: * Update I2C SoC device tree with latest L

[PATCH v3 3/5] i2c: i2c-stm32f7: add driver

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds initial support for the STM32F7 I2C controller. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: * Move stm32f7_i2c_match above stm32f

[PATCH v3 5/5] ARM: dts: stm32: Add I2C1 support for STM32F746 eval board

2017-07-06 Thread Pierre-Yves MORDRET
This patch adds I2C1 support for STM32F746 eval board Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v3: * None v2: * Add SCL Rising/Falling time fo

Re: [PATCH 2/5] dmaengine: Add STM32 DMAMUX driver

2017-04-26 Thread Pierre Yves MORDRET
On 04/06/2017 08:40 AM, Vinod Koul wrote: > On Mon, Mar 13, 2017 at 03:15:58PM +0100, M'boumba Cedric Madianga wrote: >> This patch implements the STM32 DMAMUX driver > > Can you describe the controller here pls OK. Will be done in V2 > >> >> Signed-off-by: M'boumba Cedric Madianga

Re: [PATCH 1/5] dt-bindings: Document the STM32 DMAMUX bindings

2017-04-26 Thread Pierre Yves MORDRET
Hi Rob On 03/20/2017 10:34 PM, Rob Herring wrote: > On Mon, Mar 13, 2017 at 03:15:57PM +0100, M'boumba Cedric Madianga wrote: >> This patch adds the documentation of device tree bindings for the STM32 >> DMAMUX. >> >> Signed-off-by: M'boumba Cedric Madianga >> --- >>

Re: [PATCH 3/5] dt-bindings: stm32-dma: Add property to handle STM32 DMAMUX

2017-04-26 Thread Pierre Yves MORDRET
On 03/20/2017 10:37 PM, Rob Herring wrote: > On Mon, Mar 13, 2017 at 03:15:59PM +0100, M'boumba Cedric Madianga wrote: >> This patch adds an optional property needed for STM32 DMA controller >> addressed via STM32 DMAMUX. >> >> Signed-off-by: M'boumba Cedric Madianga >>

Re: [PATCH 2/2] dmaengine: Add STM32 MDMA driver

2017-04-26 Thread Pierre Yves MORDRET
On 04/06/2017 09:08 AM, Vinod Koul wrote: > On Mon, Mar 13, 2017 at 04:06:39PM +0100, M'boumba Cedric Madianga wrote: >> This patch adds the driver for the STM32 MDMA controller. > > Again pls do describe the controller OK. I will add a more detail description with V2 > >> +#include >>

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-08-01 Thread Pierre Yves MORDRET
On 07/31/2017 02:31 PM, Vinod Koul wrote: > On Wed, Jul 26, 2017 at 07:38:02AM +0000, Pierre Yves MORDRET wrote: >>>>>> + >>>>>> +#ifndef __DMA_STM32_DMAMUX_H >>>>>> +#define __DMA_STM32_DMAMUX_H >>>>>> + >>>>

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-08-02 Thread Pierre Yves MORDRET
On 08/02/2017 04:09 PM, Peter Ujfalusi wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > On 2017-08-02 16:11, Pierre Yves MORDRET wrote: >> Our SoC works with or without

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-08-04 Thread Pierre Yves MORDRET
On 08/03/2017 11:48 AM, Peter Ujfalusi wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > On 2017-08-03 12:00, Pierre Yves MORDRET wrote: >>> What I actually mean is that you s

Re: [PATCH v3 2/4] dmaengine: Add STM32 MDMA driver

2017-08-22 Thread Pierre Yves MORDRET
On 08/16/2017 06:47 PM, Vinod Koul wrote: > On Wed, Jul 26, 2017 at 11:48:20AM +0200, Pierre-Yves MORDRET wrote: > >> +/* MDMA Channel x transfer configuration register */ >> +#define STM32_MDMA_CTCR(x) (0x50 + 0x40 * (x)) >> +#define STM32_MDMA_CTCR_BWM

[PATCH v2 1/5] dt-bindings: i2c-stm32: Document the STM32F7 I2C bindings

2017-06-20 Thread Pierre-Yves MORDRET
This patch adds the documentation of device tree bindings for STM32F7 I2C Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Change in V2 * Remove i2c-timing binding in order to use generic binding

[PATCH v2 3/5] i2c: i2c-stm32f7: add driver

2017-06-20 Thread Pierre-Yves MORDRET
This patch adds initial support for the STM32F7 I2C controller. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Changes in V2: * Remove st,i2c-timing binding usage * Implement an I2C timings

[PATCH v2 0/5] Add support for the STM32F7 I2C

2017-06-20 Thread Pierre-Yves MORDRET
generic I2C SCL Falling/Rising bindings and System clock to compute its timings. * I2C Device Tree Update --- Pierre-Yves MORDRET (5): dt-bindings: i2c-stm32: Document the STM32F7 I2C bindings i2c: i2c-stm32f4: use generic definition of speed enum i2c: i2c-stm32f7: add driver ARM: dts

[PATCH v2 5/5] ARM: dts: stm32: Add I2C1 support for STM32F746 eval board

2017-06-20 Thread Pierre-Yves MORDRET
This patch adds I2C1 support for STM32F746 eval board Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Changes in V2 * Add SCL Rising/Falling time for eval board --- arch/arm/boot/dts/stm32746g-

[PATCH v2 4/5] ARM: dts: stm32: Add I2C1 support for STM32F746 SoC

2017-06-20 Thread Pierre-Yves MORDRET
This patch adds I2C1 support for STM32F746 SoC. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Changes in V2: * Update I2C SoC device tree with latest Linux version --- arch/arm/boot/dts/st

[PATCH v2 2/5] i2c: i2c-stm32f4: use generic definition of speed enum

2017-06-20 Thread Pierre-Yves MORDRET
This patch uses a more generic definition of speed enum for i2c-stm32f4 driver. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> Reviewed-by: Ludovic BARRE <ludovic.ba...@st.com> --- drivers/i2c/

[PATCH v2 0/5] Add STM32 DMAMUX support

2017-06-23 Thread Pierre-Yves MORDRET
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. Pierre-Yves MORDRET (5): dt-bindings: Document the STM32 DMAMUX bindings dmaengine: Add STM32 DMAMUX driver

[PATCH v2 2/5] dmaengine: Add STM32 DMAMUX driver

2017-06-23 Thread Pierre-Yves MORDRET
ed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v2: * Dynamic channelID allocation. * Change of_property_... by device_property. * New clock management. * DMAMUX Configuration API. --- --- drivers/dma/Kconfig | 9

[PATCH v2 5/5] ARM: configs: stm32: Add DMAMUX support in STM32 defconfig

2017-06-23 Thread Pierre-Yves MORDRET
This patch adds DMAMUX support in STM32 defconfig file Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v2: None --- --- arch/arm/configs/stm32_defconfig | 1 + 1 fil

[PATCH v2 3/5] dt-bindings: stm32-dma: Add property to handle STM32 DMAMUX

2017-06-23 Thread Pierre-Yves MORDRET
This patch adds an optional property needed for STM32 DMA controller addressed via STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v2:

[PATCH v2 4/5] dmaengine: stm32-dma: Add support for STM32 DMAMUX

2017-06-23 Thread Pierre-Yves MORDRET
This patch adds support for STM32 DMAMUX. When the STM32 DMA controller is behind a STM32 DMAMUX the request line number has not to be handled by DMA but DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord.

[PATCH v2 1/5] dt-bindings: Document the STM32 DMAMUX bindings

2017-06-23 Thread Pierre-Yves MORDRET
This patch adds the documentation of device tree bindings for the STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v2: * Move clock bindings f

Re: [PATCH v2 3/5] dt-bindings: stm32-dma: Add property to handle STM32 DMAMUX

2017-06-27 Thread Pierre Yves MORDRET
On 06/26/2017 09:33 PM, Rob Herring wrote: > On Fri, Jun 23, 2017 at 03:00:51PM +0200, Pierre-Yves MORDRET wrote: >> This patch adds an optional property needed for STM32 DMA controller >> addressed via STM32 DMAMUX. >> >> Signed-off-by: M'boumba Cedric Madianga

Re: [PATCH v2 1/5] dt-bindings: Document the STM32 DMAMUX bindings

2017-06-27 Thread Pierre Yves MORDRET
On 06/26/2017 09:28 PM, Rob Herring wrote: > On Fri, Jun 23, 2017 at 03:00:49PM +0200, Pierre-Yves MORDRET wrote: >> This patch adds the documentation of device tree bindings for the STM32 >> DMAMUX. >> >> Signed-off-by: M'boumba Cedric Madianga <cedric.mad

Re: [PATCH 2/5] dmaengine: Add STM32 DMAMUX driver

2017-05-04 Thread Pierre Yves MORDRET
On 05/01/2017 08:03 AM, Vinod Koul wrote: > On Wed, Apr 26, 2017 at 09:17:37AM +0000, Pierre Yves MORDRET wrote: >>>> + >>>> + ret = of_property_read_u32(node, "dma-channels", >>>> + >dmamux_channels); >>&

Re: [RESEND PATCH v3 3/5] i2c: i2c-stm32f7: add driver

2017-09-14 Thread Pierre Yves MORDRET
On 09/13/2017 11:26 PM, Wolfram Sang wrote: > Hi, > > thanks for this driver! > >> +/** >> + * struct stm32f7_i2c_spec - private i2c specification timing >> + * @rate: I2C bus speed (Hz) >> + * @rate_min: 80% of I2C bus speed (Hz) >> + * @rate_max: 120% of I2C bus speed (Hz) > > You would

[PATCH v4 1/5] dt-bindings: i2c-stm32: Document the STM32F7 I2C bindings

2017-09-14 Thread Pierre-Yves MORDRET
This patch adds the documentation of device tree bindings for STM32F7 I2C Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> Acked-by: Rob Herring <r...@kernel.org> --- Version histo

[PATCH v4 0/5] Add support for the STM32F7 I2C

2017-09-14 Thread Pierre-Yves MORDRET
timings computation algorithm instead of static values(bindings). Algorithm uses generic I2C SCL Falling/Rising bindings and System clock to compute its timings. * I2C Device Tree Update --- Pierre-Yves MORDRET (5): dt-bindings: i2c-stm32: Document the STM32F7 I2C

[PATCH v4 5/5] ARM: dts: stm32: Add I2C1 support for STM32F746 eval board

2017-09-14 Thread Pierre-Yves MORDRET
This patch adds I2C1 support for STM32F746 eval board Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v4: v3: * None v2: * Add SCL Rising/Falling t

[PATCH v4 3/5] i2c: i2c-stm32f7: add driver

2017-09-14 Thread Pierre-Yves MORDRET
This patch adds initial support for the STM32F7 I2C controller. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v4: * Fix max I2C Bus clock to 100% * Solv

[PATCH v4 2/5] i2c: i2c-stm32f4: use generic definition of speed enum

2017-09-14 Thread Pierre-Yves MORDRET
This patch uses a more generic definition of speed enum for i2c-stm32f4 driver. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> Reviewed-by: Ludovic BARRE <ludovic.ba...@st.com> --- Versi

[PATCH v4 4/5] ARM: dts: stm32: Add I2C1 support for STM32F746 SoC

2017-09-14 Thread Pierre-Yves MORDRET
This patch adds I2C1 support for STM32F746 SoC. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v4: v3: * None v2: * Update I2C SoC device tree with

Re: [PATCH v4 3/5] i2c: i2c-stm32f7: add driver

2017-09-14 Thread Pierre Yves MORDRET
On 09/14/2017 05:40 PM, Wolfram Sang wrote: > On Thu, Sep 14, 2017 at 04:28:37PM +0200, Pierre-Yves MORDRET wrote: >> This patch adds initial support for the STM32F7 I2C controller. >> >> Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> >> S

Re: [PATCH][V2] i2c: i2c-stm32f7: make structure stm32f7_setup static const

2017-09-18 Thread Pierre Yves MORDRET
= { > +static const struct stm32f7_i2c_setup stm32f7_setup = { > .rise_time = STM32F7_I2C_RISE_TIME_DEFAULT, > .fall_time = STM32F7_I2C_FALL_TIME_DEFAULT, > .dnf = STM32F7_I2C_DNF_DEFAULT, > Acked-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com>

[RESEND PATCH v5 2/4] dmaengine: Add STM32 DMAMUX driver

2017-09-22 Thread Pierre-Yves MORDRET
ed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v5: * Set selected channel ID within a lock to avoid race condition. Release if any error occurs v4: * Get rid of st,dmamux property and custom API between STM32 DM

[RESEND PATCH v5 1/4] dt-bindings: Document the STM32 DMAMUX bindings

2017-09-22 Thread Pierre-Yves MORDRET
This patch adds the documentation of device tree bindings for the STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> Acked-by: Rob Herring <r...@kernel.org> --- Version histo

[RESEND PATCH v5 4/4] ARM: configs: stm32: Add DMAMUX support in STM32 defconfig

2017-09-22 Thread Pierre-Yves MORDRET
This patch adds DMAMUX support in STM32 defconfig file Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v5: v4: v3: v2: * None --- --- arch/arm/configs/stm

[RESEND PATCH v5 0/4] Add STM32 DMAMUX support

2017-09-22 Thread Pierre-Yves MORDRET
-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 DMAMUX support in STM32 defconfig .../devicetree/bindings/dma/stm32-dma.txt

[RESEND PATCH v5 3/4] dt-bindings: stm32-dma: add a property to handle STM32 DMAMUX

2017-09-22 Thread Pierre-Yves MORDRET
STM32 DMA controller has to exposed its number of request line to be addressed via STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> Acked-by: Rob Herring <r...@kernel.org> --- Versi

Re: [PATCH v4 2/4] dmaengine: Add STM32 DMAMUX driver

2017-09-21 Thread Pierre Yves MORDRET
On 09/21/2017 01:25 PM, Peter Ujfalusi wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > > Great that you got it working w/o a custom API! > I have one comment, which actually valid for the

[PATCH v1] i2c:i2c-stm32f7: fix setup structure

2017-09-21 Thread Pierre-Yves MORDRET
I2C drive setup structure is not properly allocated. Make it static instead of pointer to store driver data. Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- drivers/i2c/busses/i2c-stm32f7.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff

[PATCH v5 1/4] dt-bindings: Document the STM32 DMAMUX bindings

2017-09-21 Thread Pierre-Yves MORDRET
This patch adds the documentation of device tree bindings for the STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v5: v4: * Add multi-master abili

[PATCH v5 2/4] dmaengine: Add STM32 DMAMUX driver

2017-09-21 Thread Pierre-Yves MORDRET
ed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v5: * Set selected channel ID within a lock to avoid race condition. Release if any error occurs v4: * Get rid of st,dmamux property and custom API between STM32 DM

[PATCH v5 0/4] Add STM32 DMAMUX support

2017-09-21 Thread Pierre-Yves MORDRET
-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 DMAMUX support in STM32 defconfig .../devicetree/bindings/dma/stm32-dma.txt

[PATCH v5 4/4] ARM: configs: stm32: Add DMAMUX support in STM32 defconfig

2017-09-21 Thread Pierre-Yves MORDRET
This patch adds DMAMUX support in STM32 defconfig file Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v5: v4: v3: v2: * None --- --- arch/arm/configs/stm

[PATCH v5 3/4] dt-bindings: stm32-dma: add a property to handle STM32 DMAMUX

2017-09-21 Thread Pierre-Yves MORDRET
STM32 DMA controller has to exposed its number of request line to be addressed via STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v5: v4: * get rid

Re: [PATCH v4 0/4] Add STM32 DMAMUX support

2017-09-21 Thread Pierre Yves MORDRET
Hello Gentle ping for driver review since DT Bindings have been acked by Rob Herring. Thanks Py On 09/07/2017 01:52 PM, Pierre-Yves MORDRET wrote: > This patchset adds support for the STM32 DMA multiplexer. > It allows to map any peripheral DMA request to any channel of the product

Re: [PATCH v4 0/4] Add STM32 MDMA driver

2017-09-21 Thread Pierre Yves MORDRET
Hello, Gentle ping for driver review submitted on August 25th. Thanks Regards On 08/25/2017 04:31 PM, Pierre-Yves MORDRET wrote: > This patchset adds support for the STM32 MDMA controller. > The Master Direct memory access (MDMA) provides high-speed data transfer > between memory a

Re: [PATCH v1] i2c:i2c-stm32f7: fix setup structure

2017-10-06 Thread Pierre Yves MORDRET
On 10/05/2017 01:14 PM, Wolfram Sang wrote: > On Thu, Sep 21, 2017 at 03:30:09PM +0200, Pierre-Yves MORDRET wrote: >> I2C drive setup structure is not properly allocated. >> Make it static instead of pointer to store driver data. >> >> Signed-off-by: Pierre-Yve

Re: [PATCH] i2c: stm32: Fixes multibyte transfer for STM32F4 I2C controller

2017-10-17 Thread Pierre Yves MORDRET
atch/9980965/ https://patchwork.kernel.org/patch/9980967/ Would you mind to test those ? Thanks > 2017-10-12 11:31 GMT+02:00 Pierre Yves MORDRET <pierre-yves.mord...@st.com>: >> >> >> On 10/11/2017 01:53 PM, Radoslaw Pietrzyk wrote: >>> Do

[PATCH v1] dmaengine: stm32_mdma: activate pack/unpack feature

2017-10-17 Thread Pierre-Yves MORDRET
by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- drivers/dma/stm32-mdma.c | 84 1 file changed, 50 insertions(+), 34 deletions(-) diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c index d3be6bf..daa1602 100644 --- a/d

Re: [PATCH] i2c: stm32: Fixes multibyte transfer for STM32F4 I2C controller

2017-10-17 Thread Pierre Yves MORDRET
at your side I will have to look at it closer. Nonetheless I prefer to start from something more stable in term of clock before investigating further. Please let me know Regards > 2017-10-17 15:18 GMT+02:00 Pierre Yves MORDRET <pierre-yves.mord...@st.com>: >> >> >> On

Re: [PATCH][dma-next] dmaengine: stm32: remove redundant initialization of hwdesc

2017-10-11 Thread Pierre Yves MORDRET
idue = 0; > for (i = curr_hwdesc + 1; i < desc->count; i++) { > - hwdesc = >hwdesc[i]; > + struct stm32_mdma_hwdesc *hwdesc = >hwdesc[i]; > + > residue += STM32_MDMA_CBNDTR_BNDT(hwdesc->cbndtr); > } > cbndtr = stm32_mdma_read(dmadev, STM32_MDMA_CBNDTR(chan->id)); > Acked-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com>

Re: [PATCH] i2c: stm32: Fixes multibyte transfer for STM32F4 I2C controller

2017-10-12 Thread Pierre Yves MORDRET
On 10/11/2017 01:53 PM, Radoslaw Pietrzyk wrote: > Do not read data on RXNE but on BTF only due to HW > synchronisation problems and NACKing read data too early. > It was found during testing of stmpe811 touchscreen driver. > Would you mind to explain what is behind "hw sync

[PATCH v4 3/4] dt-bindings: stm32-dma: add a property to handle STM32 DMAMUX

2017-09-07 Thread Pierre-Yves MORDRET
STM32 DMA controller has to exposed its number of request line to be addressed via STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v4: * get rid

[PATCH v4 0/4] Add STM32 DMAMUX support

2017-09-07 Thread Pierre-Yves MORDRET
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

[PATCH v4 1/4] dt-bindings: Document the STM32 DMAMUX bindings

2017-09-07 Thread Pierre-Yves MORDRET
This patch adds the documentation of device tree bindings for the STM32 DMAMUX. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v4: * Add multi-master ability for

[PATCH v4 2/4] dmaengine: Add STM32 DMAMUX driver

2017-09-07 Thread Pierre-Yves MORDRET
ed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v4: * Get rid of st,dmamux property and custom API between STM32 DMAMUX and DMA. DMAMUX will read DMA masters from Device Tree from now on. Merely one DMAMUX node i

[PATCH v4 4/4] ARM: configs: stm32: Add MDMA support in STM32 defconfig

2017-09-07 Thread Pierre-Yves MORDRET
This patch adds MDMA support in STM32 defconfig file Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v4: v3: * None v2: * Add MDMA support in STM32 defconfig --- --- arch/arm/configs/stm32_defconfig | 1 + 1 file chan

Re: [PATCH v3 2/5] dmaengine: Add STM32 DMAMUX driver

2017-08-30 Thread Pierre Yves MORDRET
On 08/28/2017 01:48 PM, Peter Ujfalusi wrote: > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > Thanks for your invaluable inputs. This is more clear now and revise my driver > > I would not bother with

[PATCH v5 2/4] dmaengine: Add STM32 MDMA driver

2017-09-28 Thread Pierre-Yves MORDRET
buffer or other peripherals (w/ integrated FIFO). Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> --- Version history: v5: * Change 'platform_driver_probe' into 'platform_dri

[PATCH v5 0/4] Add STM32 MDMA driver

2017-09-28 Thread Pierre-Yves MORDRET
--- 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

[PATCH v5 1/4] dt-bindings: Document the STM32 MDMA bindings

2017-09-28 Thread Pierre-Yves MORDRET
This patch adds documentation of device tree bindings for the STM32 MDMA controller. Signed-off-by: M'boumba Cedric Madianga <cedric.madia...@gmail.com> Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mord...@st.com> Acked-by: Rob Herring <r...@kernel.org> --- Version history

  1   2   3   >