Re: [PATCH v2] ARM: Add imprecise abort enable/disable macro

2014-02-17 Thread Fabrice Gasnier
On 02/12/2014 02:18 PM, Russell King - ARM Linux wrote: On Wed, Feb 12, 2014 at 02:05:39PM +0100, Fabrice GASNIER wrote: Hi, Any comments on this patch ? Russell, can I add this patch to your patch tracker system ? I don't see how this works on anything but ARMv7M. Hi Russel, I'm

Re: [RFC PATCH] ARM: Add imprecise abort enable/disable macro

2014-02-10 Thread Fabrice Gasnier
On 02/07/2014 06:09 PM, Will Deacon wrote: On Fri, Feb 07, 2014 at 04:19:15PM +, Fabrice GASNIER wrote: This patch adds imprecise abort enable/disable macros. It also enables imprecise aborts when starting kernel. Signed-off-by: Fabrice Gasnier fabrice.gasn...@st.com --- arch/arm/include

Re: [RFC PATCH] ARM: Add imprecise abort enable/disable macro

2014-02-10 Thread Fabrice Gasnier
On 02/10/2014 10:00 AM, Ben Dooks wrote: On 10/02/14 08:50, Fabrice Gasnier wrote: On 02/07/2014 06:09 PM, Will Deacon wrote: On Fri, Feb 07, 2014 at 04:19:15PM +, Fabrice GASNIER wrote: This patch adds imprecise abort enable/disable macros. It also enables imprecise aborts when starting

Re: [RFC PATCH] ARM: Add imprecise abort enable/disable macro

2014-02-10 Thread Fabrice Gasnier
On 02/10/2014 12:17 PM, Will Deacon wrote: On Mon, Feb 10, 2014 at 08:50:16AM +, Fabrice Gasnier wrote: On 02/07/2014 06:09 PM, Will Deacon wrote: On Fri, Feb 07, 2014 at 04:19:15PM +, Fabrice GASNIER wrote: diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 4636d56

Re: [RFC PATCH] ARM: Add imprecise abort enable/disable macro

2014-02-10 Thread Fabrice Gasnier
On 02/10/2014 03:16 PM, Dave Martin wrote: On Fri, Feb 07, 2014 at 05:19:15PM +0100, Fabrice GASNIER wrote: This patch adds imprecise abort enable/disable macros. It also enables imprecise aborts when starting kernel. Relying on imprecise aborts for hardware probing would be considered bad

Re: [RFC PATCH] ARM: Add imprecise abort enable/disable macro

2014-02-10 Thread Fabrice Gasnier
On 02/10/2014 04:24 PM, Russell King - ARM Linux wrote: On Mon, Feb 10, 2014 at 03:12:47PM +, Dave Martin wrote: Firstly, blindly adding 4 to PC is obviouly not right, partly because we might be running an unrelated thread by the time the abort fires, and also because the affected

[PATCH v2] ARM: Add imprecise abort enable/disable macro

2014-02-10 Thread Fabrice GASNIER
This patch adds imprecise abort enable/disable macros. It also enables imprecise aborts when starting kernel. Changes in v2: Only ARMv6 and later have CPSR.A bit. On earlier CPUs, and ARMv7M this should be a no-op. Signed-off-by: Fabrice Gasnier fabrice.gasn...@st.com --- arch/arm/include/asm

Re: [PATCH v2] ARM: Add imprecise abort enable/disable macro

2014-02-12 Thread Fabrice Gasnier
Hi, Any comments on this patch ? Russel, can I add this patch to your patch tracker system ? Thanks, Fabrice On 02/10/2014 05:45 PM, Fabrice GASNIER wrote: This patch adds imprecise abort enable/disable macros. It also enables imprecise aborts when starting kernel. Changes in v2: Only ARMv6

Re: [PATCH v2] ARM: Add imprecise abort enable/disable macro

2014-02-12 Thread Fabrice GASNIER
Hi, Any comments on this patch ? Russell, can I add this patch to your patch tracker system ? Thanks, Fabrice On 02/10/2014 05:45 PM, Fabrice GASNIER wrote: This patch adds imprecise abort enable/disable macros. It also enables imprecise aborts when starting kernel. Changes in v2: Only

Re: [PATCH v2] ARM: Add imprecise abort enable/disable macro

2014-02-12 Thread Fabrice Gasnier
Hi Russell, On 02/12/2014 02:18 PM, Russell King - ARM Linux wrote: On Wed, Feb 12, 2014 at 02:05:39PM +0100, Fabrice GASNIER wrote: Hi, Any comments on this patch ? Russell, can I add this patch to your patch tracker system ? I don't see how this works on anything but ARMv7M. Sorry, i'm

[RFC PATCH] ARM: Enable imprecise external aborts earlier

2014-02-07 Thread Fabrice GASNIER
later when starting userland init process (e.g. when CPSR.A bit on arm is cleared). Aborts are deferred until then. Enable imprecise external aborts earlier during bootup. Reference : http://marc.info/?l=linux-arm-kernelm=139118404708291w=2 Fabrice Gasnier (1): ARM: Add imprecise abort enable

[RFC PATCH] ARM: Add imprecise abort enable/disable macro

2014-02-07 Thread Fabrice GASNIER
This patch adds imprecise abort enable/disable macros. It also enables imprecise aborts when starting kernel. Signed-off-by: Fabrice Gasnier fabrice.gasn...@st.com --- arch/arm/include/asm/irqflags.h | 33 + arch/arm/kernel/smp.c |1 + arch/arm

Re: [PATCH v2 3/5] PCI: st: Provide support for the sti PCIe controller

2015-03-18 Thread Fabrice Gasnier
think the module unload comment is a bit odd for built-in only code. +MODULE_AUTHOR(Fabrice Gasnier fabrice.gasn...@st.com); +MODULE_DESCRIPTION(PCI express Driver for ST SoCs); +MODULE_LICENSE(GPL v2); These three macros will be, basically, always preprocessed away as long as this code can't

[RFC PATCH] ARM: l2c: Fix prefect settings of parsing

2015-03-06 Thread Fabrice GASNIER
. Signed-off-by: Fabrice Gasnier fabrice.gasn...@st.com --- arch/arm/mm/cache-l2x0.c | 33 - 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index c6c7696..8f15f70 100644 --- a/arch/arm/mm/cache-l2x0.c

[PATCH v3] ARM: l2c: Fix prefetch settings dt parsing

2015-03-12 Thread Fabrice GASNIER
Allow device tree to override the L2C prefetch settings, even when l2x0_cache_size_of_parse() fails to parse the cache geometry due to (eg) missing cache-size or cache-sets properties. Signed-off-by: Fabrice Gasnier fabrice.gasn...@st.com Reviewed-by: Tomasz Figa tomasz.f...@gmail.com --- V3

Re: [PATCH v2] ARM: l2c: Fix prefetch settings dt parsing

2015-03-12 Thread Fabrice Gasnier
Hi Russel, I just sent a V3 to follow your remark. If this is ok, l'll add it to your patch system. Thanks for your review. BR, Fabrice On 03/12/2015 03:57 PM, Russell King - ARM Linux wrote: On Tue, Mar 10, 2015 at 09:59:01AM +0100, Fabrice GASNIER wrote: Allow prefetch settings overriding

[PATCH v2] ARM: l2c: Fix prefetch settings dt parsing

2015-03-10 Thread Fabrice GASNIER
. Signed-off-by: Fabrice Gasnier fabrice.gasn...@st.com Reviewed-by: Tomasz Figa tomasz.f...@gmail.com --- V2: fix typo in commit message s/prefect/prefetch/ and s/of tree/device tree/ --- arch/arm/mm/cache-l2x0.c | 33 - 1 file changed, 16 insertions(+), 17 deletions

[PATCH] ARM: STi: Add STiH410 SoC support

2015-03-05 Thread Fabrice GASNIER
This patch adds support to STiH410 SoC. Signed-off-by: Fabrice Gasnier fabrice.gasn...@st.com --- Documentation/devicetree/bindings/arm/sti.txt | 4 arch/arm/mach-sti/board-dt.c | 1 + 2 files changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm

[PATCH v2] ARM: STi: Add STiH410 SoC support

2015-03-05 Thread Fabrice GASNIER
This patch adds support to STiH410 SoC. Please note st,stih410 is already present in device tree. The problem is that it is missing the entry in the match table, and so the L2 cache and other cpus than 0 don't get initialized. Signed-off-by: Fabrice Gasnier fabrice.gasn...@st.com Acked

Re: [STLinux Kernel] [PATCH] ARM: STi: Add STiH410 SoC support

2015-03-05 Thread Fabrice Gasnier
Hi Peter, On 03/05/2015 02:29 PM, Peter Griffin wrote: Hi Fabrice, On Thu, 05 Mar 2015, Fabrice GASNIER wrote: This patch adds support to STiH410 SoC. Once Maximes comments have been addressed: - Maxime's comment was on the commit message. I sent a v2 for this ;-). Thanks, Fabrice

Re: [PATCH 2/2] PCI: designware: use iATU0 for cfg and IO, iATU1 for MEM

2015-04-23 Thread Fabrice Gasnier
Hi Jisheng, On 04/22/2015 02:58 PM, Jisheng Zhang wrote: Most transactions' type are cfg0 and MEM, so the Current iATU usage is not balanced, iATU0 is hot while iATU1 is rarely used. This patch refactors the iATU usage: iATU0 for cfg and IO, iATU1 for MEM. This allocation ideas comes from

Re: [PATCH v3 4/5] pci: designware: remove pci_common_init_dev()

2015-05-25 Thread Fabrice Gasnier
Hi Bjorn, On 05/06/2015 09:22 PM, Bjorn Helgaas wrote: It's not completely obvious that replacing pci_common_init_dev() with dw_pcie_setup() is equivalent. Here are my notes from trying to convince myself that this is correct. I think your changelog could stand some enhancement. It would be

Re: [PATCH 3/5] Documentation: dt: iio: document stm32 exti trigger

2017-02-02 Thread Fabrice Gasnier
On 02/01/2017 05:35 PM, Rob Herring wrote: On Mon, Jan 30, 2017 at 02:57:41PM +0100, Fabrice Gasnier wrote: Add dt documentation for st,stm32-exti-trigger. EXTi gpio signal can be routed internally as trigger source for various s/gpio/GPIO/ IPs (e.g. for ADC or DAC conversions). Please

[PATCH] mfd: stm32-timers: fix driver removal

2017-02-01 Thread Fabrice Gasnier
Add missing of_platform_depopulate() upon driver removal. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/mfd/stm32-timers.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mfd/stm32-timers.c b/drivers/mfd/stm32-timers.c index 41bd901..192cbb6

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-06 Thread Fabrice Gasnier
On 02/04/2017 12:39 PM, Jonathan Cameron wrote: On 03/02/17 19:40, Linus Walleij wrote: On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier <fabrice.gasn...@st.com> wrote: EXTi[0..15] gpio signal can be routed internally as trigger source for ADC or DAC conversions. Configure them as inte

Re: [PATCH 3/5] Documentation: dt: iio: document stm32 exti trigger

2017-02-03 Thread Fabrice Gasnier
On 02/02/2017 04:45 PM, Rob Herring wrote: +Linus W On Thu, Feb 2, 2017 at 3:19 AM, Fabrice Gasnier <fabrice.gasn...@st.com> wrote: On 02/01/2017 05:35 PM, Rob Herring wrote: On Mon, Jan 30, 2017 at 02:57:41PM +0100, Fabrice Gasnier wrote: Add dt documentation for st,stm32-exti-t

[PATCH v2 0/7] Add support for triggered buffer mode to STM32 ADC

2017-01-26 Thread Fabrice Gasnier
ifo_set_watermark() - Fix typo: using stm32f429i-eval Fabrice Gasnier (7): iio: adc: stm32: add support for triggered buffer mode iio: adc: stm32: Enable use of stm32 timer triggers iio: adc: stm32: add trigger polarity extended attribute Documentation: dt: iio: stm32-adc: optional dma suppor

[PATCH v2 5/7] iio: adc: stm32: add optional dma support

2017-01-26 Thread Fabrice Gasnier
watermark. Coherent memory is used for dma (max buffer size is fixed to PAGE_SIZE). Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- Changes in v2: - Use iio_trigger_poll_chained() avoids to bounce back into irq context. Remove irq_work. - Rework dma buffer allocation a

[PATCH v2 2/7] iio: adc: stm32: Enable use of stm32 timer triggers

2017-01-26 Thread Fabrice Gasnier
STM32 ADC has external timer trigger sources. Use stm32 timer triggers API (e.g. is_stm32_timer_trigger()) with local ADC lookup table to validate a trigger can be used. This also provides correct trigger selection value (e.g. extsel). Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.

[PATCH v2 4/7] Documentation: dt: iio: stm32-adc: optional dma support

2017-01-26 Thread Fabrice Gasnier
STM32 ADC can use dma. Add dt documentation for optional dma support. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 7 +++ 1 file changed, 7 insertions(+)

[PATCH v2 1/7] iio: adc: stm32: add support for triggered buffer mode

2017-01-26 Thread Fabrice Gasnier
. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- Changes in v2: based on Jonathan's comments: - remove all STM32F4_SQx[SHIFT/MASK], put the numbers directly in sq description array. - make data buffer part of stm32_adc structure (remove preenable and postdisable routines)

[PATCH v2 3/7] iio: adc: stm32: add trigger polarity extended attribute

2017-01-26 Thread Fabrice Gasnier
Define extended attribute so that user may choose rising, falling or both edges for external trigger sources. Default to rising edge in case it isn't set. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- Changes in v2: - Rename and document new trigger_polarity custom att

[PATCH v2 7/7] ARM: dts: stm32: Enable pwm1 and pwm3 on stm32f429i-eval

2017-01-26 Thread Fabrice Gasnier
Define and enable pwm1 and pwm3, timers1 & 3 trigger outputs on on stm32f429i-eval board. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- Changes in v2: - Fix typo - Sort phandles --- arch/arm/boot/dts/stm32429i-eval.dts | 28 1 file c

[PATCH v2 6/7] ARM: dts: stm32: Enable dma by default on stm32f4 adc

2017-01-26 Thread Fabrice Gasnier
Configure STM32F4 ADC to use dma by default. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index 8bf650d..ab42b58

Re: [PATCH 0/5] Add EXTI GPIO trigger support to STM32 ADC

2017-01-30 Thread Fabrice Gasnier
Hi all, Please discard this series. I'll send a V2. Sorry for the noise. Best regards, Fabrice On 01/30/2017 02:57 PM, Fabrice Gasnier wrote: STM32 ADC, can use GPIOs configured as EXTI line (external interrupt) as trigger source for conversions. This patchset is based on latest IIO testing

[PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-01-30 Thread Fabrice Gasnier
-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/trigger/Kconfig| 11 +++ drivers/iio/trigger/Makefile | 1 + drivers/iio/trigger/stm32-exti-trigger.c | 124 + include/linux/iio/trigger/stm32-exti-trigger.h | 26 +++

[PATCH v2 3/5] Documentation: dt: iio: document stm32 exti trigger

2017-01-30 Thread Fabrice Gasnier
Add dt documentation for st,stm32-exti-trigger. EXTi gpio signal can be routed internally as trigger source for various IPs (e.g. for ADC or DAC conversions). Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- .../bindings/iio/trigger/st,stm32-exti-trigger.txt

[PATCH v2 2/5] iio: adc: stm32: add dt option to set default trigger polarity

2017-01-30 Thread Fabrice Gasnier
STM32 ADC trigger polarity can be set to either rising, falling or both edges. Add dt option to configure it. Note: default value may be overridden later via trigger_polarity sysfs attribute. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/stm32-adc.c | 7

[PATCH v2 0/5] Add EXTI GPIO trigger support to STM32 ADC

2017-01-30 Thread Fabrice Gasnier
. --- Changes in V2: - Fixed Kconfig dependencies Fabrice Gasnier (5): Documentation: dt: iio: document stm32 adc trigger polarity iio: adc: stm32: add dt option to set default trigger polarity Documentation: dt: iio: document stm32 exti trigger iio: trigger: add support for STM32 EXTI triggers

[PATCH 3/5] Documentation: dt: iio: document stm32 exti trigger

2017-01-30 Thread Fabrice Gasnier
Add dt documentation for st,stm32-exti-trigger. EXTi gpio signal can be routed internally as trigger source for various IPs (e.g. for ADC or DAC conversions). Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- .../bindings/iio/trigger/st,stm32-exti-trigger.txt

[PATCH 1/5] Documentation: dt: iio: document stm32 adc trigger polarity

2017-01-30 Thread Fabrice Gasnier
STM32 ADC trigger polarity can be set to either rising, falling or both edges. Allow to configure it from dt. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 5/5] iio: adc: stm32: add exti11 gpio trigger source

2017-01-30 Thread Fabrice Gasnier
STM32F4 ADC can use exti11 (gpio) signal as trigger source for conversions. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/stm32-adc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/iio/adc/stm32-adc.c b/drivers/iio/adc/stm32-adc.c index b

[PATCH v2 1/5] Documentation: dt: iio: document stm32 adc trigger polarity

2017-01-30 Thread Fabrice Gasnier
STM32 ADC trigger polarity can be set to either rising, falling or both edges. Allow to configure it from dt. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-01-30 Thread Fabrice Gasnier
-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/trigger/Kconfig| 10 ++ drivers/iio/trigger/Makefile | 1 + drivers/iio/trigger/stm32-exti-trigger.c | 124 + include/linux/iio/trigger/stm32-exti-trigger.h | 26 +++

[PATCH 0/5] Add EXTI GPIO trigger support to STM32 ADC

2017-01-30 Thread Fabrice Gasnier
STM32 ADC, can use GPIOs configured as EXTI line (external interrupt) as trigger source for conversions. This patchset is based on latest IIO testing branch, and adds support for EXTi GPIO triggers in IIO. It also adds a dt option to configure default trigger polarity in STM32 ADC driver. Fabrice

Re: [PATCH v2 5/7] iio: adc: stm32: add optional dma support

2017-01-30 Thread Fabrice Gasnier
On 01/28/2017 07:41 PM, Jonathan Cameron wrote: On 26/01/17 14:28, Fabrice Gasnier wrote: Add DMA optional support to STM32 ADC, as there is a limited number DMA channels (request lines) that can be assigned to ADC. This way, driver may fall back using interrupts when all DMA channels

[PATCH 2/5] iio: adc: stm32: add dt option to set default trigger polarity

2017-01-30 Thread Fabrice Gasnier
STM32 ADC trigger polarity can be set to either rising, falling or both edges. Add dt option to configure it. Note: default value may be overridden later via trigger_polarity sysfs attribute. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/stm32-adc.c | 7

[PATCH v2 5/5] iio: adc: stm32: add exti gpio trigger source

2017-01-30 Thread Fabrice Gasnier
STM32F4 ADC can use exti11 (gpio) signal as trigger source for conversions. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/stm32-adc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/iio/adc/stm32-adc.c b/drivers/iio/adc/stm32-adc.c index b

Re: [RFC 4/4] iio: trigger: add GPIO trigger

2017-02-20 Thread Fabrice Gasnier
On 02/18/2017 08:19 PM, Jonathan Cameron wrote: On 17/02/17 16:16, Lars-Peter Clausen wrote: On 02/17/2017 05:03 PM, Fabrice Gasnier wrote: GPIOs can be used to generate triggers for any IIO device. Introduce generic GPIO trigger driver. It offers some options to tune polarity (e.g. rising

[RFC 1/4] dt-bindings: iio: introduce trigger providers, consumers

2017-02-17 Thread Fabrice Gasnier
Document iio provider and consumer bindings. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- .../devicetree/bindings/iio/iio-bindings.txt | 37 ++ 1 file changed, 37 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/iio-bindings.

[RFC 4/4] iio: trigger: add GPIO trigger

2017-02-17 Thread Fabrice Gasnier
by desc_to_gpio() call. Rising edge is selected if polarity isn't set. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/trigger/Kconfig | 9 +++ drivers/iio/trigger/Makefile| 1 + drivers/iio/trigger/iio-trig-gpio.c

[RFC 0/4] iio: trigger: Add OF support and GPIO based trigger

2017-02-17 Thread Fabrice Gasnier
is, I sent this RFC to address two topics, that I see as possible prerequisite: - Add trigger OF support - GPIO based trigger Please feel free to advise. Best Regards. Fabrice Gasnier (4): dt-bindings: iio: introduce trigger providers, consumers iio: trigger: add OF support dt-bindings: iio: a

[RFC 2/4] iio: trigger: add OF support

2017-02-17 Thread Fabrice Gasnier
names by using 'io-trigger-names'. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/industrialio-trigger.c | 100 + include/linux/iio/trigger.h| 4 ++ 2 files changed, 104 insertions(+) diff --git a/drivers/iio/industrialio-

Re: [PATCH v2 4/5] iio: trigger: add support for STM32 EXTI triggers

2017-02-17 Thread Fabrice Gasnier
On 02/11/2017 11:29 AM, Jonathan Cameron wrote: On 06/02/17 16:01, Fabrice Gasnier wrote: On 02/04/2017 12:39 PM, Jonathan Cameron wrote: On 03/02/17 19:40, Linus Walleij wrote: On Mon, Jan 30, 2017 at 3:33 PM, Fabrice Gasnier <fabrice.gasn...@st.com> wrote: EXTi[0..15] gpio sign

[RFC 3/4] dt-bindings: iio: add support for GPIO triggers

2017-02-17 Thread Fabrice Gasnier
Document Industrial I/O GPIO trigger support. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- .../bindings/iio/trigger/iio-trig-gpio.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/trigger/ii

Re: [PATCH 1/2] dt-bindings: iio: stm32-adc: add option to set resolution

2017-02-24 Thread Fabrice Gasnier
On 02/19/2017 01:09 PM, Jonathan Cameron wrote: On 15/02/17 16:55, Fabrice Gasnier wrote: Add documentation for 'st,adc-res' dt optional property. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> I'm happy with this, but would like to leave time for a device tree review. Ultimat

Re: [RFC 3/4] dt-bindings: iio: add support for GPIO triggers

2017-02-23 Thread Fabrice Gasnier
On 02/23/2017 04:03 PM, Linus Walleij wrote: On Fri, Feb 17, 2017 at 5:03 PM, Fabrice Gasnier <fabrice.gasn...@st.com> wrote: Document Industrial I/O GPIO trigger support. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> (...) +- gpio-trigger-rising-edge: A rising

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

2017-02-15 Thread Fabrice Gasnier
STM32 timers register bank size is 0x400. Fix regmap max_register. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/mfd/stm32-timers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/stm32-timers.c b/drivers/mfd/stm32-timers.c index 1

[PATCH 1/2] dt-bindings: iio: stm32-adc: add option to set resolution

2017-02-15 Thread Fabrice Gasnier
Add documentation for 'st,adc-res' dt optional property. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.

[PATCH 2/2] iio: adc: stm32: add dt option to set resolution

2017-02-15 Thread Fabrice Gasnier
stm32 adc supports several resolution. Add 'st,adc-res' dt optional property to set it. Default to maximum resolution in case it isn't set. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/stm32-adc.c | 50 - 1 file c

[PATCH 0/2] iio: allow to set STM32 ADC resolution

2017-02-15 Thread Fabrice Gasnier
STM32 ADC supports several resolution. Add dt option so resolution can be tuned at probe time. By default, maximum resolution is used when it isn't set. Fabrice Gasnier (2): dt-bindings: iio: stm32-adc: add option to set resolution iio: adc: stm32: add dt option to set resolution

Re: [PATCH 3/7] iio: adc: stm32: add trigger polarity extended attribute

2017-01-24 Thread Fabrice Gasnier
On 01/22/2017 01:58 PM, Jonathan Cameron wrote: On 19/01/17 13:34, Fabrice Gasnier wrote: Define extended attribute so that user may choose rising, falling or both edges for external trigger sources. Default to rising edge in case it isn't set. Signed-off-by: Fabrice Gasnier <fabrice.g

Re: [PATCH 5/7] iio: adc: stm32: add optional dma support

2017-01-24 Thread Fabrice Gasnier
On 01/22/2017 02:14 PM, Jonathan Cameron wrote: On 19/01/17 13:34, Fabrice Gasnier wrote: Add optional DMA support to STM32 ADC. Use dma cyclic mode with at least two periods. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> What is the point going forward in supporting n

Re: [PATCH 2/7] iio: adc: stm32: Enable use of stm32 timer triggers

2017-01-24 Thread Fabrice Gasnier
On 01/22/2017 01:55 PM, Jonathan Cameron wrote: On 19/01/17 13:34, Fabrice Gasnier wrote: STM32 ADC has external timer trigger sources. Use stm32 timer triggers API (e.g. is_stm32_timer_trigger()) with local ADC lookup table to validate a trigger can be used. This also provides correct trigger

[PATCH 3/7] iio: adc: stm32: add trigger polarity extended attribute

2017-01-19 Thread Fabrice Gasnier
Define extended attribute so that user may choose rising, falling or both edges for external trigger sources. Default to rising edge in case it isn't set. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/stm32-adc.c | 51 ++

[PATCH 4/7] Documentation: dt: iio: stm32-adc: optional dma support

2017-01-19 Thread Fabrice Gasnier
STM32 ADC can use dma. Add dt documentation for optional dma support. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/

[PATCH 6/7] ARM: dts: stm32: Enable dma by default on stm32f4 adc

2017-01-19 Thread Fabrice Gasnier
Configure STM32F4 ADC to use dma by default. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index 11d2715..e85db07

[PATCH 5/7] iio: adc: stm32: add optional dma support

2017-01-19 Thread Fabrice Gasnier
Add optional DMA support to STM32 ADC. Use dma cyclic mode with at least two periods. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/Kconfig | 2 + drivers/iio/adc/stm32-adc-core.c | 1 + drivers/iio/adc/stm32-adc-core.h | 2 + drivers/iio/adc

[PATCH 0/7] Add support for triggered buffer mode to STM32 ADC

2017-01-19 Thread Fabrice Gasnier
/iio/devices/iio\:device0 echo tim1_ch1 > trigger/current_trigger OR: echo tim3_trgo > trigger/current_trigger echo 1 > scan_elements/in_voltage8_en echo 1 > buffer/enable Fabrice Gasnier (7): iio: adc: stm32: add support for triggered buffer mode iio: adc: stm32: Enable use of stm32

[PATCH 1/7] iio: adc: stm32: add support for triggered buffer mode

2017-01-19 Thread Fabrice Gasnier
. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/Kconfig | 2 + drivers/iio/adc/stm32-adc.c | 349 +++- 2 files changed, 348 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig

[PATCH 7/7] ARM: dts: stm32: Enable pwm1 and pwm3 for stm32f469-eval

2017-01-19 Thread Fabrice Gasnier
Define and enable pwm1 and pwm3, timers1 & 3 trigger outputs on stm32f469-eval board. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- arch/arm/boot/dts/stm32429i-eval.dts | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH 2/7] iio: adc: stm32: Enable use of stm32 timer triggers

2017-01-19 Thread Fabrice Gasnier
STM32 ADC has external timer trigger sources. Use stm32 timer triggers API (e.g. is_stm32_timer_trigger()) with local ADC lookup table to validate a trigger can be used. This also provides correct trigger selection value (e.g. extsel). Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.

Re: [PATCH 7/7] ARM: dts: stm32: Enable pwm1 and pwm3 for stm32f469-eval

2017-01-20 Thread Fabrice Gasnier
On 01/20/2017 11:19 AM, Alexandre Torgue wrote: Hi Fabrice On 01/19/2017 02:34 PM, Fabrice Gasnier wrote: Define and enable pwm1 and pwm3, timers1 & 3 trigger outputs on stm32f469-eval board. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- Typo issue in commit header

Re: [PATCH 1/2] dt-bindings: iio: stm32-adc: add option to set resolution

2017-02-28 Thread Fabrice Gasnier
On 02/25/2017 04:11 PM, Jonathan Cameron wrote: On 24/02/17 16:04, Fabrice Gasnier wrote: On 02/19/2017 01:09 PM, Jonathan Cameron wrote: On 15/02/17 16:55, Fabrice Gasnier wrote: Add documentation for 'st,adc-res' dt optional property. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.

Re: [PATCH 1/2] dt-bindings: iio: stm32-adc: add option to set resolution

2017-02-28 Thread Fabrice Gasnier
On 02/28/2017 09:34 AM, Lars-Peter Clausen wrote: On 02/28/2017 09:21 AM, Fabrice Gasnier wrote: On 02/25/2017 04:11 PM, Jonathan Cameron wrote: On 24/02/17 16:04, Fabrice Gasnier wrote: On 02/19/2017 01:09 PM, Jonathan Cameron wrote: On 15/02/17 16:55, Fabrice Gasnier wrote: Add

[PATCH v3 6/6] iio: adc: stm32: add support for EXTI trigger

2017-02-28 Thread Fabrice Gasnier
EXTi (external interrupt) signal can be routed internally as trigger source for ADC conversions: STM32F4 ADC can use EXTI11. Retrieve interrupt trigger from DT, so it can be muxed into ADC IP, via extsel. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/stm32

[PATCH v3 3/6] dt-bindings: iio: document interrupt trigger support

2017-02-28 Thread Fabrice Gasnier
Document interrupt trigger that takes a generic interrupt, and can be used as trigger source for sampling devices such as sensors, ADCs... Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- .../bindings/iio/trigger/iio-trig-interrupt.txt| 22 ++ 1 file c

[PATCH v3 2/6] iio: trigger: add OF support

2017-02-28 Thread Fabrice Gasnier
names by using 'io-trigger-names'. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/industrialio-trigger.c | 100 + include/linux/iio/trigger.h| 4 ++ 2 files changed, 104 insertions(+) diff --git a/drivers/iio/industrialio-

[PATCH v3 4/6] iio: iio-interrupt-trigger: device-tree support

2017-02-28 Thread Fabrice Gasnier
From: Grégor Boirie <gregor.boi...@parrot.com> Add compatible string that should be used in DT. Also cascade of_node to newly allocated trigger device. Signed-off-by: Gregor Boirie <gregor.boi...@parrot.com> Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- Original

[PATCH v3 5/6] dt-bindings: iio: stm32-adc: add external interrupt trigger

2017-02-28 Thread Fabrice Gasnier
Document support for EXTI trigger. STM32 ADC can use external interrupt line as trigger source for conversions. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- .../devicetree/bindings/iio/adc/st,stm32-adc.txt| 21 + 1 file changed, 21 insertions(+) diff

[PATCH v3 1/6] dt-bindings: iio: introduce trigger providers, consumers

2017-02-28 Thread Fabrice Gasnier
Document iio provider and consumer bindings. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- .../devicetree/bindings/iio/iio-bindings.txt | 38 ++ 1 file changed, 38 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/iio-bindings.

[PATCH v2 5/6] ARM: dts: stm32f429: Add adc support

2016-11-10 Thread Fabrice Gasnier
Add adc support & pinctrl analog phandle (adc3_in8) to stm32f429. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 49 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi

[PATCH v2 3/6] iio: adc: Add support for STM32 ADC

2016-11-10 Thread Fabrice Gasnier
This patch adds support for STMicroelectronics STM32 MCU's analog to digital converter. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc/stm32-adc.c

[PATCH v2 6/6] ARM: dts: stm32f429: enable adc on eval board

2016-11-10 Thread Fabrice Gasnier
Enable analog to digital converter on stm32f429i-eval board. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- arch/arm/boot/dts/stm32429i-eval.dts | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/bo

[PATCH v2 2/6] mfd: stm32-adc: Add support for stm32 ADC

2016-11-10 Thread Fabrice Gasnier
river + * + * Copyright (C) 2016, STMicroelectronics - All Rights Reserved + * Author: Fabrice Gasnier <fabrice.gasn...@st.com>. + * + * Inspired from: fsl-imx25-tsadc + * + * License type: GPLv2 + * + * This program is free software; you can redistribute it and/or modify it + * under the

[PATCH v2 1/6] Documentation: dt-bindings: Document STM32 ADC DT bindings

2016-11-10 Thread Fabrice Gasnier
This patch adds documentation of device tree bindings for the STM32 ADC. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- .../devicetree/bindings/iio/adc/st,stm32-adc.txt | 85 ++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devi

[PATCH v2 0/6] Add support for STM32 ADC

2016-11-10 Thread Fabrice Gasnier
is supported. Fabrice Gasnier (6): Documentation: dt-bindings: Document STM32 ADC DT bindings mfd: stm32-adc: Add support for stm32 ADC iio: adc: Add support for STM32 ADC ARM: configs: stm32: enable ADC driver ARM: dts: stm32f429: Add adc support ARM: dts: stm32f429: enable adc on eval board

[PATCH v2 4/6] ARM: configs: stm32: enable ADC driver

2016-11-10 Thread Fabrice Gasnier
Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- arch/arm/configs/stm32_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index 1e5ec2a..e012570 100644 --- a/arch/arm/configs/stm32_defconfig +++

[PATCH 01/10] Documentation: dt-bindings: Document STM32 ADC DT bindings

2016-10-25 Thread Fabrice Gasnier
This patch adds documentation of device tree bindings for the STM32 ADC. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- .../devicetree/bindings/iio/adc/st,stm32-adc.txt | 78 ++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devi

[PATCH 06/10] iio: adc: stm32: add ext attrs to configure sampling time

2016-10-25 Thread Fabrice Gasnier
Add per channel "smpr" IIO extended attribute, to allow sampling time configuration. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/stm32/stm32-adc.c | 75 + drivers/iio/adc/stm32/stm32-adc.h | 25 +

[PATCH 08/10] ARM: dts: stm32f429: Add adc support

2016-10-25 Thread Fabrice Gasnier
Add adc support & pinctrl analog phandle (adc3_in8) to stm32f429. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 62 1 file changed, 62 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi

[PATCH 04/10] iio: adc: stm32: add optional support for exti gpios

2016-10-25 Thread Fabrice Gasnier
STM32 ADC may use EXTi signals routed internally as trigger source for conversions. Configure them as interrupt to configure this path in HW to adc. Note: interrupt handler isn't required here, and corresponding interrupt can be kept masked at exti controller level. Signed-off-by: Fabrice Gasnier

[PATCH 02/10] iio: adc: Add stm32 support

2016-10-25 Thread Fabrice Gasnier
This patch adds support for STMicroelectronics STM32 MCU's analog to digital converter. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/Kconfig | 2 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc/stm32/Kconfig | 34 ++ drive

[PATCH 05/10] iio: adc: stm32: add trigger polarity ext attr

2016-10-25 Thread Fabrice Gasnier
Add trigger polarity extended attribute. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/stm32/stm32-adc.c | 41 - drivers/iio/adc/stm32/stm32-adc.h | 4 drivers/iio/adc/stm32/stm32f4-adc.c | 12 +++ 3

[PATCH 10/10] ARM: dts: stm32f429: Add dma support to adc

2016-10-25 Thread Fabrice Gasnier
Configure STM32 ADC to use dma by default. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- arch/arm/boot/dts/stm32f429.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index 3fcd941..a00f7a6

[PATCH 03/10] iio: adc: stm32: add optional dma support

2016-10-25 Thread Fabrice Gasnier
Add optional DMA support to STM32 ADC. Use dma cyclic mode with at least two periods. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- drivers/iio/adc/stm32/Kconfig | 2 + drivers/iio/adc/stm32/stm32-adc.c | 222 drivers/iio/adc

[PATCH 07/10] ARM: configs: stm32: enable IIO ADC driver

2016-10-25 Thread Fabrice Gasnier
Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- arch/arm/configs/stm32_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index 1e5ec2a..5a5f50c 100644 --- a/arch/arm/configs/stm32_defconfig +++

[PATCH 00/10] Add support for STM32 ADC

2016-10-25 Thread Fabrice Gasnier
for DMA and few extended attributes is included. Fabrice Gasnier (10): Documentation: dt-bindings: Document STM32 ADC DT bindings iio: adc: Add stm32 support iio: adc: stm32: add optional dma support iio: adc: stm32: add optional support for exti gpios iio: adc: stm32: add trigger polarity

[PATCH 09/10] ARM: dts: stm32f429: enable adc on eval board

2016-10-25 Thread Fabrice Gasnier
Enable analog to digital converter on stm32f429i-eval board. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> --- arch/arm/boot/dts/stm32429i-eval.dts | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/ar

Re: [PATCH v3 2/6] iio: adc: Add support for STM32 ADC core

2016-11-25 Thread Fabrice Gasnier
On 11/24/2016 09:40 PM, Jonathan Cameron wrote: On 21/11/16 08:54, Fabrice Gasnier wrote: On 11/19/2016 01:17 PM, Jonathan Cameron wrote: On 15/11/16 15:30, Fabrice Gasnier wrote: Add core driver for STMicroelectronics STM32 ADC (Analog to Digital Converter). STM32 ADC can be composed of up

  1   2   3   4   5   6   7   8   9   10   >