Skip to content

Improve MCP3911 driver

Marcus Folkesson linux-devicetree linux-iio lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest9 patches 8 repliesIn review
  2. v59 patches 8 repliesSuperseded
  3. v49 patches 10 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v39 patches8 repliesSuperseded

Changes in v6 from the cover letter

- Go for devm_clk_get_enabled()
- Cosmetic cleanups
- Clarify the description of microchip,data-ready-hiz

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9iio: adc: mcp3911: make use of the sign bitdrivers/iio/adc/mcp3911.c+2 -00 replies
2/9iio: adc: mcp3911: correct "microchip,device-addr" propertydrivers/iio/adc/mcp3911.c+8 -10 replies
3/9iio: adc: mcp3911: use correct formula for AD conversiondrivers/iio/adc/mcp3911.c+12 -50 replies
4/9iio: adc: mcp3911: use resource-managed version of iio_device_registerdrivers/iio/adc/mcp3911.c+16 -374 replies
5/9iio: adc: mcp3911: add support for buffersdrivers/iio/adc/Kconfig drivers/iio/adc/mcp3911.c+97 -80 replies
6/9iio: adc: mcp3911: add support for interruptsdrivers/iio/adc/mcp3911.c+53 -00 replies
7/9dt-bindings: iio: adc: mcp3911: add microchip,data-ready-hiz entryDocumentation/devicetree/bindings/iio/adc/microchip,mcp3911.yaml+7 -00 replies
8/9iio: adc: mcp3911: add support for oversampling ratiodrivers/iio/adc/mcp3911.c+58 -00 replies
9/9iio: adc: mcp3911: add support to set PGAdrivers/iio/adc/mcp3911.c+83 -240 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchAndy ShevchenkoKrzysztof Kozlowski
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9A-b
8/9R-b
9/9R-b

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

Read the v6 thread

Cover letter [PATCH v6 0/9] Improve MCP3911 driver

This patch series intend to fix bugs and improve functionality of the MCP3911 driver. The main features added are
- Support for buffers
- Interrupt driven readings
- Support for oversampling ratio
- Support for set scale values (Gain)

Among the bug fixes, there are changes in the formula for calculate raw value and a fix for mismatch in the devicetree property.

Another general improvement for the driver is to use managed resources for all allocated resources.

See patch notes for more specific changes.

General changes for the series:

v3:
- Drop Phase patch
- Add Fixes tags for those patches that are fixes
- Move Fixes patches to the beginning of the patchset

v4:
- Split up devm-cleanup functions
- Cosmetic cleanups
- Add
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
To Kconfig
- Add .endianness = IIO_BE

v5:
- Drop remove function
- Split tx&rx transfers in mcp3911_trigger_handler()
- Moved Kconfig changes to right patch

v6:
- Go for devm_clk_get_enabled()
- Cosmetic cleanups
- Clarify the description of microchip,data-ready-hiz

Best regards,
Marcus Folkesson