mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-28 00:19:36 +00:00

Add a new binding for the MT6350 Series (MT6357/8/9) PMIC AUXADC, providing various ADC channels for both internal temperatures and voltages, audio accessory detection (hp/mic/hp+mic and buttons, usually on a 3.5mm jack) other than some basic battery statistics on boards where the battery is managed by this PMIC. Also add the necessary dt-binding headers for devicetree consumers. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://patch.msgid.link/20240604123008.327424-2-angelogioacchino.delregno@collabora.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
23 lines
653 B
C
23 lines
653 B
C
/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
|
|
|
|
#ifndef _DT_BINDINGS_MEDIATEK_MT6358_AUXADC_H
|
|
#define _DT_BINDINGS_MEDIATEK_MT6358_AUXADC_H
|
|
|
|
/* ADC Channel Index */
|
|
#define MT6358_AUXADC_BATADC 0
|
|
#define MT6358_AUXADC_VCDT 1
|
|
#define MT6358_AUXADC_BAT_TEMP 2
|
|
#define MT6358_AUXADC_CHIP_TEMP 3
|
|
#define MT6358_AUXADC_ACCDET 4
|
|
#define MT6358_AUXADC_VDCXO 5
|
|
#define MT6358_AUXADC_TSX_TEMP 6
|
|
#define MT6358_AUXADC_HPOFS_CAL 7
|
|
#define MT6358_AUXADC_DCXO_TEMP 8
|
|
#define MT6358_AUXADC_VBIF 9
|
|
#define MT6358_AUXADC_VCORE_TEMP 10
|
|
#define MT6358_AUXADC_VPROC_TEMP 11
|
|
#define MT6358_AUXADC_VGPU_TEMP 12
|
|
#define MT6358_AUXADC_VBAT 13
|
|
|
|
#endif
|