aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-05-21 08:18:06 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-05 00:12:29 -0400
commit9c8ea1b29bc9c9bbd922a652d1b91ddceeb180c6 (patch)
tree3f975a88fd580bd3adb563e12344008de5544f1a /Documentation/ABI
parent2979460d7aba1dac3452edcacd7b8c4cfcf06067 (diff)
iio: add LM3533 ambient-light-sensor driver
Add sub-driver for the ambient-light-sensor interface on National Semiconductor / TI LM3533 lighting power chips. The sensor interface can be used to control the LEDs and backlights of the chip through defining five light zones and three sets of corresponding output-current values. The driver provides raw and mean adc readings along with the current light zone through sysfs. A threshold event can be generated on zone changes. The ALS-control output values can be set per zone for the three current output channels. Signed-off-by: Johan Hovold <jhovold@gmail.com> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-bus-iio-light-lm3533-als62
1 files changed, 62 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-iio-light-lm3533-als b/Documentation/ABI/testing/sysfs-bus-iio-light-lm3533-als
new file mode 100644
index 000000000000..694a52c8cf82
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-bus-iio-light-lm3533-als
@@ -0,0 +1,62 @@
1What: /sys/.../events/in_illuminance0_thresh_either_en
2Date: April 2012
3KernelVersion: 3.5
4Contact: Johan Hovold <jhovold@gmail.com>
5Description:
6 Event generated when channel passes one of the four thresholds
7 in each direction (rising|falling) and a zone change occurs.
8 The corresponding light zone can be read from
9 in_illuminance0_zone.
10
11What: /sys/.../events/in_illuminance0_threshY_hysteresis
12Date: May 2012
13KernelVersion: 3.5
14Contact: Johan Hovold <jhovold@gmail.com>
15Description:
16 Get the hysteresis for thresholds Y, that is,
17
18 threshY_hysteresis = threshY_raising - threshY_falling
19
20What: /sys/.../events/illuminance_threshY_falling_value
21What: /sys/.../events/illuminance_threshY_raising_value
22Date: April 2012
23KernelVersion: 3.5
24Contact: Johan Hovold <jhovold@gmail.com>
25Description:
26 Specifies the value of threshold that the device is comparing
27 against for the events enabled by
28 in_illuminance0_thresh_either_en (0..255), where Y in 0..3.
29
30 Note that threshY_falling must be less than or equal to
31 threshY_raising.
32
33 These thresholds correspond to the eight zone-boundary
34 registers (boundaryY_{low,high}) and defines the five light
35 zones.
36
37What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_zone
38Date: April 2012
39KernelVersion: 3.5
40Contact: Johan Hovold <jhovold@gmail.com>
41Description:
42 Get the current light zone (0..4) as defined by the
43 in_illuminance0_threshY_{falling,rising} thresholds.
44
45What: /sys/bus/iio/devices/iio:deviceX/out_currentY_raw
46Date: May 2012
47KernelVersion: 3.5
48Contact: Johan Hovold <jhovold@gmail.com>
49Description:
50 Get output current for channel Y (0..255), that is,
51 out_currentY_currentZ_raw, where Z is the current zone.
52
53What: /sys/bus/iio/devices/iio:deviceX/out_currentY_currentZ_raw
54Date: May 2012
55KernelVersion: 3.5
56Contact: Johan Hovold <jhovold@gmail.com>
57Description:
58 Set the output current for channel out_currentY when in zone
59 Z (0..255), where Y in 0..2 and Z in 0..4.
60
61 These values correspond to the ALS-mapper target registers for
62 ALS-mapper Y + 1.