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