xref: /linux/include/dt-bindings/iio/qcom,spmi-adc7-pmr735b.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2020 The Linux Foundation. All rights reserved.
4  */
5 
6 #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H
7 #define _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H
8 
9 #ifndef PMR735B_SID
10 #define PMR735B_SID					5
11 #endif
12 
13 /* ADC channels for PMR735B_ADC for PMIC7 */
14 #define PMR735B_ADC7_REF_GND			(PMR735B_SID << 8 | 0x0)
15 #define PMR735B_ADC7_1P25VREF			(PMR735B_SID << 8 | 0x01)
16 #define PMR735B_ADC7_VREF_VADC			(PMR735B_SID << 8 | 0x02)
17 #define PMR735B_ADC7_DIE_TEMP			(PMR735B_SID << 8 | 0x03)
18 
19 #define PMR735B_ADC7_GPIO1			(PMR735B_SID << 8 | 0x0a)
20 #define PMR735B_ADC7_GPIO2			(PMR735B_SID << 8 | 0x0b)
21 #define PMR735B_ADC7_GPIO3			(PMR735B_SID << 8 | 0x0c)
22 
23 /* 100k pull-up2 */
24 #define PMR735B_ADC7_GPIO1_100K_PU		(PMR735B_SID << 8 | 0x4a)
25 #define PMR735B_ADC7_GPIO2_100K_PU		(PMR735B_SID << 8 | 0x4b)
26 #define PMR735B_ADC7_GPIO3_100K_PU		(PMR735B_SID << 8 | 0x4c)
27 
28 #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H */
29