blob: 5e10c345548f56b18422c9995b6fe0bdaa33d7b0 [file] [log] [blame]
Stephen Boyd6e332162012-09-05 12:28:53 -07001* MSM Timer
2
3Properties:
4
5- compatible : Should at least contain "qcom,msm-timer". More specific
Stephen Boydeebdb0c2013-03-14 20:31:38 -07006 properties specify which subsystem the timers are paired with.
Stephen Boyd6e332162012-09-05 12:28:53 -07007
Stephen Boydeebdb0c2013-03-14 20:31:38 -07008 "qcom,kpss-timer" - krait subsystem
9 "qcom,scss-timer" - scorpion subsystem
Stephen Boyd6e332162012-09-05 12:28:53 -070010
Masanari Iidaac3e8ea2015-01-02 22:54:39 +090011- interrupts : Interrupts for the debug timer, the first general purpose
Mathieu Olivaricf79fb12015-02-20 18:19:36 -080012 timer, and optionally a second general purpose timer, and
13 optionally as well, 2 watchdog interrupts, in that order.
Stephen Boyd6e332162012-09-05 12:28:53 -070014
Stephen Boydeebdb0c2013-03-14 20:31:38 -070015- reg : Specifies the base address of the timer registers.
16
Mathieu Olivaricf79fb12015-02-20 18:19:36 -080017- 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 Boydeebdb0c2013-03-14 20:31:38 -070023- clock-frequency : The frequency of the debug timer and the general purpose
24 timer(s) in Hz in that order.
Stephen Boyd6e332162012-09-05 12:28:53 -070025
26Optional:
27
28- cpu-offset : per-cpu offset used when the timer is accessed without the
Stephen Boydeebdb0c2013-03-14 20:31:38 -070029 CPU remapping facilities. The offset is
30 cpu-offset + (0x10000 * cpu-nr).
Stephen Boyd6e332162012-09-05 12:28:53 -070031
32Example:
33
Stephen Boydeebdb0c2013-03-14 20:31:38 -070034 timer@200a000 {
35 compatible = "qcom,scss-timer", "qcom,msm-timer";
36 interrupts = <1 1 0x301>,
37 <1 2 0x301>,
Mathieu Olivaricf79fb12015-02-20 18:19:36 -080038 <1 3 0x301>,
39 <1 4 0x301>,
40 <1 5 0x301>;
Stephen Boydeebdb0c2013-03-14 20:31:38 -070041 reg = <0x0200a000 0x100>;
42 clock-frequency = <19200000>,
43 <32768>;
Mathieu Olivaricf79fb12015-02-20 18:19:36 -080044 clocks = <&sleep_clk>;
45 clock-names = "sleep";
Stephen Boyd6e332162012-09-05 12:28:53 -070046 cpu-offset = <0x40000>;
47 };