linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] ARM: berlin: ADC support
@ 2015-05-11 10:18 Antoine Tenart
  2015-05-11 10:18 ` [PATCH v4 1/3] iio: adc: add support for Berlin Antoine Tenart
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Antoine Tenart @ 2015-05-11 10:18 UTC (permalink / raw)
  To: sebastian.hesselbarth, jic23, knaack.h, lars, pmeerw
  Cc: Antoine Tenart, zmxu, jszhang, yrliao, linux-iio,
	linux-arm-kernel, linux-kernel

Hi,

The Berlin ADC provides 8 channels, with one connected to a temperature
sensor. The temperature sensor has its own registers and both the ADC
and the temperature sensor need to be configured when using it.

This series is based on the two Berlin controllers rework series:
- https://lkml.org/lkml/2015/3/6/511
- https://lkml.org/lkml/2015/3/6/535

Antoine

Changes since v3:
	- removed irq members from the berlin2_adc_priv struct
	- stopped setting the data member to -1
	- converted the temperature returned to milli Celsius

Changes since v2:
        - took care of double free issues
        - always enable the ADC in the device tree as there is no gated
          clock
        - moved the interrupt enable code before the channel reading
          function
        - cosmetic changes

Changes since v1:
        - updated to use regmap_update_bits()
        - fixed mixed berlin/berlin2 and some prefixes
        - reworked channel definitions
        - moved to IIO_CHAN_INFO_PROCESSED for the tsen
        - fixed some typos
        - cosmetic changes

Antoine Tenart (3):
  iio: adc: add support for Berlin
  Documentation: bindings: document the Berlin ADC driver
  ARM: berlin: add an ADC node for the BG2Q

 .../devicetree/bindings/iio/adc/berlin2_adc.txt    |  19 ++
 arch/arm/boot/dts/berlin2q.dtsi                    |   7 +
 drivers/iio/adc/Kconfig                            |   7 +
 drivers/iio/adc/Makefile                           |   1 +
 drivers/iio/adc/berlin2-adc.c                      | 378 +++++++++++++++++++++
 5 files changed, 412 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/berlin2_adc.txt
 create mode 100644 drivers/iio/adc/berlin2-adc.c

-- 
2.4.0


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

end of thread, other threads:[~2015-05-18 16:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-11 10:18 [PATCH v4 0/3] ARM: berlin: ADC support Antoine Tenart
2015-05-11 10:18 ` [PATCH v4 1/3] iio: adc: add support for Berlin Antoine Tenart
2015-05-11 10:18 ` [PATCH v4 2/3] Documentation: bindings: document the Berlin ADC driver Antoine Tenart
2015-05-17 11:39   ` Jonathan Cameron
2015-05-11 10:18 ` [PATCH v4 3/3] ARM: berlin: add an ADC node for the BG2Q Antoine Tenart
2015-05-17 11:40   ` Jonathan Cameron
2015-05-18 16:01     ` Sebastian Hesselbarth

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