Skip to content

iio: adc: npcm: add NPCM ADC driver

Tomer Maimon linux-devicetree linux-iio lkml openbmc 3 versions – Applied

Status from this message: Applied to the togreg branch of iio.git and pushed out as

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 6 repliesApplied
  2. v22 patches 8 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2dt-binding: iio: add NPCM ADC documentationDocumentation/devicetree/bindings/iio/adc/nuvoton,npcm-adc.txt+35 -01 reply
2/2iio: adc: add NPCM ADC driverdrivers/iio/adc/Kconfig drivers/iio/adc/Makefile drivers/iio/adc/npcm_adc.c+346 -05 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] iio: adc: npcm: add NPCM ADC driver

This patch set adds Analog-to-Digital Converter (ADC) support for the Nuvoton NPCM Baseboard Management Controller (BMC).

The NPCM ADC is a 10-bit converter for eight channel inputs.

The NPCM ADC driver tested on NPCM750 evaluation board.

Addressed comments from:.
- Jonathan Cameron: https://lore.kernel.org/patchwork/patch/1030483/

Changes since version 2:
- Return error if clock have not found in the device tree ADC node.
- Modify regulator order for avoid mixing devm and non-devm path.
- Modify probe and remove function to have relative ordering.

Changes since version 1:
- Add NPCM prefix.
- Remove unnecessary parameter initialization.
- Modify read function to avoid racy condition.
- Reading the reference voltage when needed.
- Modify dt-binding documentation according Jonathan comments.

Tomer Maimon (2):
dt-binding: iio: add NPCM ADC documentation
iio: adc: add NPCM ADC driver

 .../bindings/iio/adc/nuvoton,npcm-adc.txt          |  35 +++
 drivers/iio/adc/Kconfig                            |  10 +
 drivers/iio/adc/Makefile                           |   1 +
 drivers/iio/adc/npcm_adc.c                         | 335 +++++++++++++++++++++
 4 files changed, 381 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/nuvoton,npcm-adc.txt
 create mode 100644 drivers/iio/adc/npcm_adc.c
Signature · 1 line
2.14.1