diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2018-05-22 09:52:37 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-06-10 14:28:12 +0200 |
commit | a591525f43e7d17dc5f94f314d30f6e4da753d7b (patch) | |
tree | 30939fc3e3f63748c820d280aeeb010d2f1fed0e /include/dt-bindings | |
parent | input: touchscreen: resistive-adc-touch: add generic resistive ADC touchscreen (diff) | |
download | linux-a591525f43e7d17dc5f94f314d30f6e4da753d7b.tar.xz linux-a591525f43e7d17dc5f94f314d30f6e4da753d7b.zip |
dt-bindings: iio: adc: at91-sama5d2_adc: add channel specific consumer info
Added defines for channel consumer device-tree binding
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/dt-bindings')
-rw-r--r-- | include/dt-bindings/iio/adc/at91-sama5d2_adc.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/dt-bindings/iio/adc/at91-sama5d2_adc.h b/include/dt-bindings/iio/adc/at91-sama5d2_adc.h new file mode 100644 index 000000000000..70f99dbdbb42 --- /dev/null +++ b/include/dt-bindings/iio/adc/at91-sama5d2_adc.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * This header provides constants for configuring the AT91 SAMA5D2 ADC + */ + +#ifndef _DT_BINDINGS_IIO_ADC_AT91_SAMA5D2_ADC_H +#define _DT_BINDINGS_IIO_ADC_AT91_SAMA5D2_ADC_H + +/* X relative position channel index */ +#define AT91_SAMA5D2_ADC_X_CHANNEL 24 +/* Y relative position channel index */ +#define AT91_SAMA5D2_ADC_Y_CHANNEL 25 +/* pressure channel index */ +#define AT91_SAMA5D2_ADC_P_CHANNEL 26 + +#endif |