From: Nick Reitemeyer <nick.reitemeyer@web.de>
To: dmitry.torokhov@gmail.com, robh+dt@kernel.org
Cc: stephan@gerhold.net, linux-input@vger.kernel.org,
devicetree@vger.kernel.org,
Nick Reitemeyer <nick.reitemeyer@web.de>
Subject: [PATCH 3/3] Input: tm2-touchkey - add support for Coreriver TC360 variant
Date: Tue, 21 Jan 2020 15:15:26 +0100 [thread overview]
Message-ID: <20200121141525.3404-3-nick.reitemeyer@web.de> (raw)
In-Reply-To: <20200121141525.3404-1-nick.reitemeyer@web.de>
The Coreriver TouchCore 360 is like the midas board touchkey, but it is using a fixed regulator.
Signed-off-by: Nick Reitemeyer <nick.reitemeyer@web.de>
---
drivers/input/keyboard/tm2-touchkey.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c
index 14b55bacdd0f..fb078e049413 100644
--- a/drivers/input/keyboard/tm2-touchkey.c
+++ b/drivers/input/keyboard/tm2-touchkey.c
@@ -75,6 +75,14 @@ static struct touchkey_variant aries_touchkey_variant = {
.cmd_led_off = ARIES_TOUCHKEY_CMD_LED_OFF,
};
+static const struct touchkey_variant tc360_touchkey_variant = {
+ .keycode_reg = 0x00,
+ .base_reg = 0x00,
+ .fixed_regulator = true,
+ .cmd_led_on = TM2_TOUCHKEY_CMD_LED_ON,
+ .cmd_led_off = TM2_TOUCHKEY_CMD_LED_OFF,
+};
+
static int tm2_touchkey_led_brightness_set(struct led_classdev *led_dev,
enum led_brightness brightness)
{
@@ -327,6 +335,9 @@ static const struct of_device_id tm2_touchkey_of_match[] = {
}, {
.compatible = "cypress,aries-touchkey",
.data = &aries_touchkey_variant,
+ }, {
+ .compatible = "coreriver,tc360-touchkey",
+ .data = &tc360_touchkey_variant,
},
{ },
};
--
2.23.0
next prev parent reply other threads:[~2020-01-21 14:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-21 14:15 [PATCH 1/3] dt-bindings: vendor-prefixes: Add Coreriver vendor prefix Nick Reitemeyer
2020-01-21 14:15 ` [PATCH 2/3] dt-bindings: input: add Coreriver TC360 binding Nick Reitemeyer
2020-02-03 11:54 ` Rob Herring
2020-02-15 23:41 ` Dmitry Torokhov
2020-01-21 14:15 ` Nick Reitemeyer [this message]
2020-02-15 23:42 ` [PATCH 3/3] Input: tm2-touchkey - add support for Coreriver TC360 variant Dmitry Torokhov
2020-02-03 11:54 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Coreriver vendor prefix Rob Herring
2020-02-15 23:40 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200121141525.3404-3-nick.reitemeyer@web.de \
--to=nick.reitemeyer@web.de \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=stephan@gerhold.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).