mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] HID: i2c-hid: elan: Add ili2901 timing
@ 2023-12-27  8:50 Zhengqiao Xia
  2023-12-27  8:50 ` [PATCH v3 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901 Zhengqiao Xia
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Zhengqiao Xia @ 2023-12-27  8:50 UTC (permalink / raw)
  To: linux-input, devicetree, linux-kernel
  Cc: dmitry.torokhov, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	jikos, benjamin.tissoires, linus.walleij, dianders, xiazhengqiao

ILI2901 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 100ms,
so the post_gpio_reset_on_delay_ms is set to 100.

Change in v3:
- PATCH 1/2: Modify title and commit
- PATCH 2/2: No change
- Link to v2: https://lore.kernel.org/all/20231226023737.25618-2-xiazhengqiao@huaqin.corp-partner.google.com/

Change in v2:
- PATCH 1/2: Modify compatible properties values
- PATCH 2/2: No change
- Link to v1: https://lore.kernel.org/all/20231225092843.5993-3-xiazhengqiao@huaqin.corp-partner.google.com/

xiazhengqiao (2):
  dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901
  HID: i2c-hid: elan: Add ili2901 timing

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

-- 
2.17.1


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

* [PATCH v3 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901
  2023-12-27  8:50 [PATCH v3 0/2] HID: i2c-hid: elan: Add ili2901 timing Zhengqiao Xia
@ 2023-12-27  8:50 ` Zhengqiao Xia
  2023-12-27 11:41   ` Krzysztof Kozlowski
  2023-12-27  8:50 ` [PATCH v3 2/2] HID: i2c-hid: elan: Add ili2901 timing Zhengqiao Xia
  2024-01-02 10:31 ` [PATCH v3 0/2] " Jiri Kosina
  2 siblings, 1 reply; 6+ messages in thread
From: Zhengqiao Xia @ 2023-12-27  8:50 UTC (permalink / raw)
  To: linux-input, devicetree, linux-kernel
  Cc: dmitry.torokhov, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	jikos, benjamin.tissoires, linus.walleij, dianders, xiazhengqiao

The Ilitek ili2901 touch screen chip same as Elan eKTH6915 controller
has a reset gpio. The difference is that they have different
post_power_delay_ms and post_gpio_reset_on_delay_ms.
Ilitek ili2901 also uses 3.3V power supply.

Signed-off-by: Zhengqiao Xia  <xiazhengqiao@huaqin.corp-partner.google.com>
---
 Documentation/devicetree/bindings/input/elan,ekth6915.yaml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml
index 3e2d216c6432..dc4ac41f2441 100644
--- a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml
+++ b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml
@@ -18,8 +18,9 @@ allOf:
 
 properties:
   compatible:
-    items:
-      - const: elan,ekth6915
+    enum:
+      - elan,ekth6915
+      - ilitek,ili2901
 
   reg:
     const: 0x10
-- 
2.17.1


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

* [PATCH v3 2/2] HID: i2c-hid: elan: Add ili2901 timing
  2023-12-27  8:50 [PATCH v3 0/2] HID: i2c-hid: elan: Add ili2901 timing Zhengqiao Xia
  2023-12-27  8:50 ` [PATCH v3 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901 Zhengqiao Xia
@ 2023-12-27  8:50 ` Zhengqiao Xia
  2024-01-02 10:31 ` [PATCH v3 0/2] " Jiri Kosina
  2 siblings, 0 replies; 6+ messages in thread
From: Zhengqiao Xia @ 2023-12-27  8:50 UTC (permalink / raw)
  To: linux-input, devicetree, linux-kernel
  Cc: dmitry.torokhov, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	jikos, benjamin.tissoires, linus.walleij, dianders, xiazhengqiao

ILI2901 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 100ms,
so the post_gpio_reset_on_delay_ms is set to 100.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Zhengqiao Xia <xiazhengqiao@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 31abab57ad44..5b91fb106cfc 100644
--- a/drivers/hid/i2c-hid/i2c-hid-of-elan.c
+++ b/drivers/hid/i2c-hid/i2c-hid-of-elan.c
@@ -130,9 +130,17 @@ static const struct elan_i2c_hid_chip_data ilitek_ili9882t_chip_data = {
 	.main_supply_name = NULL,
 };
 
+static const struct elan_i2c_hid_chip_data ilitek_ili2901_chip_data = {
+	.post_power_delay_ms = 10,
+	.post_gpio_reset_on_delay_ms = 100,
+	.hid_descriptor_address = 0x0001,
+	.main_supply_name = "vcc33",
+};
+
 static const struct of_device_id elan_i2c_hid_of_match[] = {
 	{ .compatible = "elan,ekth6915", .data = &elan_ekth6915_chip_data },
 	{ .compatible = "ilitek,ili9882t", .data = &ilitek_ili9882t_chip_data },
+	{ .compatible = "ilitek,ili2901", .data = &ilitek_ili2901_chip_data },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, elan_i2c_hid_of_match);
-- 
2.17.1


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

* Re: [PATCH v3 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901
  2023-12-27  8:50 ` [PATCH v3 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901 Zhengqiao Xia
@ 2023-12-27 11:41   ` Krzysztof Kozlowski
  2023-12-27 14:36     ` Jiri Kosina
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-27 11:41 UTC (permalink / raw)
  To: Zhengqiao Xia, linux-input, devicetree, linux-kernel
  Cc: dmitry.torokhov, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	jikos, benjamin.tissoires, linus.walleij, dianders

On 27/12/2023 09:50, Zhengqiao Xia wrote:
> The Ilitek ili2901 touch screen chip same as Elan eKTH6915 controller
> has a reset gpio. The difference is that they have different
> post_power_delay_ms and post_gpio_reset_on_delay_ms.
> Ilitek ili2901 also uses 3.3V power supply.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v3 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901
  2023-12-27 11:41   ` Krzysztof Kozlowski
@ 2023-12-27 14:36     ` Jiri Kosina
  0 siblings, 0 replies; 6+ messages in thread
From: Jiri Kosina @ 2023-12-27 14:36 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Zhengqiao Xia, linux-input, devicetree, linux-kernel,
	dmitry.torokhov, robh+dt, krzysztof.kozlowski+dt, conor+dt,
	benjamin.tissoires, linus.walleij, dianders

On Wed, 27 Dec 2023, Krzysztof Kozlowski wrote:

> > The Ilitek ili2901 touch screen chip same as Elan eKTH6915 controller
> > has a reset gpio. The difference is that they have different
> > post_power_delay_ms and post_gpio_reset_on_delay_ms.
> > Ilitek ili2901 also uses 3.3V power supply.
> 
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Thanks. I will take it together with the HID patch through my tree, if 
that's fine with you.

-- 
Jiri Kosina
SUSE Labs


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

* Re: [PATCH v3 0/2] HID: i2c-hid: elan: Add ili2901 timing
  2023-12-27  8:50 [PATCH v3 0/2] HID: i2c-hid: elan: Add ili2901 timing Zhengqiao Xia
  2023-12-27  8:50 ` [PATCH v3 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901 Zhengqiao Xia
  2023-12-27  8:50 ` [PATCH v3 2/2] HID: i2c-hid: elan: Add ili2901 timing Zhengqiao Xia
@ 2024-01-02 10:31 ` Jiri Kosina
  2 siblings, 0 replies; 6+ messages in thread
From: Jiri Kosina @ 2024-01-02 10:31 UTC (permalink / raw)
  To: Zhengqiao Xia
  Cc: linux-input, devicetree, linux-kernel, dmitry.torokhov, robh+dt,
	krzysztof.kozlowski+dt, conor+dt, benjamin.tissoires,
	linus.walleij, dianders

On Wed, 27 Dec 2023, Zhengqiao Xia wrote:

> ILI2901 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 100ms,
> so the post_gpio_reset_on_delay_ms is set to 100.
> 
> Change in v3:
> - PATCH 1/2: Modify title and commit
> - PATCH 2/2: No change
> - Link to v2: https://lore.kernel.org/all/20231226023737.25618-2-xiazhengqiao@huaqin.corp-partner.google.com/
> 
> Change in v2:
> - PATCH 1/2: Modify compatible properties values
> - PATCH 2/2: No change
> - Link to v1: https://lore.kernel.org/all/20231225092843.5993-3-xiazhengqiao@huaqin.corp-partner.google.com/
> 
> xiazhengqiao (2):
>   dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901
>   HID: i2c-hid: elan: Add ili2901 timing
> 
>  .../devicetree/bindings/input/elan,ekth6915.yaml          | 5 +++--
>  drivers/hid/i2c-hid/i2c-hid-of-elan.c                     | 8 ++++++++
>  2 files changed, 11 insertions(+), 2 deletions(-)

Now queued in hid.git#for-6.8/elan. Thanks,

-- 
Jiri Kosina
SUSE Labs


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

end of thread, other threads:[~2024-01-02 10:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-27  8:50 [PATCH v3 0/2] HID: i2c-hid: elan: Add ili2901 timing Zhengqiao Xia
2023-12-27  8:50 ` [PATCH v3 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Ilitek ili2901 Zhengqiao Xia
2023-12-27 11:41   ` Krzysztof Kozlowski
2023-12-27 14:36     ` Jiri Kosina
2023-12-27  8:50 ` [PATCH v3 2/2] HID: i2c-hid: elan: Add ili2901 timing Zhengqiao Xia
2024-01-02 10:31 ` [PATCH v3 0/2] " Jiri Kosina

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

all inboxes | Powered by JetHome®