summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Cai <R63905@freescale.com>2013-06-21 10:31:16 +0800
committerRobby Cai <R63905@freescale.com>2013-06-21 16:09:23 +0800
commit1dba8872461ac0c27db5f46dd03240c60a159181 (patch)
tree305468fc8e90103657a7f1a4840a62537583c8f0
parent238f9d22fec60ed8d56e0dbea075b37d09cc7a0f (diff)
ENGR00268115-3 dts: add dts for elan touchscreen
Add elan touchscreen device tree and the dts document. Signed-off-by: Robby Cai <R63905@freescale.com>
-rw-r--r--Documentation/devicetree/bindings/input/touchscreen/elan-ts.txt23
-rw-r--r--arch/arm/boot/dts/imx6dl-sabresd.dts20
2 files changed, 42 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/input/touchscreen/elan-ts.txt b/Documentation/devicetree/bindings/input/touchscreen/elan-ts.txt
new file mode 100644
index 000000000000..71253bbd2712
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/elan-ts.txt
@@ -0,0 +1,23 @@
+* ELAN Resistive Touch Controller
+
+Required properties:
+- compatible: must be "elan,elan-touch"
+- reg: i2c slave address
+- interrupt-parent: the phandle for the interrupt controller
+- interrupts: touch controller interrupt
+- gpio_elan_cs: the gpio pin for chip select
+- gpio_elan_rst: the gpio pin for chip reset
+- gpio_intr: the gpio pin to be used for interrupt pin
+
+Example:
+
+ elan@10 {
+ compatible = "elan,elan-touch";
+ reg = <0x10>;
+ interrupt-parent = <&gpio3>;
+ interrupts = <28 3>;
+ gpio_elan_cs = <&gpio2 18 0>;
+ gpio_elan_rst = <&gpio3 8 0>;
+ gpio_intr = <&gpio3 28 0>;
+ status = "okay";
+ };
diff --git a/arch/arm/boot/dts/imx6dl-sabresd.dts b/arch/arm/boot/dts/imx6dl-sabresd.dts
index a0bcbb9ffe7d..12f7fe87c875 100644
--- a/arch/arm/boot/dts/imx6dl-sabresd.dts
+++ b/arch/arm/boot/dts/imx6dl-sabresd.dts
@@ -58,6 +58,10 @@
MX6DL_PAD_EIM_D20__GPIO3_IO20 0x80000000
MX6DL_PAD_EIM_A18__GPIO2_IO20 0x80000000
MX6DL_PAD_EIM_OE__GPIO2_IO25 0x80000000
+ /* elan touch */
+ MX6DL_PAD_EIM_A20__GPIO2_IO18 0x80000000
+ MX6DL_PAD_EIM_DA8__GPIO3_IO08 0x80000000
+ MX6DL_PAD_EIM_D28__GPIO3_IO28 0x80000000
>;
};
};
@@ -81,6 +85,21 @@
};
};
+ aips-bus@02100000 { /* AIPS2 */
+ i2c@021a8000 { /* I2C3 */
+ elan@10 {
+ compatible = "elan,elan-touch";
+ reg = <0x10>;
+ interrupt-parent = <&gpio3>;
+ interrupts = <28 3>;
+ gpio_elan_cs = <&gpio2 18 0>;
+ gpio_elan_rst = <&gpio3 8 0>;
+ gpio_intr = <&gpio3 28 0>;
+ status = "okay";
+ };
+ };
+ };
+
ahci@02200000 { /* AHCI SATA */
status = "disabled";
};
@@ -97,5 +116,4 @@
mxcfb2: fb@1 {
status = "okay";
};
-
};