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_PMR735B_H
78c2ecf20Sopenharmony_ci#define _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef PMR735B_SID
108c2ecf20Sopenharmony_ci#define PMR735B_SID					5
118c2ecf20Sopenharmony_ci#endif
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/* ADC channels for PMR735B_ADC for PMIC7 */
148c2ecf20Sopenharmony_ci#define PMR735B_ADC7_REF_GND			(PMR735B_SID << 8 | 0x0)
158c2ecf20Sopenharmony_ci#define PMR735B_ADC7_1P25VREF			(PMR735B_SID << 8 | 0x01)
168c2ecf20Sopenharmony_ci#define PMR735B_ADC7_VREF_VADC			(PMR735B_SID << 8 | 0x02)
178c2ecf20Sopenharmony_ci#define PMR735B_ADC7_DIE_TEMP			(PMR735B_SID << 8 | 0x03)
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#define PMR735B_ADC7_GPIO1			(PMR735B_SID << 8 | 0x0a)
208c2ecf20Sopenharmony_ci#define PMR735B_ADC7_GPIO2			(PMR735B_SID << 8 | 0x0b)
218c2ecf20Sopenharmony_ci#define PMR735B_ADC7_GPIO3			(PMR735B_SID << 8 | 0x0c)
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci/* 100k pull-up2 */
248c2ecf20Sopenharmony_ci#define PMR735B_ADC7_GPIO1_100K_PU		(PMR735B_SID << 8 | 0x4a)
258c2ecf20Sopenharmony_ci#define PMR735B_ADC7_GPIO2_100K_PU		(PMR735B_SID << 8 | 0x4b)
268c2ecf20Sopenharmony_ci#define PMR735B_ADC7_GPIO3_100K_PU		(PMR735B_SID << 8 | 0x4c)
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H */
29