mpic-timer.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. * Freescale MPIC timers
  2. Required properties:
  3. - compatible: "fsl,mpic-global-timer"
  4. - reg : Contains two regions. The first is the main timer register bank
  5. (GTCCRxx, GTBCRxx, GTVPRxx, GTDRxx). The second is the timer control
  6. register (TCRx) for the group.
  7. - fsl,available-ranges: use <start count> style section to define which
  8. timer interrupts can be used. This property is optional; without this,
  9. all timers within the group can be used.
  10. - interrupts: one interrupt per timer in the group, in order, starting
  11. with timer zero. If timer-available-ranges is present, only the
  12. interrupts that correspond to available timers shall be present.
  13. Example:
  14. /* Note that this requires #interrupt-cells to be 4 */
  15. timer0: timer@41100 {
  16. compatible = "fsl,mpic-global-timer";
  17. reg = <0x41100 0x100 0x41300 4>;
  18. /* Another AMP partition is using timers 0 and 1 */
  19. fsl,available-ranges = <2 2>;
  20. interrupts = <2 0 3 0
  21. 3 0 3 0>;
  22. };
  23. timer1: timer@42100 {
  24. compatible = "fsl,mpic-global-timer";
  25. reg = <0x42100 0x100 0x42300 4>;
  26. interrupts = <4 0 3 0
  27. 5 0 3 0
  28. 6 0 3 0
  29. 7 0 3 0>;
  30. };