linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Add support for STM32 ADC
@ 2016-11-10 16:18 Fabrice Gasnier
  2016-11-10 16:18 ` [PATCH v2 1/6] Documentation: dt-bindings: Document STM32 ADC DT bindings Fabrice Gasnier
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Fabrice Gasnier @ 2016-11-10 16:18 UTC (permalink / raw)
  To: linux-iio, linux-arm-kernel, devicetree, linux-kernel
  Cc: jic23, lee.jones, linux, robh+dt, mark.rutland, mcoquelin.stm32,
	alexandre.torgue, lars, knaack.h, pmeerw, fabrice.gasnier

This series adds support for STM32F4 ADC into IIO framework.
STM32F4 ADC is a 12-bit successive approximation analog-to-digital
converter with multiplexed input channels. Conversions can
be performed in single, continuous, scan or discontinuous mode.
Conversions can be launched in software or using hardware triggers.

This driver has been developed and tested on STM32F429 eval board.
It consist of a MFD core driver, to manage common resources shared
between up to 3 ADC instances.

Changes in v2:
- Replace single driver model by MFD approach, to handle up to 3 ADCs
  as separate devices. Each ADC device then registers a unique IIO
  device.
- Make driver as simple as possible for the first instance, to ease
  review. For now, I dropped complexity by removing injected support,
  triggered buffer mode, dmas.
- Removed abstraction layer (indirection routines, ops) as only stm32f4
  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

 .../devicetree/bindings/iio/adc/st,stm32-adc.txt   |  85 ++++
 arch/arm/boot/dts/stm32429i-eval.dts               |  25 +
 arch/arm/boot/dts/stm32f429.dtsi                   |  49 ++
 arch/arm/configs/stm32_defconfig                   |   3 +
 drivers/iio/adc/Kconfig                            |  10 +
 drivers/iio/adc/Makefile                           |   1 +
 drivers/iio/adc/stm32-adc.c                        | 525 +++++++++++++++++++++
 drivers/mfd/Kconfig                                |  14 +
 drivers/mfd/Makefile                               |   1 +
 drivers/mfd/stm32-adc-core.c                       | 301 ++++++++++++
 include/linux/mfd/stm32-adc-core.h                 |  52 ++
 11 files changed, 1066 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt
 create mode 100644 drivers/iio/adc/stm32-adc.c
 create mode 100644 drivers/mfd/stm32-adc-core.c
 create mode 100644 include/linux/mfd/stm32-adc-core.h

-- 
1.9.1

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-11-15 13:27 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-10 16:18 [PATCH v2 0/6] Add support for STM32 ADC Fabrice Gasnier
2016-11-10 16:18 ` [PATCH v2 1/6] Documentation: dt-bindings: Document STM32 ADC DT bindings Fabrice Gasnier
2016-11-13 11:38   ` Jonathan Cameron
2016-11-10 16:18 ` [PATCH v2 2/6] mfd: stm32-adc: Add support for stm32 ADC Fabrice Gasnier
2016-11-10 21:23   ` kbuild test robot
2016-11-11  8:42     ` Lee Jones
2016-11-12 17:08   ` Jonathan Cameron
2016-11-14 16:47     ` Lee Jones
2016-11-15 10:47       ` Fabrice Gasnier
2016-11-15 13:17         ` Jonathan Cameron
2016-11-10 16:18 ` [PATCH v2 3/6] iio: adc: Add support for STM32 ADC Fabrice Gasnier
2016-11-12 17:08   ` Jonathan Cameron
2016-11-15 13:24     ` Fabrice Gasnier
2016-11-14 12:11   ` Lars-Peter Clausen
2016-11-15 13:26     ` Fabrice Gasnier
2016-11-10 16:18 ` [PATCH v2 4/6] ARM: configs: stm32: enable ADC driver Fabrice Gasnier
2016-11-10 16:18 ` [PATCH v2 5/6] ARM: dts: stm32f429: Add adc support Fabrice Gasnier
2016-11-10 16:18 ` [PATCH v2 6/6] ARM: dts: stm32f429: enable adc on eval board Fabrice Gasnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).