xref: /linux/Documentation/devicetree/bindings/timer/csky,mptimer.txt (revision 732e5dca374d764bd9711c8c121b0e18ff92985e)
1*732e5dcaSGuo Ren============================
2*732e5dcaSGuo RenC-SKY Multi-processors Timer
3*732e5dcaSGuo Ren============================
4*732e5dcaSGuo Ren
5*732e5dcaSGuo RenC-SKY multi-processors timer is designed for C-SKY SMP system and the
6*732e5dcaSGuo Renregs is accessed by cpu co-processor 4 registers with mtcr/mfcr.
7*732e5dcaSGuo Ren
8*732e5dcaSGuo Ren - PTIM_CTLR "cr<0, 14>" Control reg to start reset timer.
9*732e5dcaSGuo Ren - PTIM_TSR  "cr<1, 14>" Interrupt cleanup status reg.
10*732e5dcaSGuo Ren - PTIM_CCVR "cr<3, 14>" Current counter value reg.
11*732e5dcaSGuo Ren - PTIM_LVR  "cr<6, 14>" Window value reg to triger next event.
12*732e5dcaSGuo Ren
13*732e5dcaSGuo Ren==============================
14*732e5dcaSGuo Rentimer node bindings definition
15*732e5dcaSGuo Ren==============================
16*732e5dcaSGuo Ren
17*732e5dcaSGuo Ren	Description: Describes SMP timer
18*732e5dcaSGuo Ren
19*732e5dcaSGuo Ren	PROPERTIES
20*732e5dcaSGuo Ren
21*732e5dcaSGuo Ren	- compatible
22*732e5dcaSGuo Ren		Usage: required
23*732e5dcaSGuo Ren		Value type: <string>
24*732e5dcaSGuo Ren		Definition: must be "csky,mptimer"
25*732e5dcaSGuo Ren	- clocks
26*732e5dcaSGuo Ren		Usage: required
27*732e5dcaSGuo Ren		Value type: <node>
28*732e5dcaSGuo Ren		Definition: must be input clk node
29*732e5dcaSGuo Ren	- interrupts
30*732e5dcaSGuo Ren		Usage: required
31*732e5dcaSGuo Ren		Value type: <u32>
32*732e5dcaSGuo Ren		Definition: must be timer irq num defined by soc
33*732e5dcaSGuo Ren
34*732e5dcaSGuo RenExamples:
35*732e5dcaSGuo Ren---------
36*732e5dcaSGuo Ren
37*732e5dcaSGuo Ren	timer: timer {
38*732e5dcaSGuo Ren		compatible = "csky,mptimer";
39*732e5dcaSGuo Ren		clocks = <&dummy_apb_clk>;
40*732e5dcaSGuo Ren		interrupts = <16>;
41*732e5dcaSGuo Ren		interrupt-parent = <&intc>;
42*732e5dcaSGuo Ren	};
43