2020-05-29 00:54:24 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PMR735A_H
|
|
|
|
#define _DT_BINDINGS_QCOM_SPMI_VADC_PMR735A_H
|
|
|
|
|
|
|
|
#ifndef PMR735A_SID
|
|
|
|
#define PMR735A_SID 4
|
|
|
|
#endif
|
|
|
|
|
2023-07-07 20:30:20 +08:00
|
|
|
#include <dt-bindings/iio/qcom,spmi-vadc.h>
|
|
|
|
|
2020-05-29 00:54:24 +08:00
|
|
|
/* ADC channels for PMR735A_ADC for PMIC7 */
|
2023-07-07 20:30:20 +08:00
|
|
|
#define PMR735A_ADC7_REF_GND (PMR735A_SID << 8 | ADC7_REF_GND)
|
|
|
|
#define PMR735A_ADC7_1P25VREF (PMR735A_SID << 8 | ADC7_1P25VREF)
|
|
|
|
#define PMR735A_ADC7_VREF_VADC (PMR735A_SID << 8 | ADC7_VREF_VADC)
|
|
|
|
#define PMR735A_ADC7_DIE_TEMP (PMR735A_SID << 8 | ADC7_DIE_TEMP)
|
2020-05-29 00:54:24 +08:00
|
|
|
|
2023-07-07 20:30:20 +08:00
|
|
|
#define PMR735A_ADC7_GPIO1 (PMR735A_SID << 8 | ADC7_GPIO1)
|
|
|
|
#define PMR735A_ADC7_GPIO2 (PMR735A_SID << 8 | ADC7_GPIO2)
|
|
|
|
#define PMR735A_ADC7_GPIO3 (PMR735A_SID << 8 | ADC7_GPIO3)
|
2020-05-29 00:54:24 +08:00
|
|
|
|
|
|
|
/* 100k pull-up2 */
|
2023-07-07 20:30:20 +08:00
|
|
|
#define PMR735A_ADC7_GPIO1_100K_PU (PMR735A_SID << 8 | ADC7_GPIO1_100K_PU)
|
|
|
|
#define PMR735A_ADC7_GPIO2_100K_PU (PMR735A_SID << 8 | ADC7_GPIO2_100K_PU)
|
|
|
|
#define PMR735A_ADC7_GPIO3_100K_PU (PMR735A_SID << 8 | ADC7_GPIO3_100K_PU)
|
2020-05-29 00:54:24 +08:00
|
|
|
|
|
|
|
#endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMR735A_H */
|