-
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.
ARM: msm: Add DT support to msm_timer
Add support to setup the MSM timer via information obtained from the devicetree. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> [davidb@codeaurora.org: Remove leading zeros] Signed-off-by: David Brown <davidb@codeaurora.org>
- Loading branch information
Stephen Boyd
authored and
David Brown
committed
Sep 13, 2012
1 parent
4312a7e
commit 6e33216
Showing
3 changed files
with
126 additions
and
0 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,38 @@ | ||
* MSM Timer | ||
|
||
Properties: | ||
|
||
- compatible : Should at least contain "qcom,msm-timer". More specific | ||
properties such as "qcom,msm-gpt" and "qcom,msm-dgt" specify a general | ||
purpose timer and a debug timer respectively. | ||
|
||
- interrupts : Interrupt indicating a match event. | ||
|
||
- reg : Specifies the base address of the timer registers. The second region | ||
specifies an optional register used to configure the clock divider. | ||
|
||
- clock-frequency : The frequency of the timer in Hz. | ||
|
||
Optional: | ||
|
||
- cpu-offset : per-cpu offset used when the timer is accessed without the | ||
CPU remapping facilities. The offset is cpu-offset * cpu-nr. | ||
|
||
Example: | ||
|
||
timer@200a004 { | ||
compatible = "qcom,msm-gpt", "qcom,msm-timer"; | ||
interrupts = <1 2 0x301>; | ||
reg = <0x0200a004 0x10>; | ||
clock-frequency = <32768>; | ||
cpu-offset = <0x40000>; | ||
}; | ||
|
||
timer@200a024 { | ||
compatible = "qcom,msm-dgt", "qcom,msm-timer"; | ||
interrupts = <1 3 0x301>; | ||
reg = <0x0200a024 0x10>, | ||
<0x0200a034 0x4>; | ||
clock-frequency = <6750000>; | ||
cpu-offset = <0x40000>; | ||
}; |
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