VADC/IADC peripheral is supported from PMIC 2.0 onwards. Add version check to allow VADC/IADC reads if the version is supported. Add probe defereal api for clients who need to know if the ADC driver is ready. There is a bug where the completion is not initialized. Fix it by initializing it. Add support to disable the peripheral after the ADC is read and enable it before starting a conversion. Add scaling functions to support reading the die temperature, XO_THERM, batt_therm and batt_id. Add the ratiometric calibration routine that uses the vref/gnd for calibration. The ratiometric calibration is used for calibrating xo_therm, batt_therm, batt_id. Update the gain value used for calibration on the IADC peripheral. PMIC 2.0 IADC peripheral uses 17.857mV instead of 25mV for its gain calibration. Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org> (cherry picked from commit 5ace110e2165fba66227e18154d58b0e6cbb24b2) Change-Id: I37b02de53ea2bed913c30261624c31a1ae57131c Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>