mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Jishnu Prakash](/assets/img/avatar_default.png)
Add documentation for PMIC7 ADC peripheral. For the PMIC7-type PMICs, ADC peripheral is present in HW for the following PMICs: PMK8350, PM8350, PM8350b, PMR735a and PMR735b. Of these, only the ADC peripheral on PMK8350 is exposed directly to SW. If SW needs to communicate with ADCs on other PMICs, it specifies the PMIC to PMK8350 through the newly added SID register and communication between PMK8350 ADC and other PMIC ADCs is carried out through PBS(Programmable Boot Sequence) at the firmware level. In addition, add definitions for ADC channels and virtual channel definitions (combination of ADC channel number and PMIC SID number) per PMIC, to be used by ADC clients for PMIC7. Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org> Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
28 lines
965 B
C
28 lines
965 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H
|
|
#define _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H
|
|
|
|
#ifndef PMR735B_SID
|
|
#define PMR735B_SID 5
|
|
#endif
|
|
|
|
/* ADC channels for PMR735B_ADC for PMIC7 */
|
|
#define PMR735B_ADC7_REF_GND (PMR735B_SID << 8 | 0x0)
|
|
#define PMR735B_ADC7_1P25VREF (PMR735B_SID << 8 | 0x01)
|
|
#define PMR735B_ADC7_VREF_VADC (PMR735B_SID << 8 | 0x02)
|
|
#define PMR735B_ADC7_DIE_TEMP (PMR735B_SID << 8 | 0x03)
|
|
|
|
#define PMR735B_ADC7_GPIO1 (PMR735B_SID << 8 | 0x0a)
|
|
#define PMR735B_ADC7_GPIO2 (PMR735B_SID << 8 | 0x0b)
|
|
#define PMR735B_ADC7_GPIO3 (PMR735B_SID << 8 | 0x0c)
|
|
|
|
/* 100k pull-up2 */
|
|
#define PMR735B_ADC7_GPIO1_100K_PU (PMR735B_SID << 8 | 0x4a)
|
|
#define PMR735B_ADC7_GPIO2_100K_PU (PMR735B_SID << 8 | 0x4b)
|
|
#define PMR735B_ADC7_GPIO3_100K_PU (PMR735B_SID << 8 | 0x4c)
|
|
|
|
#endif /* _DT_BINDINGS_QCOM_SPMI_VADC_PMR735B_H */
|