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