From 88d5476b3002d24b8268ad7d252ec24a64be4365 Mon Sep 17 00:00:00 2001 From: Anjelique Melendez Date: Wed, 6 Apr 2022 12:02:11 -0700 Subject: [PATCH] dt-bindings: iio: Add the ADC5 GEN3 Channel info for SMB139x Add the ADC5 GEN3 channels used by SMB139x. Change-Id: Ibdf37c90397ae10a87f7607ebb1ddc2445d698c7 Signed-off-by: Anjelique Melendez --- .../iio/qcom,spmi-adc5-gen3-smb139x.h | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/dt-bindings/iio/qcom,spmi-adc5-gen3-smb139x.h diff --git a/include/dt-bindings/iio/qcom,spmi-adc5-gen3-smb139x.h b/include/dt-bindings/iio/qcom,spmi-adc5-gen3-smb139x.h new file mode 100644 index 000000000000..1a63286c1167 --- /dev/null +++ b/include/dt-bindings/iio/qcom,spmi-adc5-gen3-smb139x.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#ifndef _DT_BINDINGS_QCOM_SPMI_VADC_GEN3_SMB139X_H +#define _DT_BINDINGS_QCOM_SPMI_VADC_GEN3_SMB139X_H + +#ifndef SMB1394_1_SID +#define SMB1394_1_SID 0x09 +#endif + +#ifndef SMB1394_2_SID +#define SMB1394_2_SID 0x0b +#endif + +#define SMB1394_1_ADC5_GEN3_SMB_TEMP (SMB1394_1_SID << 8 | 0x06) +#define SMB1394_1_ADC5_GEN3_IIN_SMB (SMB1394_1_SID << 8 | 0x19) +#define SMB1394_1_ADC5_GEN3_ICHG_SMB (SMB1394_1_SID << 8 | 0x1b) + +#define SMB1394_2_ADC5_GEN3_SMB_TEMP (SMB1394_2_SID << 8 | 0x06) +#define SMB1394_2_ADC5_GEN3_IIN_SMB (SMB1394_2_SID << 8 | 0x19) +#define SMB1394_2_ADC5_GEN3_ICHG_SMB (SMB1394_2_SID << 8 | 0x1b) + +#endif