summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSalih Erim <salih.erim@amd.com>2026-06-24 15:37:22 +0100
committerJonathan Cameron <jic23@kernel.org>2026-07-02 16:43:51 +0100
commitcbfd04ca564037db65e98f97893f49b6d41d84bf (patch)
tree907c392605e9dae9b99b70e032e12afb924cd334 /tools/perf/scripts/python
parentc7f7eb10638f8757129fcf9785e70d364b8c0f3d (diff)
iio: adc: versal-sysmon: add oversampling support
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. Signed-off-by: Salih Erim <salih.erim@amd.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions