306f0dd2539eb62a41d94b9a1239ac69b403538c
[openwrt/openwrt.git] /
1 From 41a02abb863edca0de0373bc3deaf0639b18c589 Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Fri, 19 Aug 2022 00:18:13 +0200
4 Subject: [PATCH] iio: adc: qcom-spmi-adc5: add ADC5_VREF_VADC to rev2 ADC5
5
6 Add support for ADC5_VREF_VADC channel to rev2 ADC5 channel list.
7 This channel measures the VADC reference LDO output.
8
9 Signed-off-by: Robert Marko <robimarko@gmail.com>
10 Link: https://lore.kernel.org/r/20220818221815.346233-3-robimarko@gmail.com
11 Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
12 ---
13 drivers/iio/adc/qcom-spmi-adc5.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16 --- a/drivers/iio/adc/qcom-spmi-adc5.c
17 +++ b/drivers/iio/adc/qcom-spmi-adc5.c
18 @@ -589,6 +589,8 @@ static const struct adc5_channels adc5_c
19 SCALE_HW_CALIB_DEFAULT)
20 [ADC5_1P25VREF] = ADC5_CHAN_VOLT("vref_1p25", 0,
21 SCALE_HW_CALIB_DEFAULT)
22 + [ADC5_VREF_VADC] = ADC5_CHAN_VOLT("vref_vadc", 0,
23 + SCALE_HW_CALIB_DEFAULT)
24 [ADC5_VPH_PWR] = ADC5_CHAN_VOLT("vph_pwr", 1,
25 SCALE_HW_CALIB_DEFAULT)
26 [ADC5_VBAT_SNS] = ADC5_CHAN_VOLT("vbat_sns", 1,