csky,mptimer.txt 1.0 KB

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