xref: /openbmc/linux/Documentation/ABI/testing/sysfs-bus-iio-light-lm3533-als (revision 9c8ea1b29bc9c9bbd922a652d1b91ddceeb180c6)
1*9c8ea1b2SJohan HovoldWhat:		/sys/.../events/in_illuminance0_thresh_either_en
2*9c8ea1b2SJohan HovoldDate:		April 2012
3*9c8ea1b2SJohan HovoldKernelVersion:	3.5
4*9c8ea1b2SJohan HovoldContact:	Johan Hovold <jhovold@gmail.com>
5*9c8ea1b2SJohan HovoldDescription:
6*9c8ea1b2SJohan Hovold		Event generated when channel passes one of the four thresholds
7*9c8ea1b2SJohan Hovold		in each direction (rising|falling) and a zone change occurs.
8*9c8ea1b2SJohan Hovold		The corresponding light zone can be read from
9*9c8ea1b2SJohan Hovold		in_illuminance0_zone.
10*9c8ea1b2SJohan Hovold
11*9c8ea1b2SJohan HovoldWhat:		/sys/.../events/in_illuminance0_threshY_hysteresis
12*9c8ea1b2SJohan HovoldDate:		May 2012
13*9c8ea1b2SJohan HovoldKernelVersion:	3.5
14*9c8ea1b2SJohan HovoldContact:	Johan Hovold <jhovold@gmail.com>
15*9c8ea1b2SJohan HovoldDescription:
16*9c8ea1b2SJohan Hovold		Get the hysteresis for thresholds Y, that is,
17*9c8ea1b2SJohan Hovold
18*9c8ea1b2SJohan Hovold		threshY_hysteresis = threshY_raising - threshY_falling
19*9c8ea1b2SJohan Hovold
20*9c8ea1b2SJohan HovoldWhat:		/sys/.../events/illuminance_threshY_falling_value
21*9c8ea1b2SJohan HovoldWhat:		/sys/.../events/illuminance_threshY_raising_value
22*9c8ea1b2SJohan HovoldDate:		April 2012
23*9c8ea1b2SJohan HovoldKernelVersion:	3.5
24*9c8ea1b2SJohan HovoldContact:	Johan Hovold <jhovold@gmail.com>
25*9c8ea1b2SJohan HovoldDescription:
26*9c8ea1b2SJohan Hovold		Specifies the value of threshold that the device is comparing
27*9c8ea1b2SJohan Hovold		against for the events enabled by
28*9c8ea1b2SJohan Hovold		in_illuminance0_thresh_either_en (0..255), where Y in 0..3.
29*9c8ea1b2SJohan Hovold
30*9c8ea1b2SJohan Hovold		Note that threshY_falling must be less than or equal to
31*9c8ea1b2SJohan Hovold		threshY_raising.
32*9c8ea1b2SJohan Hovold
33*9c8ea1b2SJohan Hovold		These thresholds correspond to the eight zone-boundary
34*9c8ea1b2SJohan Hovold		registers (boundaryY_{low,high}) and defines the five light
35*9c8ea1b2SJohan Hovold		zones.
36*9c8ea1b2SJohan Hovold
37*9c8ea1b2SJohan HovoldWhat:		/sys/bus/iio/devices/iio:deviceX/in_illuminance0_zone
38*9c8ea1b2SJohan HovoldDate:		April 2012
39*9c8ea1b2SJohan HovoldKernelVersion:	3.5
40*9c8ea1b2SJohan HovoldContact:	Johan Hovold <jhovold@gmail.com>
41*9c8ea1b2SJohan HovoldDescription:
42*9c8ea1b2SJohan Hovold		Get the current light zone (0..4) as defined by the
43*9c8ea1b2SJohan Hovold		in_illuminance0_threshY_{falling,rising} thresholds.
44*9c8ea1b2SJohan Hovold
45*9c8ea1b2SJohan HovoldWhat:		/sys/bus/iio/devices/iio:deviceX/out_currentY_raw
46*9c8ea1b2SJohan HovoldDate:		May 2012
47*9c8ea1b2SJohan HovoldKernelVersion:	3.5
48*9c8ea1b2SJohan HovoldContact:	Johan Hovold <jhovold@gmail.com>
49*9c8ea1b2SJohan HovoldDescription:
50*9c8ea1b2SJohan Hovold		Get output current for channel Y (0..255), that is,
51*9c8ea1b2SJohan Hovold		out_currentY_currentZ_raw, where Z is the current zone.
52*9c8ea1b2SJohan Hovold
53*9c8ea1b2SJohan HovoldWhat:		/sys/bus/iio/devices/iio:deviceX/out_currentY_currentZ_raw
54*9c8ea1b2SJohan HovoldDate:		May 2012
55*9c8ea1b2SJohan HovoldKernelVersion:	3.5
56*9c8ea1b2SJohan HovoldContact:	Johan Hovold <jhovold@gmail.com>
57*9c8ea1b2SJohan HovoldDescription:
58*9c8ea1b2SJohan Hovold		Set the output current for channel out_currentY when in zone
59*9c8ea1b2SJohan Hovold		Z (0..255), where Y in 0..2 and Z in 0..4.
60*9c8ea1b2SJohan Hovold
61*9c8ea1b2SJohan Hovold		These values correspond to the ALS-mapper target registers for
62*9c8ea1b2SJohan Hovold		ALS-mapper Y + 1.
63