-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Input: stmpe-keypad - add support for Device Tree bindings
This patch allows the STMPE driver to be successfully probed and initialised when Device Tree support is enabled. Besides the usual platform data changes, we also separate the process of filling in the 'in use' pin bitmap, as we have to extract the information from Device Tree in the DT boot case. Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
- Loading branch information
Dmitry Torokhov
committed
Nov 24, 2012
1 parent
e2619cf
commit 6ea3238
Showing
3 changed files
with
91 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
* STMPE Keypad | ||
|
||
Required properties: | ||
- compatible : "st,stmpe-keypad" | ||
- linux,keymap : See ./matrix-keymap.txt | ||
|
||
Optional properties: | ||
- debounce-interval : Debouncing interval time in milliseconds | ||
- st,scan-count : Scanning cycles elapsed before key data is updated | ||
- st,no-autorepeat : If specified device will not autorepeat | ||
|
||
Example: | ||
|
||
stmpe_keypad { | ||
compatible = "st,stmpe-keypad"; | ||
|
||
debounce-interval = <64>; | ||
st,scan-count = <8>; | ||
st,no-autorepeat; | ||
|
||
linux,keymap = <0x205006b | ||
0x4010074 | ||
0x3050072 | ||
0x1030004 | ||
0x502006a | ||
0x500000a | ||
0x5008b | ||
0x706001c | ||
0x405000b | ||
0x6070003 | ||
0x3040067 | ||
0x303006c | ||
0x60400e7 | ||
0x602009e | ||
0x4020073 | ||
0x5050002 | ||
0x4030069 | ||
0x3020008>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters