All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gordan Markuš" <gordan.markus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: "Gordan Markuš" <gordan.markus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: [PATCH v4 2/2] input: keyboard: Add lm8333 devicetree bindings
Date: Fri,  7 Jul 2017 09:22:58 +0200	[thread overview]
Message-ID: <20170707072258.13881-4-gordan.markus@gmail.com> (raw)
In-Reply-To: <20170706160940.ljunxsk2y7ok55c6@rob-hp-laptop>

This adds LM8333 devicetree bindings documentation.

Signed-off-by: Gordan Markuš <gordan.markus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 .../devicetree/bindings/input/ti,lm8333.txt        | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/ti,lm8333.txt

diff --git a/Documentation/devicetree/bindings/input/ti,lm8333.txt b/Documentation/devicetree/bindings/input/ti,lm8333.txt
new file mode 100644
index 0000000..567f3ef
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/ti,lm8333.txt
@@ -0,0 +1,45 @@
+LM8333 Keypad
+
+Required properties:
+- compatible: Compatible property value should be "ti,lm8333".
+
+- reg: The I2C address of the device.
+
+- interrupts: The interrupt number for the peripheral.
+
+- linux,keymap: The keymap to use 
+  (see Documentation/devicetree/bindings/input/matrix-keymap.txt).
+
+Optional properties:
+- ti,active-time-ms: Specify the time during which the keypad is scanned
+  after the last key is released, before entering Halt mode. The active
+  time must be longer than the debounce time.
+  Default 500 ms.
+
+- debounce-delay-ms: Specify the keypad debounce time.
+  This can be used for reliable scanning of keyboards with noisy 
+  contacts.
+  Default 10 ms.
+
+Example:
+input {
+	compatible = "ti,lm8333";
+	reg = <0x51>;
+	interrupts = <5>;
+
+	ti,active-time-ms = <750>;
+	debounce-delay-ms = <20>;
+
+	linux,keymap = <
+			0x0001001e
+			0x00020030
+			0x0003002e
+			0x00040020
+			0x00050012
+			0x00060021
+			0x00070022
+			0x00080023
+			0x01010017
+			0x01020024
+			0x01030025>;
+};
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-07-07  7:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-29 12:22 [PATCH v3 1/2] input: keyboard: Add devicetree support for lm8333 Gordan Markuš
     [not found] ` <20170629122220.12425-3-gordan.markus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-06-29 12:22   ` [PATCH v3 2/2] input: keyboard: Add lm8333 devicetree bindings Gordan Markuš
     [not found]     ` <20170629122220.12425-4-gordan.markus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-07-06 16:09       ` Rob Herring
2017-07-07  7:22         ` [PATCH v4 1/2] input: keyboard: Add devicetree support for lm8333 Gordan Markuš
2017-07-07  7:22         ` Gordan Markuš [this message]
     [not found]           ` <20170707072258.13881-4-gordan.markus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-07-07 13:42             ` [PATCH v4 2/2] input: keyboard: Add lm8333 devicetree bindings Rob Herring
2017-07-13 12:12               ` [PATCH v3 1/2] input: keyboard: Add devicetree support for lm8333 Gordan Markuš
2017-07-13 12:13               ` [PATCH v3 2/2] input: keyboard: Add lm8333 devicetree bindings Gordan Markuš
     [not found]                 ` <20170713121300.29530-4-gordan.markus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-07-14 14:38                   ` Rob Herring

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=20170707072258.13881-4-gordan.markus@gmail.com \
    --to=gordan.markus-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.