xref: /linux/include/dt-bindings/iio/qcom,spmi-adc7-pmr735a.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_PMR735A_H
7*d1492bbdSJishnu Prakash #define _DT_BINDINGS_QCOM_SPMI_VADC_PMR735A_H
8*d1492bbdSJishnu Prakash 
9*d1492bbdSJishnu Prakash #ifndef PMR735A_SID
10*d1492bbdSJishnu Prakash #define PMR735A_SID					4
11*d1492bbdSJishnu Prakash #endif
12*d1492bbdSJishnu Prakash 
13*d1492bbdSJishnu Prakash /* ADC channels for PMR735A_ADC for PMIC7 */
14*d1492bbdSJishnu Prakash #define PMR735A_ADC7_REF_GND			(PMR735A_SID << 8 | 0x0)
15*d1492bbdSJishnu Prakash #define PMR735A_ADC7_1P25VREF			(PMR735A_SID << 8 | 0x01)
16*d1492bbdSJishnu Prakash #define PMR735A_ADC7_VREF_VADC			(PMR735A_SID << 8 | 0x02)
17*d1492bbdSJishnu Prakash #define PMR735A_ADC7_DIE_TEMP			(PMR735A_SID << 8 | 0x03)
18*d1492bbdSJishnu Prakash 
19*d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO1			(PMR735A_SID << 8 | 0x0a)
20*d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO2			(PMR735A_SID << 8 | 0x0b)
21*d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO3			(PMR735A_SID << 8 | 0x0c)
22*d1492bbdSJishnu Prakash 
23*d1492bbdSJishnu Prakash /* 100k pull-up2 */
24*d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO1_100K_PU		(PMR735A_SID << 8 | 0x4a)
25*d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO2_100K_PU		(PMR735A_SID << 8 | 0x4b)
26*d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO3_100K_PU		(PMR735A_SID << 8 | 0x4c)
27*d1492bbdSJishnu Prakash 
28*d1492bbdSJishnu Prakash #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMR735A_H */
29