1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 2 /* 3 * Copyright (c) 2020 The Linux Foundation. Al 3 * Copyright (c) 2020 The Linux Foundation. All rights reserved. 4 */ 4 */ 5 5 6 #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H 6 #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H 7 #define _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H 7 #define _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H 8 8 9 #ifndef PMR735B_SID 9 #ifndef PMR735B_SID 10 #define PMR735B_SID 10 #define PMR735B_SID 5 11 #endif 11 #endif 12 12 13 #include <dt-bindings/iio/qcom,spmi-vadc.h> 13 #include <dt-bindings/iio/qcom,spmi-vadc.h> 14 14 15 /* ADC channels for PMR735B_ADC for PMIC7 */ 15 /* ADC channels for PMR735B_ADC for PMIC7 */ 16 #define PMR735B_ADC7_REF_GND 16 #define PMR735B_ADC7_REF_GND (PMR735B_SID << 8 | ADC7_REF_GND) 17 #define PMR735B_ADC7_1P25VREF 17 #define PMR735B_ADC7_1P25VREF (PMR735B_SID << 8 | ADC7_1P25VREF) 18 #define PMR735B_ADC7_VREF_VADC 18 #define PMR735B_ADC7_VREF_VADC (PMR735B_SID << 8 | ADC7_VREF_VADC) 19 #define PMR735B_ADC7_DIE_TEMP 19 #define PMR735B_ADC7_DIE_TEMP (PMR735B_SID << 8 | ADC7_DIE_TEMP) 20 20 21 #define PMR735B_ADC7_GPIO1 21 #define PMR735B_ADC7_GPIO1 (PMR735B_SID << 8 | ADC7_GPIO1) 22 #define PMR735B_ADC7_GPIO2 22 #define PMR735B_ADC7_GPIO2 (PMR735B_SID << 8 | ADC7_GPIO2) 23 #define PMR735B_ADC7_GPIO3 23 #define PMR735B_ADC7_GPIO3 (PMR735B_SID << 8 | ADC7_GPIO3) 24 24 25 /* 100k pull-up2 */ 25 /* 100k pull-up2 */ 26 #define PMR735B_ADC7_GPIO1_100K_PU 26 #define PMR735B_ADC7_GPIO1_100K_PU (PMR735B_SID << 8 | ADC7_GPIO1_100K_PU) 27 #define PMR735B_ADC7_GPIO2_100K_PU 27 #define PMR735B_ADC7_GPIO2_100K_PU (PMR735B_SID << 8 | ADC7_GPIO2_100K_PU) 28 #define PMR735B_ADC7_GPIO3_100K_PU 28 #define PMR735B_ADC7_GPIO3_100K_PU (PMR735B_SID << 8 | ADC7_GPIO3_100K_PU) 29 29 30 #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_ 30 #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H */ 31 31
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.