linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Input: exc3000 - EXC81W32 controller support
@ 2024-07-10 10:28 Philipp Zabel
  2024-07-10 10:28 ` [PATCH v3 1/2] dt-bindings: input: touchscreen: exc3000: add EXC81W32 Philipp Zabel
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Philipp Zabel @ 2024-07-10 10:28 UTC (permalink / raw)
  To: Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-input, devicetree, linux-kernel, kernel, Philipp Zabel

EXC81W32 controllers use the same protocol and have the same resolution
as the EXC80 controllers. They can be supported by the exc3000 driver
with minimal changes.

Their featureset may differ, though. Looking at the messages, it appears
the EXC81 also supports touch pressure or area measurement, for example.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
Changes in v3:
- mark exc81w32 as compatible with exc80h84
- Link to v2: https://lore.kernel.org/r/20240628-input-exc3000-exc81w32-v2-0-c2b21a369c05@pengutronix.de

Changes in v2:
- split device tree binding compatible update out of the driver patch
- Link to v1: https://lore.kernel.org/r/20240626-input-exc3000-exc81w32-v1-1-ac42d3b87aff@pengutronix.de

---
Philipp Zabel (2):
      dt-bindings: input: touchscreen: exc3000: add EXC81W32
      Input: exc3000 - add EXC81W32 support

 .../devicetree/bindings/input/touchscreen/eeti,exc3000.yaml  | 12 ++++++++----
 drivers/input/touchscreen/exc3000.c                          |  7 +++++++
 2 files changed, 15 insertions(+), 4 deletions(-)
---
base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
change-id: 20240626-input-exc3000-exc81w32-58585ba4a98f

Best regards,
-- 
Philipp Zabel <p.zabel@pengutronix.de>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v3 1/2] dt-bindings: input: touchscreen: exc3000: add EXC81W32
  2024-07-10 10:28 [PATCH v3 0/2] Input: exc3000 - EXC81W32 controller support Philipp Zabel
@ 2024-07-10 10:28 ` Philipp Zabel
  2024-07-10 13:52   ` Conor Dooley
  2024-07-10 10:28 ` [PATCH v3 2/2] Input: exc3000 - add EXC81W32 support Philipp Zabel
  2024-07-11 16:59 ` [PATCH v3 0/2] Input: exc3000 - EXC81W32 controller support Dmitry Torokhov
  2 siblings, 1 reply; 5+ messages in thread
From: Philipp Zabel @ 2024-07-10 10:28 UTC (permalink / raw)
  To: Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-input, devicetree, linux-kernel, kernel, Philipp Zabel

Add compatible for EXC81W32 touchscreen controllers.
They use the same protocol and have the same resolution as EXC80H84.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
v3: Mark exc81w32 as compatible with exc80h84.
---
 .../devicetree/bindings/input/touchscreen/eeti,exc3000.yaml  | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml b/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml
index 9dc25d30a0a8..1c7ae05a8c15 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml
@@ -14,10 +14,14 @@ allOf:
 
 properties:
   compatible:
-    enum:
-      - eeti,exc3000
-      - eeti,exc80h60
-      - eeti,exc80h84
+    oneOf:
+      - const: eeti,exc3000
+      - const: eeti,exc80h60
+      - const: eeti,exc80h84
+      - items:
+          - enum:
+              - eeti,exc81w32
+          - const: eeti,exc80h84
   reg:
     const: 0x2a
   interrupts:

-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v3 2/2] Input: exc3000 - add EXC81W32 support
  2024-07-10 10:28 [PATCH v3 0/2] Input: exc3000 - EXC81W32 controller support Philipp Zabel
  2024-07-10 10:28 ` [PATCH v3 1/2] dt-bindings: input: touchscreen: exc3000: add EXC81W32 Philipp Zabel
@ 2024-07-10 10:28 ` Philipp Zabel
  2024-07-11 16:59 ` [PATCH v3 0/2] Input: exc3000 - EXC81W32 controller support Dmitry Torokhov
  2 siblings, 0 replies; 5+ messages in thread
From: Philipp Zabel @ 2024-07-10 10:28 UTC (permalink / raw)
  To: Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-input, devicetree, linux-kernel, kernel, Philipp Zabel

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>
---
v2: split device tree binding compatible update out of this patch
---
 drivers/input/touchscreen/exc3000.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/input/touchscreen/exc3000.c b/drivers/input/touchscreen/exc3000.c
index a4030cc9ff60..2e77cfb63f32 100644
--- a/drivers/input/touchscreen/exc3000.c
+++ b/drivers/input/touchscreen/exc3000.c
@@ -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);

-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v3 1/2] dt-bindings: input: touchscreen: exc3000: add EXC81W32
  2024-07-10 10:28 ` [PATCH v3 1/2] dt-bindings: input: touchscreen: exc3000: add EXC81W32 Philipp Zabel
@ 2024-07-10 13:52   ` Conor Dooley
  0 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2024-07-10 13:52 UTC (permalink / raw)
  To: Philipp Zabel
  Cc: Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-input, devicetree, linux-kernel, kernel

[-- Attachment #1: Type: text/plain, Size: 1391 bytes --]

On Wed, Jul 10, 2024 at 12:28:31PM +0200, Philipp Zabel wrote:
> Add compatible for EXC81W32 touchscreen controllers.
> They use the same protocol and have the same resolution as EXC80H84.
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
> ---
> v3: Mark exc81w32 as compatible with exc80h84.
> ---
>  .../devicetree/bindings/input/touchscreen/eeti,exc3000.yaml  | 12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml b/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml
> index 9dc25d30a0a8..1c7ae05a8c15 100644
> --- a/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml
> +++ b/Documentation/devicetree/bindings/input/touchscreen/eeti,exc3000.yaml
> @@ -14,10 +14,14 @@ allOf:
>  
>  properties:
>    compatible:
> -    enum:
> -      - eeti,exc3000
> -      - eeti,exc80h60
> -      - eeti,exc80h84
> +    oneOf:
> +      - const: eeti,exc3000
> +      - const: eeti,exc80h60
> +      - const: eeti,exc80h84

This portion could've remained an enum.
Acked-by: Conor Dooley <conor.dooley@microchip.com>

Cheers,
Conor.

> +      - items:
> +          - enum:
> +              - eeti,exc81w32
> +          - const: eeti,exc80h84
>    reg:
>      const: 0x2a
>    interrupts:
> 
> -- 
> 2.39.2
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v3 0/2] Input: exc3000 - EXC81W32 controller support
  2024-07-10 10:28 [PATCH v3 0/2] Input: exc3000 - EXC81W32 controller support Philipp Zabel
  2024-07-10 10:28 ` [PATCH v3 1/2] dt-bindings: input: touchscreen: exc3000: add EXC81W32 Philipp Zabel
  2024-07-10 10:28 ` [PATCH v3 2/2] Input: exc3000 - add EXC81W32 support Philipp Zabel
@ 2024-07-11 16:59 ` Dmitry Torokhov
  2 siblings, 0 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2024-07-11 16:59 UTC (permalink / raw)
  To: Philipp Zabel
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-input,
	devicetree, linux-kernel, kernel

On Wed, Jul 10, 2024 at 12:28:30PM +0200, Philipp Zabel wrote:
> EXC81W32 controllers use the same protocol and have the same resolution
> as the EXC80 controllers. They can be supported by the exc3000 driver
> with minimal changes.
> 
> Their featureset may differ, though. Looking at the messages, it appears
> the EXC81 also supports touch pressure or area measurement, for example.

Applied the series, thank you.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-11 16:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-10 10:28 [PATCH v3 0/2] Input: exc3000 - EXC81W32 controller support Philipp Zabel
2024-07-10 10:28 ` [PATCH v3 1/2] dt-bindings: input: touchscreen: exc3000: add EXC81W32 Philipp Zabel
2024-07-10 13:52   ` Conor Dooley
2024-07-10 10:28 ` [PATCH v3 2/2] Input: exc3000 - add EXC81W32 support Philipp Zabel
2024-07-11 16:59 ` [PATCH v3 0/2] Input: exc3000 - EXC81W32 controller support Dmitry Torokhov

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).