From: Patrick Vogelaar <Patrick.Vogelaar@gigatronik.com>
To: <dmitry.torokhov@gmail.com>
Cc: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-input@vger.kernel.org>,
Patrick Vogelaar <Patrick.Vogelaar@gigatronik.com>
Subject: [PATCH 2/2] add device tree documentation for cy8cmbr3102
Date: Mon, 20 Feb 2017 11:33:33 +0100 [thread overview]
Message-ID: <1487586813-4122-3-git-send-email-Patrick.Vogelaar@gigatronik.com> (raw)
In-Reply-To: <1487586813-4122-1-git-send-email-Patrick.Vogelaar@gigatronik.com>
Signed-off-by: Patrick Vogelaar <Patrick.Vogelaar@gigatronik.com>
---
.../bindings/input/cypress,cy8cmbr3102.txt | 32 ++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/cypress,cy8cmbr3102.txt
diff --git a/Documentation/devicetree/bindings/input/cypress,cy8cmbr3102.txt b/Documentation/devicetree/bindings/input/cypress,cy8cmbr3102.txt
new file mode 100644
index 0000000..d5294b3
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/cypress,cy8cmbr3102.txt
@@ -0,0 +1,32 @@
+Device tree bindings for Cypress CY8CMBR3102 CapSense Express controller.
+
+The node for this device must be a child of a I2C controller node, as the
+device communicates via I2C.
+
+Required properties:
+
+ compatible: Must be "cypress,cy8cmbr3102".
+ reg: The I2C slave address of the device.
+ linux,keycodes: Specifies an array of numeric keycode values to
+ be used for reporting button presses. The array can
+ contain up to two entries.
+
+Optional properties:
+
+ autorepeat: Enables the Linux input system's autorepeat
+ feature on the input device.
+
+Example:
+
+ &i2c1 {
+ /* ... */
+
+ touchb_tn: cy8cmbr3102@37 {
+ compatible = "cypress,cy8cmbr3102";
+ reg = <0x37>;
+ linux,keycodes = <BTN_0>, <BTN_1>;
+ autorepeat;
+ };
+
+ /* ... */
+ };
--
2.7.4
prev parent reply other threads:[~2017-02-20 10:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-20 10:33 [PATCH 0/2] add driver for cypress cy8cmbr3102 Patrick Vogelaar
2017-02-20 10:33 ` [PATCH 1/2] " Patrick Vogelaar
2017-02-20 12:05 ` kbuild test robot
2017-02-20 12:05 ` [PATCH] fix platform_no_drv_owner.cocci warnings kbuild test robot
2017-02-20 10:33 ` Patrick Vogelaar [this message]
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=1487586813-4122-3-git-send-email-Patrick.Vogelaar@gigatronik.com \
--to=patrick.vogelaar@gigatronik.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®