[2/2] dt-bindings: Add I2C attached EETI EXC3000 bindings

Message ID 20171006073728.14724-2-inan@distec.de
State Not Applicable
Headers show
Series
  • Untitled series #6775
Related show

Commit Message

DISTEC Inan, Ahmet Oct. 6, 2017, 7:37 a.m.
This documents the use of the dt-bindings for the EETI EXC3000 driver
with the following example configuration:

Using the I2C address 0x2a of the touch controller in the driver.

Using pin 9 as low level-sensitive interrupt to signal the driver.

Using a 4096x4096 touch screen resolution.

Inverting the x-axis and swapping the result with the y-axis.

Signed-off-by: Ahmet Inan <inan@distec.de>
---
 .../bindings/input/touchscreen/exc3000.txt         | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/touchscreen/exc3000.txt

Comments

Rob Herring Oct. 13, 2017, 6:58 p.m. | #1
On Fri, Oct 06, 2017 at 09:37:28AM +0200, Ahmet Inan wrote:
> This documents the use of the dt-bindings for the EETI EXC3000 driver
> with the following example configuration:
> 
> Using the I2C address 0x2a of the touch controller in the driver.
> 
> Using pin 9 as low level-sensitive interrupt to signal the driver.
> 
> Using a 4096x4096 touch screen resolution.
> 
> Inverting the x-axis and swapping the result with the y-axis.
> 
> Signed-off-by: Ahmet Inan <inan@distec.de>
> ---
>  .../bindings/input/touchscreen/exc3000.txt         | 27 ++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/input/touchscreen/exc3000.txt

Acked-by: Rob Herring <robh@kernel.org>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/Documentation/devicetree/bindings/input/touchscreen/exc3000.txt b/Documentation/devicetree/bindings/input/touchscreen/exc3000.txt
new file mode 100644
index 000000000000..1dcff4a43eaa
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/exc3000.txt
@@ -0,0 +1,27 @@ 
+* EETI EXC3000 Multiple Touch Controller
+
+Required properties:
+- compatible: must be "eeti,exc3000"
+- reg: i2c slave address
+- interrupt-parent: the phandle for the interrupt controller
+- interrupts: touch controller interrupt
+- touchscreen-size-x: See touchscreen.txt
+- touchscreen-size-y: See touchscreen.txt
+
+Optional properties:
+- touchscreen-inverted-x: See touchscreen.txt
+- touchscreen-inverted-y: See touchscreen.txt
+- touchscreen-swapped-x-y: See touchscreen.txt
+
+Example:
+
+	touchscreen@2a {
+		compatible = "eeti,exc3000";
+		reg = <0x2a>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
+		touchscreen-size-x = <4096>;
+		touchscreen-size-y = <4096>;
+		touchscreen-inverted-x;
+		touchscreen-swapped-x-y;
+	};