Skip to contentSkip to conversation

ARM: dts: imx6qdl-sabresd: Add touchscreen support

PATCH New Fabio Estevam 1 participant 3 messages Jul 23, 2013 – Jul 24, 2013

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/2 ARM: dts: imx6qdl-sabresd: Add touchscreen support

From: Fabio Estevam <[email protected]>

mx6 sabresd boards have a egalax touchscreen controller connected via i2c2.

Add support for it.

---
Hi Shawn,

I don't have access to a sabresd board at the moment, so could not test this.

 arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm/boot/dts/imx6qdl-sabresd.dtsi +16 -0
index 166b9ae..5124994 100644
@@ -129,6 +129,21 @@
        };
 };
 
+&i2c2 {
+	clock-frequency = <100000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c2_2>;
+	status = "okay";
+
+	egalax_ts at 04 {
+		compatible = "eeti,egalax_ts";
+		reg = <0x04>;
+		interrupt-parent = <&gpio6>;
+		interrupts = <8 2>;
+		wakeup-gpios = <&gpio6 8 0>;
+	};
+};
+
 &iomuxc {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_hog>;
@@ -143,6 +158,7 @@
 				MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000
 				MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x80000000
 				MX6QDL_PAD_GPIO_0__CCM_CLKO1    0x130b0
+				MX6QDL_PAD_NANDF_ALE__GPIO6_IO08 0x80000000
 			>;
 		};
 	};
Signature · 1 line
1.8.1.2
author reviewer
#1 lore raw

PATCH 1/2 ARM: dts: imx6qdl-sabresd: Add touchscreen support

Quoted 11 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

mx6 sabresd boards have a egalax touchscreen controller connected via i2c2.

Add support for it.

---
Hi Shawn,

I don't have access to a sabresd board at the moment, so could not test this.

Ok, I got a sabresd now and I realized that max11801 driver is also needed, so will work on it when time permits.

Regards,

Fabio Estevam

author reviewer
#2 lore raw

PATCH 2/2 ARM: imx_v6_v7_defconfig: Select CONFIG_TOUCHSCREEN_EGALAX

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

egalax touchscren controller is present on mx6 sabresd/sabrelite, so let's enable it by default.

---
 arch/arm/configs/imx_v6_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/imx_v6_v7_defconfig +1 -0
index f1662d3..9e15992 100644
@@ -127,6 +127,7 @@ CONFIG_KEYBOARD_IMX=y
 CONFIG_MOUSE_PS2=m
 CONFIG_MOUSE_PS2_ELANTECH=y
 CONFIG_INPUT_TOUCHSCREEN=y
+CONFIG_TOUCHSCREEN_EGALAX=y
 CONFIG_TOUCHSCREEN_MC13783=y
 CONFIG_INPUT_MISC=y
 CONFIG_INPUT_MMA8450=y
Signature · 1 line
1.8.1.2