Immutable branch between MFD and IIO due for the v4.21 merge window
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEdrbJNaO+IJqU8IdIUa+KL4f8d2EFAlwFFKIACgkQUa+KL4f8
d2HDwQ//abxwJpY0C07zJRBQW81JWoA+8Iw1tla0Bv89FZjWYIcGNjt6Zk7nNnMM
TduGORzOgr01Sxi2zMLE2Ea9/K+sxBFlD6bGJxwgOIwdBtVeRzafa+14KcfbU1kh
UBCGaYWzEhuG8GObT2ZQBWrRq0Uhe///WjY98+6UlqWU3pU3pfrMCSV2IiJaGIbY
p+HNxv2/BilzlpaF9FgzqOyHYVfS/1PBaXK6L9rOZ5diGqYkMThlkEifpgYZfU3B
UFMndd6gyC6jO1viaKW8hhck+Ogoem9bC6XjV1r/+rw1VKSf/RYVcvbWRZRBNtyj
tk8UTeuNREEQvj221Q9XWVw04S4P4YRHHP5hrbf/UXOeUX0Yzsv0YX+S3rH9EQJM
CgCikB7ru8AyqqfUBBNXx14Z0lgyl7cK3R5nC0sVfjIloGWJPd/LTJAvNsEEGOfk
ebkV2cWMaFbc5VYpMeznCTE1uMQePNqe+4YsnF8PNIEX0AMOoFUj4S+xLpG9TJTs
66w0t/TQjFXL9//TBShLKTG9zGJc96LVrkwkbTpyCZVZwvbD9kdZs7Y7UbI1gfvd
+1xkPLqsg10WeGV04V86ilwy0iQY/u6OIEZUcz8+2i8vnWLMOYLoLx34eWbmeuMu
qTiU2cLKlPyNmRKLpPFdSF/a3vDWq2lxJoglqcLhEFKwvlFLvBo=
=X680
-----END PGP SIGNATURE-----
iio: adc: ti_am335x_tscadc: Improve accuracy of measurement

When performing single ended measurements with TSCADC, its recommended
to set negative input (SEL_INM_SWC_3_0) of ADC step to ADC's VREFN in the
corresponding STEP_CONFIGx register.

Also, the positive(SEL_RFP_SWC_2_0) and negative(SEL_RFM_SWC_1_0)
reference voltage for ADC step needs to be set to VREFP and VREFN
respectively in STEP_CONFIGx register.
Without these changes, there may be variation of as much as ~2% in the
ADC's digital output which is bad for precise measurement.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2 files changed