xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/iio/qcom,spmi-adc7-smb139x.h (revision 9bc300465e48e19d794d88d0c158a2adb92c7197)
1 /* SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause */
2 /*
3  * Copyright (c) 2020 The Linux Foundation. All rights reserved.
4  */
5 
6 #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_SMB139X_H
7 #define _DT_BINDINGS_QCOM_SPMI_VADC_SMB139X_H
8 
9 #include <dt-bindings/iio/qcom,spmi-vadc.h>
10 
11 #define SMB139x_1_ADC7_SMB_TEMP			(SMB139x_1_SID << 8 | ADC7_SMB_TEMP)
12 #define SMB139x_1_ADC7_ICHG_SMB			(SMB139x_1_SID << 8 | ADC7_ICHG_SMB)
13 #define SMB139x_1_ADC7_IIN_SMB			(SMB139x_1_SID << 8 | ADC7_IIN_SMB)
14 
15 #define SMB139x_2_ADC7_SMB_TEMP			(SMB139x_2_SID << 8 | ADC7_SMB_TEMP)
16 #define SMB139x_2_ADC7_ICHG_SMB			(SMB139x_2_SID << 8 | ADC7_ICHG_SMB)
17 #define SMB139x_2_ADC7_IIN_SMB			(SMB139x_2_SID << 8 | ADC7_IIN_SMB)
18 
19 #endif
20