Devicetree
 help / color / mirror / Atom feed
* [PATCH v1 0/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing
@ 2024-07-04  8:55 Zhaoxiong Lv
  2024-07-04  8:55 ` [PATCH v1 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Elan ekth6a12nay Zhaoxiong Lv
  2024-07-04  8:55 ` [PATCH v1 2/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing Zhaoxiong Lv
  0 siblings, 2 replies; 6+ messages in thread
From: Zhaoxiong Lv @ 2024-07-04  8:55 UTC (permalink / raw)
  To: dmitry.torokhov, robh, krzk+dt, conor+dt, jikos, bentiss,
	linus.walleij, dianders, hsinyi
  Cc: dri-devel, devicetree, linux-kernel, Zhaoxiong Lv

Elan-ekth6a12nay requires reset to pull down time greater than 10ms,
so the configuration post_power_delay_ms is 10, and the chipset
initial time is required to be greater than 300ms,
so the post_gpio_reset_on_delay_ms is set to 300.

Zhaoxiong Lv (2):
  dt-bindings: HID: i2c-hid: elan: Introduce Elan ekth6a12nay
  HID: i2c-hid: elan: Add elan-ekth6a12nay timing

 .../devicetree/bindings/input/elan,ekth6915.yaml          | 1 +
 drivers/hid/i2c-hid/i2c-hid-of-elan.c                     | 8 ++++++++
 2 files changed, 9 insertions(+)

-- 
2.17.1


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

* [PATCH v1 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Elan ekth6a12nay
  2024-07-04  8:55 [PATCH v1 0/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing Zhaoxiong Lv
@ 2024-07-04  8:55 ` Zhaoxiong Lv
  2024-07-04 16:43   ` Conor Dooley
  2024-07-12 16:25   ` Benjamin Tissoires
  2024-07-04  8:55 ` [PATCH v1 2/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing Zhaoxiong Lv
  1 sibling, 2 replies; 6+ messages in thread
From: Zhaoxiong Lv @ 2024-07-04  8:55 UTC (permalink / raw)
  To: dmitry.torokhov, robh, krzk+dt, conor+dt, jikos, bentiss,
	linus.walleij, dianders, hsinyi
  Cc: dri-devel, devicetree, linux-kernel, Zhaoxiong Lv

The Elan ekth6a12nay touch screen chip same as Elan eKTH6915 controller
has a reset gpio. The difference is that they have different
post_power_delay_ms.

Signed-off-by: Zhaoxiong Lv <lvzhaoxiong@huaqin.corp-partner.google.com>
---
 Documentation/devicetree/bindings/input/elan,ekth6915.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml
index dc4ac41f2441..0bbf9dd7636e 100644
--- a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml
+++ b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml
@@ -20,6 +20,7 @@ properties:
   compatible:
     enum:
       - elan,ekth6915
+      - elan,ekth6a12nay
       - ilitek,ili2901
 
   reg:
-- 
2.17.1


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

* [PATCH v1 2/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing
  2024-07-04  8:55 [PATCH v1 0/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing Zhaoxiong Lv
  2024-07-04  8:55 ` [PATCH v1 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Elan ekth6a12nay Zhaoxiong Lv
@ 2024-07-04  8:55 ` Zhaoxiong Lv
  2024-07-10 15:50   ` Doug Anderson
  1 sibling, 1 reply; 6+ messages in thread
From: Zhaoxiong Lv @ 2024-07-04  8:55 UTC (permalink / raw)
  To: dmitry.torokhov, robh, krzk+dt, conor+dt, jikos, bentiss,
	linus.walleij, dianders, hsinyi
  Cc: dri-devel, devicetree, linux-kernel, Zhaoxiong Lv

Elan-ekth6a12nay requires reset to pull down time greater than 10ms,
so the configuration post_power_delay_ms is 10, and the chipset
initial time is required to be greater than 300ms,
so the post_gpio_reset_on_delay_ms is set to 300.

Signed-off-by: Zhaoxiong Lv <lvzhaoxiong@huaqin.corp-partner.google.com>
---
 drivers/hid/i2c-hid/i2c-hid-of-elan.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/hid/i2c-hid/i2c-hid-of-elan.c b/drivers/hid/i2c-hid/i2c-hid-of-elan.c
index 5b91fb106cfc..ea91028bb971 100644
--- a/drivers/hid/i2c-hid/i2c-hid-of-elan.c
+++ b/drivers/hid/i2c-hid/i2c-hid-of-elan.c
@@ -117,6 +117,13 @@ static const struct elan_i2c_hid_chip_data elan_ekth6915_chip_data = {
 	.main_supply_name = "vcc33",
 };
 
+static const struct elan_i2c_hid_chip_data elan_ekth6a12nay_chip_data = {
+	.post_power_delay_ms = 10,
+	.post_gpio_reset_on_delay_ms = 300,
+	.hid_descriptor_address = 0x0001,
+	.main_supply_name = "vcc33",
+};
+
 static const struct elan_i2c_hid_chip_data ilitek_ili9882t_chip_data = {
 	.post_power_delay_ms = 1,
 	.post_gpio_reset_on_delay_ms = 200,
@@ -139,6 +146,7 @@ static const struct elan_i2c_hid_chip_data ilitek_ili2901_chip_data = {
 
 static const struct of_device_id elan_i2c_hid_of_match[] = {
 	{ .compatible = "elan,ekth6915", .data = &elan_ekth6915_chip_data },
+	{ .compatible = "elan,ekth6a12nay", .data = &elan_ekth6a12nay_chip_data },
 	{ .compatible = "ilitek,ili9882t", .data = &ilitek_ili9882t_chip_data },
 	{ .compatible = "ilitek,ili2901", .data = &ilitek_ili2901_chip_data },
 	{ }
-- 
2.17.1


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

* Re: [PATCH v1 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Elan ekth6a12nay
  2024-07-04  8:55 ` [PATCH v1 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Elan ekth6a12nay Zhaoxiong Lv
@ 2024-07-04 16:43   ` Conor Dooley
  2024-07-12 16:25   ` Benjamin Tissoires
  1 sibling, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2024-07-04 16:43 UTC (permalink / raw)
  To: Zhaoxiong Lv
  Cc: dmitry.torokhov, robh, krzk+dt, conor+dt, jikos, bentiss,
	linus.walleij, dianders, hsinyi, dri-devel, devicetree,
	linux-kernel

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

On Thu, Jul 04, 2024 at 04:55:54PM +0800, Zhaoxiong Lv wrote:
> The Elan ekth6a12nay touch screen chip same as Elan eKTH6915 controller
> has a reset gpio. The difference is that they have different
> post_power_delay_ms.
> 
> Signed-off-by: Zhaoxiong Lv <lvzhaoxiong@huaqin.corp-partner.google.com>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

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

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

* Re: [PATCH v1 2/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing
  2024-07-04  8:55 ` [PATCH v1 2/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing Zhaoxiong Lv
@ 2024-07-10 15:50   ` Doug Anderson
  0 siblings, 0 replies; 6+ messages in thread
From: Doug Anderson @ 2024-07-10 15:50 UTC (permalink / raw)
  To: Zhaoxiong Lv
  Cc: dmitry.torokhov, robh, krzk+dt, conor+dt, jikos, bentiss,
	linus.walleij, hsinyi, dri-devel, devicetree, linux-kernel

Hi,

On Thu, Jul 4, 2024 at 1:56 AM Zhaoxiong Lv
<lvzhaoxiong@huaqin.corp-partner.google.com> wrote:
>
> Elan-ekth6a12nay requires reset to pull down time greater than 10ms,
> so the configuration post_power_delay_ms is 10, and the chipset
> initial time is required to be greater than 300ms,
> so the post_gpio_reset_on_delay_ms is set to 300.
>
> Signed-off-by: Zhaoxiong Lv <lvzhaoxiong@huaqin.corp-partner.google.com>
> ---
>  drivers/hid/i2c-hid/i2c-hid-of-elan.c | 8 ++++++++
>  1 file changed, 8 insertions(+)

Reviewed-by: Douglas Anderson <dianders@chromium.org>

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

* Re: [PATCH v1 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Elan ekth6a12nay
  2024-07-04  8:55 ` [PATCH v1 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Elan ekth6a12nay Zhaoxiong Lv
  2024-07-04 16:43   ` Conor Dooley
@ 2024-07-12 16:25   ` Benjamin Tissoires
  1 sibling, 0 replies; 6+ messages in thread
From: Benjamin Tissoires @ 2024-07-12 16:25 UTC (permalink / raw)
  To: Zhaoxiong Lv
  Cc: dmitry.torokhov, robh, krzk+dt, conor+dt, jikos, linus.walleij,
	dianders, hsinyi, dri-devel, devicetree, linux-kernel

On Jul 04 2024, Zhaoxiong Lv wrote:
> The Elan ekth6a12nay touch screen chip same as Elan eKTH6915 controller
> has a reset gpio. The difference is that they have different
> post_power_delay_ms.
> 
> Signed-off-by: Zhaoxiong Lv <lvzhaoxiong@huaqin.corp-partner.google.com>
> ---
>  Documentation/devicetree/bindings/input/elan,ekth6915.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml
> index dc4ac41f2441..0bbf9dd7636e 100644
> --- a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml
> +++ b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml
> @@ -20,6 +20,7 @@ properties:
>    compatible:
>      enum:
>        - elan,ekth6915
> +      - elan,ekth6a12nay
>        - ilitek,ili2901

This is not in v6.10-rcX, ilitek got removed and the compatible node got
updated.

I could amend the patch for this but I'd rather have you to do it as I
can not test the change myself.

So please respin the series on top of v6.10 at least, keep the various
acks/rev-by and and make sure you test.

Cheers,
Benjamin

>  
>    reg:
> -- 
> 2.17.1
> 

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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-04  8:55 [PATCH v1 0/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing Zhaoxiong Lv
2024-07-04  8:55 ` [PATCH v1 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Elan ekth6a12nay Zhaoxiong Lv
2024-07-04 16:43   ` Conor Dooley
2024-07-12 16:25   ` Benjamin Tissoires
2024-07-04  8:55 ` [PATCH v1 2/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing Zhaoxiong Lv
2024-07-10 15:50   ` Doug Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox