linux-sg2042/drivers/iio/adc
Marcelo Schmitt 0c8ada71d9 iio: adc: ad7091r: Enable internal vref if external vref is not supplied
[ Upstream commit e71c5c89bc ]

The ADC needs a voltage reference to work correctly.
Users can provide an external voltage reference or use the chip internal
reference to operate the ADC.
The availability of an in chip reference for the ADC saves the user from
having to supply an external voltage reference, which makes the external
reference an optional property as described in the device tree
documentation.
Though, to use the internal reference, it must be enabled by writing to
the configuration register.
Enable AD7091R internal voltage reference if no external vref is supplied.

Fixes: 260442cc5b ("iio: adc: ad7091r5: Add scale and external VREF support")
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Link: https://lore.kernel.org/r/b865033fa6a4fc4bf2b4a98ec51a6144e0f64f77.1703013352.git.marcelo.schmitt1@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-31 16:17:00 -08:00
..
Kconfig
Makefile
ab8500-gpadc.c
ad799x.c
ad7091r-base.c iio: adc: ad7091r: Enable internal vref if external vref is not supplied 2024-01-31 16:17:00 -08:00
ad7091r-base.h iio: adc: ad7091r: Enable internal vref if external vref is not supplied 2024-01-31 16:17:00 -08:00
ad7091r5.c iio: adc: ad7091r: Allow users to configure device events 2024-01-31 16:16:58 -08:00
ad7124.c
ad7192.c iio: adc: ad7192: Correct reference voltage 2023-10-25 12:03:09 +02:00
ad7266.c
ad7280a.c
ad7291.c
ad7292.c
ad7298.c
ad7476.c
ad7606.c
ad7606.h
ad7606_par.c
ad7606_spi.c
ad7766.c
ad7768-1.c
ad7780.c
ad7791.c iio: adc: ad7791: fix IRQ flags 2023-04-13 16:55:31 +02:00
ad7793.c
ad7887.c
ad7923.c
ad7949.c
ad9467.c iio: adc: ad9467: fix scale setting 2024-01-25 15:27:47 -08:00
ad_sigma_delta.c iio: adc: ad_sigma_delta: Fix IRQ issue by setting IRQ_DISABLE_UNLAZY flag 2023-06-09 10:34:19 +02:00
adi-axi-adc.c iio: adc: ad9467: fix scale setting 2024-01-25 15:27:47 -08:00
aspeed_adc.c
at91-sama5d2_adc.c iio: adc: at91-sama5d2_adc: fix an error code in at91_adc_allocate_trigger() 2023-04-26 14:28:43 +02:00
at91_adc.c
axp20x_adc.c
axp288_adc.c
bcm_iproc_adc.c
berlin2-adc.c
cc10001_adc.c
cpcap-adc.c
da9150-gpadc.c
dln2-adc.c
envelope-detector.c
ep93xx_adc.c
exynos_adc.c iio: exynos-adc: request second interupt only when touchscreen mode is used 2023-11-02 09:35:29 +01:00
fsl-imx25-gcq.c
hi8435.c
hx711.c
imx7d_adc.c
imx8qxp-adc.c iio: adc: imx8qxp: Fix address for command buffer registers 2023-10-19 23:08:55 +02:00
ina2xx-adc.c iio: adc: ina2xx: avoid NULL pointer dereference on OF device match 2023-08-16 18:27:24 +02:00
ingenic-adc.c
intel_mrfld_adc.c
lp8788_adc.c
lpc18xx_adc.c
lpc32xx_adc.c
ltc2471.c
ltc2485.c
ltc2496.c
ltc2497-core.c
ltc2497.c
ltc2497.h
max1027.c
max1118.c
max1241.c
max1363.c
max9611.c
max11100.c
max11205.c
mcp320x.c
mcp3422.c
mcp3911.c
men_z188_adc.c
meson_saradc.c meson saradc: fix clock divider mask length 2023-07-23 13:49:42 +02:00
mp2629_adc.c
mt6360-adc.c
mt6577_auxadc.c
mxs-lradc-adc.c iio: adc: mxs-lradc: fix the order of two cleanup operations 2023-06-09 10:34:18 +02:00
nau7802.c
npcm_adc.c
palmas_gpadc.c iio: adc: palmas_gpadc: fix NULL dereference on rmmod 2023-05-11 23:02:58 +09:00
qcom-pm8xxx-xoadc.c
qcom-spmi-adc5.c
qcom-spmi-iadc.c
qcom-spmi-rradc.c
qcom-spmi-vadc.c
qcom-vadc-common.c
rcar-gyroadc.c
rn5t618-adc.c
rockchip_saradc.c
rtq6056.c
rzg2l_adc.c
sc27xx_adc.c
sd_adc_modulator.c
spear_adc.c
stm32-adc-core.c iio: adc: stm32-adc: harden against NULL pointer deref in stm32_adc_probe() 2023-11-28 17:07:01 +00:00
stm32-adc-core.h
stm32-adc.c iio: adc: stm32-adc: skip adc-diff-channels setup if none is present 2023-06-09 10:34:19 +02:00
stm32-dfsdm-adc.c
stm32-dfsdm-core.c
stm32-dfsdm.h
stmpe-adc.c
sun4i-gpadc-iio.c
ti-adc081c.c
ti-adc084s021.c
ti-adc108s102.c
ti-adc128s052.c
ti-adc161s626.c
ti-adc0832.c
ti-adc12138.c
ti-ads124s08.c
ti-ads131e08.c
ti-ads1015.c
ti-ads7950.c iio: adc: ti-ads7950: Set `can_sleep` flag for GPIO chip 2023-04-13 16:55:27 +02:00
ti-ads8344.c
ti-ads8688.c
ti-tlc4541.c
ti-tsc2046.c
ti_am335x_adc.c iio: adc: ti_am335x_adc: Fix return value check of tiadc_request_dma() 2024-01-01 12:39:01 +00:00
twl4030-madc.c
twl6030-gpadc.c
vf610_adc.c
viperboard_adc.c
xilinx-ams.c
xilinx-xadc-core.c iio: adc: xilinx-xadc: Correct temperature offset/scale for UltraScale 2023-11-02 09:35:30 +01:00
xilinx-xadc-events.c
xilinx-xadc.h iio: adc: xilinx-xadc: Correct temperature offset/scale for UltraScale 2023-11-02 09:35:30 +01:00