kernel-ark/include/dt-bindings/iio/adi,ad5592r.h
Paul Cercueil 56ca9db862 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>
2016-04-10 14:29:06 +01:00

17 lines
375 B
C

#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 */