Linux-libre 4.9.174-gnu
[librecmc/linux-libre.git] / drivers / staging / iio / Documentation / sysfs-bus-iio-light
1 What:           /sys/bus/iio/devices/device[n]/in_illuminance0[_input|_raw]
2 KernelVersion:  2.6.35
3 Contact:        linux-iio@vger.kernel.org
4 Description:
5                 This should return the calculated lux from the light sensor. If
6                 it comes back in SI units, it should also include _input else it
7                 should include _raw to signify it is not in SI units.
8
9 What:           /sys/.../device[n]/proximity_on_chip_ambient_infrared_suppression
10 KernelVersion:  2.6.37
11 Contact:        linux-iio@vger.kernel.org
12 Description:
13                 Hardware dependent mode for an ALS device to calculate the value
14                 in proximity mode. When this is enabled, then the device should
15                 use a infrared sensor reading to remove infrared noise from the
16                 proximity reading. If this is not enabled, the driver can still
17                 do this calculation manually by reading the infrared sensor
18                 value and doing the negation in sw.
19
20 What:           /sys/bus/iio/devices/device[n]/in_proximity[_input|_raw]
21 KernelVersion:  2.6.37
22 Contact:        linux-iio@vger.kernel.org
23 Description:
24                 This property is supported by proximity sensors and should be
25                 used to return the value of a reading by the sensor. If this
26                 value is returned in SI units, it should also include _input
27                 but if it is not, then it should include _raw.
28
29 What:           /sys/bus/iio/devices/device[n]/intensity_infrared[_input|_raw]
30 KernelVersion:  2.6.37
31 Contact:        linux-iio@vger.kernel.org
32 Description:
33                 This property is supported by sensors that have an infrared
34                 sensing mode. This value should be the output from a reading
35                 and if expressed in SI units, should include _input. If this
36                 value is not in SI units, then it should include _raw.
37
38 What:           /sys/bus/iio/devices/device[n]/in_illuminance0_target
39 KernelVersion:  2.6.37
40 Contact:        linux-iio@vger.kernel.org
41 Description:
42                 This property gets/sets the last known external
43                 lux measurement used in/for calibration.
44
45 What:           /sys/bus/iio/devices/device[n]/in_illuminance0_integration_time
46 KernelVersion:  2.6.37
47 Contact:        linux-iio@vger.kernel.org
48 Description:
49                 This property gets/sets the sensors ADC analog integration time.
50
51 What:           /sys/bus/iio/devices/device[n]/in_illuminance0_lux_table
52 KernelVersion:  2.6.37
53 Contact:        linux-iio@vger.kernel.org
54 Description:
55                 This property gets/sets the table of coefficients
56                 used in calculating illuminance in lux.
57
58 What:           /sys/bus/iio/devices/device[n]/in_intensity_clear[_input|_raw]
59 What:           /sys/bus/iio/devices/device[n]/in_intensity_red[_input|_raw]
60 What:           /sys/bus/iio/devices/device[n]/in_intensity_green[_input|_raw]
61 What:           /sys/bus/iio/devices/device[n]/in_intensity_blue[_input|_raw]
62 KernelVersion:  3.6.0
63 Contact:        linux-iio@vger.kernel.org
64 Description:
65                 This property is supported by sensors that have a RGBC
66                 sensing mode. This value should be the output from a reading
67                 and if expressed in SI units, should include _input. If this
68                 value is not in SI units (irradiance, uW/mm^2), then it should
69                 include _raw.
70
71 What:           /sys/bus/iio/devices/device[n]/in_cct0[_input|_raw]
72 KernelVersion:  3.6.0
73 Contact:        linux-iio@vger.kernel.org
74 Description:
75                 This should return the correlated color temperature from the
76                 light sensor. If it comes back in SI units, it should also
77                 include _input else it should include _raw to signify it is not
78                 in SI units.
79