Re: [PATCH v8 5/5] iio: adc: versal-sysmon: add oversampling support

From: Erim, Salih

Date: Wed Jun 17 2026 - 12:35:29 EST


Hi Andy,

On 17/06/2026 16:42, Andy Shevchenko wrote:
On Tue, Jun 16, 2026 at 02:15:59PM +0100, Salih Erim wrote:
Add support for reading and writing the oversampling ratio through
the IIO oversampling_ratio attribute. The hardware supports averaging
2, 4, 8, or 16 samples, plus a ratio of 1 (no averaging).

Temperature and supply channels share oversampling configuration at
the type level (all temperature channels share one ratio, all supply
channels share another), exposed through info_mask_shared_by_type.

The hardware encoding uses sample_count / 2 in a 4-bit field within
the CONFIG register. Per-channel averaging enable registers must also
be updated to activate or deactivate averaging.

This one LGTM now,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

Thank you!


--
With Best Regards,
Andy Shevchenko