-
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.
gpio: stmpe: Add DT support for stmpe gpio
This patch allows the STMPE GPIO driver to be successfully probed and initialised when Device Tree support is enabled. Bindings are mentioned in Documentation too. Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
- Loading branch information
Vipul Kumar Samar
authored and
Linus Walleij
committed
Dec 1, 2012
1 parent
8618b3b
commit 86605cf
Showing
3 changed files
with
28 additions
and
2 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,18 @@ | ||
STMPE gpio | ||
---------- | ||
|
||
Required properties: | ||
- compatible: "st,stmpe-gpio" | ||
|
||
Optional properties: | ||
- st,norequest-mask: bitmask specifying which GPIOs should _not_ be requestable | ||
due to different usage (e.g. touch, keypad) | ||
|
||
Node name must be stmpe_gpio and should be child node of stmpe node to which it | ||
belongs. | ||
|
||
Example: | ||
stmpe_gpio { | ||
compatible = "st,stmpe-gpio"; | ||
st,norequest-mask = <0x20>; //gpio 5 can't be used | ||
}; |
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