-
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: pixcir_i2c_ts - add device tree support
Provide device tree support and binding information. Also provide support for a new chip "pixcir_tangoc". Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
- Loading branch information
Roger Quadros
authored and
Dmitry Torokhov
committed
Jul 28, 2014
1 parent
36874c7
commit a405459
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
Documentation/devicetree/bindings/input/touchscreen/pixcir_i2c_ts.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,26 @@ | ||
* Pixcir I2C touchscreen controllers | ||
|
||
Required properties: | ||
- compatible: must be "pixcir,pixcir_ts" or "pixcir,pixcir_tangoc" | ||
- reg: I2C address of the chip | ||
- interrupts: interrupt to which the chip is connected | ||
- attb-gpio: GPIO connected to the ATTB line of the chip | ||
- touchscreen-size-x: horizontal resolution of touchscreen (in pixels) | ||
- touchscreen-size-y: vertical resolution of touchscreen (in pixels) | ||
|
||
Example: | ||
|
||
i2c@00000000 { | ||
/* ... */ | ||
|
||
pixcir_ts@5c { | ||
compatible = "pixcir,pixcir_ts"; | ||
reg = <0x5c>; | ||
interrupts = <2 0>; | ||
attb-gpio = <&gpf 2 0 2>; | ||
touchscreen-size-x = <800>; | ||
touchscreen-size-y = <600>; | ||
}; | ||
|
||
/* ... */ | ||
}; |
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