11c287992SMathieu OthaceheWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_agc_gain
21c287992SMathieu OthaceheWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_agc_gain_bias
31c287992SMathieu OthaceheKernelVersion:	4.18
41c287992SMathieu OthaceheContact:	linux-iio@vger.kernel.org
51c287992SMathieu OthaceheDescription:
61c287992SMathieu Othacehe		This sensor has an automatic gain control (agc) loop
71c287992SMathieu Othacehe		which sets the analog signal levels at an optimum
81c287992SMathieu Othacehe		level by controlling programmable gain amplifiers. The
91c287992SMathieu Othacehe		criteria for optimal gain is determined by the sensor.
101c287992SMathieu Othacehe
111c287992SMathieu Othacehe		Return the actual gain value as an integer in [0; 65536]
121c287992SMathieu Othacehe		range when read from.
131c287992SMathieu Othacehe
141c287992SMathieu Othacehe		The agc gain read when measuring crosstalk shall be
151c287992SMathieu Othacehe		written into in_proximity0_agc_gain_bias.
161c287992SMathieu Othacehe
171c287992SMathieu OthaceheWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_temp_a
181c287992SMathieu OthaceheWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_temp_b
191c287992SMathieu OthaceheWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_light_a
201c287992SMathieu OthaceheWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_light_b
211c287992SMathieu OthaceheKernelVersion:	4.18
221c287992SMathieu OthaceheContact:	linux-iio@vger.kernel.org
231c287992SMathieu OthaceheDescription:
241c287992SMathieu Othacehe		The sensor is able to perform correction of distance
251c287992SMathieu Othacehe		measurements due to changing temperature and ambient
261c287992SMathieu Othacehe		light conditions. It can be programmed to correct for
271c287992SMathieu Othacehe		a second order error polynomial.
281c287992SMathieu Othacehe
291c287992SMathieu Othacehe		Phase data has to be collected when temperature and
301c287992SMathieu Othacehe		ambient light are modulated independently.
311c287992SMathieu Othacehe
321c287992SMathieu Othacehe		Then a least squares curve fit to a second order
331c287992SMathieu Othacehe		polynomial has to be generated from the data. The
341c287992SMathieu Othacehe		resultant curves have the form ax^2 + bx + c.
351c287992SMathieu Othacehe
361c287992SMathieu Othacehe		From those two curves, a and b coefficients shall be
371c287992SMathieu Othacehe		stored in in_proximity0_calib_phase_temp_a and
381c287992SMathieu Othacehe		in_proximity0_calib_phase_temp_b for temperature and
391c287992SMathieu Othacehe		in in_proximity0_calib_phase_light_a and
401c287992SMathieu Othacehe		in_proximity0_calib_phase_light_b for ambient light.
411c287992SMathieu Othacehe
421c287992SMathieu Othacehe		Those values must be integer in [0; 8355840] range.
431c287992SMathieu Othacehe
441c287992SMathieu Othacehe		Finally, the c constant is set by the sensor
451c287992SMathieu Othacehe		internally.
461c287992SMathieu Othacehe
471c287992SMathieu Othacehe		The value stored in sensor is displayed when read from.
48