xref: /linux/include/dt-bindings/iio/qcom,spmi-adc7-pmk8350.h (revision 9ddb236f13594b34a12dacf69a5adca7a1aef35e)
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_PMK8350_H
7 #define _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H
8 
9 #ifndef PMK8350_SID
10 #define PMK8350_SID					0
11 #endif
12 
13 /* ADC channels for PMK8350_ADC for PMIC7 */
14 #define PMK8350_ADC7_REF_GND			(PMK8350_SID << 8 | 0x0)
15 #define PMK8350_ADC7_1P25VREF			(PMK8350_SID << 8 | 0x01)
16 #define PMK8350_ADC7_VREF_VADC			(PMK8350_SID << 8 | 0x02)
17 #define PMK8350_ADC7_DIE_TEMP			(PMK8350_SID << 8 | 0x03)
18 
19 #define PMK8350_ADC7_AMUX_THM1			(PMK8350_SID << 8 | 0x04)
20 #define PMK8350_ADC7_AMUX_THM2			(PMK8350_SID << 8 | 0x05)
21 #define PMK8350_ADC7_AMUX_THM3			(PMK8350_SID << 8 | 0x06)
22 #define PMK8350_ADC7_AMUX_THM4			(PMK8350_SID << 8 | 0x07)
23 #define PMK8350_ADC7_AMUX_THM5			(PMK8350_SID << 8 | 0x08)
24 
25 /* 30k pull-up1 */
26 #define PMK8350_ADC7_AMUX_THM1_30K_PU		(PMK8350_SID << 8 | 0x24)
27 #define PMK8350_ADC7_AMUX_THM2_30K_PU		(PMK8350_SID << 8 | 0x25)
28 #define PMK8350_ADC7_AMUX_THM3_30K_PU		(PMK8350_SID << 8 | 0x26)
29 #define PMK8350_ADC7_AMUX_THM4_30K_PU		(PMK8350_SID << 8 | 0x27)
30 #define PMK8350_ADC7_AMUX_THM5_30K_PU		(PMK8350_SID << 8 | 0x28)
31 
32 /* 100k pull-up2 */
33 #define PMK8350_ADC7_AMUX_THM1_100K_PU		(PMK8350_SID << 8 | 0x44)
34 #define PMK8350_ADC7_AMUX_THM2_100K_PU		(PMK8350_SID << 8 | 0x45)
35 #define PMK8350_ADC7_AMUX_THM3_100K_PU		(PMK8350_SID << 8 | 0x46)
36 #define PMK8350_ADC7_AMUX_THM4_100K_PU		(PMK8350_SID << 8 | 0x47)
37 #define PMK8350_ADC7_AMUX_THM5_100K_PU		(PMK8350_SID << 8 | 0x48)
38 
39 /* 400k pull-up3 */
40 #define PMK8350_ADC7_AMUX_THM1_400K_PU		(PMK8350_SID << 8 | 0x64)
41 #define PMK8350_ADC7_AMUX_THM2_400K_PU		(PMK8350_SID << 8 | 0x65)
42 #define PMK8350_ADC7_AMUX_THM3_400K_PU		(PMK8350_SID << 8 | 0x66)
43 #define PMK8350_ADC7_AMUX_THM4_400K_PU		(PMK8350_SID << 8 | 0x67)
44 #define PMK8350_ADC7_AMUX_THM5_400K_PU		(PMK8350_SID << 8 | 0x68)
45 
46 #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H */
47