Support for analog peripherals on LPC18xx familiy
Status from this message: Applied to the togreg branch of iio.git - initially pushed out as
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 6 repliesApplied
- v24 patches 5 repliesSuperseded
Changes in v3 from the cover letter
- replace iio dev mlock with a local lock in adc driver
- add locking to lpc18xx_dac_write_raw() in dac driver
- rebase on iio/testing
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | iio: adc: add NXP LPC18xx ADC driverdrivers/ drivers/ drivers/ | +242 | 1 reply | |
| 2/4 | dt: document NXP LPC1850 ADC driver bindingsDocumentation/ | +21 | 1 reply | |
| 3/4 | iio: dac: add NXP LPC18xx DAC driverdrivers/ drivers/ drivers/ | +221 | 1 reply | |
| 4/4 | dt: document NXP LPC1850 DAC driver bindingsDocumentation/ | +20 | 3 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Rob Herring |
|---|---|
| 1/4 | |
| 2/4 | |
| 3/4 | |
| 4/4 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/4] Support for analog peripherals on LPC18xx familiy
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.
This version address the comments from Jonathan Cameron and fix the locking in both the adc and dac driver.
Changes since v2:
- replace iio dev mlock with a local lock in adc driver
- add locking to lpc18xx_dac_write_raw() in dac driver
- rebase on iio/testing
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 | 231 +++++++++++++++++++++ drivers/iio/dac/Kconfig | 10 + drivers/iio/dac/Makefile | 1 + drivers/iio/dac/lpc18xx_dac.c | 210 +++++++++++++++++++ 8 files changed, 504 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
Signature · 1 line
1.8.0