xref: /linux/include/dt-bindings/iio/qcom,spmi-adc7-pmr735b.h (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1d1492bbdSJishnu Prakash /* SPDX-License-Identifier: GPL-2.0-only */
2d1492bbdSJishnu Prakash /*
3d1492bbdSJishnu Prakash  * Copyright (c) 2020 The Linux Foundation. All rights reserved.
4d1492bbdSJishnu Prakash  */
5d1492bbdSJishnu Prakash 
6d1492bbdSJishnu Prakash #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H
7d1492bbdSJishnu Prakash #define _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H
8d1492bbdSJishnu Prakash 
9d1492bbdSJishnu Prakash #ifndef PMR735B_SID
10d1492bbdSJishnu Prakash #define PMR735B_SID					5
11d1492bbdSJishnu Prakash #endif
12d1492bbdSJishnu Prakash 
13*b7297d45SDmitry Baryshkov #include <dt-bindings/iio/qcom,spmi-vadc.h>
14d1492bbdSJishnu Prakash 
15*b7297d45SDmitry Baryshkov /* ADC channels for PMR735B_ADC for PMIC7 */
16*b7297d45SDmitry Baryshkov #define PMR735B_ADC7_REF_GND			(PMR735B_SID << 8 | ADC7_REF_GND)
17*b7297d45SDmitry Baryshkov #define PMR735B_ADC7_1P25VREF			(PMR735B_SID << 8 | ADC7_1P25VREF)
18*b7297d45SDmitry Baryshkov #define PMR735B_ADC7_VREF_VADC			(PMR735B_SID << 8 | ADC7_VREF_VADC)
19*b7297d45SDmitry Baryshkov #define PMR735B_ADC7_DIE_TEMP			(PMR735B_SID << 8 | ADC7_DIE_TEMP)
20*b7297d45SDmitry Baryshkov 
21*b7297d45SDmitry Baryshkov #define PMR735B_ADC7_GPIO1			(PMR735B_SID << 8 | ADC7_GPIO1)
22*b7297d45SDmitry Baryshkov #define PMR735B_ADC7_GPIO2			(PMR735B_SID << 8 | ADC7_GPIO2)
23*b7297d45SDmitry Baryshkov #define PMR735B_ADC7_GPIO3			(PMR735B_SID << 8 | ADC7_GPIO3)
24d1492bbdSJishnu Prakash 
25d1492bbdSJishnu Prakash /* 100k pull-up2 */
26*b7297d45SDmitry Baryshkov #define PMR735B_ADC7_GPIO1_100K_PU		(PMR735B_SID << 8 | ADC7_GPIO1_100K_PU)
27*b7297d45SDmitry Baryshkov #define PMR735B_ADC7_GPIO2_100K_PU		(PMR735B_SID << 8 | ADC7_GPIO2_100K_PU)
28*b7297d45SDmitry Baryshkov #define PMR735B_ADC7_GPIO3_100K_PU		(PMR735B_SID << 8 | ADC7_GPIO3_100K_PU)
29d1492bbdSJishnu Prakash 
30d1492bbdSJishnu Prakash #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H */
31