-
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: egalax_ts - get gpio from devicetree
The irq_to_gpio() is old, most platforms use GENERIC_GPIO framework and don't support this API anymore. The i.MX6q sabrelite platform equips an egalax touchscreen controller, and this platform already transfered to GENERIC_GPIO framework, to support this driver, we use a more generic way to get gpio. Add a return value checking for waking up the controller in the probe function, this guarantee only a workable device can pass init. [dmitry.torokhov@gmail.com: Make driver depend on CONFIG_OF as it is now required.] Acked-by Zhang Jiejing <jiejing.zhang@freescale.com> Reviewed-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Hui Wang <jason77.wang@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
- Loading branch information
Hui Wang
authored and
Dmitry Torokhov
committed
Oct 25, 2012
1 parent
0cc8d6a
commit ae495e8
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
Documentation/devicetree/bindings/input/touchscreen/egalax-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,19 @@ | ||
* EETI eGalax Multiple Touch Controller | ||
|
||
Required properties: | ||
- compatible: must be "eeti,egalax_ts" | ||
- reg: i2c slave address | ||
- interrupt-parent: the phandle for the interrupt controller | ||
- interrupts: touch controller interrupt | ||
- wakeup-gpios: the gpio pin to be used for waking up the controller | ||
as well as uased as irq pin | ||
|
||
Example: | ||
|
||
egalax_ts@04 { | ||
compatible = "eeti,egalax_ts"; | ||
reg = <0x04>; | ||
interrupt-parent = <&gpio1>; | ||
interrupts = <9 2>; | ||
wakeup-gpios = <&gpio1 9 0>; | ||
}; |
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