diff options
author | Sourav Poddar <sourav.poddar@ti.com> | 2012-07-13 03:10:47 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-07-18 02:16:07 -0400 |
commit | 13987435cc28eab6e562e878e71b521e7ef5c860 (patch) | |
tree | 92283f54561ec3c7499a736efbbb97499594f447 /Documentation/devicetree | |
parent | 8a90c034ae0d4282e2aeb9cf8311dc90c855d815 (diff) |
Input: omap4-keypad - add device tree support
Add device tree support for omap4 keypad driver and update the
Documentation with omap4 keypad device tree binding information.
Tested on omap4430 sdp.
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/input/omap-keypad.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/omap-keypad.txt b/Documentation/devicetree/bindings/input/omap-keypad.txt new file mode 100644 index 000000000000..f2fa5e10493d --- /dev/null +++ b/Documentation/devicetree/bindings/input/omap-keypad.txt | |||
@@ -0,0 +1,31 @@ | |||
1 | * TI's Keypad Controller device tree bindings | ||
2 | |||
3 | TI's Keypad controller is used to interface a SoC with a matrix-type | ||
4 | keypad device. The keypad controller supports multiple row and column lines. | ||
5 | A key can be placed at each intersection of a unique row and a unique column. | ||
6 | The keypad controller can sense a key-press and key-release and report the | ||
7 | event using a interrupt to the cpu. | ||
8 | |||
9 | Required SoC Specific Properties: | ||
10 | - compatible: should be one of the following | ||
11 | - "ti,omap4-keypad": For controllers compatible with omap4 keypad | ||
12 | controller. | ||
13 | |||
14 | Required Board Specific Properties, in addition to those specified by | ||
15 | the shared matrix-keyboard bindings: | ||
16 | - keypad,num-rows: Number of row lines connected to the keypad | ||
17 | controller. | ||
18 | |||
19 | - keypad,num-columns: Number of column lines connected to the | ||
20 | keypad controller. | ||
21 | |||
22 | Optional Properties specific to linux: | ||
23 | - linux,keypad-no-autorepeat: do no enable autorepeat feature. | ||
24 | |||
25 | Example: | ||
26 | keypad@4ae1c000{ | ||
27 | compatible = "ti,omap4-keypad"; | ||
28 | keypad,num-rows = <2>; | ||
29 | keypad,num-columns = <8>; | ||
30 | linux,keypad-no-autorepeat; | ||
31 | }; | ||