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