From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Oreste Salerno <oreste.salerno@tomtom.com>
Cc: Rob Herring <robh@kernel.org>,
linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
fery@cypress.com, pawel.moll@arm.com, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v3 2/3] Input: cyttsp - add device tree bindings
Date: Mon, 11 Jan 2016 10:45:50 -0800 [thread overview]
Message-ID: <20160111184550.GB22646@dtor-ws> (raw)
In-Reply-To: <20160111175422.GA17070@nl1lxl-107192.ttg.global>
On Mon, Jan 11, 2016 at 06:54:23PM +0100, Oreste Salerno wrote:
> On Sun, Jan 10, 2016 at 09:01:56PM -0600, Rob Herring wrote:
> > On Sun, Jan 10, 2016 at 06:36:08PM +0100, Oreste Salerno wrote:
> > > Signed-off-by: Oreste Salerno <oreste.salerno@tomtom.com>
> > > ---
> > > .../bindings/input/touchscreen/cyttsp.txt | 82 +++++++++++++
> > > drivers/input/touchscreen/cyttsp_core.c | 134 +++++++++++++++++++--
> > > include/linux/input/cyttsp.h | 3 +
> > > 3 files changed, 212 insertions(+), 7 deletions(-)
> > > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/cyttsp.txt
> > >
> > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/cyttsp.txt b/Documentation/devicetree/bindings/input/touchscreen/cyttsp.txt
> > > new file mode 100644
> > > index 0000000..2dc5c65
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/input/touchscreen/cyttsp.txt
> > > @@ -0,0 +1,82 @@
> > > +* Cypress cyttsp touchscreen controller
> > > +
> > > +Required properties:
> > > +- compatible : must be "cypress,cyttsp-i2c" or "cypress,cyttsp-spi"
> > > +- reg : Device I2C address or SPI chip select number
> > > +- spi-max-frequency : Maximum SPI clocking speed of the device (for cyttsp-spi)
> > > +- interrupt-parent : the phandle for the gpio controller
> > > + (see interrupt binding[0]).
> > > +- interrupts : (gpio) interrupt to which the chip is connected
> > > + (see interrupt binding[0]).
> > > +- reset-gpios : the reset gpio the chip is connected to
> > > + (see GPIO binding[1] for more details).
> > > +- touchscreen-size-x : horizontal resolution of touchscreen (in pixels)
> > > +- touchscreen-size-y : vertical resolution of touchscreen (in pixels)
> > > +- bootloader-key : the 8-byte bootloader key that is required to switch
> > > + the chip from bootloader mode (default mode) to
> > > + application mode.
> > > + This property has to be specified as an array of 8
> > > + '/bits/ 8' values.
> > > +
> > > +Optional properties:
> > > +- active-distance : the distance in pixels beyond which a touch must move
> > > + before movement is detected and reported by the device.
> > > + Valid values: 0-15.
> >
> > Wouldn't this be the same as touchscreen-fuzz-(x|y) which is the
> > replacement for the deprecated moving-threshold?
> >
>
> It is somewhat related. But I understand that the touchscreen-fuzz-(x|y) properties
> are meant to be used as parameters passed to input_set_abs_params(), which are used
> for a SW-based jitter filtering.
> The active-distance value instead is used to set a HW register in the chip which
> effectively performs the filtering in the HW.
> The driver is currently passing 0 as fuzz parameter to input_set_abs_params().
It doe snot have to and it will not if you use
touchscreen_parse_properties(). But you are right, fuzz is reserved for
software de-jittering, and it can be changed at any time from userspace
at input device level, but will not be communicated to the hardware. I
think hardware-based filtering is hardware-specific and I think
having a separate property is fine for it. We can still standardize on
name, units, etc though.
>
> > > +- active-interval-ms : the minimum period in ms between consecutive
> > > + scanning/processing cycles when the chip is in active mode.
> > > + Valid values: 0-255.
> > > +- lowpower-interval-ms : the minimum period in ms between consecutive
> > > + scanning/processing cycles when the chip is in low-power mode.
> > > + Valid values: 0-2550
> > > +- touch-timeout-ms : minimum time in ms spent in the active power state while no
> > > + touches are detected before entering low-power mode.
> > > + Valid values: 0-2550
> > > +
> >
> > Otherwise, looks fine.
>
> I am still waiting for a review from the driver maintainer (Ferruh Yigit), but I see
> that he hasn't been actively reviewing patches for the cyttsp* drivers for a while.
> I wonder what would be the process in this case?
Please address the items from my other email and I should be able to
pick it up.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2016-01-11 18:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-10 17:36 [PATCH v3 0/3] Add device tree support to the cyttsp driver Oreste Salerno
2016-01-10 17:36 ` [PATCH v3 1/3] Input: cyttsp - remove unused irq_gpio from platform_data Oreste Salerno
[not found] ` <cover.1452447124.git.oreste.salerno-Jdzig1fPfSTQT0dZR+AlfA@public.gmane.org>
2016-01-10 17:36 ` [PATCH v3 2/3] Input: cyttsp - add device tree bindings Oreste Salerno
2016-01-11 3:01 ` Rob Herring
2016-01-11 17:54 ` Oreste Salerno
2016-01-11 18:45 ` Dmitry Torokhov [this message]
2016-01-11 19:01 ` Oreste Salerno
2016-01-11 23:51 ` Rob Herring
[not found] ` <dd329fe3420fba4049c353a9a092ff9c45c5a252.1452447124.git.oreste.salerno-Jdzig1fPfSTQT0dZR+AlfA@public.gmane.org>
2016-01-11 18:30 ` Dmitry Torokhov
2016-01-10 17:36 ` [PATCH v3 3/3] Input: cyttsp - add default init function Oreste Salerno
[not found] ` <01aa2661875444ecc771dfce1f466b6846ac5eea.1452447124.git.oreste.salerno-Jdzig1fPfSTQT0dZR+AlfA@public.gmane.org>
2016-01-11 20:02 ` Dmitry Torokhov
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=20160111184550.GB22646@dtor-ws \
--to=dmitry.torokhov@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=fery@cypress.com \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=oreste.salerno@tomtom.com \
--cc=pawel.moll@arm.com \
--cc=robh@kernel.org \
/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).