Thread (1 message) 1 message, 1 author, 2015-03-04

Re: [PATCH 2/2] input: goodix: Add device tree support for 5-finger chips

From: Aleksei Mamlin <hidden>
Date: 2015-03-04 17:53:36
Also in: linux-devicetree

On Wed, 04 Mar 2015 10:19:08 +0100
Bastien Nocera [off-list ref] wrote:
On Wed, 2015-03-04 at 11:34 +0300, Aleksei Mamlin wrote:
quoted
This patch adds device tree support for 5-finger chips, like GT911 
and GT912.
You should add the same support to the ACPI matching.
Hi Bastien,

I never seen ACPI ids for GT911 or GT912. It seems they are used only on Andriod tablets.
<snip>
quoted
 #ifdef CONFIG_OF
 static struct of_device_id goodix_of_match[] = {
-       { .compatible = "goodix,gt9110" },
-       { .compatible = "goodix,gt927" },
-       { .compatible = "goodix,gt9271" },
-       { .compatible = "goodix,gt928" },
-       { .compatible = "goodix,gt967" },
+       { .compatible = "goodix,gt911",  .data = (void *) 5 },
+       { .compatible = "goodix,gt9110", .data = (void *) 10 },
There's no need to add "10" for these tablets as it's already the 
GOODIX_MAX_CONTACTS value. Or you need to add it to every instance.
Antonio Ospite showed me another way to set the max number of touch points.
I would also like a link to the spec sheets in the commit message.
quoted
+       { .compatible = "goodix,gt912",  .data = (void *) 5 },
+       { .compatible = "goodix,gt927",  .data = (void *) 10 },
+       { .compatible = "goodix,gt9271", .data = (void *) 10 },
+       { .compatible = "goodix,gt928",  .data = (void *) 10 },
+       { .compatible = "goodix,gt967",  .data = (void *) 10 },
        { }
 };
 MODULE_DEVICE_TABLE(of, goodix_of_match);

-- 
Thanks and regards,
Aleksei Mamlin
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help