From d68f7175d5bf7000806bd3871b05946f653d5e2f Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Wed, 2 Sep 2020 16:19:36 -0700 Subject: [PATCH] dt-bindings: iio: add smb139x IIO channels Add SMB_TEMP, IIN_SMB and ICHG_SMB channels for both SMB139x charge pumps that can be paired with PM8350B. Change-Id: Ie67f308d59439a8cb2bced6e80693b101261f3cc Signed-off-by: Subbaraman Narayanamurthy --- .../dt-bindings/iio/qcom,spmi-adc7-smb139x.h | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h diff --git a/include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h b/include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h new file mode 100644 index 000000000000..87da628b7e9a --- /dev/null +++ b/include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2020 The Linux Foundation. All rights reserved. + */ + +#ifndef _DT_BINDINGS_QCOM_SPMI_VADC_SMB139X_H +#define _DT_BINDINGS_QCOM_SPMI_VADC_SMB139X_H + +#ifndef SMB139x_1_SID +#define SMB139x_1_SID 0x0b +#endif + +#ifndef SMB139x_2_SID +#define SMB139x_2_SID 0x0c +#endif + +#define SMB139x_1_ADC7_SMB_TEMP (SMB139x_1_SID << 8 | 0x06) +#define SMB139x_1_ADC7_ICHG_SMB (SMB139x_1_SID << 8 | 0x18) +#define SMB139x_1_ADC7_IIN_SMB (SMB139x_1_SID << 8 | 0x19) + +#define SMB139x_2_ADC7_SMB_TEMP (SMB139x_2_SID << 8 | 0x06) +#define SMB139x_2_ADC7_ICHG_SMB (SMB139x_2_SID << 8 | 0x18) +#define SMB139x_2_ADC7_IIN_SMB (SMB139x_2_SID << 8 | 0x19) + +#endif