[PATCH v9 3/8] dt-bindings: pwm: Add STM32 bindings

2017-01-20 Thread Benjamin Gaignard
Signed-off-by: Benjamin Gaignard Acked-by: Rob Herring Acked-by: Thierry Reding --- .../devicetree/bindings/pwm/pwm-stm32.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-stm32.txt diff --git a/Documentation

[PATCH v9 5/8] IIO: add bindings for STM32 timer trigger driver

2017-01-20 Thread Benjamin Gaignard
ers to set lists of the triggers: one list describe the triggers created by the device another one give the triggers accepted by the device Signed-off-by: Benjamin Gaignard Acked-by: Jonathan Cameron Acked-by: Rob Herring --- .../bindings/iio/timer/stm32-timer-trigger.tx

[RFC simple allocator v1 1/2] Create Simple Allocator module

2017-01-20 Thread Benjamin Gaignard
This is the core of simple allocator module. It aim to offert one common ioctl to allocate specific memory. Signed-off-by: Benjamin Gaignard --- Documentation/simple-allocator.txt | 81 +++ drivers/Kconfig | 2 + drivers/Makefile

[RFC simple allocator v1 2/2] add CMA simple allocator module

2017-01-20 Thread Benjamin Gaignard
This patch add simple allocator for CMA regions Signed-off-by: Benjamin Gaignard --- drivers/simpleallocator/Kconfig| 7 + drivers/simpleallocator/Makefile | 1 + drivers/simpleallocator/simple-allocator-cma.c | 187 + 3 files changed

[RFC simple allocator v1 0/2] Simple allocator

2017-01-20 Thread Benjamin Gaignard
"); } memset(mem, 0xFF, LENGTH); munmap(mem, LENGTH); printf("test simple allocator CMA OK\n"); end: close(fd); } [1] https://github.com/cubanismo/allocator Benjamin Gaignard (2): Create Simple Allocator module add CMA simple allocator

Re: [PATCH v15 2/5] tee: generic TEE subsystem

2017-01-30 Thread Benjamin GAIGNARD
On 01/28/2017 01:19 PM, Jens Wiklander wrote: > Initial patch for generic TEE subsystem. > This subsystem provides: > * Registration/un-registration of TEE drivers. > * Shared memory between normal world and secure world. > * Ioctl interface for interaction with user space. > * Sysfs implementati

Re: [PATCH 0/3] add ION driver for STIh4xx SoC

2016-11-08 Thread Benjamin Gaignard
Ok so no more dev on ION but can we add ION drivers like hisilicon does ?

Re: [PATCH v11 2/4] drm: Add API for capturing frame CRCs

2016-10-11 Thread Benjamin Gaignard
mil >> Velikov) >> >> v11: >> - Remove extra brace that broke compilation. Sorry! >> >> Signed-off-by: Tomeu Vizoso > > Reviewed-by: Emil Velikov > > Emil > ___ > dri-devel mailing list > dri-de...@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Benjamin Gaignard Graphic Study Group Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog

Re: [PATCH v10 0/3] Secure Memory Allocation Framework

2016-10-06 Thread Benjamin Gaignard
that if you can export more device information to userland we can get access to them in kernel too. 2016-10-05 15:43 GMT+02:00 Daniel Vetter : > On Wed, Oct 05, 2016 at 03:40:14PM +0200, Benjamin Gaignard wrote: >> because with ion it is up to userland to decide which heap to use >>

Re: [PATCH v10 0/3] Secure Memory Allocation Framework

2016-10-07 Thread Benjamin Gaignard
o not impose any specific constraints. How "liballoc-ion.so" > backend figures out how to map constraints/usage to a heap is a bit > hand-wavey at the moment. > > BR, > -R > > On Wed, Oct 5, 2016 at 9:40 AM, Benjamin Gaignard > wrote: >> because with ion it is up

[PATCH v2 0/3] add ION driver for STIh4xx SoC

2016-11-15 Thread Benjamin Gaignard
prefix from "hi6220" to "sti". Benjamin Gaignard (3): add binding for STIh4xx ION driver add STIH4xx ION driver add STIH4xx ION driver in DT .../devicetree/bindings/staging/ion/st,sti-ion.txt | 17 arch/arm/boot/dts/stih407-family.dtsi | 8 ++ dri

[PATCH v2 2/3] add STIH4xx ION driver

2016-11-15 Thread Benjamin Gaignard
This the same driver that Hisilicon one. Change the list of heap to fit with sti SoC needs. Rename/prefix some functions and structure with sti Signed-off-by: Benjamin Gaignard --- drivers/staging/android/ion/Kconfig | 7 ++ drivers/staging/android/ion/Makefile | 2 + drivers

[PATCH v2 3/3] add STIH4xx ION driver in DT

2016-11-15 Thread Benjamin Gaignard
Very simple and limited to one heap for contiguous memory allocation Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stih407-family.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index

[PATCH v2 1/3] add binding for STIh4xx ION driver

2016-11-15 Thread Benjamin Gaignard
Describe bindings for STIH4xx ION driver. They are limited to have is used by ion_of.c Signed-off-by: Benjamin Gaignard --- .../devicetree/bindings/staging/ion/st,sti-ion.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings

Re: [PATCH v2 5/7] IIO: add bindings for stm32 IIO timer driver

2016-11-27 Thread Benjamin Gaignard
2016-11-27 15:25 GMT+01:00 Jonathan Cameron : > On 24/11/16 15:14, Benjamin Gaignard wrote: >> Define bindings for stm32 IIO timer >> >> version 2: >> - only keep one compatible >> - add DT parameters to set lists of the triggers: >> one list desc

[PATCH 0/3] add ION driver for STIh4xx SoC

2016-10-26 Thread Benjamin Gaignard
It is more or less a copy of Hisilicon driver but with a heap definition fitting with STIH4xx SoC needs. I have just chnage the some function prefix from "hi6220" to "sti". Benjamin Gaignard (3): add binding for STIh4xx ION driver add STIH4xx ION driver add STIH

[PATCH 2/3] add STIH4xx ION driver

2016-10-26 Thread Benjamin Gaignard
This the same driver that Hisilicon one. Change the list of heap to fit with sti SoC needs. Rename/prefix some functions and structure with sti Signed-off-by: Benjamin Gaignard --- drivers/staging/android/ion/Kconfig | 7 ++ drivers/staging/android/ion/Makefile | 2 + drivers

[PATCH 1/3] add binding for STIh4xx ION driver

2016-10-26 Thread Benjamin Gaignard
Describe bindings for STIH4xx ION driver. They are limited to have is used by ion_of.c Signed-off-by: Benjamin Gaignard --- .../devicetree/bindings/staging/ion/st,sti-ion.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 3/3] add STIH4xx ION driver in DT

2016-10-26 Thread Benjamin Gaignard
Very simple and limited to one heap for contiguous memory allocation Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stih407-family.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index 91096a4

Re: [PATCH 0/3] add ION driver for STIh4xx SoC

2016-10-26 Thread Benjamin Gaignard
2016-10-26 15:51 GMT+02:00 Sumit Semwal : > Hello Benjamin, > > On 26 October 2016 at 19:02, Benjamin Gaignard > wrote: >> It is more or less a copy of Hisilicon driver but with a heap definition >> fitting with STIH4xx SoC needs. >> I have just chnage the some fu

Re: [PATCH 0/3] add ION driver for STIh4xx SoC

2016-10-26 Thread Benjamin Gaignard
2016-10-26 16:44 GMT+02:00 Sumit Semwal : > On 26 October 2016 at 20:11, Benjamin Gaignard > wrote: >> 2016-10-26 15:51 GMT+02:00 Sumit Semwal : >>> Hello Benjamin, >>> >>> On 26 October 2016 at 19:02, Benjamin Gaignard >>> wrote: >>>&

Re: [PATCH v6 6/8] IIO: add STM32 timer trigger driver

2017-01-02 Thread Benjamin Gaignard
2016-12-30 22:12 GMT+01:00 Jonathan Cameron : > On 09/12/16 14:15, Benjamin Gaignard wrote: >> Timers IPs can be used to generate triggers for other IPs like >> DAC, ADC or other timers. >> Each trigger may result of timer internals signals like counter enable, >> reset

Re: [PATCH v6 6/8] IIO: add STM32 timer trigger driver

2017-01-03 Thread Benjamin Gaignard
2017-01-02 19:22 GMT+01:00 Jonathan Cameron : > On 02/01/17 08:46, Benjamin Gaignard wrote: >> 2016-12-30 22:12 GMT+01:00 Jonathan Cameron : >>> On 09/12/16 14:15, Benjamin Gaignard wrote: >>>> Timers IPs can be used to generate triggers for other IPs like >>&g

Re: [PATCH v6 6/8] IIO: add STM32 timer trigger driver

2017-01-03 Thread Benjamin Gaignard
2017-01-03 10:23 GMT+01:00 Benjamin Gaignard : > 2017-01-02 19:22 GMT+01:00 Jonathan Cameron : >> On 02/01/17 08:46, Benjamin Gaignard wrote: >>> 2016-12-30 22:12 GMT+01:00 Jonathan Cameron : >>>> On 09/12/16 14:15, Benjamin Gaignard wrote: >>>>> Ti

Re: [PATCH v6 7/8] ARM: dts: stm32: add Timers driver for stm32f429 MCU

2016-12-13 Thread Benjamin Gaignard
2016-12-12 19:59 GMT+01:00 Rob Herring : > On Fri, Dec 09, 2016 at 03:15:18PM +0100, Benjamin Gaignard wrote: >> Add Timers and it sub-nodes into DT for stm32f429 family. >> >> version 6: >> - split patch in two: one for SoC family and one for stm32f469 >>

Re: [PATCH v6 1/8] MFD: add bindings for STM32 Timers driver

2016-12-13 Thread Benjamin Gaignard
2016-12-12 19:51 GMT+01:00 Rob Herring : > On Fri, Dec 09, 2016 at 03:15:12PM +0100, Benjamin Gaignard wrote: >> Add bindings information for STM32 Timers >> >> version 6: >> - rename stm32-gtimer to stm32-timers >> - change compatible >> - add de

Re: [PATCH v6 7/8] ARM: dts: stm32: add Timers driver for stm32f429 MCU

2016-12-13 Thread Benjamin Gaignard
2016-12-12 19:59 GMT+01:00 Rob Herring : > On Fri, Dec 09, 2016 at 03:15:18PM +0100, Benjamin Gaignard wrote: >> Add Timers and it sub-nodes into DT for stm32f429 family. >> >> version 6: >> - split patch in two: one for SoC family and one for stm32f469 >>

Re: [PATCH v6 3/8] PWM: add pwm-stm32 DT bindings

2016-12-13 Thread Benjamin Gaignard
2016-12-13 16:57 GMT+01:00 Rob Herring : > On Tue, Dec 13, 2016 at 5:11 AM, Lee Jones wrote: >> On Mon, 12 Dec 2016, Rob Herring wrote: >> >>> On Fri, Dec 09, 2016 at 03:15:14PM +0100, Benjamin Gaignard wrote: >>> > Define bindings for pwm-stm32 >>> &g

Re: [PATCH v6 1/8] MFD: add bindings for STM32 Timers driver

2016-12-14 Thread Benjamin Gaignard
2016-12-13 22:07 GMT+01:00 Rob Herring : > On Tue, Dec 13, 2016 at 3:29 AM, Benjamin Gaignard > wrote: >> 2016-12-12 19:51 GMT+01:00 Rob Herring : >>> On Fri, Dec 09, 2016 at 03:15:12PM +0100, Benjamin Gaignard wrote: >>>> Add bindings information for

[PATCH] nommu: allow mmap when !CONFIG_MMU

2016-12-01 Thread Benjamin Gaignard
gs rather than all return an error. Signed-off-by: Benjamin Gaignard Cc: Catalin Marinas Cc: a...@arndb.de --- arch/arm/mm/dma-mapping.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index ab4f745..230875e 100644 --- a/arch/arm/mm/d

[PATCH v3 4/7] PWM: add pwm driver for stm32 plaftorm

2016-12-02 Thread Benjamin Gaignard
: - only keep one comptatible - use DT paramaters to discover hardware block configuration Signed-off-by: Benjamin Gaignard --- drivers/pwm/Kconfig | 8 ++ drivers/pwm/Makefile| 1 + drivers/pwm/pwm-stm32.c | 285 3 files changed, 294

[PATCH v3 3/7] PWM: add pwm-stm32 DT bindings

2016-12-02 Thread Benjamin Gaignard
Define bindings for pwm-stm32 version 2: - use parameters instead of compatible of handle the hardware configuration Signed-off-by: Benjamin Gaignard --- .../devicetree/bindings/pwm/pwm-stm32.txt | 38 ++ 1 file changed, 38 insertions(+) create mode 100644

[PATCH v3 0/7] Add pwm and IIO timer drivers for stm32

2016-12-02 Thread Benjamin Gaignard
ptimer3:pwm3@0/pwm/pwmchip4 # echo 100 > pwm0/period /sys/devices/platform/soc/4400.gptimer3/4400.gptimer3:pwm3@0/pwm/pwmchip4 # echo 50 > pwm0/duty_cycle /sys/devices/platform/soc/4400.gptimer3/4400.gptimer3:pwm3@0/pwm/pwmchip4 # echo 1 > pwm0/enable Benjamin

[PATCH v3 2/7] MFD: add stm32 general purpose timer driver

2016-12-02 Thread Benjamin Gaignard
stm32-gptimer" to be align with SoC documentation - only keep one compatible - use of_platform_populate() instead of devm_mfd_add_devices() Signed-off-by: Benjamin Gaignard --- drivers/mfd/Kconfig | 10 ++ drivers/mfd/Makefile | 2 ++ drivers/mfd/stm32-gptimer.c

[PATCH v3 7/7] ARM: dts: stm32: add stm32 general purpose timer driver in DT

2016-12-02 Thread Benjamin Gaignard
r subnodes Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f429.dtsi | 333 +- arch/arm/boot/dts/stm32f469-disco.dts | 28 +++ 2 files changed, 360 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm3

[PATCH v3 6/7] IIO: add STM32 timer trigger driver

2016-12-02 Thread Benjamin Gaignard
se st,input-triggers-names and st,output-triggers-names to know which triggers are accepted and/or create by the device Signed-off-by: Benjamin Gaignard --- .../ABI/testing/sysfs-bus-iio-timer-stm32 | 47 ++ drivers/iio/Kconfig| 2 +- drivers/iio/Make

[PATCH v3 5/7] IIO: add bindings for stm32 timer trigger driver

2016-12-02 Thread Benjamin Gaignard
the device Signed-off-by: Benjamin Gaignard --- .../bindings/iio/timer/stm32-timer-trigger.txt | 39 ++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/timer/stm32-timer-trigger.txt diff --git a/Documentation/devicetree

[PATCH v3 1/7] MFD: add bindings for stm32 general purpose timer driver

2016-12-02 Thread Benjamin Gaignard
Add bindings information for stm32 general purpose timer version 2: - rename stm32-mfd-timer to stm32-gptimer - only keep one compatible string Signed-off-by: Benjamin Gaignard --- .../bindings/mfd/stm32-general-purpose-timer.txt | 47 ++ 1 file changed, 47 insertions

Re: [PATCH v3 5/7] IIO: add bindings for stm32 timer trigger driver

2016-12-02 Thread Benjamin Gaignard
2016-12-02 14:59 GMT+01:00 Lee Jones : > On Fri, 02 Dec 2016, Benjamin Gaignard wrote: > >> Define bindings for stm32 timer trigger >> >> version 3: >> - change file name >> - add cross reference with mfd bindings >> >> version 2: >> - only k

Re: [PATCH v3 4/7] PWM: add pwm driver for stm32 plaftorm

2016-12-05 Thread Benjamin Gaignard
2016-12-05 8:23 GMT+01:00 Thierry Reding : > On Fri, Dec 02, 2016 at 11:17:19AM +0100, Benjamin Gaignard wrote: >> This driver add support for pwm driver on stm32 platform. > > "adds". Also please use PWM in prose because it's an abbreviation. > >> The SoC

Re: [PATCH v3 3/7] PWM: add pwm-stm32 DT bindings

2016-12-05 Thread Benjamin Gaignard
2016-12-05 7:53 GMT+01:00 Thierry Reding : > On Fri, Dec 02, 2016 at 11:17:18AM +0100, Benjamin Gaignard wrote: >> Define bindings for pwm-stm32 >> >> version 2: >> - use parameters instead of compatible of handle the hardware configuration >> &g

Re: [PATCH v3 3/7] PWM: add pwm-stm32 DT bindings

2016-12-05 Thread Benjamin Gaignard
2016-12-05 12:23 GMT+01:00 Thierry Reding : > On Mon, Dec 05, 2016 at 12:08:32PM +0100, Benjamin Gaignard wrote: >> 2016-12-05 7:53 GMT+01:00 Thierry Reding : >> > On Fri, Dec 02, 2016 at 11:17:18AM +0100, Benjamin Gaignard wrote: >> >> Define bindings for p

Re: [PATCH v2 1/7] MFD: add bindings for stm32 general purpose timer driver

2016-11-29 Thread Benjamin Gaignard
2016-11-27 16:41 GMT+01:00 Jonathan Cameron : > On 27/11/16 14:10, Jonathan Cameron wrote: >> On 24/11/16 15:14, Benjamin Gaignard wrote: >>> Add bindings information for stm32 general purpose timer >>> >>> version 2: >>> - rename stm32-mfd-timer to

Re: [PATCH v2 6/7] IIO: add STM32 IIO timer driver

2016-11-29 Thread Benjamin Gaignard
2016-11-27 16:42 GMT+01:00 Jonathan Cameron : > I delved into the datasheet after trying to figure this out, so I think > I now sort of understand your intent, but please do answer the questions > inline. > > On 24/11/16 15:14, Benjamin Gaignard wrote: >> Timers IPs ca

Re: [PATCH v2 3/7] PWM: add pwm-stm32 DT bindings

2016-12-01 Thread Benjamin Gaignard
2016-11-30 22:20 GMT+01:00 Rob Herring : > On Thu, Nov 24, 2016 at 04:14:19PM +0100, Benjamin Gaignard wrote: >> Define bindings for pwm-stm32 >> >> version 2: >> - use parameters instead of compatible of handle the hardware configuration >> &g

Re: [PATCH v5 1/7] MFD: add bindings for STM32 General Purpose Timer driver

2016-12-09 Thread Benjamin Gaignard
2016-12-09 9:53 GMT+01:00 Lee Jones : > Sorry to do this Ben. Not much to do now though! > >> Add bindings information for STM32 General Purpose Timer >> >> version 2: >> - rename stm32-mfd-timer to stm32-gptimer >> - only keep one compatible string &g

[PATCH v6 0/8] Add PWM and IIO timer drivers for STM32

2016-12-09 Thread Benjamin Gaignard
ho 0 > export /sys/devices/platform/soc/4400.timers/4400.timers:pwm/pwm/pwmchip4 # echo 100 > pwm0/period /sys/devices/platform/soc/4400.timers/4400.timers:pwm/pwm/pwmchip4 # echo 50 > pwm0/duty_cycle /sys/devices/platform/soc/4400.timers/4400.timers:pwm/pwm

[PATCH v6 1/8] MFD: add bindings for STM32 Timers driver

2016-12-09 Thread Benjamin Gaignard
Add bindings information for STM32 Timers version 6: - rename stm32-gtimer to stm32-timers - change compatible - add description about the IPs version 2: - rename stm32-mfd-timer to stm32-gptimer - only keep one compatible string Signed-off-by: Benjamin Gaignard --- .../devicetree/bindings

[PATCH v6 5/8] IIO: add bindings for STM32 timer trigger driver

2016-12-09 Thread Benjamin Gaignard
triggers created by the device another one give the triggers accepted by the device Signed-off-by: Benjamin Gaignard --- .../bindings/iio/timer/stm32-timer-trigger.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/timer

[PATCH v6 7/8] ARM: dts: stm32: add Timers driver for stm32f429 MCU

2016-12-09 Thread Benjamin Gaignard
name - use "reg" instead of additional parameters to set timer configuration version 3: - use "st,stm32-timer-trigger" in DT version 2: - use parameters to describe hardware capabilities - do not use references for pwm and iio timer subnodes Signed-off-by: Benjamin Gaignard

[PATCH v6 3/8] PWM: add pwm-stm32 DT bindings

2016-12-09 Thread Benjamin Gaignard
Define bindings for pwm-stm32 version 6: - change st,breakinput parameter format to make it usuable on stm32f7 too. version 2: - use parameters instead of compatible of handle the hardware configuration Signed-off-by: Benjamin Gaignard --- .../devicetree/bindings/pwm/pwm-stm32.txt

[PATCH v6 8/8] ARM: dts: stm32: Enable pw1 and pwm3 for stm32f469-disco

2016-12-09 Thread Benjamin Gaignard
Define and enable pwm1 and pwm3 for stm32f469 discovery board Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f469-disco.dts | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469

[PATCH v6 4/8] PWM: add PWM driver for STM32 plaftorm

2016-12-09 Thread Benjamin Gaignard
suable for stm32f7 too. version 4: - detect at probe time hardware capabilities - fix comments done on v2 and v3 - use PWM atomic ops version 2: - only keep one comptatible - use DT parameters to discover hardware block configuration Signed-off-by: Benjamin Gaignard --- drivers/pwm/Kconfig

[PATCH v6 2/8] MFD: add STM32 Timers driver

2016-12-09 Thread Benjamin Gaignard
ion - only keep one compatible - use of_platform_populate() instead of devm_mfd_add_devices() Signed-off-by: Benjamin Gaignard --- drivers/mfd/Kconfig | 11 ++ drivers/mfd/Makefile | 2 + drivers/mfd/stm32-timers.c | 80 +++

[PATCH v6 6/8] IIO: add STM32 timer trigger driver

2016-12-09 Thread Benjamin Gaignard
,input-triggers-names and st,output-triggers-names to know which triggers are accepted and/or create by the device Signed-off-by: Benjamin Gaignard --- .../ABI/testing/sysfs-bus-iio-timer-stm32 | 55 +++ drivers/iio/Kconfig| 2 +- drivers/iio/Makefile

Re: [PATCH] nommu: allow mmap when !CONFIG_MMU

2016-12-09 Thread Benjamin Gaignard
+ Vladimir 2016-12-01 14:48 GMT+01:00 Benjamin Gaignard : > commit ab6494f0c96f ("nommu: Add noMMU support to the DMA API") have > add CONFIG_MMU compilation flag but that prohibit to use dma_mmap_wc() > when the platform doesn't have MMU. > > This patch call vm_i

Re: [PATCH] nommu: allow mmap when !CONFIG_MMU

2016-12-09 Thread Benjamin Gaignard
2016-12-09 16:36 GMT+01:00 Vladimir Murzin : > On 09/12/16 15:27, Benjamin Gaignard wrote: >> + Vladimir > > I'm not in DMA, but I can see that with your patch it deviates from > dma_common_mmap(), can you give more context, please? I'm working on ARM platform with MMU

Re: [PATCH v1 2/2] iio: stm32 trigger: Add counter device

2017-03-17 Thread Benjamin Gaignard
2017-03-14 19:53 GMT+01:00 William Breathitt Gray : > On Sun, Mar 12, 2017 at 02:18:47PM +0100, Benjamin Gaignard wrote: >>2017-03-05 13:04 GMT+01:00 Jonathan Cameron : >>> On 01/03/17 14:45, Benjamin Gaignard wrote: >>>> One of the features of STM32 trigger hardwar

[PATCH v2 1/2] iio: stm32 trigger: Add quadrature encoder device

2017-03-24 Thread Benjamin Gaignard
preset value is the limit of the counter. When counting down the counter start from preset value down to 0. This preset value could be set/get by using /sys/bus/iio/devices/iio:deviceX/in_count0_preset attribute. Signed-off-by: Benjamin Gaignard --- .../ABI/testing/sysfs-bus-iio-timer-stm32

[PATCH v2 2/2] iio: stm32 trigger: Add counter enable modes

2017-03-24 Thread Benjamin Gaignard
Device counting could be controlled by the level or the edges of a trigger. in_count0_enable_mode attibute allow to set the control mode. Signed-off-by: Benjamin Gaignard --- .../ABI/testing/sysfs-bus-iio-timer-stm32 | 23 +++ drivers/iio/trigger/stm32-timer-trigger.c | 70

[PATCH v2 0/2] iio: stm32 trigger: Add quadrature device and counter

2017-03-24 Thread Benjamin Gaignard
to be able to merge them with 104-quad-8 in the futur. Benjamin Gaignard (2): iio: stm32 trigger: Add quadrature encoder device iio: stm32 trigger: Add counter enable modes .../ABI/testing/sysfs-bus-iio-timer-stm32 | 55 drivers/iio/trigger/stm32-timer-trigger.c

[PATCH v3 1/2] iio: stm32 trigger: Add quadrature encoder device

2017-03-27 Thread Benjamin Gaignard
preset value is the limit of the counter. When counting down the counter start from preset value down to 0. This preset value could be set/get by using /sys/bus/iio/devices/iio:deviceX/in_count0_preset attribute. Signed-off-by: Benjamin Gaignard version 3: - fix typo in documentation - change some

[PATCH v3 2/2] iio: stm32 trigger: Add counter enable modes

2017-03-27 Thread Benjamin Gaignard
Device counting could be controlled by the level or the edges of a trigger. in_count0_enable_mode attibute allow to set the control mode. Signed-off-by: Benjamin Gaignard --- .../ABI/testing/sysfs-bus-iio-timer-stm32 | 23 +++ drivers/iio/trigger/stm32-timer-trigger.c | 70

[PATCH v3 0/2] iio: stm32 trigger: Add quadrature device and counter

2017-03-27 Thread Benjamin Gaignard
enable modes. - add scale info - change modes to more generic names to be able to merge them with 104-quad-8 in the futur. Benjamin Gaignard (2): iio: stm32 trigger: Add quadrature encoder device iio: stm32 trigger: Add counter enable modes .../ABI/testing/sysfs-bus-iio-timer-stm32

Re: [PATCH v3 1/2] iio: stm32 trigger: Add quadrature encoder device

2017-03-27 Thread Benjamin Gaignard
2017-03-27 15:47 GMT+02:00 William Breathitt Gray : > On Mon, Mar 27, 2017 at 11:43:23AM +0200, Benjamin Gaignard wrote: >>One of the features of STM32 trigger hardware block is a quadrature >>encoder that can counts up/down depending of the levels and edges >>of the s

Re: [PATCH v3 2/2] iio: stm32 trigger: Add counter enable modes

2017-03-27 Thread Benjamin Gaignard
2017-03-27 15:55 GMT+02:00 William Breathitt Gray : > On Mon, Mar 27, 2017 at 11:43:24AM +0200, Benjamin Gaignard wrote: >>Device counting could be controlled by the level or the edges of >>a trigger. >>in_count0_enable_mode attibute allow to set the control mode. >>

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-09 Thread Benjamin Gaignard
2017-03-06 17:04 GMT+01:00 Daniel Vetter : > On Mon, Mar 06, 2017 at 11:58:05AM +0100, Mark Brown wrote: >> On Mon, Mar 06, 2017 at 11:40:41AM +0100, Daniel Vetter wrote: >> >> > No one gave a thing about android in upstream, so Greg KH just dumped it >> > all into staging/android/. We've discussed

Re: [PATCH v1 2/2] iio: stm32 trigger: Add counter device

2017-03-12 Thread Benjamin Gaignard
2017-03-05 13:04 GMT+01:00 Jonathan Cameron : > On 01/03/17 14:45, Benjamin Gaignard wrote: >> One of the features of STM32 trigger hardware block is a counter >> that can counts up/down depending of the levels and edges of the >> selected external pins. >> >> T

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-12 Thread Benjamin Gaignard
2017-03-09 18:38 GMT+01:00 Laura Abbott : > On 03/09/2017 02:00 AM, Benjamin Gaignard wrote: >> 2017-03-06 17:04 GMT+01:00 Daniel Vetter : >>> On Mon, Mar 06, 2017 at 11:58:05AM +0100, Mark Brown wrote: >>>> On Mon, Mar 06, 2017 at 11:40:41AM +0100, Daniel Vetter w

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-14 Thread Benjamin Gaignard
2017-03-13 22:09 GMT+01:00 Laura Abbott : > On 03/12/2017 12:05 PM, Daniel Vetter wrote: >> On Sun, Mar 12, 2017 at 2:34 PM, Benjamin Gaignard >> wrote: >>> 2017-03-09 18:38 GMT+01:00 Laura Abbott : >>>> On 03/09/2017 02:00 AM, Benjamin Gaignard wrote: >

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-03 Thread Benjamin Gaignard
2017-03-03 11:27 GMT+01:00 Daniel Vetter : > On Fri, Mar 03, 2017 at 11:04:33AM +0100, Daniel Vetter wrote: >> On Thu, Mar 02, 2017 at 01:44:32PM -0800, Laura Abbott wrote: >> > Hi, >> > >> > There's been some recent discussions[1] about Ion-like frameworks. There's >> > apparently interest in just

Re: [PATCH] staging: st-cec: add parentheses around complex macros

2016-11-04 Thread Benjamin Gaignard
Thanks, Acked-by: Benjamin Gaignard 2016-11-04 8:58 GMT+01:00 Maninder Singh : > This patch fixes the following checkpatch.pl error: > ERROR: Macros with complex values should be enclosed in parentheses > > Signed-off-by: Maninder Singh > --- > drivers/staging/media/st-cec

Re: [PATCH 0/3] add ION driver for STIh4xx SoC

2016-11-07 Thread Benjamin Gaignard
Hello Laura, What are plumbers outputs for ION after your talk ? Regards, Benjamin 2016-10-27 1:25 GMT+02:00 Laura Abbott : > On 10/26/2016 08:05 AM, Benjamin Gaignard wrote: >> >> 2016-10-26 16:44 GMT+02:00 Sumit Semwal : >>> >>> On 26 October 2016 at 20

[PATCH v1 2/2] iio: stm32 trigger: Add counter device

2017-03-01 Thread Benjamin Gaignard
/testing/sysfs-bus-iio-timer-stm32 Signed-off-by: Benjamin Gaignard --- .../ABI/testing/sysfs-bus-iio-timer-stm32 | 40 drivers/iio/trigger/stm32-timer-trigger.c | 231 - include/linux/mfd/stm32-timers.h | 2 + 3 files changed, 267

[PATCH v1 1/2] iio: Generalize counting direction modes

2017-03-01 Thread Benjamin Gaignard
Move counting direction documentation for 104-quad-8 to sysfs-bus-iio to avoid duplicated for other incoming drivers Signed-off-by: Benjamin Gaignard --- Documentation/ABI/testing/sysfs-bus-iio| 14 ++ Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8

[PATCH v1 0/2] iio: stm32 trigger: Add counter device

2017-03-01 Thread Benjamin Gaignard
. Benjamin Gaignard (2): iio: Generalize counting direction modes iio: stm32 trigger: Add counter device Documentation/ABI/testing/sysfs-bus-iio| 14 ++ .../ABI/testing/sysfs-bus-iio-counter-104-quad-8 | 8 - .../ABI/testing/sysfs-bus-iio-timer-stm32 | 40 drivers

Re: [PATCH 1/2] drm/sti: remove unused variable

2017-02-22 Thread Benjamin Gaignard
gpu/drm/sti/sti_vtg.c > +++ b/drivers/gpu/drm/sti/sti_vtg.c > @@ -389,7 +389,6 @@ static irqreturn_t vtg_irq(int irq, void *arg) > static int vtg_probe(struct platform_device *pdev) > { > struct device *dev = &pdev->dev; > - struct device_node *np; >

Re: [RFC simple allocator v2 1/2] Create Simple Allocator module

2017-02-15 Thread Benjamin Gaignard
2017-02-14 20:30 GMT+01:00 Laurent Pinchart : > Hi Benjamin, > > Thank you for the patch. I've CC'ed the linux-api mailing list. > > On Monday 13 Feb 2017 15:45:05 Benjamin Gaignard wrote: >> This is the core of simple allocator module. >> It aim to offert

Re: [RFC simple allocator v2 1/2] Create Simple Allocator module

2017-02-15 Thread Benjamin Gaignard
2017-02-14 20:59 GMT+01:00 Laurent Pinchart : > Hi Daniel, > > On Tuesday 14 Feb 2017 20:44:44 Daniel Vetter wrote: >> On Tue, Feb 14, 2017 at 8:39 PM, Laurent Pinchart wrote: >> > On Tuesday 14 Feb 2017 20:33:58 Daniel Vetter wrote: >> >> On Mon, Feb 13, 2017

Re: [PATCH] mfd: stm32-timers: fix max register

2017-02-15 Thread Benjamin Gaignard
egister = 0x400, > + .max_register = 0x3fc, > }; > > static void stm32_timers_get_arr_size(struct stm32_timers *ddata) > -- > 1.9.1 > Acked-by: Benjamin Gaignard

[PATCH v2 2/2] iio: stm32 trigger: Implement parent trigger feature

2017-02-16 Thread Benjamin Gaignard
2 triggers. Modes usages are described in sysfs-bus-iio-timer-stm32 Signed-off-by: Benjamin Gaignard version 2: - use dev_attr_parent_trigger - improve slave modes documentation --- .../ABI/testing/sysfs-bus-iio-timer-stm32 | 43 + drivers/iio/trigger/stm32-timer-trigger.c

[PATCH v2 1/2] iio: Allow triggers to be used as parent of others triggers

2017-02-16 Thread Benjamin Gaignard
s the same than validate_device but with a trigger as second parameter. Driver must implement this function and add dev_attr_parent_trigger in their trigger attribute group to be able to use parent trigger feature. Signed-off-by: Benjamin Gaignard version 2: - add comment about parent trigger usag

[PATCH v2 0/2] iio: Add parent_trigger attribute to triggers

2017-02-16 Thread Benjamin Gaignard
various ways. To be able to select them "slave_mode" attribute is added to STM32 triggers. For example the combinaison of parent_trigger and slave_mode allows to start a trigger only when parent trigger level is high or to reset it on parent trigger rising edge. Benjamin Gaignard (2):

[RFC simple allocator v2 0/2] Simple allocator

2017-02-13 Thread Benjamin Gaignard
ator CMA OK\n"); end: close(fd); } [1] https://github.com/cubanismo/allocator Benjamin Gaignard (2): Create Simple Allocator module add CMA simple allocator module Documentation/simple-allocator.txt | 81 ++ drivers/Kconfig | 2

[RFC simple allocator v2 1/2] Create Simple Allocator module

2017-02-13 Thread Benjamin Gaignard
This is the core of simple allocator module. It aim to offert one common ioctl to allocate specific memory. version 2: - rebased on 4.10-rc7 Signed-off-by: Benjamin Gaignard --- Documentation/simple-allocator.txt | 81 +++ drivers/Kconfig

[RFC simple allocator v2 2/2] add CMA simple allocator module

2017-02-13 Thread Benjamin Gaignard
This patch add simple allocator for CMA regions. version 2: - fix size and page count computation Signed-off-by: Benjamin Gaignard --- drivers/simpleallocator/Kconfig| 7 + drivers/simpleallocator/Makefile | 1 + drivers/simpleallocator/simple-allocator-cma.c

[PATCH v1 0/2] Introduce devm_of_platform_populate() helper

2017-02-17 Thread Benjamin Gaignard
bus. This also could make drivers more robust in case that probe failed after calling of_platform_populate(). Benjamin Gaignard (2): of: add devm_ functions for populate and depopulate drm: sti: make driver use devm_of_platform_populate() drivers/gpu/drm/sti/sti_drv.c | 3 +- drivers/of

[PATCH v1 1/2] of: add devm_ functions for populate and depopulate

2017-02-17 Thread Benjamin Gaignard
. Signed-off-by: Benjamin Gaignard --- drivers/of/platform.c | 77 + include/linux/of_platform.h | 20 2 files changed, 97 insertions(+) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index b8064bc..3dbebf7 100644 --- a

[PATCH v1 2/2] drm: sti: make driver use devm_of_platform_populate()

2017-02-17 Thread Benjamin Gaignard
This make sure that of_platform_depopulate() is called if an error occur in probe after populating the date from the device tree. Signed-off-by: Benjamin Gaignard --- drivers/gpu/drm/sti/sti_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sti

Re: [PATCH v2 2/2] iio: stm32 trigger: Implement parent trigger feature

2017-02-20 Thread Benjamin Gaignard
2017-02-19 16:53 GMT+01:00 Jonathan Cameron : > Hi All, > > Would be really helpful to get some other input on this. > It's fiddly to put it lightly but if we get it right I think > the interface will be useful in all sorts of common cases. > > On 16/02/17 14:23, Benja

[PATCH v3 0/2] Add parent_trigger attribute to triggers

2017-02-24 Thread Benjamin Gaignard
trigger is clock by the rising edges of it parent. Benjamin Gaignard (2): iio: Allow triggers to be used as parent of others triggers iio: stm32 trigger: Implement parent trigger feature .../ABI/testing/sysfs-bus-iio-timer-stm32 | 63 + .../ABI/testing/sysfs-bus-iio-trigge

[PATCH v3 1/2] iio: Allow triggers to be used as parent of others triggers

2017-02-24 Thread Benjamin Gaignard
s the same than validate_device but with a trigger as second parameter. Driver must implement this function and add dev_attr_parent_trigger in their trigger attribute group to be able to use parent trigger feature. Signed-off-by: Benjamin Gaignard version 3: - try to provide better desc

[PATCH v3 2/2] iio: stm32 trigger: Implement parent trigger feature

2017-02-24 Thread Benjamin Gaignard
en a valid parent trigger is set. Signed-off-by: Benjamin Gaignard version 2: - use dev_attr_parent_trigger - improve slave modes documentation version 3: - add one channel to get counter raw value --- .../ABI/testing/sysfs-bus-iio-timer-stm32 | 63 + drivers/iio/trigger/s

Re: [PATCH v1 1/2] of: add devm_ functions for populate and depopulate

2017-02-24 Thread Benjamin Gaignard
2017-02-24 15:17 GMT+01:00 Rob Herring : > On Fri, Feb 17, 2017 at 8:31 AM, Benjamin Gaignard > wrote: >> Lost of calls to of_platform_populate() are not unbalanced by a call > > s/Lost/Lots/ > >> to of_platform_depopulate(). This create issues while drivers are >

Re: [PATCH v1 1/2] of: add devm_ functions for populate and depopulate

2017-02-24 Thread Benjamin Gaignard
2017-02-24 16:20 GMT+01:00 Rob Herring : > On Fri, Feb 24, 2017 at 9:13 AM, Benjamin Gaignard > wrote: >> 2017-02-24 15:17 GMT+01:00 Rob Herring : >>> On Fri, Feb 17, 2017 at 8:31 AM, Benjamin Gaignard >>> wrote: >>>> Lost of calls to of_platform_populat

[PATCH v2 0/2] Introduce devm_of_platform_populate() helper

2017-02-24 Thread Benjamin Gaignard
devm_of_platform_populate() which will call of_platform_depopulate() when the device is unbound from the bus. This also could make drivers more robust in case that probe failed after calling of_platform_populate(). Benjamin Gaignard (2): of: add devm_ functions for populate and depopulate drm: sti: make

[PATCH v2 1/2] of: add devm_ functions for populate and depopulate

2017-02-24 Thread Benjamin Gaignard
. Signed-off-by: Benjamin Gaignard --- version 2: - simplify function prototype to only keep device as parameter drivers/of/platform.c | 71 + include/linux/of_platform.h | 11 +++ 2 files changed, 82 insertions(+) diff --git a/drivers/of

[PATCH v2 2/2] drm: sti: make driver use devm_of_platform_populate()

2017-02-24 Thread Benjamin Gaignard
This make sure that of_platform_depopulate() is called if an error occur in probe after populating the date from the device tree. Signed-off-by: Benjamin Gaignard --- version 2: - use simplified devm_of_platform_populate function prototype drivers/gpu/drm/sti/sti_drv.c | 3 +-- 1 file changed

Re: [PATCH v3 2/2] iio: stm32 trigger: Implement parent trigger feature

2017-02-26 Thread Benjamin Gaignard
2017-02-25 18:53 GMT+01:00 Jonathan Cameron : > On 24/02/17 14:48, Benjamin Gaignard wrote: >> Add validate_trigger function in iio_trigger_ops and >> dev_attr_parent_trigger into trigger attribute group to be able >> to accept triggers as parents. >> >> Introduce

Re: [PATCH v3 2/2] iio: stm32 trigger: Implement parent trigger feature

2017-02-26 Thread Benjamin Gaignard
2017-02-26 15:59 GMT+01:00 Benjamin Gaignard : > 2017-02-25 18:53 GMT+01:00 Jonathan Cameron : >> On 24/02/17 14:48, Benjamin Gaignard wrote: >>> Add validate_trigger function in iio_trigger_ops and >>> dev_attr_parent_trigger into trigger attribute group to be abl

<    3   4   5   6   7   8   9   10   11   12   >