linux_dsm_epyc7002/drivers/iio/adc
Bhuvanchandra DV 6219f432ec vf610_adc: Fix internal temperature calculation
Calculate ADCR_VTEMP25 using VTEMP25 at VREFH_ADC 3V3. Existing
calculations consider the typical values provided in datasheet.
Those typical values are valid for VREFH_ADC at 3.0V. VTEMP25
is different for different VREFH_ADC voltages. With VREFH_ADC
at 3.3V, voltage at 25°C is 0.699V. Hence update the VTEMP25
to 0.699V which gives ADCR@Temp25 as 867.

Formula for finding ADCR@Temp25:
ADCR@Temp25 = (ADCR@Vdd * V@TEMP25 * 10) / VDDconv

ADCR@Vdd for 12-Bit ADC = 4095
VDDconv = VREFH_ADC * 10

VREFH_ADC@3.3V
ADCR@Temp25 = (4095 * .699 * 10) / 33
ADCR@Temp25 ~= 867

| VREFH_ADC | V@TEMP25 | VDDconv | ADCR@Temp25 |
|   3.0V    | 0.696mV  |    30   |     950     |
|   3.3V    | 0.699mV  |    33   |     867     |

Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Acked-by: Fugang Duan <B38611@freescale.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-10-25 12:12:29 +00:00
..
ad799x.c
ad7266.c
ad7291.c
ad7298.c
ad7476.c
ad7791.c
ad7793.c
ad7887.c
ad7923.c
ad_sigma_delta.c
at91_adc.c iio: adc: at91_adc: allow to use full range of startup time 2015-07-19 11:48:06 +01:00
axp288_adc.c Second set of new driver, functionality and cleanups for IIO in the 4.2 cycle. 2015-05-24 11:45:21 -07:00
berlin2-adc.c iio:adc:berlin2-adc: Fix register definition 2015-08-12 19:24:08 +01:00
cc10001_adc.c iio: adc: cc10001: Power-up the ADC at probe time when used remotely 2015-06-14 12:21:22 +01:00
da9150-gpadc.c
exynos_adc.c
Kconfig Second set of new device support, features and cleanup for the 4.3 cycle. 2015-08-12 12:43:41 -07:00
lp8788_adc.c
Makefile
max1027.c
max1363.c
mcp320x.c Second set of new device support, features and cleanup for the 4.3 cycle. 2015-08-12 12:43:41 -07:00
mcp3422.c iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
men_z188_adc.c
nau7802.c
qcom-spmi-iadc.c
qcom-spmi-vadc.c
rockchip_saradc.c iio: adc: rockchip_saradc: add missing MODULE_* data 2015-07-19 11:47:58 +01:00
ti_am335x_adc.c
ti-adc081c.c iio: Drop owner assignment from i2c_driver 2015-07-11 18:50:07 +01:00
ti-adc128s052.c
twl4030-madc.c iio: adc: twl4030: Fix ADC[3:6] readings 2015-10-03 10:27:18 +01:00
twl6030-gpadc.c
vf610_adc.c vf610_adc: Fix internal temperature calculation 2015-10-25 12:12:29 +00:00
viperboard_adc.c
xilinx-xadc-core.c
xilinx-xadc-events.c
xilinx-xadc.h