So, here comes the IIO subsystem new to Linux Kernel, at least for me, present for supporting some of the composite SE Nsors in Android.
Some introductions and Some basic infos about it.
Introduce IIO interface for Android advanced features
Iio-a-new-subsystem.pdf
Introduction in Kernel/drivers/staging/iio/documentation/overview.txt
Overview of IIO
The Industrial I/O subsystem is intended to provide support for devices
That in some sense is analog to digital converters (ADCs). As many
Actual devices combine some ADCs with digital to analog converters
(DACs) That functionality is also supported.
The aim is to fill the gap between the somewhat similar hwmon and
Input subsystems. Hwmon is very much directed at low sample rate
Sensors used in applications such as fan speed control and temperature
Measurement. Input is, as it's name suggests focused on input
Devices. In some cases there is considerable overlap between these and
IIO.
A typical device falling into this category would is connected via SPI
or I²c.
Functionality of IIO
* Basic device registration and handling. This was very similar to
Hwmon with simple polled access to device channels via SYSFS.
* Event Chrdevs. These is similar to input in that they provide a
Route to user space for hardware triggered events. Such events include
Threshold detectors, free-fall detectors and more complex action
Detection. The events themselves is currently very simple with
Merely an event code and a timestamp. Any data associated with the
Event must be accessed via polling.
Note:a given device may has one or more event channel. These events is
Turned on or off (if possible) via SYSFS interfaces.
* Hardware buffer support. Some recent sensors have included
Fifo/ring buffers on the sensor chip. These greatly reduce the load
On the host CPU by buffering relatively large numbers of data samples
Based on an internal sampling clock. Examples include VTI SCA3000
Series and Analog Device ADXL345 accelerometers. Each buffer supports
Polling to establish if data is available.
* Trigger and software buffer support. In many data analysis
Applications it it useful to is able to capture data based on some
External signal (trigger). These triggers might is a data ready
Signal, a GPIO line connected to some external system or an on
Processor periodic interrupt. A single trigger may initialize data
Capture or reading from a number of sensors. These triggers is
Used in IIO to fill software buffers acting in a very similar
Fashion to the hardware buffers described above.
Other Documentation:
Device.txt-elements of a typical device driver.
Trigger.txt-elements of a typical trigger driver.
Ring.txt-additional elements required for buffer support.
Sysfs-bus-iio-abi documentation file.
[Quote] New subsystem iio in Linux Kernel.