summaryrefslogtreecommitdiffstats
path: root/Documentation/iio
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2021-02-25 17:47:33 -0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-03-25 19:13:49 +0000
commitdafcf4ed8392476099c9e95642d2daa6e61ee1b6 (patch)
tree34465b2692ec2b491ef1bf92a4fed1827dbf97ea /Documentation/iio
parent7b3589f49b824e718c319dbd31535c608a410a55 (diff)
downloadlinux-dafcf4ed8392476099c9e95642d2daa6e61ee1b6.tar.gz
linux-dafcf4ed8392476099c9e95642d2daa6e61ee1b6.tar.bz2
linux-dafcf4ed8392476099c9e95642d2daa6e61ee1b6.zip
iio: hrtimer: Allow sub Hz granularity
Allow setting frequency below 1Hz or sub 1Hz precision. Useful for slow sensors like ALS. Test frequency is set properly: modprobe iio-trig-hrtimer && \ mkdir /sys/kernel/config/iio/triggers/hrtimer/t1 && \ cd /sys/bus/iio/devices/triggerX ; for i in 1 .1 .01 .001 ; do echo $i > sampling_frequency cat sampling_frequency done Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20210226014733.2108544-1-gwendal@chromium.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'Documentation/iio')
-rw-r--r--Documentation/iio/iio_configfs.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/iio/iio_configfs.rst b/Documentation/iio/iio_configfs.rst
index dbc61f35ea05..b276397af797 100644
--- a/Documentation/iio/iio_configfs.rst
+++ b/Documentation/iio/iio_configfs.rst
@@ -99,3 +99,4 @@ Each trigger can have one or more attributes specific to the trigger type.
"hrtimer" trigger type doesn't have any configurable attribute from /config dir.
It does introduce the sampling_frequency attribute to trigger directory.
+That attribute sets the polling frequency in Hz, with mHz precision.