xref: /openbmc/linux/Documentation/ABI/testing/sysfs-bus-iio-adc-hi8435 (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
172aa29ceSVladimir BarinovWhat:		/sys/bus/iio/devices/iio:deviceX/in_voltageY_sensing_mode
272aa29ceSVladimir BarinovDate:		August 2015
372aa29ceSVladimir BarinovKernelVersion:	4.2.0
472aa29ceSVladimir BarinovContact:	source@cogentembedded.com
572aa29ceSVladimir BarinovDescription:
672aa29ceSVladimir Barinov		Program sensor type for threshold detector inputs.
772aa29ceSVladimir Barinov		Could be either "GND-Open" or "Supply-Open" mode. Y is a
872aa29ceSVladimir Barinov		threshold detector input channel. Channels 0..7, 8..15, 16..23
972aa29ceSVladimir Barinov		and 24..31 has common sensor types.
1072aa29ceSVladimir Barinov
1172aa29ceSVladimir BarinovWhat:		/sys/bus/iio/devices/iio:deviceX/events/in_voltageY_thresh_falling_value
1272aa29ceSVladimir BarinovDate:		August 2015
1372aa29ceSVladimir BarinovKernelVersion:	4.2.0
1472aa29ceSVladimir BarinovContact:	source@cogentembedded.com
1572aa29ceSVladimir BarinovDescription:
1672aa29ceSVladimir Barinov		Channel Y low voltage threshold. If sensor input voltage goes lower then
1772aa29ceSVladimir Barinov		this value then the threshold falling event is pushed.
1872aa29ceSVladimir Barinov		Depending on in_voltageY_sensing_mode the low voltage threshold
1972aa29ceSVladimir Barinov		is separately set for "GND-Open" and "Supply-Open" modes.
2072aa29ceSVladimir Barinov		Channels 0..31 have common low threshold values, but could have different
2172aa29ceSVladimir Barinov		sensing_modes.
22*54a19b4dSMauro Carvalho Chehab
2372aa29ceSVladimir Barinov		The low voltage threshold range is between 2..21V.
2472aa29ceSVladimir Barinov		Hysteresis between low and high thresholds can not be lower then 2 and
2572aa29ceSVladimir Barinov		can not be odd.
26*54a19b4dSMauro Carvalho Chehab
2772aa29ceSVladimir Barinov		If falling threshold results hysteresis to odd value then rising
2872aa29ceSVladimir Barinov		threshold is automatically subtracted by one.
2972aa29ceSVladimir Barinov
3072aa29ceSVladimir BarinovWhat:		/sys/bus/iio/devices/iio:deviceX/events/in_voltageY_thresh_rising_value
3172aa29ceSVladimir BarinovDate:		August 2015
3272aa29ceSVladimir BarinovKernelVersion:	4.2.0
3372aa29ceSVladimir BarinovContact:	source@cogentembedded.com
3472aa29ceSVladimir BarinovDescription:
3572aa29ceSVladimir Barinov		Channel Y high voltage threshold. If sensor input voltage goes higher then
3672aa29ceSVladimir Barinov		this value then the threshold rising event is pushed.
3772aa29ceSVladimir Barinov		Depending on in_voltageY_sensing_mode the high voltage threshold
3872aa29ceSVladimir Barinov		is separately set for "GND-Open" and "Supply-Open" modes.
39*54a19b4dSMauro Carvalho Chehab
4072aa29ceSVladimir Barinov		Channels 0..31 have common high threshold values, but could have different
4172aa29ceSVladimir Barinov		sensing_modes.
42*54a19b4dSMauro Carvalho Chehab
4372aa29ceSVladimir Barinov		The high voltage threshold range is between 3..22V.
4472aa29ceSVladimir Barinov		Hysteresis between low and high thresholds can not be lower then 2 and
4572aa29ceSVladimir Barinov		can not be odd.
46*54a19b4dSMauro Carvalho Chehab
4772aa29ceSVladimir Barinov		If rising threshold results hysteresis to odd value then falling
4872aa29ceSVladimir Barinov		threshold is automatically appended by one.
49