Skip to content

Commit 03ddb7d

Browse files
Zhengqiao XiaJiri Kosina
authored andcommitted
HID: i2c-hid: elan: Add ili2901 timing
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 <[email protected]> Signed-off-by: Zhengqiao Xia <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent d74ac6f commit 03ddb7d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/hid/i2c-hid/i2c-hid-of-elan.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,17 @@ static const struct elan_i2c_hid_chip_data ilitek_ili9882t_chip_data = {
130130
.main_supply_name = NULL,
131131
};
132132

133+
static const struct elan_i2c_hid_chip_data ilitek_ili2901_chip_data = {
134+
.post_power_delay_ms = 10,
135+
.post_gpio_reset_on_delay_ms = 100,
136+
.hid_descriptor_address = 0x0001,
137+
.main_supply_name = "vcc33",
138+
};
139+
133140
static const struct of_device_id elan_i2c_hid_of_match[] = {
134141
{ .compatible = "elan,ekth6915", .data = &elan_ekth6915_chip_data },
135142
{ .compatible = "ilitek,ili9882t", .data = &ilitek_ili9882t_chip_data },
143+
{ .compatible = "ilitek,ili2901", .data = &ilitek_ili2901_chip_data },
136144
{ }
137145
};
138146
MODULE_DEVICE_TABLE(of, elan_i2c_hid_of_match);

0 commit comments

Comments
 (0)