-
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: msm: Add device tree and irqdomain support for gpio-msm-v2
This cleans up the gpio-msm-v2 driver of all the global define usage. The number of gpios are now defined in the device tree. This enables adding irqdomain support as well. Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org> Acked-by: Grant Likely <grant.likely@linaro.org> Signed-off-by: David Brown <davidb@codeaurora.org>
- Loading branch information
Rohit Vaswani
authored and
David Brown
committed
Jun 12, 2013
1 parent
eda9dcf
commit 43f6844
Showing
5 changed files
with
162 additions
and
78 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,26 @@ | ||
MSM GPIO controller bindings | ||
|
||
Required properties: | ||
- compatible: | ||
- "qcom,msm-gpio" for MSM controllers | ||
- #gpio-cells : Should be two. | ||
- first cell is the pin number | ||
- second cell is used to specify optional parameters (unused) | ||
- gpio-controller : Marks the device node as a GPIO controller. | ||
- #interrupt-cells : Should be 2. | ||
- interrupt-controller: Mark the device node as an interrupt controller | ||
- interrupts : Specify the TLMM summary interrupt number | ||
- ngpio : Specify the number of MSM GPIOs | ||
|
||
Example: | ||
|
||
msmgpio: gpio@fd510000 { | ||
compatible = "qcom,msm-gpio"; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
reg = <0xfd510000 0x4000>; | ||
interrupts = <0 208 0>; | ||
ngpio = <150>; | ||
}; |
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
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