Skip to content

Commit

Permalink
Merge branch 'for-6.8/elan' into for-linus
Browse files Browse the repository at this point in the history
- support for Ilitek ili2901 touchscreen (Zhengqiao Xia)
  • Loading branch information
Jiri Kosina committed Jan 8, 2024
2 parents 6b93f35 + 03ddb7d commit 39e7fac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Documentation/devicetree/bindings/input/elan,ekth6915.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ allOf:

properties:
compatible:
items:
- const: elan,ekth6915
enum:
- elan,ekth6915
- ilitek,ili2901

reg:
const: 0x10
Expand Down
8 changes: 8 additions & 0 deletions drivers/hid/i2c-hid/i2c-hid-of-elan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 39e7fac

Please sign in to comment.