Skip to content

Commit d06651b

Browse files
Zhaoxiong LvJiri Kosina
authored andcommitted
HID: i2c-hid: elan: Add elan-ekth6a12nay timing
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. Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Zhaoxiong Lv <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent e0808d7 commit d06651b

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
@@ -152,6 +152,13 @@ static const struct elan_i2c_hid_chip_data elan_ekth6915_chip_data = {
152152
.main_supply_name = "vcc33",
153153
};
154154

155+
static const struct elan_i2c_hid_chip_data elan_ekth6a12nay_chip_data = {
156+
.post_power_delay_ms = 10,
157+
.post_gpio_reset_on_delay_ms = 300,
158+
.hid_descriptor_address = 0x0001,
159+
.main_supply_name = "vcc33",
160+
};
161+
155162
static const struct elan_i2c_hid_chip_data ilitek_ili9882t_chip_data = {
156163
.post_power_delay_ms = 1,
157164
.post_gpio_reset_on_delay_ms = 200,
@@ -174,6 +181,7 @@ static const struct elan_i2c_hid_chip_data ilitek_ili2901_chip_data = {
174181

175182
static const struct of_device_id elan_i2c_hid_of_match[] = {
176183
{ .compatible = "elan,ekth6915", .data = &elan_ekth6915_chip_data },
184+
{ .compatible = "elan,ekth6a12nay", .data = &elan_ekth6a12nay_chip_data },
177185
{ .compatible = "ilitek,ili9882t", .data = &ilitek_ili9882t_chip_data },
178186
{ .compatible = "ilitek,ili2901", .data = &ilitek_ili2901_chip_data },
179187
{ }

0 commit comments

Comments
 (0)