Skip to content

Commit

Permalink
HID: i2c-hid: goodix: Add compatible for Cypress TT21000
Browse files Browse the repository at this point in the history
The binding matches, and the code works, even though it's not Goodix :)

Signed-off-by: Samuel Holland <samuel@sholland.org>
  • Loading branch information
smaeul committed Jan 4, 2022
1 parent 587b87b commit 65d9250
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/hid/i2c-hid/i2c-hid-of-goodix.c
Expand Up @@ -153,12 +153,18 @@ static int i2c_hid_of_goodix_probe(struct i2c_client *client,
return i2c_hid_core_probe(client, &ihid_goodix->ops, 0x0001);
}

static const struct goodix_i2c_hid_timing_data cypress_tt21000_timing_data = {
.post_power_delay_ms = 100,
.post_gpio_reset_delay_ms = 180,
};

static const struct goodix_i2c_hid_timing_data goodix_gt7375p_timing_data = {
.post_power_delay_ms = 10,
.post_gpio_reset_delay_ms = 180,
};

static const struct of_device_id goodix_i2c_hid_of_match[] = {
{ .compatible = "cypress,tt21000", .data = &cypress_tt21000_timing_data },
{ .compatible = "goodix,gt7375p", .data = &goodix_gt7375p_timing_data },
{ }
};
Expand Down

0 comments on commit 65d9250

Please sign in to comment.