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_PMK8350_H 7d1492bbdSJishnu Prakash #define _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H 8d1492bbdSJishnu Prakash 9d1492bbdSJishnu Prakash #ifndef PMK8350_SID 10d1492bbdSJishnu Prakash #define PMK8350_SID 0 11d1492bbdSJishnu Prakash #endif 12d1492bbdSJishnu Prakash 13*b7297d45SDmitry Baryshkov #include <dt-bindings/iio/qcom,spmi-vadc.h> 14d1492bbdSJishnu Prakash 15*b7297d45SDmitry Baryshkov /* ADC channels for PMK8350_ADC for PMIC7 */ 16*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_REF_GND (PMK8350_SID << 8 | ADC7_REF_GND) 17*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_1P25VREF (PMK8350_SID << 8 | ADC7_1P25VREF) 18*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_VREF_VADC (PMK8350_SID << 8 | ADC7_VREF_VADC) 19*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_DIE_TEMP (PMK8350_SID << 8 | ADC7_DIE_TEMP) 20*b7297d45SDmitry Baryshkov 21*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM1 (PMK8350_SID << 8 | ADC7_AMUX_THM1) 22*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM2 (PMK8350_SID << 8 | ADC7_AMUX_THM2) 23*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM3 (PMK8350_SID << 8 | ADC7_AMUX_THM3) 24*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM4 (PMK8350_SID << 8 | ADC7_AMUX_THM4) 25*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM5 (PMK8350_SID << 8 | ADC7_AMUX_THM5) 26d1492bbdSJishnu Prakash 27d1492bbdSJishnu Prakash /* 30k pull-up1 */ 28*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM1_30K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM1_30K_PU) 29*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM2_30K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM2_30K_PU) 30*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM3_30K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM3_30K_PU) 31*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM4_30K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM4_30K_PU) 32*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM5_30K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM5_30K_PU) 33d1492bbdSJishnu Prakash 34d1492bbdSJishnu Prakash /* 100k pull-up2 */ 35*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM1_100K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM1_100K_PU) 36*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM2_100K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM2_100K_PU) 37*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM3_100K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM3_100K_PU) 38*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM4_100K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM4_100K_PU) 39*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM5_100K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM5_100K_PU) 40d1492bbdSJishnu Prakash 41d1492bbdSJishnu Prakash /* 400k pull-up3 */ 42*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM1_400K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM1_400K_PU) 43*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM2_400K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM2_400K_PU) 44*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM3_400K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM3_400K_PU) 45*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM4_400K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM4_400K_PU) 46*b7297d45SDmitry Baryshkov #define PMK8350_ADC7_AMUX_THM5_400K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM5_400K_PU) 47d1492bbdSJishnu Prakash 48d1492bbdSJishnu Prakash #endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H */ 49