Re: [PATCH v2 0/3] iio: cdc: add Texas Instruments FDC1004 driver
From: Andy Shevchenko
Date: Sun Oct 25 2026 - 16:47:42 EST
On Sun, Oct 25, 2026 at 12:48:03AM -0500, Victor Chernyakin wrote:
> This series adds support for the FDC1004 4-channel I2C capacitive sensor.
> This sensor can report single-ended measurements of any one of its
> channels, as well as differential measurements between any pair
> of them. It has a measurement range of +-15 pF and a resolution of 0.5 fF.
>
> Patch 1 adds higher-precision IIO_VAL_DECIMAL64_* formats, used
> in the driver.
> Patch 2 adds the devicetree bindings.
> Patch 3 adds the driver itself.
>
> Tested with the sensor connected over an i2c-tiny-usb adapter.
>
> ---
> Changes in v2:
> - Patch 1
> - Added tests
> - Added a fix in iio_format_value
If it's about abs(), it should go in a separate patch.
> - Patch 2
> - Made the power supply mandatory
> - Patch 3
> - Switched from direct I2C calls to regmap
> - Added of device table
> - Removed scan indexes
> - Build up complex values incrementally
> - Adjusted list of includes
> - More designed initializers
> - Various style/whitespace tweaks
--
With Best Regards,
Andy Shevchenko