linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv5] AT91: Add a driver for the ADC
@ 2011-11-14 10:06 Maxime Ripard
  2011-11-14 10:06 ` [PATCH 1/3] ARM: AT91: Add platform data for the ADCs Maxime Ripard
                   ` (2 more replies)
  0 siblings, 3 replies; 51+ messages in thread
From: Maxime Ripard @ 2011-11-14 10:06 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

This patchset adds the driver for the ADC in the AT91 SoC. It has been tested on
the at91sam9g20ek and should work on sam9g45 as well.

For now, it only reads values when asked for by sysfs, but eventually will
support hardware triggers and more boards.

This patchset is based on the "[PATCH 0/6 V2] IIO: Out of staging step 1: The
core" patchset from Jonathan Cameron, applied on top of 3.1

Improvements for v5:
  - Don't loop through the channels in the irq handler anymore but use the last
converted data register instead.

Improvements for v4:
  - Various fixes (Remove the clock at drivers's remove, change the registers
access functions prototypes,... )

Improvements for v3:
  - Move the driver out of staging
  - Slightly modify the definition of channels to use bitmaps
  - The driver no longer leaks the channels array
  - Various minor fixes and codestyle improvements

Improvements for v2:
  - Rebase on top of commit 85d8ff8
  - Initialise scan_types
  - Added scale informations in the driver
  - Allow to use only a subset of adc channels available on the SoC
  - Various fix according to reviews

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

^ permalink raw reply	[flat|nested] 51+ messages in thread
* [PATCH RESEND v13] AT91: Add a driver for the ADC
@ 2012-01-16 21:36 Maxime Ripard
  2012-01-16 21:36 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
  0 siblings, 1 reply; 51+ messages in thread
From: Maxime Ripard @ 2012-01-16 21:36 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Working on supporting the hardware triggers for these drivers, I made some
patches that Jonathan suggested I merge with this patchset.

So, basically, what changed from v12:
  * Indentation fixes, added some comments
  * Rework of the platform data. Now the SoC-specific data are directly in the
driver, as it was kind of odd to declare all the triggers for the driver in the
SoC files. So the driver handles all of this now. It has nice side effects, as
it will also ease the transition to DT.

As it introduce heavy changes, I dropped the Acked-by and Signed-off-by from
the two last patches.

Maxime

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

^ permalink raw reply	[flat|nested] 51+ messages in thread
* [PATCH v13] AT91: Add a driver for the ADC
@ 2011-12-14 10:01 Maxime Ripard
  2011-12-14 10:01 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
  0 siblings, 1 reply; 51+ messages in thread
From: Maxime Ripard @ 2011-12-14 10:01 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Working on supporting the hardware triggers for these drivers, I made some
patches that Jonathan suggested I merge with this patchset.

So, basically, what changed from v12:
  * Indentation fixes, added some comments
  * Rework of the platform data. Now the SoC-specific data are directly in the
driver, as it was kind of odd to declare all the triggers for the driver in the
SoC files. So the driver handles all of this now. It has nice side effects, as
it will also ease the transition to DT.

As it introduce heavy changes, I dropped the Acked-by and Signed-off-by from
the two last patches.

Maxime

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

^ permalink raw reply	[flat|nested] 51+ messages in thread
* [PATCH v12] AT91: Add a driver for the ADC
@ 2011-12-02 13:17 Maxime Ripard
  2011-12-02 13:17 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
  0 siblings, 1 reply; 51+ messages in thread
From: Maxime Ripard @ 2011-12-02 13:17 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

Since everyone seemed to be ok with the v11 of this patchset, it seems that it
is now near inclusion.

Maxime

^ permalink raw reply	[flat|nested] 51+ messages in thread
* [PATCH v11] AT91: Add a driver for the ADC
@ 2011-11-30  9:14 Maxime Ripard
  2011-11-30  9:15 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
  0 siblings, 1 reply; 51+ messages in thread
From: Maxime Ripard @ 2011-11-30  9:14 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

As suggested by Arnd, I moved the platform data from the board.h additions in
the first patch to a new include/linux/platform_data/at91_adc.h file for this
version.

Maxime

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

^ permalink raw reply	[flat|nested] 51+ messages in thread
* [PATCH v9] AT91: Add a driver for the ADC
@ 2011-11-24 11:27 Maxime Ripard
  2011-11-24 11:27 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
  0 siblings, 1 reply; 51+ messages in thread
From: Maxime Ripard @ 2011-11-24 11:27 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

The last version had a bug in the error handling of the probe function
of the adc driver, the free_irq call having the wrong dev_id. This
version corrects it.

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

^ permalink raw reply	[flat|nested] 51+ messages in thread
* [PATCH v8] AT91: Add a driver for the ADC
@ 2011-11-18 10:12 Maxime Ripard
  2011-11-18 10:12 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
  0 siblings, 1 reply; 51+ messages in thread
From: Maxime Ripard @ 2011-11-18 10:12 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

This patchset adds the driver for the ADC in the AT91 SoC. It has been tested on
the at91sam9g20ek and should work on sam9g45 as well.

For now, it only reads values when asked for by sysfs, but eventually will
support hardware triggers and more boards.

This patchset is based on the "[PATCH 0/6 V2] IIO: Out of staging step 1: The
core" patchset from Jonathan Cameron, applied on top of 3.1

Improvements from v7:
  - Fix the channels mask bug

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

^ permalink raw reply	[flat|nested] 51+ messages in thread
* [PATCH v7] AT91: Add a driver for the ADC
@ 2011-11-15 10:54 Maxime Ripard
  2011-11-15 10:54 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
  0 siblings, 1 reply; 51+ messages in thread
From: Maxime Ripard @ 2011-11-15 10:54 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

This patchset adds the driver for the ADC in the AT91 SoC. It has been tested on
the at91sam9g20ek and should work on sam9g45 as well.

For now, it only reads values when asked for by sysfs, but eventually will
support hardware triggers and more boards.

This patchset is based on the "[PATCH 0/6 V2] IIO: Out of staging step 1: The
core" patchset from Jonathan Cameron, applied on top of 3.1

Improvements from v6:
  - Fix the unit in the scale read
  - Minor type fix

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

^ permalink raw reply	[flat|nested] 51+ messages in thread
* [PATCH v6] AT91: Add a driver for the ADC
@ 2011-11-14 17:30 Maxime Ripard
  2011-11-14 17:30 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
  0 siblings, 1 reply; 51+ messages in thread
From: Maxime Ripard @ 2011-11-14 17:30 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

This patchset adds the driver for the ADC in the AT91 SoC. It has been tested on
the at91sam9g20ek and should work on sam9g45 as well.

For now, it only reads values when asked for by sysfs, but eventually will
support hardware triggers and more boards.

This patchset is based on the "[PATCH 0/6 V2] IIO: Out of staging step 1: The
core" patchset from Jonathan Cameron, applied on top of 3.1

Improvements from v5:
  - Don't run the SoC specific code if the driver is not selected in the
configuration
  - Fix the waitqueue timeout error handling to have a more sensible behaviour
  - Minor cosmetic improvements

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

^ permalink raw reply	[flat|nested] 51+ messages in thread
* [PATCH] AT91: Add a driver for the ADC
@ 2011-10-19 16:18 Maxime Ripard
  2011-10-19 16:18 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
                   ` (3 more replies)
  0 siblings, 4 replies; 51+ messages in thread
From: Maxime Ripard @ 2011-10-19 16:18 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

This patchset adds the driver for the ADC in the AT91 SoC. It has been tested on
the at91sam9g20ek and should work on sam9g45 as well.

For now, it only reads values when asked for by sysfs, but eventually will
support hardware triggers and more boards.

This patchset is based on the branch master of Jonathan Cameron present at :
https://github.com/jic23/linux-iio/

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>

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

end of thread, other threads:[~2012-01-18 10:27 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-14 10:06 [PATCHv5] AT91: Add a driver for the ADC Maxime Ripard
2011-11-14 10:06 ` [PATCH 1/3] ARM: AT91: Add platform data for the ADCs Maxime Ripard
2011-11-14 11:29   ` Nicolas Ferre
2011-11-14 10:06 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-11-14 11:30   ` Nicolas Ferre
2011-11-14 11:37   ` Marek Vasut
2011-11-14 14:23     ` Maxime Ripard
2011-11-14 10:06 ` [PATCH 3/3] ARM: AT91: Add the ADC to the sam9g20ek board Maxime Ripard
2011-11-14 11:29   ` Nicolas Ferre
2011-11-14 15:17     ` Maxime Ripard
2011-11-14 15:23       ` Nicolas Ferre
  -- strict thread matches above, loose matches on Subject: below --
2012-01-16 21:36 [PATCH RESEND v13] AT91: Add a driver for the ADC Maxime Ripard
2012-01-16 21:36 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2012-01-17 17:35   ` Arnd Bergmann
2012-01-17 19:08     ` Maxime Ripard
2012-01-18 10:27   ` Nicolas Ferre
2011-12-14 10:01 [PATCH v13] AT91: Add a driver for the ADC Maxime Ripard
2011-12-14 10:01 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-12-02 13:17 [PATCH v12] AT91: Add a driver for the ADC Maxime Ripard
2011-12-02 13:17 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-11-30  9:14 [PATCH v11] AT91: Add a driver for the ADC Maxime Ripard
2011-11-30  9:15 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-11-30 17:40   ` Arnd Bergmann
2011-11-24 11:27 [PATCH v9] AT91: Add a driver for the ADC Maxime Ripard
2011-11-24 11:27 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-11-24 14:28   ` Jean-Christophe PLAGNIOL-VILLARD
2011-11-18 10:12 [PATCH v8] AT91: Add a driver for the ADC Maxime Ripard
2011-11-18 10:12 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-11-15 10:54 [PATCH v7] AT91: Add a driver for the ADC Maxime Ripard
2011-11-15 10:54 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-11-16 15:39   ` Maxime Ripard
2011-11-14 17:30 [PATCH v6] AT91: Add a driver for the ADC Maxime Ripard
2011-11-14 17:30 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-11-14 21:32   ` Jonathan Cameron
2011-11-15 10:23     ` Maxime Ripard
2011-10-19 16:18 [PATCH] AT91: Add a driver for the ADC Maxime Ripard
2011-10-19 16:18 ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-10-19 16:42   ` Jonathan Cameron
2011-10-19 18:23     ` Maxime Ripard
2011-10-20  7:05       ` Thomas Petazzoni
2011-10-20  8:33         ` Jonathan Cameron
2011-10-20  8:49           ` Thomas Petazzoni
2011-10-20  9:19             ` Jonathan Cameron
2011-10-20  9:52           ` Mark Brown
2011-10-20  7:09   ` Lars-Peter Clausen
2011-10-21 17:54     ` Maxime Ripard
2011-10-21 17:55       ` Lars-Peter Clausen
2011-10-23  9:08   ` Jean-Christophe PLAGNIOL-VILLARD
2011-10-24  8:21     ` Maxime Ripard
2011-11-03 10:11 ` [PATCHv2] AT91: Add a driver for the ADC Maxime Ripard
2011-11-03 10:11   ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-11-04 10:27     ` Jonathan Cameron
2011-11-04 16:29       ` Maxime Ripard
2011-11-04 16:40         ` Jonathan Cameron
2011-11-07 16:08 ` [PATCHv3] AT91: Add a driver for the ADC Maxime Ripard
2011-11-07 16:08   ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-11-08 13:30     ` Thomas Petazzoni
2011-11-09 10:19 ` [PATCHv4] AT91: Add a driver for the ADC Maxime Ripard
2011-11-09 10:19   ` [PATCH 2/3] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-11-10 17:35     ` Jonathan Cameron
2011-11-11 12:34       ` Jonathan Cameron
2011-11-14  9:59         ` Maxime Ripard
2011-11-14  9:06       ` Maxime Ripard

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).