samsung,exynos4210-mct.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. Samsung's Multi Core Timer (MCT)
  2. The Samsung's Multi Core Timer (MCT) module includes two main blocks, the
  3. global timer and CPU local timers. The global timer is a 64-bit free running
  4. up-counter and can generate 4 interrupts when the counter reaches one of the
  5. four preset counter values. The CPU local timers are 32-bit free running
  6. down-counters and generate an interrupt when the counter expires. There is
  7. one CPU local timer instantiated in MCT for every CPU in the system.
  8. Required properties:
  9. - compatible: should be "samsung,exynos4210-mct".
  10. (a) "samsung,exynos4210-mct", for mct compatible with Exynos4210 mct.
  11. (b) "samsung,exynos4412-mct", for mct compatible with Exynos4412 mct.
  12. - reg: base address of the mct controller and length of the address space
  13. it occupies.
  14. - interrupts: the list of interrupts generated by the controller. The following
  15. should be the order of the interrupts specified. The local timer interrupts
  16. should be specified after the four global timer interrupts have been
  17. specified.
  18. 0: Global Timer Interrupt 0
  19. 1: Global Timer Interrupt 1
  20. 2: Global Timer Interrupt 2
  21. 3: Global Timer Interrupt 3
  22. 4: Local Timer Interrupt 0
  23. 5: Local Timer Interrupt 1
  24. 6: ..
  25. 7: ..
  26. i: Local Timer Interrupt n
  27. Example 1: In this example, the system uses only the first global timer
  28. interrupt generated by MCT and the remaining three global timer
  29. interrupts are unused. Two local timer interrupts have been
  30. specified.
  31. mct@10050000 {
  32. compatible = "samsung,exynos4210-mct";
  33. reg = <0x10050000 0x800>;
  34. interrupts = <0 57 0>, <0 0 0>, <0 0 0>, <0 0 0>,
  35. <0 42 0>, <0 48 0>;
  36. };
  37. Example 2: In this example, the MCT global and local timer interrupts are
  38. connected to two seperate interrupt controllers. Hence, an
  39. interrupt-map is created to map the interrupts to the respective
  40. interrupt controllers.
  41. mct@101C0000 {
  42. compatible = "samsung,exynos4210-mct";
  43. reg = <0x101C0000 0x800>;
  44. interrupt-controller;
  45. #interrups-cells = <2>;
  46. interrupt-parent = <&mct_map>;
  47. interrupts = <0 0>, <1 0>, <2 0>, <3 0>,
  48. <4 0>, <5 0>;
  49. mct_map: mct-map {
  50. #interrupt-cells = <2>;
  51. #address-cells = <0>;
  52. #size-cells = <0>;
  53. interrupt-map = <0x0 0 &combiner 23 3>,
  54. <0x4 0 &gic 0 120 0>,
  55. <0x5 0 &gic 0 121 0>;
  56. };
  57. };