162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2020 The Linux Foundation. All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H 762306a36Sopenharmony_ci#define _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#ifndef PMK8350_SID 1062306a36Sopenharmony_ci#define PMK8350_SID 0 1162306a36Sopenharmony_ci#endif 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#include <dt-bindings/iio/qcom,spmi-vadc.h> 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci/* ADC channels for PMK8350_ADC for PMIC7 */ 1662306a36Sopenharmony_ci#define PMK8350_ADC7_REF_GND (PMK8350_SID << 8 | ADC7_REF_GND) 1762306a36Sopenharmony_ci#define PMK8350_ADC7_1P25VREF (PMK8350_SID << 8 | ADC7_1P25VREF) 1862306a36Sopenharmony_ci#define PMK8350_ADC7_VREF_VADC (PMK8350_SID << 8 | ADC7_VREF_VADC) 1962306a36Sopenharmony_ci#define PMK8350_ADC7_DIE_TEMP (PMK8350_SID << 8 | ADC7_DIE_TEMP) 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM1 (PMK8350_SID << 8 | ADC7_AMUX_THM1) 2262306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM2 (PMK8350_SID << 8 | ADC7_AMUX_THM2) 2362306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM3 (PMK8350_SID << 8 | ADC7_AMUX_THM3) 2462306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM4 (PMK8350_SID << 8 | ADC7_AMUX_THM4) 2562306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM5 (PMK8350_SID << 8 | ADC7_AMUX_THM5) 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci/* 30k pull-up1 */ 2862306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM1_30K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM1_30K_PU) 2962306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM2_30K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM2_30K_PU) 3062306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM3_30K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM3_30K_PU) 3162306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM4_30K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM4_30K_PU) 3262306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM5_30K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM5_30K_PU) 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci/* 100k pull-up2 */ 3562306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM1_100K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM1_100K_PU) 3662306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM2_100K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM2_100K_PU) 3762306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM3_100K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM3_100K_PU) 3862306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM4_100K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM4_100K_PU) 3962306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM5_100K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM5_100K_PU) 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci/* 400k pull-up3 */ 4262306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM1_400K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM1_400K_PU) 4362306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM2_400K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM2_400K_PU) 4462306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM3_400K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM3_400K_PU) 4562306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM4_400K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM4_400K_PU) 4662306a36Sopenharmony_ci#define PMK8350_ADC7_AMUX_THM5_400K_PU (PMK8350_SID << 8 | ADC7_AMUX_THM5_400K_PU) 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci#endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMK8350_H */ 49