162306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_agc_gain
262306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_agc_gain_bias
362306a36Sopenharmony_ciKernelVersion:	4.18
462306a36Sopenharmony_ciContact:	linux-iio@vger.kernel.org
562306a36Sopenharmony_ciDescription:
662306a36Sopenharmony_ci		This sensor has an automatic gain control (agc) loop
762306a36Sopenharmony_ci		which sets the analog signal levels at an optimum
862306a36Sopenharmony_ci		level by controlling programmable gain amplifiers. The
962306a36Sopenharmony_ci		criteria for optimal gain is determined by the sensor.
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci		Return the actual gain value as an integer in [0; 65536]
1262306a36Sopenharmony_ci		range when read from.
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci		The agc gain read when measuring crosstalk shall be
1562306a36Sopenharmony_ci		written into in_proximity0_agc_gain_bias.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_temp_a
1862306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_temp_b
1962306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_light_a
2062306a36Sopenharmony_ciWhat:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calib_phase_light_b
2162306a36Sopenharmony_ciKernelVersion:	4.18
2262306a36Sopenharmony_ciContact:	linux-iio@vger.kernel.org
2362306a36Sopenharmony_ciDescription:
2462306a36Sopenharmony_ci		The sensor is able to perform correction of distance
2562306a36Sopenharmony_ci		measurements due to changing temperature and ambient
2662306a36Sopenharmony_ci		light conditions. It can be programmed to correct for
2762306a36Sopenharmony_ci		a second order error polynomial.
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci		Phase data has to be collected when temperature and
3062306a36Sopenharmony_ci		ambient light are modulated independently.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci		Then a least squares curve fit to a second order
3362306a36Sopenharmony_ci		polynomial has to be generated from the data. The
3462306a36Sopenharmony_ci		resultant curves have the form ax^2 + bx + c.
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci		From those two curves, a and b coefficients shall be
3762306a36Sopenharmony_ci		stored in in_proximity0_calib_phase_temp_a and
3862306a36Sopenharmony_ci		in_proximity0_calib_phase_temp_b for temperature and
3962306a36Sopenharmony_ci		in in_proximity0_calib_phase_light_a and
4062306a36Sopenharmony_ci		in_proximity0_calib_phase_light_b for ambient light.
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci		Those values must be integer in [0; 8355840] range.
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci		Finally, the c constant is set by the sensor
4562306a36Sopenharmony_ci		internally.
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ci		The value stored in sensor is displayed when read from.
48