Re: [PATCH v3 4/4] iio: accel: adxl372: add support for ADXL371
From: Andy Shevchenko
Date: Fri Mar 13 2026 - 10:36:46 EST
On Fri, Mar 13, 2026 at 01:54:57PM +0200, Antoniu Miclaus wrote:
> Add support for the Analog Devices ADXL371, a +-200g 3-axis MEMS
> accelerometer sharing the same register map as the ADXL372 but with
> different ODR values (320/640/1280/2560/5120 Hz vs 400/800/1600/3200/
> 6400 Hz), different bandwidth values, and different timer scale
> factors for activity/inactivity detection.
>
> Due to a silicon anomaly (er001) causing FIFO data misalignment on
> all current ADXL371 silicon, FIFO and triggered buffer support is
> disabled for the ADXL371 - only direct mode reads are supported.
...
> +enum adxl371_odr {
> + ADXL371_ODR_320HZ,
> + ADXL371_ODR_640HZ,
> + ADXL371_ODR_1280HZ,
> + ADXL371_ODR_2560HZ,
> + ADXL371_ODR_5120HZ,
> + ADXL371_ODR_NUM,
No comma for the terminator entry.
> +};
...
> @@ -1217,8 +1258,8 @@ static int adxl372_buffer_setup(struct iio_dev *indio_dev)
> return -ENOMEM;
>
> st->peak_datardy_trig = devm_iio_trigger_alloc(dev, "%s-dev%d-peak",
> - indio_dev->name,
> - iio_device_id(indio_dev));
> + indio_dev->name,
> + iio_device_id(indio_dev));
> if (!st->peak_datardy_trig)
> return -ENOMEM;
Stray change. It doesn't belong to this patch.
--
With Best Regards,
Andy Shevchenko