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