From: Ahmet Inan <inan@distec.de>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Ahmet Inan <xdsopl@gmail.com>,
linux-input@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,
devicetree@vger.kernel.org, Ahmet Inan <inan@distec.de>
Subject: [PATCH 2/2] dt-bindings: Add I2C attached EETI EXC3000 bindings
Date: Fri, 6 Oct 2017 09:37:28 +0200 [thread overview]
Message-ID: <20171006073728.14724-2-inan@distec.de> (raw)
In-Reply-To: <20171006073728.14724-1-inan@distec.de>
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
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;
+ };
--
2.11.0
next prev parent reply other threads:[~2017-10-06 7:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-06 7:37 [PATCH 1/2] Input: Add I2C attached EETI EXC3000 multi touch driver Ahmet Inan
2017-10-06 7:37 ` Ahmet Inan [this message]
[not found] ` <20171006073728.14724-2-inan-T/gOFcTbiWqzQB+pC5nmwQ@public.gmane.org>
2017-10-13 18:58 ` [PATCH 2/2] dt-bindings: Add I2C attached EETI EXC3000 bindings Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171006073728.14724-2-inan@distec.de \
--to=inan@distec.de \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=xdsopl@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).