forked from muralivijay/kernel_xiaomi_sm6225
-
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: atmel_mxt_ts - implement device tree support
Signed-off-by: Stephen Warren <[email protected]> Signed-off-by: Nick Dyer <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
- Loading branch information
Showing
2 changed files
with
88 additions
and
5 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
Documentation/devicetree/bindings/input/atmel,maxtouch.txt
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,25 @@ | ||
Atmel maXTouch touchscreen/touchpad | ||
|
||
Required properties: | ||
- compatible: | ||
atmel,maxtouch | ||
|
||
- reg: The I2C address of the device | ||
|
||
- interrupts: The sink for the touchpad's IRQ output | ||
See ../interrupt-controller/interrupts.txt | ||
|
||
Optional properties for main touchpad device: | ||
|
||
- linux,gpio-keymap: An array of up to 4 entries indicating the Linux | ||
keycode generated by each GPIO. Linux keycodes are defined in | ||
<dt-bindings/input/input.h>. | ||
|
||
Example: | ||
|
||
touch@4b { | ||
compatible = "atmel,maxtouch"; | ||
reg = <0x4b>; | ||
interrupt-parent = <&gpio>; | ||
interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_LOW>; | ||
}; |
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