From: Wang Yafei <wangyafei-PiwChjOeyQzQT0dZR+AlfA@public.gmane.org>
To: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Dmitry Torokhov
<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
"linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
andrew-PiwChjOeyQzQT0dZR+AlfA@public.gmane.org,
mouse-PiwChjOeyQzQT0dZR+AlfA@public.gmane.org
Subject: Re: [PATCH] dt-bindings: input: Add the Goodix GTx5 series Touchscreen devicetree bindings
Date: Tue, 27 Jun 2017 11:27:05 +0800 [thread overview]
Message-ID: <20170627032705.GA16627@andrew-dell> (raw)
In-Reply-To: <CAL_JsqJ6w7oEjm=i_KX8Y_axbRSdX4Q+14NQ8XaHnDevGQrS_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Mon, Jun 26, 2017 at 09:16:40AM -0500, Rob Herring wrote:
> On Mon, Jun 26, 2017 at 8:22 AM, Wang Yafei <wangyafei-PiwChjOeyQzQT0dZR+AlfA@public.gmane.org> wrote:
> > Hi Rob,
> >
> > Thank you for the review.
> >
> > On Fri, Jun 23, 2017 at 03:37:06PM -0500, Rob Herring wrote:
> >> On Mon, Jun 19, 2017 at 06:40:32PM +0800, Wang Yafei wrote:
> >> > Signed-off-by: Wang Yafei <wangyafei-PiwChjOeyQzQT0dZR+AlfA@public.gmane.org>
> >> > ---
> >> > .../bindings/input/touchscreen/goodix-gtx5.txt | 75 ++++++++++++++++++++++
> >> > 1 file changed, 75 insertions(+)
> >> > create mode 100755 Documentation/devicetree/bindings/input/touchscreen/goodix-gtx5.txt
>
> [...]
>
> >> > +- touchscreen-key-map: keycode value map /*KEY_HOMEPAGE, KEY_BACK*/
> >>
> >> This hardly seems sufficient to map screen areas to keys. There's been
> >> some discussion about doing that in the past.
> >
> > Sorry haven't notice that before, I will change it to the flowing
> > property format:
> > linux,keycodes = <KEY_HOMEPAGE>, <KEY_MENU>, <KEY_BACK>;
>
> That's better, but not really what I meant. There's still some
> assumption about what region each key is located in. Is every design 3
> keys? How do you know what region of the touchscreen is a given key?
> iOW, what are the valid ranges of coordinates for each key?
>
>
> >> > + compatible = "goodix,gtx5";
> >> > + reg = <0x14>;
> >> > + interrupt-parent = <&msm_gpio>;
> >> > + interrupts = <13 0x2800>;
> >> > + vtouch-supply = <&pm8916_l15>;
> >> > + reset-gpios = <&msm_gpio 12 0x0>;
> >> > + irq-gpios = <&msm_gpio 13 0x2800>;
> >> > + irq-flags = <1>; /* 1:trigger rising, 2:trigger falling;*/
> >> > + touchscreen-max-id = <10>;
> >> > + touchscreen-size-x = <400>;
> >> > + touchscreen-size-y = <400>;
> >> > + touchscreen-max-w = <400>;
> >> > + touchscreen-max-pressure = <255>;
> >> > + touchscreen-swapped-x-y;
> >> > + touchscreen-key-map = <172 158>; /*KEY_HOMEPAGE, KEY_BACK*/
> >> > + sensor0 {
> >>
> >> How many sensors can there be? That needs to be documented.
> >>
> >> Why do you need a sub-node?
> >
> > sensor is an internal call, we use senesorX to represent the touchpanel
> > is produced by which factory. A panel factory will have it corresponding
> > config data to get the best touch results. It will delete the sub-node
> > and change to the following format:
> > panel0,normal-cfg = [...] /* panelX,cfg : X is no more than 10*/
>
> panel0 is not a vendor and normal doesn't tell us anything. How about
> just "goodix,panel-cfg-X"?
Can I use "goodix,normal-cfg-X" rather than "goodix,panel-cfg-X"? The
string "normal-cfg" is meaningful to driver.
> Rob
> --
> To unsubscribe from this list: send the line "unsubscribe linux-input" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-06-27 3:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-19 10:40 [PATCH] dt-bindings: input: Add the Goodix GTx5 series Touchscreen devicetree bindings Wang Yafei
[not found] ` <22592d94-f482-3e4f-3860-1dce83472d4f-PiwChjOeyQzQT0dZR+AlfA@public.gmane.org>
2017-06-19 22:25 ` Bastien Nocera
2017-06-20 8:53 ` Wang Yafei
2017-06-20 9:17 ` Bastien Nocera
[not found] ` <1497950270.2559.12.camel-0MeiytkfxGOsTnJN9+BGXg@public.gmane.org>
2017-06-20 13:29 ` Wang Yafei
2017-06-23 20:37 ` Rob Herring
2017-06-26 13:22 ` Wang Yafei
2017-06-26 14:16 ` Rob Herring
[not found] ` <CAL_JsqJ6w7oEjm=i_KX8Y_axbRSdX4Q+14NQ8XaHnDevGQrS_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-06-27 3:14 ` Wang Yafei
2017-06-27 3:27 ` Wang Yafei [this message]
2017-06-30 14:46 ` 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=20170627032705.GA16627@andrew-dell \
--to=wangyafei-piwchjoeyqzqt0dzr+alfa@public.gmane.org \
--cc=andrew-PiwChjOeyQzQT0dZR+AlfA@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=mouse-PiwChjOeyQzQT0dZR+AlfA@public.gmane.org \
--cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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).