Skip to content

Commit da32890

Browse files
AffeAlidtor
authored andcommitted
Input: tm2-touchkey - add support for Coreriver TC360 variant
The Coreriver TouchCore 360 is like the midas board touchkey, but it is using a fixed regulator. Signed-off-by: Nick Reitemeyer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 3c2c07b commit da32890

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/input/keyboard/tm2-touchkey.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ static struct touchkey_variant aries_touchkey_variant = {
7575
.cmd_led_off = ARIES_TOUCHKEY_CMD_LED_OFF,
7676
};
7777

78+
static const struct touchkey_variant tc360_touchkey_variant = {
79+
.keycode_reg = 0x00,
80+
.base_reg = 0x00,
81+
.fixed_regulator = true,
82+
.cmd_led_on = TM2_TOUCHKEY_CMD_LED_ON,
83+
.cmd_led_off = TM2_TOUCHKEY_CMD_LED_OFF,
84+
};
85+
7886
static int tm2_touchkey_led_brightness_set(struct led_classdev *led_dev,
7987
enum led_brightness brightness)
8088
{
@@ -327,6 +335,9 @@ static const struct of_device_id tm2_touchkey_of_match[] = {
327335
}, {
328336
.compatible = "cypress,aries-touchkey",
329337
.data = &aries_touchkey_variant,
338+
}, {
339+
.compatible = "coreriver,tc360-touchkey",
340+
.data = &tc360_touchkey_variant,
330341
},
331342
{ },
332343
};

0 commit comments

Comments
 (0)