* [PATCH RESEND] input: dts: Add commonly used event types
@ 2014-03-18 18:04 Alexander Shiyan
2014-03-18 18:04 ` [PATCH v3 2/2] input: clps711x-keypad: dts: Add bindings documentation Alexander Shiyan
2014-03-28 16:43 ` [PATCH RESEND] input: dts: Add commonly used event types Dmitry Torokhov
0 siblings, 2 replies; 4+ messages in thread
From: Alexander Shiyan @ 2014-03-18 18:04 UTC (permalink / raw)
To: linux-input
Cc: Dmitry Torokhov, devicetree, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala, Grant Likely,
Alexander Shiyan
Patch adds commonly used event types (EV_KEY and EV_SW) to
devicetree bindings header for input subsystem.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
include/dt-bindings/input/input.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/dt-bindings/input/input.h b/include/dt-bindings/input/input.h
index 042e7b3..3a141d92 100644
--- a/include/dt-bindings/input/input.h
+++ b/include/dt-bindings/input/input.h
@@ -9,6 +9,9 @@
#ifndef _DT_BINDINGS_INPUT_INPUT_H
#define _DT_BINDINGS_INPUT_INPUT_H
+#define EV_KEY 0x01
+#define EV_SW 0x05
+
#define KEY_RESERVED 0
#define KEY_ESC 1
#define KEY_1 2
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v3 2/2] input: clps711x-keypad: dts: Add bindings documentation
2014-03-18 18:04 [PATCH RESEND] input: dts: Add commonly used event types Alexander Shiyan
@ 2014-03-18 18:04 ` Alexander Shiyan
2014-03-28 16:43 ` Dmitry Torokhov
2014-03-28 16:43 ` [PATCH RESEND] input: dts: Add commonly used event types Dmitry Torokhov
1 sibling, 1 reply; 4+ messages in thread
From: Alexander Shiyan @ 2014-03-18 18:04 UTC (permalink / raw)
To: linux-input
Cc: Dmitry Torokhov, devicetree, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala, Grant Likely,
Alexander Shiyan
This patch adds the devicetree documentation for the Cirrus Logic
CLPS711X keypad.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
.../devicetree/bindings/input/clps711x-keypad.txt | 27 ++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/clps711x-keypad.txt
diff --git a/Documentation/devicetree/bindings/input/clps711x-keypad.txt b/Documentation/devicetree/bindings/input/clps711x-keypad.txt
new file mode 100644
index 0000000..93fa2c1
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/clps711x-keypad.txt
@@ -0,0 +1,27 @@
+* Cirrus Logic CLPS711X matrix keypad device tree bindings
+
+Required Properties:
+- compatible: Shall contain "cirrus,clps711x-keypad".
+- row-gpios: List of GPIOs used as row lines.
+- poll-interval: Poll interval time in milliseconds.
+- linux,keymap: The definition can be found at
+ bindings/input/matrix-keymap.txt.
+
+Optional Properties:
+- autorepeat: Enable autorepeat feature.
+
+Example:
+ keypad {
+ compatible = "cirrus,ep7312-keypad", "cirrus,clps711x-keypad";
+ autorepeat;
+ poll-interval = <120>;
+ row-gpios = <&porta 0 0>,
+ <&porta 1 0>;
+
+ linux,keymap = <
+ MATRIX_KEY(0, 0, KEY_UP)
+ MATRIX_KEY(0, 1, KEY_DOWN)
+ MATRIX_KEY(1, 0, KEY_LEFT)
+ MATRIX_KEY(1, 1, KEY_RIGHT)
+ >;
+ };
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND] input: dts: Add commonly used event types
2014-03-18 18:04 [PATCH RESEND] input: dts: Add commonly used event types Alexander Shiyan
2014-03-18 18:04 ` [PATCH v3 2/2] input: clps711x-keypad: dts: Add bindings documentation Alexander Shiyan
@ 2014-03-28 16:43 ` Dmitry Torokhov
1 sibling, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2014-03-28 16:43 UTC (permalink / raw)
To: Alexander Shiyan
Cc: linux-input, devicetree, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Grant Likely
On Tue, Mar 18, 2014 at 10:04:47PM +0400, Alexander Shiyan wrote:
> Patch adds commonly used event types (EV_KEY and EV_SW) to
> devicetree bindings header for input subsystem.
>
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
> include/dt-bindings/input/input.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/dt-bindings/input/input.h b/include/dt-bindings/input/input.h
> index 042e7b3..3a141d92 100644
> --- a/include/dt-bindings/input/input.h
> +++ b/include/dt-bindings/input/input.h
> @@ -9,6 +9,9 @@
> #ifndef _DT_BINDINGS_INPUT_INPUT_H
> #define _DT_BINDINGS_INPUT_INPUT_H
>
> +#define EV_KEY 0x01
> +#define EV_SW 0x05
> +
> #define KEY_RESERVED 0
> #define KEY_ESC 1
> #define KEY_1 2
> --
> 1.8.3.2
>
This I believe should go through device tree.
--
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3 2/2] input: clps711x-keypad: dts: Add bindings documentation
2014-03-18 18:04 ` [PATCH v3 2/2] input: clps711x-keypad: dts: Add bindings documentation Alexander Shiyan
@ 2014-03-28 16:43 ` Dmitry Torokhov
0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Torokhov @ 2014-03-28 16:43 UTC (permalink / raw)
To: Alexander Shiyan
Cc: linux-input, devicetree, Rob Herring, Pawel Moll, Mark Rutland,
Ian Campbell, Kumar Gala, Grant Likely
On Tue, Mar 18, 2014 at 10:04:48PM +0400, Alexander Shiyan wrote:
> This patch adds the devicetree documentation for the Cirrus Logic
> CLPS711X keypad.
>
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
I picked this one up and folded into the driver patch.
> ---
> .../devicetree/bindings/input/clps711x-keypad.txt | 27 ++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/input/clps711x-keypad.txt
>
> diff --git a/Documentation/devicetree/bindings/input/clps711x-keypad.txt b/Documentation/devicetree/bindings/input/clps711x-keypad.txt
> new file mode 100644
> index 0000000..93fa2c1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/clps711x-keypad.txt
> @@ -0,0 +1,27 @@
> +* Cirrus Logic CLPS711X matrix keypad device tree bindings
> +
> +Required Properties:
> +- compatible: Shall contain "cirrus,clps711x-keypad".
> +- row-gpios: List of GPIOs used as row lines.
> +- poll-interval: Poll interval time in milliseconds.
> +- linux,keymap: The definition can be found at
> + bindings/input/matrix-keymap.txt.
> +
> +Optional Properties:
> +- autorepeat: Enable autorepeat feature.
> +
> +Example:
> + keypad {
> + compatible = "cirrus,ep7312-keypad", "cirrus,clps711x-keypad";
> + autorepeat;
> + poll-interval = <120>;
> + row-gpios = <&porta 0 0>,
> + <&porta 1 0>;
> +
> + linux,keymap = <
> + MATRIX_KEY(0, 0, KEY_UP)
> + MATRIX_KEY(0, 1, KEY_DOWN)
> + MATRIX_KEY(1, 0, KEY_LEFT)
> + MATRIX_KEY(1, 1, KEY_RIGHT)
> + >;
> + };
> --
> 1.8.3.2
>
--
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-28 16:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-18 18:04 [PATCH RESEND] input: dts: Add commonly used event types Alexander Shiyan
2014-03-18 18:04 ` [PATCH v3 2/2] input: clps711x-keypad: dts: Add bindings documentation Alexander Shiyan
2014-03-28 16:43 ` Dmitry Torokhov
2014-03-28 16:43 ` [PATCH RESEND] input: dts: Add commonly used event types Dmitry Torokhov
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).