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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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.
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(+)
.
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)
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
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
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
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
-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 +++
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
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
.
---
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
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
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
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
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
-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 +++
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
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
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
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
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
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.
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
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
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-
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
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
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
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
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
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.
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
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
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
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
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
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 ++
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/
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
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
/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
.
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
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
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.
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
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.
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
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
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
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-
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
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
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.
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
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
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
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
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
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
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
+++
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
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 +
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
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
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
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
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
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
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
+++
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
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
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 - 100 of 1134 matches
Mail list logo