xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/iio/qcom,spmi-adc7-pmk8350.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * Copyright (c) 2020 The Linux Foundation. All rights reserved.
4*c66ec88fSEmmanuel Vadot  */
5*c66ec88fSEmmanuel Vadot 
6*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H
7*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H
8*c66ec88fSEmmanuel Vadot 
9*c66ec88fSEmmanuel Vadot #ifndef PMK8350_SID
10*c66ec88fSEmmanuel Vadot #define PMK8350_SID					0
11*c66ec88fSEmmanuel Vadot #endif
12*c66ec88fSEmmanuel Vadot 
13*c66ec88fSEmmanuel Vadot /* ADC channels for PMK8350_ADC for PMIC7 */
14*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_REF_GND			(PMK8350_SID << 8 | 0x0)
15*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_1P25VREF			(PMK8350_SID << 8 | 0x01)
16*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_VREF_VADC			(PMK8350_SID << 8 | 0x02)
17*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_DIE_TEMP			(PMK8350_SID << 8 | 0x03)
18*c66ec88fSEmmanuel Vadot 
19*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM1			(PMK8350_SID << 8 | 0x04)
20*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM2			(PMK8350_SID << 8 | 0x05)
21*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM3			(PMK8350_SID << 8 | 0x06)
22*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM4			(PMK8350_SID << 8 | 0x07)
23*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM5			(PMK8350_SID << 8 | 0x08)
24*c66ec88fSEmmanuel Vadot 
25*c66ec88fSEmmanuel Vadot /* 30k pull-up1 */
26*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM1_30K_PU		(PMK8350_SID << 8 | 0x24)
27*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM2_30K_PU		(PMK8350_SID << 8 | 0x25)
28*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM3_30K_PU		(PMK8350_SID << 8 | 0x26)
29*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM4_30K_PU		(PMK8350_SID << 8 | 0x27)
30*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM5_30K_PU		(PMK8350_SID << 8 | 0x28)
31*c66ec88fSEmmanuel Vadot 
32*c66ec88fSEmmanuel Vadot /* 100k pull-up2 */
33*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM1_100K_PU		(PMK8350_SID << 8 | 0x44)
34*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM2_100K_PU		(PMK8350_SID << 8 | 0x45)
35*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM3_100K_PU		(PMK8350_SID << 8 | 0x46)
36*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM4_100K_PU		(PMK8350_SID << 8 | 0x47)
37*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM5_100K_PU		(PMK8350_SID << 8 | 0x48)
38*c66ec88fSEmmanuel Vadot 
39*c66ec88fSEmmanuel Vadot /* 400k pull-up3 */
40*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM1_400K_PU		(PMK8350_SID << 8 | 0x64)
41*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM2_400K_PU		(PMK8350_SID << 8 | 0x65)
42*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM3_400K_PU		(PMK8350_SID << 8 | 0x66)
43*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM4_400K_PU		(PMK8350_SID << 8 | 0x67)
44*c66ec88fSEmmanuel Vadot #define PMK8350_ADC7_AMUX_THM5_400K_PU		(PMK8350_SID << 8 | 0x68)
45*c66ec88fSEmmanuel Vadot 
46*c66ec88fSEmmanuel Vadot #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H */
47