1d1492bbdSJishnu Prakash /* SPDX-License-Identifier: GPL-2.0-only */ 2d1492bbdSJishnu Prakash /* 3d1492bbdSJishnu Prakash * Copyright (c) 2020 The Linux Foundation. All rights reserved. 4d1492bbdSJishnu Prakash */ 5d1492bbdSJishnu Prakash 6d1492bbdSJishnu Prakash #ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PMR735A_H 7d1492bbdSJishnu Prakash #define _DT_BINDINGS_QCOM_SPMI_VADC_PMR735A_H 8d1492bbdSJishnu Prakash 9d1492bbdSJishnu Prakash #ifndef PMR735A_SID 10d1492bbdSJishnu Prakash #define PMR735A_SID 4 11d1492bbdSJishnu Prakash #endif 12d1492bbdSJishnu Prakash 13d1492bbdSJishnu Prakash /* ADC channels for PMR735A_ADC for PMIC7 */ 14d1492bbdSJishnu Prakash #define PMR735A_ADC7_REF_GND (PMR735A_SID << 8 | 0x0) 15d1492bbdSJishnu Prakash #define PMR735A_ADC7_1P25VREF (PMR735A_SID << 8 | 0x01) 16d1492bbdSJishnu Prakash #define PMR735A_ADC7_VREF_VADC (PMR735A_SID << 8 | 0x02) 17d1492bbdSJishnu Prakash #define PMR735A_ADC7_DIE_TEMP (PMR735A_SID << 8 | 0x03) 18d1492bbdSJishnu Prakash 19d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO1 (PMR735A_SID << 8 | 0x0a) 20d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO2 (PMR735A_SID << 8 | 0x0b) 21d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO3 (PMR735A_SID << 8 | 0x0c) 22d1492bbdSJishnu Prakash 23d1492bbdSJishnu Prakash /* 100k pull-up2 */ 24d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO1_100K_PU (PMR735A_SID << 8 | 0x4a) 25d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO2_100K_PU (PMR735A_SID << 8 | 0x4b) 26d1492bbdSJishnu Prakash #define PMR735A_ADC7_GPIO3_100K_PU (PMR735A_SID << 8 | 0x4c) 27d1492bbdSJishnu Prakash 28d1492bbdSJishnu Prakash #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMR735A_H */ 29