18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2020 The Linux Foundation. All rights reserved.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H
78c2ecf20Sopenharmony_ci#define _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef PMK8350_SID
108c2ecf20Sopenharmony_ci#define PMK8350_SID					0
118c2ecf20Sopenharmony_ci#endif
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/* ADC channels for PMK8350_ADC for PMIC7 */
148c2ecf20Sopenharmony_ci#define PMK8350_ADC7_REF_GND			(PMK8350_SID << 8 | 0x0)
158c2ecf20Sopenharmony_ci#define PMK8350_ADC7_1P25VREF			(PMK8350_SID << 8 | 0x01)
168c2ecf20Sopenharmony_ci#define PMK8350_ADC7_VREF_VADC			(PMK8350_SID << 8 | 0x02)
178c2ecf20Sopenharmony_ci#define PMK8350_ADC7_DIE_TEMP			(PMK8350_SID << 8 | 0x03)
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM1			(PMK8350_SID << 8 | 0x04)
208c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM2			(PMK8350_SID << 8 | 0x05)
218c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM3			(PMK8350_SID << 8 | 0x06)
228c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM4			(PMK8350_SID << 8 | 0x07)
238c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM5			(PMK8350_SID << 8 | 0x08)
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci/* 30k pull-up1 */
268c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM1_30K_PU		(PMK8350_SID << 8 | 0x24)
278c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM2_30K_PU		(PMK8350_SID << 8 | 0x25)
288c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM3_30K_PU		(PMK8350_SID << 8 | 0x26)
298c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM4_30K_PU		(PMK8350_SID << 8 | 0x27)
308c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM5_30K_PU		(PMK8350_SID << 8 | 0x28)
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci/* 100k pull-up2 */
338c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM1_100K_PU		(PMK8350_SID << 8 | 0x44)
348c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM2_100K_PU		(PMK8350_SID << 8 | 0x45)
358c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM3_100K_PU		(PMK8350_SID << 8 | 0x46)
368c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM4_100K_PU		(PMK8350_SID << 8 | 0x47)
378c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM5_100K_PU		(PMK8350_SID << 8 | 0x48)
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci/* 400k pull-up3 */
408c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM1_400K_PU		(PMK8350_SID << 8 | 0x64)
418c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM2_400K_PU		(PMK8350_SID << 8 | 0x65)
428c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM3_400K_PU		(PMK8350_SID << 8 | 0x66)
438c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM4_400K_PU		(PMK8350_SID << 8 | 0x67)
448c2ecf20Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM5_400K_PU		(PMK8350_SID << 8 | 0x68)
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H */
47