18c2ecf20Sopenharmony_ci============================ 28c2ecf20Sopenharmony_ciC-SKY Multi-processors Timer 38c2ecf20Sopenharmony_ci============================ 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciC-SKY multi-processors timer is designed for C-SKY SMP system and the 68c2ecf20Sopenharmony_ciregs is accessed by cpu co-processor 4 registers with mtcr/mfcr. 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci - PTIM_CTLR "cr<0, 14>" Control reg to start reset timer. 98c2ecf20Sopenharmony_ci - PTIM_TSR "cr<1, 14>" Interrupt cleanup status reg. 108c2ecf20Sopenharmony_ci - PTIM_CCVR "cr<3, 14>" Current counter value reg. 118c2ecf20Sopenharmony_ci - PTIM_LVR "cr<6, 14>" Window value reg to trigger next event. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci============================== 148c2ecf20Sopenharmony_citimer node bindings definition 158c2ecf20Sopenharmony_ci============================== 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci Description: Describes SMP timer 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci PROPERTIES 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci - compatible 228c2ecf20Sopenharmony_ci Usage: required 238c2ecf20Sopenharmony_ci Value type: <string> 248c2ecf20Sopenharmony_ci Definition: must be "csky,mptimer" 258c2ecf20Sopenharmony_ci - clocks 268c2ecf20Sopenharmony_ci Usage: required 278c2ecf20Sopenharmony_ci Value type: <node> 288c2ecf20Sopenharmony_ci Definition: must be input clk node 298c2ecf20Sopenharmony_ci - interrupts 308c2ecf20Sopenharmony_ci Usage: required 318c2ecf20Sopenharmony_ci Value type: <u32> 328c2ecf20Sopenharmony_ci Definition: must be timer irq num defined by soc 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ciExamples: 358c2ecf20Sopenharmony_ci--------- 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci timer: timer { 388c2ecf20Sopenharmony_ci compatible = "csky,mptimer"; 398c2ecf20Sopenharmony_ci clocks = <&dummy_apb_clk>; 408c2ecf20Sopenharmony_ci interrupts = <16>; 418c2ecf20Sopenharmony_ci interrupt-parent = <&intc>; 428c2ecf20Sopenharmony_ci }; 43