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 <subbaram@codeaurora.org>
This commit is contained in:
Subbaraman Narayanamurthy 2020-09-02 16:19:36 -07:00
parent f086d6a2ec
commit d68f7175d5

View File

@ -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