[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 Signed-off-by: Pierre-Yves MORDRET --- Changes in V2 * Add SCL Rising/Falling time for eval board --- arch/arm/boot/dts/stm32746g-eval.dts | 8 1 file changed, 8 insertions(+) diff --

[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 Signed-off-by: Pierre-Yves MORDRET --- Change in V2 * Remove i2c-timing binding in order to use generic bindings SCL Rising and Falling time instead --- .../devic

[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 Signed-off-by: Pierre-Yves MORDRET --- Changes in V2: * Remove st,i2c-timing binding usage * Implement an I2C timings computation algorithm instead of static values(bin

[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 Signed-off-by: Pierre-Yves MORDRET --- Changes in V2: * Update I2C SoC device tree with latest Linux version --- arch/arm/boot/dts/stm32f746.dtsi | 22 ++ 1 file changed, 22 inser

[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 Signed-off-by: Pierre-Yves MORDRET Reviewed-by: Ludovic BARRE --- drivers/i2c/busses/i2c-stm32.h | 20 drivers/i2c/busses/i2c-stm32f4.c

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

2017-10-17 Thread Pierre Yves MORDRET
org/patch/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 : >> >> >> On 10/11/2017 01:53 PM, Radoslaw Pietrzyk wrote: >>> Do not read data on RXNE but on BTF only due to HW

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

2017-10-17 Thread Pierre-Yves MORDRET
by: Pierre-Yves MORDRET --- 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/drivers/dma/stm32-mdma.c +++ b/drivers

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

2017-10-17 Thread Pierre Yves MORDRET
ness 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 : >> >> >> On 10/12/2017 11:55 AM, Radosław P

Re: [PATCH 17/46] dmaengine: stm32-mdma: use dmaenginem_async_device_register to simplify the code

2018-08-03 Thread Pierre Yves MORDRET
Acked-by: Pierre-Yves MORDRET On 08/03/2018 09:19 AM, Huang Shijie wrote: > Use dmaenginem_async_device_register to simplify the code: > remove dma_async_device_unregister. > > Signed-off-by: Huang Shijie > --- > drivers/dma/stm32-mdma.c | 4 +--- > 1 file chang

[RESEND PATCH v1 4/6] i2c: i2c-stm32: Add generic DMA API

2018-03-12 Thread Pierre-Yves MORDRET
This patch adds a generic DMA API to implement DMA support for i2c-stm32fx drivers Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/busses/i2c-stm32.c

[RESEND PATCH v1 3/6] i2c: i2c-stm32f7: Add initial SMBus protocols support

2018-03-12 Thread Pierre-Yves MORDRET
This patch adds SMBus support for I2C controller embedded in STM32F7 Soc. All SMBus protocols are implemented except SMBus-specific protocols. Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/b

[RESEND PATCH v1 0/6] Add different features for I2C

2018-03-12 Thread Pierre-Yves MORDRET
Append new I2C STM32F7 feature set. This includes 10 bit support, slave support, SMBBus protocols support, DMA Support and eventually an I2C recovery mechanism. resend after rebasing on last kernel. --- Version history: v1: * Initial --- Pierre-Yves MORDRET (6): i2c: i2c-stm32f7

[RESEND PATCH v1 6/6] i2c: i2c-stm32f7: Implement I2C recovery mechanism

2018-03-12 Thread Pierre-Yves MORDRET
Feature prevents I2C lock-ups. Mechanism resets I2C state machine and releases SCL/SDA signals but preserves I2C registers. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/busses/i2c-stm32f7.c | 32 +--- 1 file

[RESEND PATCH v1 5/6] i2c: i2c-stm32f7: Add DMA support

2018-03-12 Thread Pierre-Yves MORDRET
This patch adds DMA support for i2c-stm32f7 driver Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/busses/Makefile | 3 +- drivers/i2c/busses/i2c-stm32f7.c

[RESEND PATCH v1 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-12 Thread Pierre-Yves MORDRET
This patch adds slave support for I2C controller embedded in STM32F7 SoC Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-stm32f7.c

[RESEND PATCH v1 1/6] i2c: i2c-stm32f7: Add 10-bit address support

2018-03-12 Thread Pierre-Yves MORDRET
This patch adds support for 10-bit device address for STM32F7 I2C Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/busses/i2c-stm32f7.c | 22 +- 1 file changed, 17 inser

[RESEND PATCH v1] i2c: i2c-stm32f7: fix no check on returned setup

2018-03-12 Thread Pierre-Yves MORDRET
Before assigning returned setup structure check if not null Fixes: 463a9215f3ca7600b5ff ("i2c: stm32f7: fix setup structure") Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/busses/i2c-stm32f7.c | 4 1 file changed, 4

Re: [PATCH v2 1/6] i2c: i2c-stm32f7: Add 10-bit address support

2018-03-26 Thread Pierre Yves MORDRET
On 03/24/2018 11:43 PM, Wolfram Sang wrote: > On Wed, Mar 21, 2018 at 05:48:55PM +0100, Pierre-Yves MORDRET wrote: >> This patch adds support for 10-bit device address for STM32F7 I2C >> >> Signed-off-by: M'boumba Cedric Madianga >> Signed-off-by: Pierre-Yves MOR

Re: [PATCH v2 3/6] i2c: i2c-stm32f7: Add initial SMBus protocols support

2018-03-26 Thread Pierre Yves MORDRET
On 03/24/2018 11:49 PM, Wolfram Sang wrote: > On Wed, Mar 21, 2018 at 05:48:57PM +0100, Pierre-Yves MORDRET wrote: >> This patch adds SMBus support for I2C controller embedded in STM32F7 Soc. > >> All SMBus protocols are implemented except SMBus-specific protocols. > >

Re: [PATCH v2 4/6] i2c: i2c-stm32: Add generic DMA API

2018-03-26 Thread Pierre Yves MORDRET
Thanks for the heads-up ! My driver supports DMA, but hardly used in the system. But it's worth to mentioned it. On 03/24/2018 11:51 PM, Wolfram Sang wrote: > On Wed, Mar 21, 2018 at 05:48:58PM +0100, Pierre-Yves MORDRET wrote: >> This patch adds a generic DMA API to implement D

Re: [PATCH v2 6/6] i2c: i2c-stm32f7: Implement I2C recovery mechanism

2018-03-26 Thread Pierre Yves MORDRET
On 03/24/2018 11:56 PM, Wolfram Sang wrote: > On Wed, Mar 21, 2018 at 05:49:00PM +0100, Pierre-Yves MORDRET wrote: >> Feature prevents I2C lock-ups. Mechanism resets I2C state machine >> and releases SCL/SDA signals but preserves I2C registers. >> >> Signed-

Re: [PATCH v2 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-26 Thread Pierre Yves MORDRET
On 03/25/2018 08:16 PM, Wolfram Sang wrote: > On Wed, Mar 21, 2018 at 05:48:56PM +0100, Pierre-Yves MORDRET wrote: >> This patch adds slave support for I2C controller embedded in STM32F7 SoC >> >> Signed-off-by: M'boumba Cedric Madianga >> Signed-off-by: Pierre-

[PATCH v3 0/6] Add different features for I2C

2018-04-11 Thread Pierre-Yves MORDRET
: * Provide more details on what have already been implemented and not implemented for SMBus protocols * Raise DMA usage threshold * s/recovery/release/ throughout the patch. Recovery is really something else. --- Pierre-Yves MORDRET (6): i2c: i2c

[PATCH v3 3/6] i2c: i2c-stm32f7: Add initial SMBus protocols support

2018-04-11 Thread Pierre-Yves MORDRET
call, Block write/read and Block write-block read process call. Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * fix Kbuild test robot issue (Unneeded semicolon) v3: * Provide more detai

[PATCH v3 6/6] i2c: i2c-stm32f7: Implement I2C release mechanism

2018-04-11 Thread Pierre-Yves MORDRET
Feature prevents I2C lock-ups. Mechanism resets I2C state machine and releases SCL/SDA signals but preserves I2C registers. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * Don't use i2c engine recovery mechanism since driver proc

[PATCH v3 2/6] i2c: i2c-stm32f7: Add slave support

2018-04-11 Thread Pierre-Yves MORDRET
This patch adds slave support for I2C controller embedded in STM32F7 SoC Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: v3: --- --- drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busse

[PATCH v3 5/6] i2c: i2c-stm32f7: Add DMA support

2018-04-11 Thread Pierre-Yves MORDRET
This patch adds DMA support for i2c-stm32f7 driver Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * fix kbuild test robot issue (format) v3: * Raise DMA usage threshold --- fixup! i2c

[PATCH v3 1/6] i2c: i2c-stm32f7: Add 10-bit address support

2018-04-11 Thread Pierre-Yves MORDRET
This patch adds support for 10-bit device address for STM32F7 I2C Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: v3: --- --- drivers/i2c/busses/i2c-stm32f7.c | 22 +- 1 file ch

[PATCH v3 4/6] i2c: i2c-stm32: Add generic DMA API

2018-04-11 Thread Pierre-Yves MORDRET
This patch adds a generic DMA API to implement DMA support for i2c-stm32fx drivers Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: v3: --- --- drivers/i2c/busses/i2c-stm32.c

[PATCH v2 1/2] dmaengine: stm32-mdma: align TLEN and buffer length on burst

2018-04-11 Thread Pierre-Yves MORDRET
Both buffer Transfer Length (TLEN if any) and transfer size have to be aligned on burst size (burst beats*bus width). Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: --- --- drivers/dma/stm32-mdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2 0/2] Append some fixes and improvements

2018-04-11 Thread Pierre-Yves MORDRET
Fix an issue with FIFO Size and burst size. Fix an incomplete allocator for Hardware descriptors: memory badly allocated. --- Version history: v1: * Initial v2: * Fix kbuild warning format: /0x%08x/%pad/ --- Pierre-Yves MORDRET (2): dmaengine: stm32-mdma: align TLEN and

[PATCH v2 2/2] dmaengine: stm32-mdma: Fix incomplete Hw descriptors allocator

2018-04-11 Thread Pierre-Yves MORDRET
Only 1 Hw Descriptor is allocated. Loop over required Hw descriptor for proper allocation. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * Fix kbuild warning format: /0x%08x/%pad/ --- --- drivers/dma/stm32-mdma.c | 90

Re: [PATCH v2 1/2] dmaengine: stm32-mdma: align TLEN and buffer length on burst

2018-04-13 Thread Pierre Yves MORDRET
Hi Robin On 04/11/2018 05:14 PM, Robin Murphy wrote: > On 11/04/18 15:44, Pierre-Yves MORDRET wrote: >> Both buffer Transfer Length (TLEN if any) and transfer size have to be >> aligned on burst size (burst beats*bus width). >> >> Signed-off-by: Pierre-Yves MORDRET &

Re: [PATCH v2 1/2] dmaengine: stm32-mdma: align TLEN and buffer length on burst

2018-04-13 Thread Pierre Yves MORDRET
On 04/13/2018 01:09 PM, Robin Murphy wrote: > On 13/04/18 10:45, Pierre Yves MORDRET wrote: >> Hi Robin >> >> On 04/11/2018 05:14 PM, Robin Murphy wrote: >>> On 11/04/18 15:44, Pierre-Yves MORDRET wrote: >>>> Both buffer Transfer Length (TLEN if any) an

[PATCH v3 0/2] Append some fixes and improvements

2018-04-13 Thread Pierre-Yves MORDRET
* use of "offsetof" instead of explicit calculation --- Pierre-Yves MORDRET (2): dmaengine: stm32-mdma: align TLEN and buffer length on burst dmaengine: stm32-mdma: Fix incomplete Hw descriptors allocator drivers/dma/stm32-mdma.c | 98 -

[PATCH v3 2/2] dmaengine: stm32-mdma: Fix incomplete Hw descriptors allocator

2018-04-13 Thread Pierre-Yves MORDRET
Only 1 Hw Descriptor is allocated. Loop over required Hw descriptor for proper allocation. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * Fix kbuild warning format: /0x%08x/%pad/ v3: * use of "offsetof" instead o

[PATCH v3 1/2] dmaengine: stm32-mdma: align TLEN and buffer length on burst

2018-04-13 Thread Pierre-Yves MORDRET
Both buffer Transfer Length (TLEN if any) and transfer size have to be aligned on burst size (burst beats*bus width). Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: v3: * Get rid of while loop in favor of computed values --- --- drivers/dma

Re: [RESEND PATCH v1 6/6] i2c: i2c-stm32f7: Implement I2C recovery mechanism

2018-03-20 Thread Pierre Yves MORDRET
think I have to get move this reset out of recovery API. Please correct me whether I'm wrong Slave Recovery mechanism is another story to implement in our platform since we have to deal with GPIOs. Let me know Regards On 03/19/2018 09:51 AM, Pierre Yves MORDRET wrote: > Yes. Recovery m

Re: [RESEND PATCH v1 6/6] i2c: i2c-stm32f7: Implement I2C recovery mechanism

2018-03-20 Thread Pierre Yves MORDRET
Thanks for your quick answer On 03/20/2018 10:42 AM, Wolfram Sang wrote: > Hi, > >> Looking at the recovery API, this recovery is for slave and nothing else >> with my >> case. Therefore I think I have to get move this reset out of recovery API. > > Yes, you are correct. You need a custom funct

Re: [RESEND PATCH v1 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-20 Thread Pierre Yves MORDRET
On 03/20/2018 10:52 AM, Wolfram Sang wrote: > >> I do believe the hw can support it, even it looks odd to me having the same >> I2C >> in slave and master mode at the same time. > > I2C is multi-master, so it is perfectly valid for a device to be master > and slave. I do have seen designs maki

Re: [RESEND PATCH v1 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-21 Thread Pierre Yves MORDRET
aster command on going. IRqs are not separated neither Regs bits. The routing is done though out START condition. This driver is not slave-only driver and can act as master if a master command is issued and slave if registered as such. Hope it clarifies Regards On 03/20/2018 11:17 AM, Pierre Yves MO

[PATCH v2] i2c: i2c-stm32f7: fix no check on returned setup

2018-03-21 Thread Pierre-Yves MORDRET
Before assigning returned setup structure check if not null Fixes: 463a9215f3ca7600b5ff ("i2c: stm32f7: fix setup structure") Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * fill "ret" with error statement be

[PATCH v2 0/6] Add different features for I2C

2018-03-21 Thread Pierre-Yves MORDRET
--- Pierre-Yves MORDRET (6): i2c: i2c-stm32f7: Add 10-bit address support i2c: i2c-stm32f7: Add slave support i2c: i2c-stm32f7: Add initial SMBus protocols support i2c: i2c-stm32: Add generic DMA API i2c: i2c-stm32f7: Add DMA support i2c: i2c-stm32f7: Implement I2C recovery mechanism

[PATCH v2 5/6] i2c: i2c-stm32f7: Add DMA support

2018-03-21 Thread Pierre-Yves MORDRET
This patch adds DMA support for i2c-stm32f7 driver Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * fix kbuild test robot issue (format) --- fixup! i2c: i2c-stm32f7: Add DMA support --- driver

[PATCH v2 2/6] i2c: i2c-stm32f7: Add slave support

2018-03-21 Thread Pierre-Yves MORDRET
This patch adds slave support for I2C controller embedded in STM32F7 SoC Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: --- --- drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-stm3

[PATCH v2 4/6] i2c: i2c-stm32: Add generic DMA API

2018-03-21 Thread Pierre-Yves MORDRET
This patch adds a generic DMA API to implement DMA support for i2c-stm32fx drivers Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: --- --- drivers/i2c/busses/i2c-stm32.c

[PATCH v2 1/6] i2c: i2c-stm32f7: Add 10-bit address support

2018-03-21 Thread Pierre-Yves MORDRET
This patch adds support for 10-bit device address for STM32F7 I2C Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: --- --- drivers/i2c/busses/i2c-stm32f7.c | 22 +- 1 file change

[PATCH v2 3/6] i2c: i2c-stm32f7: Add initial SMBus protocols support

2018-03-21 Thread Pierre-Yves MORDRET
This patch adds SMBus support for I2C controller embedded in STM32F7 Soc. All SMBus protocols are implemented except SMBus-specific protocols. Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * fix K

[PATCH v2 6/6] i2c: i2c-stm32f7: Implement I2C recovery mechanism

2018-03-21 Thread Pierre-Yves MORDRET
Feature prevents I2C lock-ups. Mechanism resets I2C state machine and releases SCL/SDA signals but preserves I2C registers. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial v2: * Don't use i2c engine recovery mechanism since driver proc

[PATCH v1 2/8] dmaengine: stm32-dma: threshold manages with bitfield feature

2018-03-13 Thread Pierre-Yves MORDRET
>From now on, DMA bitfield is to manage DMA FIFO Threshold. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dma.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/dma/stm32-dma.

[PATCH v1 7/8] dmaengine: stm32-dma: fix incomplete configuration in cyclic mode

2018-03-13 Thread Pierre-Yves MORDRET
When in cyclic mode, the configuration is updated after having started the DMA hardware (STM32_DMA_SCR_EN) leading to incomplete configuration of SMxAR registers. Signed-off-by: Pierre-Yves MORDRET Signed-off-by: Hugues Fruchet --- Version history: v1: * Initial --- --- drivers

[PATCH v1 4/8] dmaengine: stm32-dma: fix DMA IRQ status handling

2018-03-13 Thread Pierre-Yves MORDRET
Update the way Transfer Complete and Half Transfer Complete status are acknowledge. Even if HTI is not enabled its status is shown when reading registers, driver has to clear it gently and not raise an error. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial

[PATCH v1 1/8] dt-bindings: stm32-dma: introduce DMA features bitfield

2018-03-13 Thread Pierre-Yves MORDRET
This bitfield intends to address features to be activated within the driver. Initially the mask was only meant for FIFO Threshold management. Backward compatibility is preserved but the meaning of this field has been extended to features instead of only threshold. Signed-off-by: Pierre-Yves

[PATCH v1 3/8] dmaengine: stm32-dma: Improve memory burst management

2018-03-13 Thread Pierre-Yves MORDRET
rst. Signed-off-by: M'boumba Cedric Madianga Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dma.c | 204 +--- 1 file changed, 175 insertions(+), 29 deletions(-) diff --git a/drivers/d

[PATCH v1 8/8] dmaengine: stm32-dma: fix typo and reported checkpatch warnings

2018-03-13 Thread Pierre-Yves MORDRET
Fix typo in a comment and solved reported checkpatch warnings. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dma.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/dma/stm32-dma.c b/drivers/dma

[PATCH v1 6/8] dmaengine: stm32-dma: properly mask irq bits

2018-03-13 Thread Pierre-Yves MORDRET
larly, the function stm32_dma_irq_clear() don't mask the input value before shifting it, thus an incorrect input value could disable the interrupts of adjacent channels. Fixed by masking the input value before using it. Signed-off-by: Pierre-Yves MORDRET Signed-off-by: Antonio Borneo ---

[PATCH v1 5/8] dmaengine: stm32-dma: fix max items per transfer

2018-03-13 Thread Pierre-Yves MORDRET
Having 0 in item counter register is valid and stands for a "No or Ended transfer". Therefore valid transfer starts from @+0 to @+0xFFFE leading to unaligned scatter gather at boundary. Thus it's safer to round down this value on its FIFO size (16 Bytes). Signed-off-by: Pier

[PATCH v1 0/8] Append several fixes and improvements in STM32 DMA

2018-03-13 Thread Pierre-Yves MORDRET
transfer to match FIFO Size * Properly mask irq bits to avoid overlaping * Fix incomplete configuration in cyclic mode * Fix typo and reported checkpatch warnings --- Version history: v1: * Initial --- Pierre-Yves MORDRET (8): dt-bindings: stm32-dma: introduce

[PATCH v1 1/1] dmaengine: stm32-dmamux: fix a potential buffer overflow

2018-03-13 Thread Pierre-Yves MORDRET
-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dmamux.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/dma/stm32-dmamux.c b/drivers/dma/stm32-dmamux.c index 4dbb30c..b922db9 100644 --- a/drivers/dma/stm32

[PATCH v1 1/2] dmaengine: stm32-mdma: align TLEN and buffer length on burst

2018-03-13 Thread Pierre-Yves MORDRET
Both buffer Transfer Length (TLEN if any) and transfer size have to be aligned on burst size (burst beats*bus width). Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-mdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v1 2/2] dmaengine: stm32-mdma: Fix incomplete Hw descriptors allocator

2018-03-13 Thread Pierre-Yves MORDRET
Only 1 Hw Descriptor is allocated. Loop over required Hw descriptor for proper allocation. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-mdma.c | 90 ++-- 1 file changed, 56 insertions

[PATCH v1 0/2] Append some fixes and improvements

2018-03-13 Thread Pierre-Yves MORDRET
Fix an issue with FIFO Size and burst size. Fix an incomplete allocator for Hardware descriptors: memory badly allocated. --- Version history: v1: * Initial --- Pierre-Yves MORDRET (2): dmaengine: stm32-mdma: align TLEN and buffer length on burst dmaengine: stm32-mdma: Fix

[PATCH v2 0/7] Add-DMA-MDMA-chaining-support

2018-09-28 Thread Pierre-Yves MORDRET
This serie adds support for M2M transfer triggered by STM32 DMA in order to transfer data from/to SRAM to/from DDR. Normally, this mode should not be needed as transferring data from/to DDR is supported by the STM32 DMA. However, the STM32 DMA don't have the ability to generate burst transfer on t

[PATCH v2 7/7] dmaengine: stm32-mdma: enable descriptor_reuse

2018-09-28 Thread Pierre-Yves MORDRET
enable reuse to spare descriptors creation on critical UC. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-mdma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c index 6b6e63b

[PATCH v2 2/7] dt-bindings: stm32-dmamux: Add one cell to support DMA/MDMA chain

2018-09-28 Thread Pierre-Yves MORDRET
From: M'boumba Cedric Madianga Add one cell to support DMA/MDMA chaining. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- Documentation/devicetree/bindings/dma/stm32-dmamux.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --

[PATCH v2 1/7] dt-bindings: stm32-dma: Add DMA/MDMA chaining support bindings

2018-09-28 Thread Pierre-Yves MORDRET
er is given by the formula: (2 ^ order) * PAGE_SIZE. The order is given by those 2 bits. For cyclic, whether chaining is chosen, any value above 1 can be set : SRAM buffer size will rely on period size and not on this DT value. Signed-off-by: Pierre-Yves MORDRET --- Version history:

[PATCH v2 3/7] dt-bindings: stm32-mdma: Add DMA/MDMA chaining support bindings

2018-09-28 Thread Pierre-Yves MORDRET
From: M'boumba Cedric Madianga This patch adds the description of the 2 properties needed to support M2M transfer triggered by STM32 DMA when his transfer is complete. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- Documentation/devicetree/bin

[PATCH v2 6/7] dmaengine: stm32-dma: enable descriptor_reuse

2018-09-28 Thread Pierre-Yves MORDRET
Enable client to resubmit already processed descriptors in order to save descriptor creation time. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dma.c | 84 +++-- 1 file changed, 54

[PATCH v2 5/7] dmaengine: stm32-mdma: Add DMA/MDMA chaining support

2018-09-28 Thread Pierre-Yves MORDRET
red by HW. This mode is not really available in dmaengine framework as normally M2M transfers are triggered by SW. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-mdma.c | 131 +-- 1 file change

[PATCH v2 4/7] dmaengine: stm32-dma: Add DMA/MDMA chaining support

2018-09-28 Thread Pierre-Yves MORDRET
is used for this intermediate buffer Each DMA channel will be able to define its SRAM needs to achieve chaining feature : (2 ^ order) * PAGE_SIZE. For cyclic, SRAM buffer is derived from period length (rounded on PAGE_SIZE). Signed-off-by: Pierre-Yves MORDRET --- Version history: v1

[PATCH v3 1/7] dt-bindings: stm32-dma: Add DMA/MDMA chaining support bindings

2018-09-28 Thread Pierre-Yves MORDRET
er is given by the formula: (2 ^ order) * PAGE_SIZE. The order is given by those 2 bits. For cyclic, whether chaining is chosen, any value above 1 can be set : SRAM buffer size will rely on period size and not on this DT value. Signed-off-by: Pierre-Yves MORDRET --- Version history:

[PATCH v3 3/7] dt-bindings: stm32-mdma: Add DMA/MDMA chaining support bindings

2018-09-28 Thread Pierre-Yves MORDRET
From: M'boumba Cedric Madianga This patch adds the description of the 2 properties needed to support M2M transfer triggered by STM32 DMA when his transfer is complete. Signed-off-by: Pierre-Yves MORDRET --- Version history: v3: v2: * rework content v1: * In

[PATCH v3 0/7] Add-DMA-MDMA-chaining-support

2018-09-28 Thread Pierre-Yves MORDRET
nding content v1: * Initial --- Pierre-Yves MORDRET (3): dt-bindings: stm32-dma: Add DMA/MDMA chaining support bindings dt-bindings: stm32-dmamux: Add one cell to support DMA/MDMA chain dt-bindings: stm32-mdma: Add DMA/MDMA chaining support bindings dmaengine: stm32-dma: Add DMA

[PATCH v3 2/7] dt-bindings: stm32-dmamux: Add one cell to support DMA/MDMA chain

2018-09-28 Thread Pierre-Yves MORDRET
From: M'boumba Cedric Madianga Add one cell to support DMA/MDMA chaining. Signed-off-by: Pierre-Yves MORDRET --- Version history: v3: v2: * rework content v1: * Initial --- --- Documentation/devicetree/bindings/dma/stm32-dmamux.txt | 6 +++--- 1 file chang

[PATCH v3 6/7] dmaengine: stm32-dma: enable descriptor_reuse

2018-09-28 Thread Pierre-Yves MORDRET
Enable client to resubmit already processed descriptors in order to save descriptor creation time. Signed-off-by: Pierre-Yves MORDRET --- Version history: v3: v2: v1: * Initial --- --- drivers/dma/stm32-dma.c | 84 +++-- 1 file

[PATCH v3 5/7] dmaengine: stm32-mdma: Add DMA/MDMA chaining support

2018-09-28 Thread Pierre-Yves MORDRET
red by HW. This mode is not really available in dmaengine framework as normally M2M transfers are triggered by SW. Signed-off-by: Pierre-Yves MORDRET --- Version history: v3: v2: v1: * Initial --- --- drivers/dma/stm32-mdma.c | 131 +

[PATCH v3 7/7] dmaengine: stm32-mdma: enable descriptor_reuse

2018-09-28 Thread Pierre-Yves MORDRET
enable reuse to spare descriptors creation on critical UC. Signed-off-by: Pierre-Yves MORDRET --- Version history: v3: v2: v1: * Initial --- --- drivers/dma/stm32-mdma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32

[PATCH v3 4/7] dmaengine: stm32-dma: Add DMA/MDMA chaining support

2018-09-28 Thread Pierre-Yves MORDRET
is used for this intermediate buffer Each DMA channel will be able to define its SRAM needs to achieve chaining feature : (2 ^ order) * PAGE_SIZE. For cyclic, SRAM buffer is derived from period length (rounded on PAGE_SIZE). Signed-off-by: Pierre-Yves MORDRET --- Version history: v3

Re: [PATCH v2 0/7] Add-DMA-MDMA-chaining-support

2018-09-28 Thread Pierre Yves MORDRET
Hello all, I've submitted a V3 following a KBuild warning. You can thus drop this V2. Thanks and sorry for the spamming. Have a nice weekend. Regards On 09/28/2018 10:36 AM, Pierre-Yves MORDRET wrote: > This serie adds support for M2M transfer triggered by STM32 DMA in order to > tr

Re: [PATCH v2] i2c: i2c-stm32f7: add PM Runtime support

2018-11-27 Thread Pierre Yves MORDRET
Hi Wolfram, Sorry for the inconvenience. I re-submit a v3 right now. Thanks On 11/27/18 1:10 PM, Wolfram Sang wrote: > On Mon, Nov 19, 2018 at 12:04:24PM +0100, Pierre-Yves MORDRET wrote: >> Use PM Runtime API to enable/disable clock >> >> Signed-off-by: Pierre-Yves MORDRET

[PATCH v3] i2c: i2c-stm32f7: add PM Runtime support

2018-11-27 Thread Pierre-Yves MORDRET
Use PM Runtime API to enable/disable clock Signed-off-by: Pierre-Yves MORDRET --- Version history: v3: * Rebase v2: * missing define v1: * Initial --- --- drivers/i2c/busses/i2c-stm32f7.c | 144 +++ 1 file changed, 101

[PATCH v1] i2c: i2c-stm32f7: add PM Runtime support

2018-11-16 Thread Pierre-Yves MORDRET
Use PM Runtime API to enable/disable clock Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/busses/i2c-stm32f7.c | 142 +++ 1 file changed, 99 insertions(+), 43 deletions(-) diff --git a/drivers/i2c

[PATCH v1 2/2] i2c: i2c-stm32f7: SYSCFG Fast Mode Plus support for I2C STM32F7

2018-11-16 Thread Pierre-Yves MORDRET
Read SYSCFG bindings to set Fast Mode Plus bits if Fast Mode Plus speed is selected. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/i2c/busses/i2c-stm32f7.c | 37 ++--- 1 file changed, 34 insertions(+), 3

[PATCH v1 1/2] dt-bindings: i2c-stm32: SYSCFG Fast Mode Plus support for I2C STM32F7

2018-11-16 Thread Pierre-Yves MORDRET
Append optional bindings to update SYSCFG Fast Mode Plus bits if Fast Mode Plus speed is selected. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- Documentation/devicetree/bindings/i2c/i2c-stm32.txt | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCH v1 0/2] SYSCFG Fast Mode Plus support for I2C STM32F7

2018-11-16 Thread Pierre-Yves MORDRET
Append optional bindings to update SYSCFG Fast Mode Plus bits if Fast Mode Plus speed is selected. --- Version history: v1: * Initial --- Pierre-Yves MORDRET (2): dt-bindings: i2c-stm32: SYSCFG Fast Mode Plus support for I2C STM32F7 i2c: i2c-stm32f7: SYSCFG Fast Mode Plus

[PATCH v1 1/3] dmaengine: stm32-dma: Add PM Runtime support

2018-11-16 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dma.c | 58 +++-- 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH v1 3/3] dmaengine: stm32-mdma: Add PM Runtime support

2018-11-16 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-mdma.c | 52 ++-- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH v1 0/3] Add PM Runtime support

2018-11-16 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose for both DMA, DMAMUX and MDMA --- Version history: v1: * Initial --- Pierre-Yves MORDRET (3): dmaengine: stm32-dma: Add PM Runtime support dmaengine: stm32-dmamux: Add PM Runtime support dmaengine: stm32-mdma: Add PM Runtime

[PATCH v1 2/3] dmaengine: stm32-dmamux: Add PM Runtime support

2018-11-16 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dmamux.c | 58 +- 1 file changed, 47 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH v1] dmaengine: stm32-dma: check FIFO error interrupt enable

2018-11-16 Thread Pierre-Yves MORDRET
For avoiding false FIFO detection, check FIFO Error interrupt is enabled prior raising any errors. This will prevent having spurious FIFO error where it shouldn't. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dma.c

[PATCH v2 0/2] SYSCFG Fast Mode Plus support for I2C STM32F7

2018-11-19 Thread Pierre-Yves MORDRET
Append optional bindings to update SYSCFG Fast Mode Plus bits if Fast Mode Plus speed is selected. --- Version history: v2: * solve some build issues v1: * Initial --- Pierre-Yves MORDRET (2): dt-bindings: i2c-stm32: SYSCFG Fast Mode Plus support for I2C STM32F7 i2c

[PATCH v2 2/2] i2c: i2c-stm32f7: SYSCFG Fast Mode Plus support for I2C STM32F7

2018-11-19 Thread Pierre-Yves MORDRET
Read SYSCFG bindings to set Fast Mode Plus bits if Fast Mode Plus speed is selected. Signed-off-by: Pierre-Yves MORDRET --- Version history: v2: * Missing header file inclusion v1: * Initial --- --- drivers/i2c/busses/i2c-stm32f7.c | 38

[PATCH v2 1/2] dt-bindings: i2c-stm32: SYSCFG Fast Mode Plus support for I2C STM32F7

2018-11-19 Thread Pierre-Yves MORDRET
Append optional bindings to update SYSCFG Fast Mode Plus bits if Fast Mode Plus speed is selected. Signed-off-by: Pierre-Yves MORDRET Reviewed-by: Rob Herring --- Version history: v2: v1: * Initial --- --- Documentation/devicetree/bindings/i2c/i2c-stm32.txt | 6 ++ 1 file

[PATCH v2] i2c: i2c-stm32f7: add PM Runtime support

2018-11-19 Thread Pierre-Yves MORDRET
Use PM Runtime API to enable/disable clock Signed-off-by: Pierre-Yves MORDRET --- Version history: v2: * missing define v1: * Initial --- --- drivers/i2c/busses/i2c-stm32f7.c | 144 +++ 1 file changed, 101 insertions(+), 43 deletions

[PATCH v1] ARM: multi_v7_defconfig: enable STM32 DMAv2, DMAMUX and MDMA

2018-05-28 Thread Pierre-Yves MORDRET
This enables drivers for STM32: - DMAv2 - DMMAUX - MDMA Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm

[RESEND PATCH v1 1/3] dmaengine: stm32-dma: Add PM Runtime support

2019-01-03 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dma.c | 58 +++-- 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/drivers

[RESEND PATCH v1 0/3] Add PM Runtime support

2019-01-03 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose for both DMA, DMAMUX and MDMA --- Version history: v1: * Initial --- Pierre-Yves MORDRET (3): dmaengine: stm32-dma: Add PM Runtime support dmaengine: stm32-dmamux: Add PM Runtime support dmaengine: stm32-mdma: Add PM Runtime

[RESEND PATCH v1] dmaengine: stm32-dma: check FIFO error interrupt enable

2019-01-03 Thread Pierre-Yves MORDRET
For avoiding false FIFO detection, check FIFO Error interrupt is enabled prior raising any errors. This will prevent having spurious FIFO error where it shouldn't. Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-dma.c

[RESEND PATCH v1 3/3] dmaengine: stm32-mdma: Add PM Runtime support

2019-01-03 Thread Pierre-Yves MORDRET
Use pm_runtime engine for clock management purpose Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- drivers/dma/stm32-mdma.c | 52 ++-- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/drivers

  1   2   3   4   >