devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Support for analog peripherals on LPC18xx familiy
@ 2016-03-06 11:13 Joachim Eastwood
       [not found] ` <1457262795-20282-1-git-send-email-manabian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Joachim Eastwood @ 2016-03-06 11:13 UTC (permalink / raw)
  To: jic23-DgEjT+Ai2ygdnm+yROfE0A
  Cc: Joachim Eastwood, knaack.h-Mmb7MZpHnFY,
	lars-Qo5EllUWu/uELgA04lAiVw, pmeerw-jW+XmwGofnusTnJN9+BGXg,
	linux-iio-u79uwXL29TY76Z2rM5mHXA, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA

This patch set adds support for the analog (ADC and DAC) peripherals
found on NXP LPC18xx/43xx SoCs. The ADC is a SAR converter with 10-bit
resolution and 8 muxed inputs. The DAC is a simple single channel 10-
bit DAC.

Note that these drivers do not support all the features found on the
peripherals. DMA and interrupts are not supported in either drivers.
The ADC driver also lack 'burst-mode' and hardware triggers. So for
now the ADC is limited to single shot samples.

Both drivers tested on Embedded Artists' LPC4357 Developer's Kit.

Based on iio/testing branch from 29.02.15.

This version address the comments from Peter Meerwald-Stadler and
adds locking to adc read.

Changes since v1:
 - Fix nits on adc/dac from Peter Meerwald-Stadler
 - Add locking around lpc18xx_adc_read_chan()


Joachim Eastwood (4):
  iio: adc: add NXP LPC18xx ADC driver
  dt: document NXP LPC1850 ADC driver bindings
  iio: dac: add NXP LPC18xx DAC driver
  dt: document NXP LPC1850 DAC driver bindings

 .../devicetree/bindings/iio/adc/lpc1850-adc.txt    |  21 ++
 .../devicetree/bindings/iio/dac/lpc1850-dac.txt    |  20 ++
 drivers/iio/adc/Kconfig                            |  10 +
 drivers/iio/adc/Makefile                           |   1 +
 drivers/iio/adc/lpc18xx_adc.c                      | 228 +++++++++++++++++++++
 drivers/iio/dac/Kconfig                            |  10 +
 drivers/iio/dac/Makefile                           |   1 +
 drivers/iio/dac/lpc18xx_dac.c                      | 204 ++++++++++++++++++
 8 files changed, 495 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/lpc1850-adc.txt
 create mode 100644 Documentation/devicetree/bindings/iio/dac/lpc1850-dac.txt
 create mode 100644 drivers/iio/adc/lpc18xx_adc.c
 create mode 100644 drivers/iio/dac/lpc18xx_dac.c

-- 
1.8.0

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

end of thread, other threads:[~2016-03-12 11:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-06 11:13 [PATCH v2 0/4] Support for analog peripherals on LPC18xx familiy Joachim Eastwood
     [not found] ` <1457262795-20282-1-git-send-email-manabian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-06 11:13   ` [PATCH v2 1/4] iio: adc: add NXP LPC18xx ADC driver Joachim Eastwood
     [not found]     ` <1457262795-20282-2-git-send-email-manabian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-12 10:30       ` Jonathan Cameron
     [not found]         ` <56E3EFAC.8090906-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-03-12 10:35           ` Jonathan Cameron
     [not found]             ` <56E3F104.20105-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-03-12 11:11               ` Joachim Eastwood
2016-03-06 11:13   ` [PATCH v2 2/4] dt: document NXP LPC1850 ADC driver bindings Joachim Eastwood
     [not found]     ` <1457262795-20282-3-git-send-email-manabian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-12 10:31       ` Jonathan Cameron
2016-03-06 11:13   ` [PATCH v2 3/4] iio: dac: add NXP LPC18xx DAC driver Joachim Eastwood
     [not found]     ` <1457262795-20282-4-git-send-email-manabian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-12 10:39       ` Jonathan Cameron
2016-03-06 11:13   ` [PATCH v2 4/4] dt: document NXP LPC1850 DAC driver bindings Joachim Eastwood

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