From 5a34473338764a05700d280515101295ef0b11ce Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Fri, 28 Aug 2020 19:24:14 -0700 Subject: [PATCH] dt-bindings: iio: update pm8350b ADC channel list Add PM8350B_ADC7_ICHG_FB channel to read charging current for PM8350B. Also, update qcom,spmi-vadc.h to add ADC7_ICHG_FB and other relevant channels that are needed for reading input and charging current for SMB139x charger pumps along with scale function indices. Change-Id: I4a1b53f328e1b394063cbf951f6ff978eb96d21e Signed-off-by: Subbaraman Narayanamurthy [quic_subbaram@quicinc.com: Fixed trivial merge conflict in include/dt-bindings/iio/qcom,spmi-vadc.h and updated copyright] Signed-off-by: Subbaraman Narayanamurthy --- include/dt-bindings/iio/qcom,spmi-vadc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/iio/qcom,spmi-vadc.h b/include/dt-bindings/iio/qcom,spmi-vadc.h index 08adfe25964c..1cfd3669a665 100644 --- a/include/dt-bindings/iio/qcom,spmi-vadc.h +++ b/include/dt-bindings/iio/qcom,spmi-vadc.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* - * Copyright (c) 2012-2014,2018,2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2014,2018-2020 The Linux Foundation. All rights reserved. */ #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_H @@ -245,6 +245,9 @@ #define ADC7_CC1_ID 0x13 #define ADC7_VREF_BAT_THERM 0x15 #define ADC7_IIN_FB 0x17 +#define ADC7_ICHG_SMB 0x18 +#define ADC7_IIN_SMB 0x19 +#define ADC7_ICHG_FB 0xa1 /* 30k pull-up1 */ #define ADC7_AMUX_THM1_30K_PU 0x24