Stephen Boyd | 6e33216 | 2012-09-05 12:28:53 -0700 | [diff] [blame] | 1 | * MSM Timer |
| 2 | |
| 3 | Properties: |
| 4 | |
| 5 | - compatible : Should at least contain "qcom,msm-timer". More specific |
Stephen Boyd | eebdb0c | 2013-03-14 20:31:38 -0700 | [diff] [blame] | 6 | properties specify which subsystem the timers are paired with. |
Stephen Boyd | 6e33216 | 2012-09-05 12:28:53 -0700 | [diff] [blame] | 7 | |
Stephen Boyd | eebdb0c | 2013-03-14 20:31:38 -0700 | [diff] [blame] | 8 | "qcom,kpss-timer" - krait subsystem |
| 9 | "qcom,scss-timer" - scorpion subsystem |
Stephen Boyd | 6e33216 | 2012-09-05 12:28:53 -0700 | [diff] [blame] | 10 | |
Masanari Iida | ac3e8ea | 2015-01-02 22:54:39 +0900 | [diff] [blame] | 11 | - interrupts : Interrupts for the debug timer, the first general purpose |
Mathieu Olivari | cf79fb1 | 2015-02-20 18:19:36 -0800 | [diff] [blame] | 12 | timer, and optionally a second general purpose timer, and |
| 13 | optionally as well, 2 watchdog interrupts, in that order. |
Stephen Boyd | 6e33216 | 2012-09-05 12:28:53 -0700 | [diff] [blame] | 14 | |
Stephen Boyd | eebdb0c | 2013-03-14 20:31:38 -0700 | [diff] [blame] | 15 | - reg : Specifies the base address of the timer registers. |
| 16 | |
Mathieu Olivari | cf79fb1 | 2015-02-20 18:19:36 -0800 | [diff] [blame] | 17 | - clocks: Reference to the parent clocks, one per output clock. The parents |
| 18 | must appear in the same order as the clock names. |
| 19 | |
| 20 | - clock-names: The name of the clocks as free-form strings. They should be in |
| 21 | the same order as the clocks. |
| 22 | |
Stephen Boyd | eebdb0c | 2013-03-14 20:31:38 -0700 | [diff] [blame] | 23 | - clock-frequency : The frequency of the debug timer and the general purpose |
| 24 | timer(s) in Hz in that order. |
Stephen Boyd | 6e33216 | 2012-09-05 12:28:53 -0700 | [diff] [blame] | 25 | |
| 26 | Optional: |
| 27 | |
| 28 | - cpu-offset : per-cpu offset used when the timer is accessed without the |
Stephen Boyd | eebdb0c | 2013-03-14 20:31:38 -0700 | [diff] [blame] | 29 | CPU remapping facilities. The offset is |
| 30 | cpu-offset + (0x10000 * cpu-nr). |
Stephen Boyd | 6e33216 | 2012-09-05 12:28:53 -0700 | [diff] [blame] | 31 | |
| 32 | Example: |
| 33 | |
Stephen Boyd | eebdb0c | 2013-03-14 20:31:38 -0700 | [diff] [blame] | 34 | timer@200a000 { |
| 35 | compatible = "qcom,scss-timer", "qcom,msm-timer"; |
| 36 | interrupts = <1 1 0x301>, |
| 37 | <1 2 0x301>, |
Mathieu Olivari | cf79fb1 | 2015-02-20 18:19:36 -0800 | [diff] [blame] | 38 | <1 3 0x301>, |
| 39 | <1 4 0x301>, |
| 40 | <1 5 0x301>; |
Stephen Boyd | eebdb0c | 2013-03-14 20:31:38 -0700 | [diff] [blame] | 41 | reg = <0x0200a000 0x100>; |
| 42 | clock-frequency = <19200000>, |
| 43 | <32768>; |
Mathieu Olivari | cf79fb1 | 2015-02-20 18:19:36 -0800 | [diff] [blame] | 44 | clocks = <&sleep_clk>; |
| 45 | clock-names = "sleep"; |
Stephen Boyd | 6e33216 | 2012-09-05 12:28:53 -0700 | [diff] [blame] | 46 | cpu-offset = <0x40000>; |
| 47 | }; |