mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
'calibrate' was a one-shot event sent to the sensor to calibrate itself. It is used on Bosch sensors (BMI160, BMA254). Light sensors work differently: They are first put in calibration mode, tests are run to collect information and calculate the calibration values to apply. Once done, the sensors are put back in normal mode. Accept boolean true and false (not just true) to enter/exit calibration state. Check "echo 0 > calibrate" is supported. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Nick Vaccaro <nvaccaro@google.com> Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
22 lines
761 B
Plaintext
22 lines
761 B
Plaintext
What: /sys/bus/iio/devices/iio:deviceX/calibrate
|
|
Date: July 2015
|
|
KernelVersion: 4.7
|
|
Contact: linux-iio@vger.kernel.org
|
|
Description:
|
|
Writing '1' either perform a FOC (Fast Online Calibration) or
|
|
enter calibration mode.
|
|
Writing '0` exits calibration mode. It is a NOP for FOC enabled
|
|
sensors.
|
|
The corresponding calibration offsets can be read from `*_calibbias`
|
|
entries.
|
|
|
|
What: /sys/bus/iio/devices/iio:deviceX/id
|
|
Date: September 2017
|
|
KernelVersion: 4.14
|
|
Contact: linux-iio@vger.kernel.org
|
|
Description:
|
|
This attribute is exposed by the CrOS EC sensors driver and
|
|
represents the sensor ID as exposed by the EC. This ID is used
|
|
by the Android sensor service hardware abstraction layer (sensor
|
|
HAL) through the Android container on ChromeOS.
|