-
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: tegra: define DT bindings for and instantiate timer
The Tegra timer provides a number of 29-bit timer channels, a single 32-bit free running counter, and in the Tegra30 variant, 5 watchdog modules. The first two channels may also trigger a legacy watchdog reset. Define a DT binding for this HW module, and add the module into the Tegra device tree files. Signed-off-by: Stephen Warren <swarren@nvidia.com>
- Loading branch information
Stephen Warren
committed
Nov 16, 2012
1 parent
9a2ab3f
commit 2f2b7fb
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
Documentation/devicetree/bindings/timer/nvidia,tegra20-timer.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,21 @@ | ||
NVIDIA Tegra20 timer | ||
|
||
The Tegra20 timer provides four 29-bit timer channels and a single 32-bit free | ||
running counter. The first two channels may also trigger a watchdog reset. | ||
|
||
Required properties: | ||
|
||
- compatible : should be "nvidia,tegra20-timer". | ||
- reg : Specifies base physical address and size of the registers. | ||
- interrupts : A list of 4 interrupts; one per timer channel. | ||
|
||
Example: | ||
|
||
timer { | ||
compatible = "nvidia,tegra20-timer"; | ||
reg = <0x60005000 0x60>; | ||
interrupts = <0 0 0x04 | ||
0 1 0x04 | ||
0 41 0x04 | ||
0 42 0x04>; | ||
}; |
23 changes: 23 additions & 0 deletions
23
Documentation/devicetree/bindings/timer/nvidia,tegra30-timer.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,23 @@ | ||
NVIDIA Tegra30 timer | ||
|
||
The Tegra30 timer provides ten 29-bit timer channels, a single 32-bit free | ||
running counter, and 5 watchdog modules. The first two channels may also | ||
trigger a legacy watchdog reset. | ||
|
||
Required properties: | ||
|
||
- compatible : should be "nvidia,tegra30-timer", "nvidia,tegra20-timer". | ||
- reg : Specifies base physical address and size of the registers. | ||
- interrupts : A list of 6 interrupts; one per each of timer channels 1 | ||
through 5, and one for the shared interrupt for the remaining channels. | ||
|
||
timer { | ||
compatible = "nvidia,tegra30-timer", "nvidia,tegra20-timer"; | ||
reg = <0x60005000 0x400>; | ||
interrupts = <0 0 0x04 | ||
0 1 0x04 | ||
0 41 0x04 | ||
0 42 0x04 | ||
0 121 0x04 | ||
0 122 0x04>; | ||
}; |
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