xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-bus-iio-adc-hi8435 (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_sensing_mode
2*4882a593SmuzhiyunDate:		August 2015
3*4882a593SmuzhiyunKernelVersion:	4.2.0
4*4882a593SmuzhiyunContact:	source@cogentembedded.com
5*4882a593SmuzhiyunDescription:
6*4882a593Smuzhiyun		Program sensor type for threshold detector inputs.
7*4882a593Smuzhiyun		Could be either "GND-Open" or "Supply-Open" mode. Y is a
8*4882a593Smuzhiyun		threshold detector input channel. Channels 0..7, 8..15, 16..23
9*4882a593Smuzhiyun		and 24..31 has common sensor types.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunWhat:		/sys/bus/iio/devices/iio:deviceX/events/in_voltageY_thresh_falling_value
12*4882a593SmuzhiyunDate:		August 2015
13*4882a593SmuzhiyunKernelVersion:	4.2.0
14*4882a593SmuzhiyunContact:	source@cogentembedded.com
15*4882a593SmuzhiyunDescription:
16*4882a593Smuzhiyun		Channel Y low voltage threshold. If sensor input voltage goes lower then
17*4882a593Smuzhiyun		this value then the threshold falling event is pushed.
18*4882a593Smuzhiyun		Depending on in_voltageY_sensing_mode the low voltage threshold
19*4882a593Smuzhiyun		is separately set for "GND-Open" and "Supply-Open" modes.
20*4882a593Smuzhiyun		Channels 0..31 have common low threshold values, but could have different
21*4882a593Smuzhiyun		sensing_modes.
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun		The low voltage threshold range is between 2..21V.
24*4882a593Smuzhiyun		Hysteresis between low and high thresholds can not be lower then 2 and
25*4882a593Smuzhiyun		can not be odd.
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun		If falling threshold results hysteresis to odd value then rising
28*4882a593Smuzhiyun		threshold is automatically subtracted by one.
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunWhat:		/sys/bus/iio/devices/iio:deviceX/events/in_voltageY_thresh_rising_value
31*4882a593SmuzhiyunDate:		August 2015
32*4882a593SmuzhiyunKernelVersion:	4.2.0
33*4882a593SmuzhiyunContact:	source@cogentembedded.com
34*4882a593SmuzhiyunDescription:
35*4882a593Smuzhiyun		Channel Y high voltage threshold. If sensor input voltage goes higher then
36*4882a593Smuzhiyun		this value then the threshold rising event is pushed.
37*4882a593Smuzhiyun		Depending on in_voltageY_sensing_mode the high voltage threshold
38*4882a593Smuzhiyun		is separately set for "GND-Open" and "Supply-Open" modes.
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun		Channels 0..31 have common high threshold values, but could have different
41*4882a593Smuzhiyun		sensing_modes.
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun		The high voltage threshold range is between 3..22V.
44*4882a593Smuzhiyun		Hysteresis between low and high thresholds can not be lower then 2 and
45*4882a593Smuzhiyun		can not be odd.
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun		If rising threshold results hysteresis to odd value then falling
48*4882a593Smuzhiyun		threshold is automatically appended by one.
49