diff mbox series

[v8,5/6] dt-bindings: iio/adc: Add touchscreen idx for JZ47xx SoC ADC

Message ID 20200709152200.10039-6-contact@artur-rojek.eu (mailing list archive)
State New, archived
Headers show
Series iio/adc: ingenic: Cleanups & add touchscreen mode. | expand

Commit Message

Artur Rojek July 9, 2020, 3:21 p.m. UTC
Introduce support for touchscreen channels found in JZ47xx SoCs.

Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
Tested-by: Paul Cercueil <paul@crapouillou.net>
---

 Changes:

 v2-v7: no change

 v8: add XN/YN and XD/YD channels

 include/dt-bindings/iio/adc/ingenic,adc.h | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Rob Herring (Arm) July 9, 2020, 8:24 p.m. UTC | #1
On Thu, 09 Jul 2020 17:21:59 +0200, Artur Rojek wrote:
> Introduce support for touchscreen channels found in JZ47xx SoCs.
> 
> Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
> Tested-by: Paul Cercueil <paul@crapouillou.net>
> ---
> 
>  Changes:
> 
>  v2-v7: no change
> 
>  v8: add XN/YN and XD/YD channels
> 
>  include/dt-bindings/iio/adc/ingenic,adc.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/include/dt-bindings/iio/adc/ingenic,adc.h b/include/dt-bindings/iio/adc/ingenic,adc.h
index 42f871ab3272..4627a00e369e 100644
--- a/include/dt-bindings/iio/adc/ingenic,adc.h
+++ b/include/dt-bindings/iio/adc/ingenic,adc.h
@@ -7,5 +7,11 @@ 
 #define INGENIC_ADC_AUX		0
 #define INGENIC_ADC_BATTERY	1
 #define INGENIC_ADC_AUX2	2
+#define INGENIC_ADC_TOUCH_XP	3
+#define INGENIC_ADC_TOUCH_YP	4
+#define INGENIC_ADC_TOUCH_XN	5
+#define INGENIC_ADC_TOUCH_YN	6
+#define INGENIC_ADC_TOUCH_XD	7
+#define INGENIC_ADC_TOUCH_YD	8
 
 #endif