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