summaryrefslogtreecommitdiff
path: root/include/dt-bindings/iio
diff options
context:
space:
mode:
authorChiYuan Huang <cy_huang@richtek.com>2022-08-05 15:06:03 +0800
committerLee Jones <lee@kernel.org>2022-09-28 16:09:50 +0100
commit7f915eef50829c3719be003481ca2bb116fad852 (patch)
treeb5986ca69cc1c28a1b0505d57be62d768bd1af4d /include/dt-bindings/iio
parent2d48bfca42a6d2b5f92d24ceae4425fc4fae14ab (diff)
dt-bindings: mfd: Add MediaTek MT6370
Add MediaTek MT6370 binding documentation. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> Signed-off-by: ChiaEn Wu <chiaen_wu@richtek.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20220805070610.3516-7-peterwu.pub@gmail.com
Diffstat (limited to 'include/dt-bindings/iio')
-rw-r--r--include/dt-bindings/iio/adc/mediatek,mt6370_adc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/dt-bindings/iio/adc/mediatek,mt6370_adc.h b/include/dt-bindings/iio/adc/mediatek,mt6370_adc.h
new file mode 100644
index 000000000000..6ee725547763
--- /dev/null
+++ b/include/dt-bindings/iio/adc/mediatek,mt6370_adc.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
+
+#ifndef __DT_BINDINGS_MEDIATEK_MT6370_ADC_H__
+#define __DT_BINDINGS_MEDIATEK_MT6370_ADC_H__
+
+/* ADC Channel Index */
+#define MT6370_CHAN_VBUSDIV5 0
+#define MT6370_CHAN_VBUSDIV2 1
+#define MT6370_CHAN_VSYS 2
+#define MT6370_CHAN_VBAT 3
+#define MT6370_CHAN_TS_BAT 4
+#define MT6370_CHAN_IBUS 5
+#define MT6370_CHAN_IBAT 6
+#define MT6370_CHAN_CHG_VDDP 7
+#define MT6370_CHAN_TEMP_JC 8
+#define MT6370_CHAN_MAX 9
+
+#endif