mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
|
From 41a02abb863edca0de0373bc3deaf0639b18c589 Mon Sep 17 00:00:00 2001
|
||
|
From: Robert Marko <robimarko@gmail.com>
|
||
|
Date: Fri, 19 Aug 2022 00:18:13 +0200
|
||
|
Subject: [PATCH] iio: adc: qcom-spmi-adc5: add ADC5_VREF_VADC to rev2 ADC5
|
||
|
|
||
|
Add support for ADC5_VREF_VADC channel to rev2 ADC5 channel list.
|
||
|
This channel measures the VADC reference LDO output.
|
||
|
|
||
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
||
|
Link: https://lore.kernel.org/r/20220818221815.346233-3-robimarko@gmail.com
|
||
|
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
|
||
|
---
|
||
|
drivers/iio/adc/qcom-spmi-adc5.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
--- a/drivers/iio/adc/qcom-spmi-adc5.c
|
||
|
+++ b/drivers/iio/adc/qcom-spmi-adc5.c
|
||
|
@@ -589,6 +589,8 @@ static const struct adc5_channels adc5_c
|
||
|
SCALE_HW_CALIB_DEFAULT)
|
||
|
[ADC5_1P25VREF] = ADC5_CHAN_VOLT("vref_1p25", 0,
|
||
|
SCALE_HW_CALIB_DEFAULT)
|
||
|
+ [ADC5_VREF_VADC] = ADC5_CHAN_VOLT("vref_vadc", 0,
|
||
|
+ SCALE_HW_CALIB_DEFAULT)
|
||
|
[ADC5_VPH_PWR] = ADC5_CHAN_VOLT("vph_pwr", 1,
|
||
|
SCALE_HW_CALIB_DEFAULT)
|
||
|
[ADC5_VBAT_SNS] = ADC5_CHAN_VOLT("vbat_sns", 1,
|