]> git.dujemihanovic.xyz Git - u-boot.git/commit
adc: rockchip-saradc: add support for getting reference voltage value
authorPeter Cai <peter@typeblog.net>
Fri, 4 Feb 2022 20:16:06 +0000 (15:16 -0500)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 18 Apr 2022 03:25:12 +0000 (11:25 +0800)
commite963228af50d317a83d4ceffb095e40ef3ab9d53
treeca2829fc042068a782358ef6db75a87e1c7d8d8c
parentfdda7901cc77b5bc525263c385cc19f151b6612b
adc: rockchip-saradc: add support for getting reference voltage value

Mirroring commit 97ab802aa36f ("adc: meson-saradc: add support for
getting reference voltage value") for meson-saradc, this adds support
for getting the "vref-supply" regulator and register it as the ADC's
reference voltage regulator, so clients can translate sampled ADC values
to voltage.

Signed-off-by: Peter Cai <peter@typeblog.net>
Reviewed-by: John Keeping <john@metanate.com>
Tested-by: John Keeping <john@metanate.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
Cc: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/adc/rockchip-saradc.c