summaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2017-10-12 19:33:23 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-10-14 20:34:01 +0100
commit11b86c7004ef14f9f8c1e2caf66bfaad6f3167a2 (patch)
tree96523cdbbad6b3f1348b5f4ddedc2d2f778a5d5c /Documentation/ABI
parentad7532cefd11d11a0814a75fb814c205ee3d9d4c (diff)
downloadtalos-obmc-linux-11b86c7004ef14f9f8c1e2caf66bfaad6f3167a2.tar.gz
talos-obmc-linux-11b86c7004ef14f9f8c1e2caf66bfaad6f3167a2.zip
platform/chrome: Add cros_ec_accel_legacy driver
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>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-bus-iio-cros-ec10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-iio-cros-ec b/Documentation/ABI/testing/sysfs-bus-iio-cros-ec
index 297b9720f024..0e95c2ca105c 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio-cros-ec
+++ b/Documentation/ABI/testing/sysfs-bus-iio-cros-ec
@@ -16,3 +16,13 @@ Description:
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.
OpenPOWER on IntegriCloud