[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250321-abi-oversampling-events-frequency-v1-2-794c1ab2f079@analog.com>
Date: Fri, 21 Mar 2025 15:50:02 +0100
From: Jorge Marques <jorge.marques@...log.com>
To: Jonathan Cameron <jic23@...nel.org>, Lars-Peter Clausen <lars@...afoo.de>
CC: <dlechner@...libre.com>, <Michael.Hennerich@...log.com>,
<linux-iio@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Jorge Marques
<jorge.marques@...log.com>
Subject: [PATCH 2/2] Documentation: ABI: add oversampling frequency in
sysfs-bus-iio
Some devices have an internal clock used to space out the conversion
trigger for the oversampling filter,
Consider an ADC with conversion and data ready pins topology:
Sampling trigger | | | | |
ADC conversion ++++ ++++ ++++ ++++ ++++
ADC data ready * * * * *
With the oversampling frequency, conversions can be evenly space between
the sampling edge:
Sampling trigger | | | | |
ADC conversion + + + + + + + + + + + + + + + + + + + +
ADC data ready * * * * *
Signed-off-by: Jorge Marques <jorge.marques@...log.com>
---
Documentation/ABI/testing/sysfs-bus-iio | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
index 33c09c4ac60a4feec82308461643134f5ba84b66..2317bacf6a2884691a08725d6f01d18555a96227 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -139,6 +139,23 @@ Contact: linux-iio@...r.kernel.org
Description:
Hardware dependent values supported by the oversampling filter.
+What: /sys/bus/iio/devices/iio:deviceX/oversampling_frequency
+KernelVersion: 6.15
+Contact: linux-iio@...r.kernel.org
+Description:
+ Some devices have internal clocks for the ADC oversampling.
+ Sets the resulting sampling frequency to trigger a conversion
+ used by the oversampling filter.
+ Can be used to evenly space conversion between the sampling edge
+ on some devices.
+
+What: /sys/bus/iio/devices/iio:deviceX/oversampling_frequency_available
+KernelVersion: 6.15
+Contact: linux-iio@...r.kernel.org
+Description:
+ Hardware dependent values supported by the oversampling
+ frequency.
+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_raw
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_raw
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_raw
--
2.48.1
Powered by blists - more mailing lists