diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-05-21 08:18:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-05 00:12:29 -0400 |
commit | 9c8ea1b29bc9c9bbd922a652d1b91ddceeb180c6 (patch) | |
tree | 3f975a88fd580bd3adb563e12344008de5544f1a /Documentation/ABI/testing/sysfs-bus-iio-light-lm3533-als | |
parent | 2979460d7aba1dac3452edcacd7b8c4cfcf06067 (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/testing/sysfs-bus-iio-light-lm3533-als')
-rw-r--r-- | Documentation/ABI/testing/sysfs-bus-iio-light-lm3533-als | 62 |
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 @@ | |||
1 | What: /sys/.../events/in_illuminance0_thresh_either_en | ||
2 | Date: April 2012 | ||
3 | KernelVersion: 3.5 | ||
4 | Contact: Johan Hovold <jhovold@gmail.com> | ||
5 | Description: | ||
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 | |||
11 | What: /sys/.../events/in_illuminance0_threshY_hysteresis | ||
12 | Date: May 2012 | ||
13 | KernelVersion: 3.5 | ||
14 | Contact: Johan Hovold <jhovold@gmail.com> | ||
15 | Description: | ||
16 | Get the hysteresis for thresholds Y, that is, | ||
17 | |||
18 | threshY_hysteresis = threshY_raising - threshY_falling | ||
19 | |||
20 | What: /sys/.../events/illuminance_threshY_falling_value | ||
21 | What: /sys/.../events/illuminance_threshY_raising_value | ||
22 | Date: April 2012 | ||
23 | KernelVersion: 3.5 | ||
24 | Contact: Johan Hovold <jhovold@gmail.com> | ||
25 | Description: | ||
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 | |||
37 | What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_zone | ||
38 | Date: April 2012 | ||
39 | KernelVersion: 3.5 | ||
40 | Contact: Johan Hovold <jhovold@gmail.com> | ||
41 | Description: | ||
42 | Get the current light zone (0..4) as defined by the | ||
43 | in_illuminance0_threshY_{falling,rising} thresholds. | ||
44 | |||
45 | What: /sys/bus/iio/devices/iio:deviceX/out_currentY_raw | ||
46 | Date: May 2012 | ||
47 | KernelVersion: 3.5 | ||
48 | Contact: Johan Hovold <jhovold@gmail.com> | ||
49 | Description: | ||
50 | Get output current for channel Y (0..255), that is, | ||
51 | out_currentY_currentZ_raw, where Z is the current zone. | ||
52 | |||
53 | What: /sys/bus/iio/devices/iio:deviceX/out_currentY_currentZ_raw | ||
54 | Date: May 2012 | ||
55 | KernelVersion: 3.5 | ||
56 | Contact: Johan Hovold <jhovold@gmail.com> | ||
57 | Description: | ||
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. | ||