mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 22:14:51 +07:00
56ca9db862
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>
17 lines
375 B
C
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 */
|