11b86c7004
Add driver to support older EC firmware that only support deprecated ec command. Rely on ACPI memory map register to access sensor information. Present same interface as the regular cros_ec sensor stack: - one iio device per accelerometer - use HTML5 axis definition - use iio abi units - accept calibration calls, but do nothing Chrome can use the same code than regular cros_ec sensor stack to calculate orientation and lid angle. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Signed-off-by: Thierry Escande <thierry.escande@collabora.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
What: /sys/bus/iio/devices/iio:deviceX/calibrate
|
|
Date: July 2015
|
|
KernelVersion: 4.7
|
|
Contact: linux-iio@vger.kernel.org
|
|
Description:
|
|
Writing '1' will perform a FOC (Fast Online Calibration). The
|
|
corresponding calibration offsets can be read from *_calibbias
|
|
entries.
|
|
|
|
What: /sys/bus/iio/devices/iio:deviceX/location
|
|
Date: July 2015
|
|
KernelVersion: 4.7
|
|
Contact: linux-iio@vger.kernel.org
|
|
Description:
|
|
This attribute returns a string with the physical location where
|
|
the motion sensor is placed. For example, in a laptop a motion
|
|
sensor can be located on the base or on the lid. Current valid
|
|
values are 'base' and 'lid'.
|
|
|
|
What: /sys/bus/iio/devices/iio:deviceX/id
|
|
Date: Septembre 2017
|
|
KernelVersion: 4.14
|
|
Contact: linux-iio@vger.kernel.org
|
|
Description:
|
|
This attribute is exposed by the CrOS EC legacy accelerometer
|
|
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.
|