xref: /linux/Documentation/devicetree/bindings/timer/csky,mptimer.txt (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1732e5dcaSGuo Ren============================
2732e5dcaSGuo RenC-SKY Multi-processors Timer
3732e5dcaSGuo Ren============================
4732e5dcaSGuo Ren
5732e5dcaSGuo RenC-SKY multi-processors timer is designed for C-SKY SMP system and the
6732e5dcaSGuo Renregs is accessed by cpu co-processor 4 registers with mtcr/mfcr.
7732e5dcaSGuo Ren
8732e5dcaSGuo Ren - PTIM_CTLR "cr<0, 14>" Control reg to start reset timer.
9732e5dcaSGuo Ren - PTIM_TSR  "cr<1, 14>" Interrupt cleanup status reg.
10732e5dcaSGuo Ren - PTIM_CCVR "cr<3, 14>" Current counter value reg.
11*8c310557SFlavio Suligoi - PTIM_LVR  "cr<6, 14>" Window value reg to trigger next event.
12732e5dcaSGuo Ren
13732e5dcaSGuo Ren==============================
14732e5dcaSGuo Rentimer node bindings definition
15732e5dcaSGuo Ren==============================
16732e5dcaSGuo Ren
17732e5dcaSGuo Ren	Description: Describes SMP timer
18732e5dcaSGuo Ren
19732e5dcaSGuo Ren	PROPERTIES
20732e5dcaSGuo Ren
21732e5dcaSGuo Ren	- compatible
22732e5dcaSGuo Ren		Usage: required
23732e5dcaSGuo Ren		Value type: <string>
24732e5dcaSGuo Ren		Definition: must be "csky,mptimer"
25732e5dcaSGuo Ren	- clocks
26732e5dcaSGuo Ren		Usage: required
27732e5dcaSGuo Ren		Value type: <node>
28732e5dcaSGuo Ren		Definition: must be input clk node
29732e5dcaSGuo Ren	- interrupts
30732e5dcaSGuo Ren		Usage: required
31732e5dcaSGuo Ren		Value type: <u32>
32732e5dcaSGuo Ren		Definition: must be timer irq num defined by soc
33732e5dcaSGuo Ren
34732e5dcaSGuo RenExamples:
35732e5dcaSGuo Ren---------
36732e5dcaSGuo Ren
37732e5dcaSGuo Ren	timer: timer {
38732e5dcaSGuo Ren		compatible = "csky,mptimer";
39732e5dcaSGuo Ren		clocks = <&dummy_apb_clk>;
40732e5dcaSGuo Ren		interrupts = <16>;
41732e5dcaSGuo Ren		interrupt-parent = <&intc>;
42732e5dcaSGuo Ren	};
43