dt-bindings: iio/adc: Add bindings for Ingenic JZ47xx SoCs ADC.
authorArtur Rojek <contact@artur-rojek.eu>
Mon, 4 Feb 2019 00:15:13 +0000 (01:15 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 9 Feb 2019 15:39:24 +0000 (15:39 +0000)
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>
include/dt-bindings/iio/adc/ingenic,adc.h [new file with mode: 0644]

diff --git a/include/dt-bindings/iio/adc/ingenic,adc.h b/include/dt-bindings/iio/adc/ingenic,adc.h
new file mode 100644 (file)
index 0000000..82706b2
--- /dev/null
@@ -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