summaryrefslogtreecommitdiff
path: root/include/dt-bindings/iio
diff options
context:
space:
mode:
authorPaul Cercueil <paul.cercueil@analog.com>2016-04-05 10:46:19 +0300
committerJonathan Cameron <jic23@kernel.org>2016-04-10 16:29:06 +0300
commit56ca9db862bf3d78e279d424b3434d66617c27ae (patch)
tree17bb8afecced84e47b38c468eae026d306090d95 /include/dt-bindings/iio
parent5ea9274b8613f87120bfa6b0c0abc384c26cefb9 (diff)
downloadlinux-56ca9db862bf3d78e279d424b3434d66617c27ae.tar.xz
iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs
This patch adds support for the AD5592R (spi) and AD5593R (i2c) ADC/DAC/GPIO devices. Signed-off-by: Paul Cercueil <paul.cercueil@analog.com> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/dt-bindings/iio')
-rw-r--r--include/dt-bindings/iio/adi,ad5592r.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/dt-bindings/iio/adi,ad5592r.h b/include/dt-bindings/iio/adi,ad5592r.h
new file mode 100644
index 000000000000..c48aca1dcade
--- /dev/null
+++ b/include/dt-bindings/iio/adi,ad5592r.h
@@ -0,0 +1,16 @@
+
+#ifndef _DT_BINDINGS_ADI_AD5592R_H
+#define _DT_BINDINGS_ADI_AD5592R_H
+
+#define CH_MODE_UNUSED 0
+#define CH_MODE_ADC 1
+#define CH_MODE_DAC 2
+#define CH_MODE_DAC_AND_ADC 3
+#define CH_MODE_GPIO 8
+
+#define CH_OFFSTATE_PULLDOWN 0
+#define CH_OFFSTATE_OUT_LOW 1
+#define CH_OFFSTATE_OUT_HIGH 2
+#define CH_OFFSTATE_OUT_TRISTATE 3
+
+#endif /* _DT_BINDINGS_ADI_AD5592R_H */