Loading Documentation/ABI/testing/sysfs-bus-iio-cros-ec 0 → 100644 +18 −0 Original line number Diff line number Diff line 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'. drivers/iio/common/Kconfig +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ # IIO common modules # source "drivers/iio/common/cros_ec_sensors/Kconfig" source "drivers/iio/common/hid-sensors/Kconfig" source "drivers/iio/common/ms_sensors/Kconfig" source "drivers/iio/common/ssp_sensors/Kconfig" Loading drivers/iio/common/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ # # When adding new entries keep the list in alphabetical order obj-y += cros_ec_sensors/ obj-y += hid-sensors/ obj-y += ms_sensors/ obj-y += ssp_sensors/ Loading drivers/iio/common/cros_ec_sensors/Kconfig 0 → 100644 +22 −0 Original line number Diff line number Diff line # # Chrome OS Embedded Controller managed sensors library # config IIO_CROS_EC_SENSORS_CORE tristate "ChromeOS EC Sensors Core" depends on SYSFS && MFD_CROS_EC select IIO_BUFFER select IIO_TRIGGERED_BUFFER help Base module for the ChromeOS EC Sensors module. Contains core functions used by other IIO CrosEC sensor drivers. Define common attributes and sysfs interrupt handler. config IIO_CROS_EC_SENSORS tristate "ChromeOS EC Contiguous Sensors" depends on IIO_CROS_EC_SENSORS_CORE help Module to handle 3d contiguous sensors like Accelerometers, Gyroscope and Magnetometer that are presented by the ChromeOS EC Sensor hub. Creates an IIO device for each functions. drivers/iio/common/cros_ec_sensors/Makefile 0 → 100644 +6 −0 Original line number Diff line number Diff line # # Makefile for sensors seen through the ChromeOS EC sensor hub. # obj-$(CONFIG_IIO_CROS_EC_SENSORS_CORE) += cros_ec_sensors_core.o obj-$(CONFIG_IIO_CROS_EC_SENSORS) += cros_ec_sensors.o Loading
Documentation/ABI/testing/sysfs-bus-iio-cros-ec 0 → 100644 +18 −0 Original line number Diff line number Diff line 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'.
drivers/iio/common/Kconfig +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ # IIO common modules # source "drivers/iio/common/cros_ec_sensors/Kconfig" source "drivers/iio/common/hid-sensors/Kconfig" source "drivers/iio/common/ms_sensors/Kconfig" source "drivers/iio/common/ssp_sensors/Kconfig" Loading
drivers/iio/common/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ # # When adding new entries keep the list in alphabetical order obj-y += cros_ec_sensors/ obj-y += hid-sensors/ obj-y += ms_sensors/ obj-y += ssp_sensors/ Loading
drivers/iio/common/cros_ec_sensors/Kconfig 0 → 100644 +22 −0 Original line number Diff line number Diff line # # Chrome OS Embedded Controller managed sensors library # config IIO_CROS_EC_SENSORS_CORE tristate "ChromeOS EC Sensors Core" depends on SYSFS && MFD_CROS_EC select IIO_BUFFER select IIO_TRIGGERED_BUFFER help Base module for the ChromeOS EC Sensors module. Contains core functions used by other IIO CrosEC sensor drivers. Define common attributes and sysfs interrupt handler. config IIO_CROS_EC_SENSORS tristate "ChromeOS EC Contiguous Sensors" depends on IIO_CROS_EC_SENSORS_CORE help Module to handle 3d contiguous sensors like Accelerometers, Gyroscope and Magnetometer that are presented by the ChromeOS EC Sensor hub. Creates an IIO device for each functions.
drivers/iio/common/cros_ec_sensors/Makefile 0 → 100644 +6 −0 Original line number Diff line number Diff line # # Makefile for sensors seen through the ChromeOS EC sensor hub. # obj-$(CONFIG_IIO_CROS_EC_SENSORS_CORE) += cros_ec_sensors_core.o obj-$(CONFIG_IIO_CROS_EC_SENSORS) += cros_ec_sensors.o