summaryrefslogtreecommitdiffstats
path: root/include/dt-bindings/iio
diff options
context:
space:
mode:
authorArtur Rojek <contact@artur-rojek.eu>2019-02-04 01:15:13 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-02-09 16:39:24 +0100
commit7cf74d515b56de0433aebf0c80872d331dd183a2 (patch)
treeafabe7dc96015d6d08ab54a784fe4f417a473eba /include/dt-bindings/iio
parentdt-bindings: iio/adc: Add docs for Ingenic JZ47xx SoCs ADC. (diff)
downloadlinux-7cf74d515b56de0433aebf0c80872d331dd183a2.tar.xz
linux-7cf74d515b56de0433aebf0c80872d331dd183a2.zip
dt-bindings: iio/adc: Add bindings for Ingenic JZ47xx SoCs ADC.
Add device tree bindings for the ADC controller on JZ47xx SoCs, used by the ingenic-adc driver. Signed-off-by: Artur Rojek <contact@artur-rojek.eu> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/dt-bindings/iio')
-rw-r--r--include/dt-bindings/iio/adc/ingenic,adc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dt-bindings/iio/adc/ingenic,adc.h b/include/dt-bindings/iio/adc/ingenic,adc.h
new file mode 100644
index 000000000000..82706b2706ac
--- /dev/null
+++ b/include/dt-bindings/iio/adc/ingenic,adc.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef _DT_BINDINGS_IIO_ADC_INGENIC_ADC_H
+#define _DT_BINDINGS_IIO_ADC_INGENIC_ADC_H
+
+/* ADC channel idx. */
+#define INGENIC_ADC_AUX 0
+#define INGENIC_ADC_BATTERY 1
+
+#endif