Skip to content

Add support for ADS131E0x ADC family

[email protected] linux-devicetree linux-iio 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyIn review
  2. v32 patches 3 repliesSuperseded
  3. v22 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches5 repliesSuperseded

Changes in v4 from the cover letter

- regroup includes and add blank lines between groups
- update and rename some of defines
- remove all __func__ occurrences from logging statements
- replace all occurrences of the pre increment with the post increment operator
- optimize return statements
- use for_each_clear_bit where is possible
- use fwnode API instead of the OF API
- use dev_err_probe to avoid spam when deferred
- support use of other triggers

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio: adc: Add driver for Texas Instruments ADS131E0x ADC familyMAINTAINERS drivers/iio/adc/Kconfig drivers/iio/adc/Makefile +1 more+967 -01 reply
2/2bindings: iio: adc: Add documentation for ADS131E0x ADC driverDocumentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml MAINTAINERS+182 -00 replies

Reviews trailers per patch

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

PatchRob Herring
1/2
2/2R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/2] Add support for ADS131E0x ADC family

From: Tomislav Denis <[email protected]>

This patchset adds support for Texas Instruments ADS131E0x analog-to-digital converters family.

Datasheet: https://www.ti.com/lit/ds/symlink/ads131e08.pdf

Changes in v4:
- regroup includes and add blank lines between groups
- update and rename some of defines
- remove all __func__ occurrences from logging statements
- replace all occurrences of the pre increment with the post increment operator
- optimize return statements
- use for_each_clear_bit where is possible
- use fwnode API instead of the OF API
- use dev_err_probe to avoid spam when deferred
- support use of other triggers

Changes in v3:
- update driver description in Kconfig
- reorder includes in alphabetical order
- replace all occurrences of sizeof(type) with sizeof(variable)
- validate gain and channel mux values when parsing DT
- use of_device_get_match_data insted spi_get_device_id mapping
- proper handling of devm_regulator_get_optional error
- fetch vref regulator value each time when reading the scale value
- remove spi_device_id table
- fix wrong maximum value in driver bindings

Changes in v2:
- refactor SPI communication and use DMA safe buffers
- supplay timestamp when sample data is added to the buffer
- do trigger pooling in top half instead threaded IRQ
- refactor external/internal voltage reference logic
- make everything device managed by using devm_add_action_or_reset
- make data rate runtime controllable insted DT parameter
- use generic ADC channel binding for DT channel configuration
- replace global PGA gain with PGA gain per channel
- add support for channel input selection(muliplexer)
- don't use validate_device in iio_trigger_ops struct
- drop the unneceseary return ret;
- minor changes on defines

Tomislav Denis (2):
iio: adc: Add driver for Texas Instruments ADS131E0x ADC family
bindings: iio: adc: Add documentation for ADS131E0x ADC driver

 .../devicetree/bindings/iio/adc/ti,ads131e08.yaml  | 181 ++++
 MAINTAINERS                                        |   7 +
 drivers/iio/adc/Kconfig                            |  12 +
 drivers/iio/adc/Makefile                           |   1 +
 drivers/iio/adc/ti-ads131e08.c                     | 948 +++++++++++++++++++++
 5 files changed, 1149 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml
 create mode 100644 drivers/iio/adc/ti-ads131e08.c
Signature · 1 line
2.7.4