ARM: dts: cm-t335: add touchscreen support
authorUri Mashiach <uri.mashiach@compulab.co.il>
Wed, 30 Dec 2015 11:41:34 +0000 (13:41 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 27 Jan 2016 18:32:41 +0000 (10:32 -0800)
Touchscreen and analog digital converter configurations.

Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-cm-t335.dts

index 93997a2..f0c880f 100644 (file)
@@ -424,3 +424,20 @@ status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&dcan1_pins>;
 };
+
+/* Touschscreen and analog digital converter */
+&tscadc {
+       status = "okay";
+       tsc {
+               ti,wires = <4>;
+               ti,x-plate-resistance = <200>;
+               ti,coordinate-readouts = <5>;
+               ti,wire-config = <0x01 0x10 0x23 0x32>;
+               ti,charge-delay = <0x400>;
+       };
+
+       adc {
+               ti,adc-channels = <4 5 6 7>;
+       };
+};
+