[PATCH v2] adc: rockchip-saradc: add support for getting reference voltage value

Simon Glass sjg at chromium.org
Mon Feb 7 21:22:17 CET 2022


On Fri, 4 Feb 2022 at 13:16, Peter Cai <peter at typeblog.net> wrote:
>
> 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 at typeblog.net>
> Reviewed-by: John Keeping <john at metanate.com>
> Tested-by: John Keeping <john at metanate.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Philipp Tomsich <philipp.tomsich at vrull.eu>
> Cc: Kever Yang <kever.yang at rock-chips.com>
> ---
> Changes in v2:
> - Reordered local variables in `rockchip_saradc_probe`.
> ---
>  drivers/adc/rockchip-saradc.c | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list