Re: [RESEND PATCH 1/7] devicetree: bindings: Document domains controller bindings

2019-04-29 Thread Benjamin GAIGNARD
On 3/18/19 11:05 AM, Benjamin Gaignard wrote: > Document commons domains controller bindings for controller > and client devices. > > Signed-off-by: Benjamin Gaignard Hi Rob, In the first version of this series you have asked me to rework the framework description. Does this v2

Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver

2019-07-14 Thread Benjamin GAIGNARD
On 7/14/19 12:09 PM, Jonathan Cameron wrote: > On Thu, 11 Jul 2019 21:16:20 +0900 > William Breathitt Gray wrote: > >> On Thu, Jul 11, 2019 at 02:12:27PM +0200, Benjamin Gaignard wrote: >>> Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray >>> a écrit : &

Re: [PATCH v3 3/3] media: stm32-dcmi: add support of several sub-devices

2019-07-25 Thread Benjamin Gaignard
Le jeu. 25 juil. 2019 à 13:40, Hans Verkuil a écrit : > > On 7/2/19 5:52 PM, Hugues Fruchet wrote: > > Add support of several sub-devices within pipeline instead > > of a single one. > > This allows to support a CSI-2 camera sensor connected > > through a CSI-2 to parallel bridge. > > > > Signed-o

Re: [PATCH] drm: sti: Mark expected switch fall-throughs

2019-07-30 Thread Benjamin Gaignard
Le mar. 30 juil. 2019 à 00:27, Gustavo A. R. Silva a écrit : > > Mark switch cases where we are expecting to fall through. > > This patch fixes the following warning (Building: arm): > > drivers/gpu/drm/sti/sti_hdmi.c: In function ‘hdmi_audio_configure’: > drivers/gpu/drm/sti/sti_hdmi.c:851:13: wa

Re: [PATCH 2/5] pwm: stm32: use 3 cells ->of_xlate()

2019-06-19 Thread Benjamin GAIGNARD
On 6/19/19 11:52 AM, Fabrice Gasnier wrote: > STM32 Timers support generic 3 cells PWM to encode PWM number, period and > polarity. > > Fixes: 7edf7369205b ("pwm: Add driver for STM32 plaftorm") Reviewed-by: Benjamin Gaignard > > Signed-off-by: Fabrice Gasnier >

Re: [PATCH v2 0/2] ARM errata 814220

2019-06-11 Thread Benjamin Gaignard
Le mer. 24 avr. 2019 à 09:25, Benjamin Gaignard a écrit : > > Le mar. 23 avr. 2019 à 19:46, Fabio Estevam a écrit : > > > > On Wed, Feb 27, 2019 at 1:21 PM Alexandre Torgue > > wrote: > > > > > > > > > On 2/14/19 9:31 AM, Benjamin Gaignard wr

Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver

2019-07-11 Thread Benjamin Gaignard
Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray a écrit : > > On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote: > > Quadrature feature is now hosted on it own framework. > > Remove quadrature related code from stm32-trigger driver to avoid > > code

Re: [PATCH v2 12/14] drm/stm: do not reply on drmP.h from drm_gem_cma_helper.h

2019-01-08 Thread Benjamin Gaignard
y modify it. > > > > Signed-off-by: Sam Ravnborg > > Cc: Yannick Fertre > > Cc: Philippe Cornu > > Cc: Benjamin Gaignard > > Cc: Vincent Abriou > > Cc: David Airlie > > Cc: Daniel Vetter > > --- > > Acked-by: Noralf Trønnes Acked-

Re: [PATCH v3 10/12] drm/stm: do not reply on drmP.h from drm_gem_cma_helper.h

2019-01-09 Thread Benjamin Gaignard
d-off-by: Sam Ravnborg > Acked-by: Noralf Trønnes > Acked-by: Benjamin Gaignard > Cc: Yannick Fertre > Cc: Philippe Cornu > Cc: Vincent Abriou > Cc: David Airlie > Cc: Daniel Vetter > --- > drivers/gpu/drm/stm/drv.c | 6 +- > drivers/gpu/drm/stm/ltdc.c | 9

Re: [PATCH] hwspinlock: stm32: implement the relax() ops

2019-03-08 Thread Benjamin Gaignard
Le jeu. 7 mars 2019 à 16:42, Fabien Dessenne a écrit : > > Implement this optional ops, called by hwspinlock core while spinning on > a lock, between two successive invocations of trylock(). > > Signed-off-by: Fabien Dessenne Reviewed-by: Benjamin Gaignard > --- >

Re: [PATCH v2 4/4] media: platform: sti: fix possible object reference leak

2019-02-13 Thread Benjamin Gaignard
eral CEC drivers take a reference of the HDMI > device and never release it. So those drivers need to be fixed. > > This patch fixes those two issues. Reviewed-by: Benjamin Gaignard > > Fixes: fc4e009c6c98 ("[media] stih-cec: add CEC notifier support") > Suggested-by

[PATCH 2/2] ARM: stm32: select ARM errata 814220

2019-02-13 Thread Benjamin Gaignard
Make sure that ARM errata 814220 is selected by STM32MP157 SoC Signed-off-by: Benjamin Gaignard --- arch/arm/mach-stm32/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig index 713c068b953f..be2403fa3deb 100644 --- a/arch/arm

[PATCH 1/2] ARM: errata 814220-B-Cache maintenance by set/way operations can execute out of order.

2019-02-13 Thread Benjamin Gaignard
Signed-off-by: Benjamin Gaignard --- arch/arm/Kconfig | 10 ++ arch/arm/mm/cache-v7.S | 3 +++ 2 files changed, 13 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 664e918e2624..6f608558e22a 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1227,6 +1227,16

[PATCH 0/2] ARM errata 814220

2019-02-13 Thread Benjamin Gaignard
Implement ARM errata 814220 for Cortex A7. This patch has been wroten by Jason Liu years ago but never send upstream. I have tried to contact the author on multiple email addresses but I haven't found any valid one... I have keep Jason's sign-off and just rebase the patch on to v5-rc6.

Re: [RFC v2 1/7] devicetree: bindings: Document domains controller bindings

2019-02-18 Thread Benjamin Gaignard
Le lun. 28 janv. 2019 à 15:23, Benjamin Gaignard a écrit : > > Document commons domains controller bindings for controller > and client devices. Gentle ping to get comments on those bindings, Thanks, Benjamin > > Signed-off-by: Benjamin Gaignard > --- > version 2: &

Re: [RFC][PATCH 3/5 v2] dma-buf: heaps: Add system heap to dmabuf heaps

2019-03-06 Thread Benjamin Gaignard
n, so > thanks to its original authors and maintainters: > Rebecca Schultz Zavin, Colin Cross, Laura Abbott, and others! > > Cc: Laura Abbott > Cc: Benjamin Gaignard > Cc: Greg KH > Cc: Sumit Semwal > Cc: Liam Mark > Cc: Brian Starkey > Cc: Andrew F. Davis >

Re: [RFC][PATCH 4/5 v2] dma-buf: heaps: Add CMA heap to dmabuf heapss

2019-03-06 Thread Benjamin Gaignard
ters: > Benjamin Gaignard, Laura Abbott, and others! > > Cc: Laura Abbott > Cc: Benjamin Gaignard > Cc: Greg KH > Cc: Sumit Semwal > Cc: Liam Mark > Cc: Brian Starkey > Cc: Andrew F. Davis > Cc: Chenbo Feng > Cc: Alistair Strachan > Cc: dri-de

Re: [RFC][PATCH 1/5 v2] dma-buf: Add dma-buf heaps framework

2019-03-06 Thread Benjamin Gaignard
given its own device node, which a user can > allocate a dma-buf fd from using the DMA_HEAP_IOC_ALLOC. > > This code is an evoluiton of the Android ION implementation, > and a big thanks is due to its authors/maintainers over time > for their effort: > Rebecca Schultz Zavin, C

Re: [RFC][PATCH 5/5 v2] kselftests: Add dma-heap test

2019-03-06 Thread Benjamin Gaignard
Le mar. 5 mars 2019 à 21:54, John Stultz a écrit : > > Add very trivial allocation test for dma-heaps. > > TODO: Need to actually do some validation on > the returned dma-buf. > > Cc: Laura Abbott > Cc: Benjamin Gaignard > Cc: Greg KH > Cc: Sumit Semwal > C

[PATCH] MAINTAINERS: fix reference to STI CEC driver

2018-10-01 Thread Benjamin Gaignard
STI CEC driver has move from staging directory to media/platform/sti/cec/ Signed-off-by: Benjamin Gaignard --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index b22e7fdfd2ea..8aa973410e2f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH 2/2] cec: stm32: add suspend/resume functions

2018-03-15 Thread Benjamin Gaignard
From: Benjamin Gaignard If wake up irq is defined in device-tree cec adapter could be used has wake up source. Signed-off-by: Benjamin Gaignard --- drivers/media/platform/stm32/stm32-cec.c | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a

[PATCH 0/2] cec: stm32: add wakeup support

2018-03-15 Thread Benjamin Gaignard
CEC hardware block is enable to resume the system if a command is received on data lane. Prior to implement suspend/resume functions a patch simplify clock management int the driver by introducting pm_runtime{suspend/resume} functions. Benjamin Gaignard (2): cec: stm32: simplify clock

[PATCH 1/2] cec: stm32: simplify clock management

2018-03-15 Thread Benjamin Gaignard
From: Benjamin Gaignard Since CEC framework enable and disable the adapter when it is needed just follow it orders to enable/disable the clocks. Call stm32_cec_hw_init() when the adapter is enabled and do not let regmap manage registers clock help to simplify clocking scheme. While reworking

Re: [PATCH 1/3] driver core: check notifier_call_chain return value

2018-03-16 Thread Benjamin Gaignard
2018-03-15 18:10 GMT+01:00 Greg KH : > On Tue, Feb 27, 2018 at 03:09:24PM +0100, Benjamin Gaignard wrote: >> When being notified that a driver is about to be bind a listener >> could return NOTIFY_BAD. >> Check the return to be sure that the driver could be bind. >>

[PATCH v4 4/7] PWM: add PWM driver for STM32 plaftorm

2016-12-06 Thread Benjamin Gaignard
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 | 11 ++ drivers/pwm/Makefile| 1 + drivers/pwm/pwm-stm32.c | 363

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

2016-12-06 Thread Benjamin Gaignard
ccepted 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 | 1 + drivers/iio/timer/Kconfig

[PATCH v4 7/7] ARM: dts: stm32: add STM32 General Purpose Timer driver in DT

2016-12-06 Thread Benjamin Gaignard
"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 --- arch/arm/boot/dts/stm32f429.dtsi | 276 +- arch/arm/boot/dts

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

2016-12-06 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 | 33 ++ 1 file changed, 33 insertions(+) create mode 100644

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

2016-12-06 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 | 39 ++ 1 file changed, 39 insertions

[PATCH v4 2/7] MFD: add STM32 General Purpose Timer driver

2016-12-06 Thread Benjamin Gaignard
the structure shared with other drivers version 2: - rename driver "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

[PATCH v4 0/7] Add PWM and IIO timer drivers for STM32

2016-12-06 Thread Benjamin Gaignard
> export /sys/devices/platform/soc/4400.gptimer/4400.gptimer:pwm@0/pwm/pwmchip4 # echo 100 > pwm0/period /sys/devices/platform/soc/4400.gptimer/4400.gptimer:pwm@0/pwm/pwmchip4 # echo 500000 > pwm0/duty_cycle /sys/devices/platform/soc/4400.gptimer/4400.gptim

[PATCH v4 5/7] IIO: add bindings for STM32 timer trigger driver

2016-12-06 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

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

2016-12-06 Thread Benjamin Gaignard
[snip] > > I'm not going to push too hard, but I still thing "advanced-control" > would suit better, since this is not *just* a timer. In fact, the > parent device (the MFD) doesn't have any timer functionality. That's > what "timer@0" does. > > The IP is called "Advanced Control" in the datashee

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

2016-12-06 Thread Benjamin Gaignard
[snip] >> + >> +static const char * const triggers0[] = { >> + TIM1_TRGO, TIM1_CH1, TIM1_CH2, TIM1_CH3, TIM1_CH4, NULL, >> +}; >> + >> +static const char * const triggers1[] = { >> + TIM2_TRGO, TIM2_CH1, TIM2_CH2, TIM2_CH3, TIM2_CH4, NULL, >> +}; >> + >> +static const char * const triggers2

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

2016-12-07 Thread Benjamin Gaignard
2016-12-07 11:50 GMT+01:00 Lee Jones : > On Tue, 06 Dec 2016, Benjamin Gaignard wrote: > >> [snip] >> >> + >> >> +static const char * const triggers0[] = { >> >> + TIM1_TRGO, TIM1_CH1, TIM1_CH2, TIM1_CH3, TIM1_CH4, NULL, >> >

[PATCH v5 2/7] MFD: add STM32 General Purpose Timer driver

2016-12-08 Thread Benjamin Gaignard
dd_devices() Signed-off-by: Benjamin Gaignard --- drivers/mfd/Kconfig | 11 ++ drivers/mfd/Makefile | 2 + drivers/mfd/stm32-gptimer.c | 80 +++ include/linux/mfd/stm32-gptimer.h | 64 +++ 4 fil

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

2016-12-08 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 | 39 ++ 1 file changed, 39 insertions

[PATCH v5 0/7] Add PWM and IIO timer drivers for STM32

2016-12-08 Thread Benjamin Gaignard
m/pwmchip4 # echo 50 > pwm0/duty_cycle /sys/devices/platform/soc/4400.timers/4400.timers:pwm@0/pwm/pwmchip4 # echo 1 > pwm0/enable Benjamin Gaignard (7): MFD: add bindings for STM32 General Purpose Timer driver MFD: add STM32 General Purpose Timer driver PWM: add pwm-stm32 DT

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

2016-12-08 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 | 33 ++ 1 file changed, 33 insertions(+) create mode 100644

[PATCH v5 7/7] ARM: dts: stm32: add STM32 General Purpose Timer driver in DT

2016-12-08 Thread Benjamin Gaignard
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 --- arch/arm/boo

[PATCH v5 4/7] PWM: add PWM driver for STM32 plaftorm

2016-12-08 Thread Benjamin Gaignard
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 | 9 ++ drivers/pwm/Makefile| 1 + drivers/pwm/pwm-stm32.c | 362

[PATCH v5 5/7] IIO: add bindings for STM32 timer trigger driver

2016-12-08 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 v5 6/7] IIO: add STM32 timer trigger driver

2016-12-08 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

[PATCH 6/7] add STM32 IIO timer driver

2016-11-22 Thread Benjamin Gaignard
ng frequency without using pwm interface Signed-off-by: Benjamin Gaignard --- drivers/iio/Kconfig| 2 +- drivers/iio/Makefile | 1 + drivers/iio/timer/Kconfig | 15 + drivers/iio/timer/Makefile | 1 + drivers/iio/timer/

[PATCH 1/7] add binding for stm32 multifunctions timer driver

2016-11-22 Thread Benjamin Gaignard
Add bindings information for stm32 timer MFD Signed-off-by: Benjamin Gaignard --- .../devicetree/bindings/mfd/stm32-timer.txt| 53 ++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/stm32-timer.txt diff --git a

[PATCH 5/7] add bindings for stm32 IIO timer drivers

2016-11-22 Thread Benjamin Gaignard
Define bindings for stm32 IIO timer Signed-off-by: Benjamin Gaignard --- .../bindings/iio/timer/stm32-iio-timer.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/timer/stm32-iio-timer.txt diff --git a

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

2016-11-22 Thread Benjamin Gaignard
internal table that describe them. Signed-off-by: Benjamin Gaignard --- drivers/pwm/Kconfig | 8 ++ drivers/pwm/Makefile| 1 + drivers/pwm/pwm-stm32.c | 358 3 files changed, 367 insertions(+) create mode 100644 drivers/pwm/pwm-stm32.c

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

2016-11-22 Thread Benjamin Gaignard
/sys/devices/platform/soc/4400.mfdtimer3/pwm3/pwm/pwmchip4 # echo 1 > pwm0/enable Benjamin Gaignard (7): add binding for stm32 multifunctions timer driver add MFD for stm32 timer IP add pwm-stm32 DT bindings add pwm driver for stm32 plaftorm add bindings for stm32 IIO timer drivers

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

2016-11-22 Thread Benjamin Gaignard
Define binding for pwm-stm32 Signed-off-by: Benjamin Gaignard --- .../devicetree/bindings/pwm/pwm-stm32.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-stm32.txt diff --git a/Documentation/devicetree

[PATCH 2/7] add MFD for stm32 timer IP

2016-11-22 Thread Benjamin Gaignard
This hardware block could at used at same time for PWM generation and IIO timer for other IPs like DAC, ADC or other timers. PWM and IIO timer configuration are mixed in the same registers so we need a MFD to be able to share those registers. Signed-off-by: Benjamin Gaignard --- drivers/mfd

[PATCH 7/7] add stm32 multi-functions timer driver in DT

2016-11-22 Thread Benjamin Gaignard
Add timers MFD and childs into DT for stm32f4. Define and enable pwm1 and pwm3 for stm32f469 discovery board Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f429.dtsi | 246 ++ arch/arm/boot/dts/stm32f469-disco.dts | 29 2 files changed

Re: [PATCH 2/7] add MFD for stm32 timer IP

2016-11-22 Thread Benjamin Gaignard
Your comments are welcome on all of them ;-) 2016-11-22 17:41 GMT+01:00 Lee Jones : > On Tue, 22 Nov 2016, Lee Jones wrote: > >> On Tue, 22 Nov 2016, Benjamin Gaignard wrote: >> >> > This hardware block could at used at same time for PWM generation >> > and I

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

2016-11-22 Thread Benjamin Gaignard
[snip] >> + "st,stm32-iio-timer5" >> + "st,stm32-iio-timer6" >> + "st,stm32-iio-timer7" >> + "st,stm32-iio-timer8" >> + "st,stm32-iio-timer9" >> + "st,stm32-iio-timer10" >> + "st,stm32-iio-timer11" >> + "st,stm32-iio-timer12" >> + "st,stm32-iio-timer13" >> +

Re: [PATCH 1/7] add binding for stm32 multifunctions timer driver

2016-11-23 Thread Benjamin Gaignard
2016-11-22 17:52 GMT+01:00 Lee Jones : > On Tue, 22 Nov 2016, Benjamin Gaignard wrote: > >> Add bindings information for stm32 timer MFD >> >> Signed-off-by: Benjamin Gaignard >> --- >> .../devicetree/bindings/mfd/stm32-timer.txt| 53 >> +++

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

2016-11-23 Thread Benjamin Gaignard
If it is ok for you I will add "id" parameter in mfd driver and forward it to the sub-devices drivers to be able to distinguish the hardware blocks 2016-11-22 18:18 GMT+01:00 Lee Jones : > On Tue, 22 Nov 2016, Benjamin Gaignard wrote: > >> [snip] >> >> + &qu

Re: [PATCH 1/7] add binding for stm32 multifunctions timer driver

2016-11-23 Thread Benjamin Gaignard
2016-11-23 10:21 GMT+01:00 Lee Jones : > On Wed, 23 Nov 2016, Benjamin Gaignard wrote: > >> 2016-11-22 17:52 GMT+01:00 Lee Jones : >> > On Tue, 22 Nov 2016, Benjamin Gaignard wrote: >> > >> >> Add bindings information for stm32 timer MFD &g

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

2016-11-24 Thread Benjamin Gaignard
400.gptimer3/4400.gptimer3:pwm3@0/pwm/pwmchip4 # echo 50 > pwm0/duty_cycle /sys/devices/platform/soc/40000400.gptimer3/4400.gptimer3:pwm3@0/pwm/pwmchip4 # echo 1 > pwm0/enable Benjamin Gaignard (7): MFD: add bindings for stm32 general purpose timer driver MFD: add stm3

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

2016-11-24 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 | 37 ++ 1 file changed, 37 insertions(+) create mode 100644

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

2016-11-24 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 | 43 ++ 1 file changed, 43 insertions

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

2016-11-24 Thread Benjamin Gaignard
Add general purpose timers and it sub-nodes into DT for stm32f4. Define and enable pwm1 and pwm3 for stm32f469 discovery board version 2: - use parameters to describe hardware capabilities - do not use references for pwm and iio timer subnodes Signed-off-by: Benjamin Gaignard --- arch/arm/boot

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

2016-11-24 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 v2 5/7] IIO: add bindings for stm32 IIO timer driver

2016-11-24 Thread Benjamin Gaignard
Define bindings for stm32 IIO timer version 2: - only keep one compatible - add DT parameters 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 --- .../bindings/iio/timer

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

2016-11-24 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 v2 6/7] IIO: add STM32 IIO timer driver

2016-11-24 Thread Benjamin Gaignard
ng frequency without using pwm interface version 2: - keep only one compatible - use 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 --- drivers/iio/Kconfig

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

2017-01-05 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 v7 8/8] ARM: dts: stm32: Enable pwm1 and pwm3 for stm32f469-disco

2017-01-05 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 v7 3/8] PWM: add pwm-stm32 DT bindings

2017-01-05 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 v7 2/8] MFD: add STM32 Timers driver

2017-01-05 Thread Benjamin Gaignard
uot; 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 --- .../devicetree/bindings/mfd/stm32-timers.txt | 2 +- drivers/mfd/Kconfig| 11 +++ drivers/mf

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

2017-01-05 Thread Benjamin Gaignard
- keep only one compatible - use 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 | 29 ++ drivers/iio/Kconfig

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

2017-01-05 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 v7 0/8] Add PWM and IIO timer drivers for STM32

2017-01-05 Thread Benjamin Gaignard
valid and configure the IPs. At run time IIO timer hardware blocks can configure (through "master_mode" IIO device attribute) which internal signal (counter enable, reset, comparison block, etc...) is used to generate the trigger. Benjamin Gaignard (8): MFD: add bindings for STM32 Time

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

2017-01-05 Thread Benjamin Gaignard
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 | 9

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

2017-01-05 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

Re: [PATCH v7 0/8] Add PWM and IIO timer drivers for STM32

2017-01-05 Thread Benjamin Gaignard
2017-01-05 15:49 GMT+01:00 Lee Jones : > On Thu, 05 Jan 2017, Benjamin Gaignard wrote: > >> version 7: >> - rebase on v4.10-rc2 >> - remove iio_device code from driver and keep only the trigger part >> >> version 6: >> - rename stm32-gptimer in s

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

2017-01-18 Thread Benjamin Gaignard
2017-01-18 10:20 GMT+01:00 Thierry Reding : > On Thu, Jan 05, 2017 at 10:25:39AM +0100, Benjamin Gaignard wrote: >> Define bindings for pwm-stm32 >> >> version 6: >> - change st,breakinput parameter format to make it usuable on stm32f7 too. >> >> ve

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

2017-01-18 Thread Benjamin Gaignard
2017-01-18 11:16 GMT+01:00 Thierry Reding : > On Thu, Jan 05, 2017 at 10:25:40AM +0100, Benjamin Gaignard wrote: > [...] >> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig >> index f92dd41..88035c0 100644 >> --- a/drivers/pwm/Kconfig >> +++ b/drivers/pw

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

2017-01-18 Thread Benjamin Gaignard
2017-01-18 11:08 GMT+01:00 Thierry Reding : > On Thu, Jan 05, 2017 at 10:25:40AM +0100, Benjamin Gaignard wrote: >> This driver adds support for PWM driver on STM32 platform. >> The SoC have multiple instances of the hardware IP and each >> of them could have small difference

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

2017-01-18 Thread Benjamin Gaignard
2017-01-18 12:37 GMT+01:00 Thierry Reding : > On Wed, Jan 18, 2017 at 12:15:58PM +0100, Benjamin Gaignard wrote: >> 2017-01-18 11:08 GMT+01:00 Thierry Reding : >> > On Thu, Jan 05, 2017 at 10:25:40AM +0100, Benjamin Gaignard wrote: > [...] >> >> +static u32 acti

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

2017-01-18 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 Acked-by: Lee Jones Acked-by

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

2017-01-18 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 v8 5/8] IIO: add bindings for STM32 timer trigger driver

2017-01-18 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 --- .../bindings/iio/timer/stm32-timer-trigger.txt | 23 ++ 1 file c

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

2017-01-18 Thread Benjamin Gaignard
uot; 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 Acked-by: Lee Jones Acked-by: Rob Herring --- drivers/mfd/Kconfig | 11 ++ drivers/mfd/Makefile | 2 + d

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

2017-01-18 Thread Benjamin Gaignard
e) which internal signal (counter enable, reset, comparison block, etc...) is used to generate the trigger. Benjamin Gaignard (8): MFD: add bindings for STM32 Timers driver MFD: add STM32 Timers driver PWM: add pwm-stm32 DT bindings PWM: add PWM driver for STM32 plaftorm IIO: add bindi

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

2017-01-18 Thread Benjamin Gaignard
: Benjamin Gaignard --- drivers/pwm/Kconfig | 9 ++ drivers/pwm/Makefile| 1 + drivers/pwm/pwm-stm32.c | 398 3 files changed, 408 insertions(+) create mode 100644 drivers/pwm/pwm-stm32.c diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig

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

2017-01-18 Thread Benjamin Gaignard
mode - document device attributes in sysfs-bus-iio-timer-stm32 version 2: - keep only one compatible - use 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 Acked-by: Jonathan Cameron --- .../AB

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

2017-01-18 Thread Benjamin Gaignard
Define bindings for pwm-stm32 version 8: - reword st,breakinput description. 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 Acked-by

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

2017-01-18 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

Re: [PATCH v8 0/8] Add PWM and IIO timer drivers for STM32

2017-01-19 Thread Benjamin Gaignard
2017-01-19 9:43 GMT+01:00 Lee Jones : > On Wed, 18 Jan 2017, Benjamin Gaignard wrote: > >> version 8: >> - rebase on v4.10-rc4 >> - fix comments done by Thierry on PWM >> - reword "reg" parameter description >> - change kernel kernel in IIO ABI docum

Re: [PATCH v7 0/8] Add PWM and IIO timer drivers for STM32

2017-01-13 Thread Benjamin Gaignard
2017-01-06 8:58 GMT+01:00 Benjamin Gaignard : > 2017-01-05 15:49 GMT+01:00 Lee Jones : >> On Thu, 05 Jan 2017, Benjamin Gaignard wrote: >> >>> version 7: >>> - rebase on v4.10-rc2 >>> - remove iio_device code from driver and keep only the trigger part Ver

Re: linux-next: build warning after merge of the mfd tree

2017-01-25 Thread Benjamin Gaignard
7bd1 ("pwm: Add driver for STM32 plaftorm") > > -- > Cheers, > Stephen Rothwell -- Benjamin Gaignard Graphic Study Group Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog

[PATCH] pwm: STM32 fix compilation warning

2017-01-25 Thread Benjamin Gaignard
remove useless curstate variable. Fixes: bafffb6e7bd1 ("pwm: Add driver for STM32 plaftorm") Signed-off-by: Benjamin Gaignard --- drivers/pwm/pwm-stm32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c ind

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

2017-01-10 Thread Benjamin Gaignard
2017-01-09 19:04 GMT+01:00 Rob Herring : > On Thu, Jan 05, 2017 at 10:25:41AM +0100, Benjamin Gaignard wrote: >> Define bindings for STM32 timer trigger >> >> version 4: >> - remove triggers enumeration from DT >> - add reg parameter >> >> version 3: &

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

2017-01-10 Thread Benjamin Gaignard
2017-01-09 19:00 GMT+01:00 Rob Herring : > On Thu, Jan 05, 2017 at 10:25:38AM +0100, Benjamin Gaignard wrote: >> This hardware block could at used at same time for PWM generation >> and IIO timers. >> PWM and IIO timer configuration are mixed in the same registers >>

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

2017-01-20 Thread Benjamin Gaignard
blocks can configure (through "master_mode" IIO device attribute) which internal signal (counter enable, reset, comparison block, etc...) is used to generate the trigger. Benjamin Gaignard (8): MFD: add bindings for STM32 Timers driver MFD: add STM32 Timers driver dt-bindings: p

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

2017-01-20 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 Acked-by: Lee Jones Acked-by

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

2017-01-20 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 v9 2/8] MFD: add STM32 Timers driver

2017-01-20 Thread Benjamin Gaignard
uot; 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 Acked-by: Lee Jones Acked-by: Rob Herring --- drivers/mfd/Kconfig | 11 ++ drivers/mfd/Makefile | 2 + d

[PATCH v9 4/8] pwm: add driver for STM32 plaftorm

2017-01-20 Thread Benjamin Gaignard
parameters to discover hardware block configuration Signed-off-by: Benjamin Gaignard Acked-by: Thierry Reding --- drivers/pwm/Kconfig | 9 ++ drivers/pwm/Makefile| 1 + drivers/pwm/pwm-stm32.c | 398 3 files changed, 408 insertions

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

2017-01-20 Thread Benjamin Gaignard
mode - document device attributes in sysfs-bus-iio-timer-stm32 version 2: - keep only one compatible - use 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 Acked-by: Jonathan Cameron --- .../AB

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

2017-01-20 Thread Benjamin Gaignard
mer subnodes Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f429.dtsi | 275 +++ 1 file changed, 275 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index e4dae0e..b608935 100644 --- a/arch/arm/boo

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