]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Input: exc3000 - add EXC81W32 support
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 10 Jul 2024 10:28:32 +0000 (12:28 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 Jul 2024 16:58:35 +0000 (09:58 -0700)
Add support for EXC81W32 controllers.

Tested with firmware reported as type "PCAP81X32 Series",
model "Orion_0183_1019", fw_version "8001280G".

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20240710-input-exc3000-exc81w32-v3-2-4272183628b4@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/exc3000.c

index a4030cc9ff60d7031e4f988f7446491dafcfc0ea..2e77cfb63f32a1a6194510a04600ddbf6f21d740 100644 (file)
@@ -53,6 +53,7 @@ enum eeti_dev_id {
        EETI_EXC3000,
        EETI_EXC80H60,
        EETI_EXC80H84,
+       EETI_EXC81W32,
 };
 
 static struct eeti_dev_info exc3000_info[] = {
@@ -68,6 +69,10 @@ static struct eeti_dev_info exc3000_info[] = {
                .name = "EETI EXC80H84 Touch Screen",
                .max_xy = SZ_16K - 1,
        },
+       [EETI_EXC81W32] = {
+               .name = "EETI EXC81W32 Touch Screen",
+               .max_xy = SZ_16K - 1,
+       },
 };
 
 struct exc3000_data {
@@ -441,6 +446,7 @@ static const struct i2c_device_id exc3000_id[] = {
        { "exc3000", EETI_EXC3000 },
        { "exc80h60", EETI_EXC80H60 },
        { "exc80h84", EETI_EXC80H84 },
+       { "exc81w32", EETI_EXC81W32 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, exc3000_id);
@@ -450,6 +456,7 @@ static const struct of_device_id exc3000_of_match[] = {
        { .compatible = "eeti,exc3000", .data = &exc3000_info[EETI_EXC3000] },
        { .compatible = "eeti,exc80h60", .data = &exc3000_info[EETI_EXC80H60] },
        { .compatible = "eeti,exc80h84", .data = &exc3000_info[EETI_EXC80H84] },
+       { .compatible = "eeti,exc81w32", .data = &exc3000_info[EETI_EXC81W32] },
        { }
 };
 MODULE_DEVICE_TABLE(of, exc3000_of_match);