Linux Input/HID development
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Ahmet Inan <inan@distec.de>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Ahmet Inan <xdsopl@gmail.com>,
	linux-input@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] Input: Add I2C attached EETI EXC3000 multi touch driver
Date: Thu, 5 Oct 2017 18:22:28 -0500	[thread overview]
Message-ID: <20171005232228.5m2mxxtdkgavnrs6@rob-hp-laptop> (raw)
In-Reply-To: <20170928152317.19098-1-inan@distec.de>

On Thu, Sep 28, 2017 at 05:23:17PM +0200, Ahmet Inan wrote:
> The 3000 series have a new protocol which allows to report up to 5 points
> in a single 66 byte frame. One must always read in 66 byte frames.
> To support up to 10 points, two consecutive frames need to be read:
> The first frame says how many points until sync.
> The second frame must say zero points or both frames must be discarded.
> 
> To be able to work with the higher 400KHz I2C bus rate, one must
> successfully send a special package prior _each_ read or the controller
> will refuse to cooperate.
> 
> This is a minimal implementation based on egalax_i2c.c (which can be found
> on the internet) and egalax_ts.c but without the vendor interface and no
> power management support.
> 
> Signed-off-by: Ahmet Inan <inan@distec.de>
> ---
>  .../bindings/input/touchscreen/exc3000.txt         |  27 ++++

Please split to separate patch.

>  drivers/input/touchscreen/Kconfig                  |  10 ++
>  drivers/input/touchscreen/Makefile                 |   1 +
>  drivers/input/touchscreen/exc3000.c                | 173 +++++++++++++++++++++
>  4 files changed, 211 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/input/touchscreen/exc3000.txt
>  create mode 100644 drivers/input/touchscreen/exc3000.c
> 
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/exc3000.txt b/Documentation/devicetree/bindings/input/touchscreen/exc3000.txt
> new file mode 100644
> index 000000000000..d2a78e83e921
> --- /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:
> +
> +	exc3000@2a {

touchscreen@2a

> +		compatible = "eeti,exc3000";
> +		reg = <0x2a>;
> +		interrupt-parent = <&gpio1>;
> +		interrupts = <9 8>; // active low level-sensitive

Use the defines for flags.

> +		touchscreen-size-x = <4096>;
> +		touchscreen-size-y = <4096>;
> +		touchscreen-inverted-x;
> +		touchscreen-swapped-x-y;
> +	};

  reply	other threads:[~2017-10-05 23:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28 15:23 [PATCH] Input: Add I2C attached EETI EXC3000 multi touch driver Ahmet Inan
2017-10-05 23:22 ` Rob Herring [this message]
2017-10-06  7:43   ` DISTEC Inan, Ahmet
  -- strict thread matches above, loose matches on Subject: below --
2017-09-27 12:36 Ahmet Inan
2017-09-25 14:39 Ahmet Inan
2017-09-27  6:08 ` Dmitry Torokhov
2017-09-27 12:58   ` DISTEC Inan, Ahmet
2017-09-22 14:46 Ahmet Inan
2017-09-22 12:30 Ahmet Inan
2017-09-20 13:51 Ahmet Inan
2017-09-21 21:15 ` Dmitry Torokhov
2017-09-22 12:48   ` DISTEC Inan, Ahmet
2017-09-22 14:18     ` DISTEC Inan, Ahmet
2017-09-22 14:52       ` DISTEC Inan, Ahmet
2017-09-25 14:59     ` DISTEC Inan, Ahmet
2017-09-28 13:42     ` DISTEC Inan, Ahmet

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=20171005232228.5m2mxxtdkgavnrs6@rob-hp-laptop \
    --to=robh@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=inan@distec.de \
    --cc=linux-input@vger.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