renesas,mtu2.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. * Renesas Multi-Function Timer Pulse Unit 2 (MTU2)
  2. The MTU2 is a multi-purpose, multi-channel timer/counter with configurable
  3. clock inputs and programmable compare match.
  4. Channels share hardware resources but their counter and compare match value
  5. are independent. The MTU2 hardware supports five channels indexed from 0 to 4.
  6. Required Properties:
  7. - compatible: must be one or more of the following:
  8. - "renesas,mtu2-r7s72100" for the r7s72100 MTU2
  9. - "renesas,mtu2" for any MTU2
  10. This is a fallback for the above renesas,mtu2-* entries
  11. - reg: base address and length of the registers block for the timer module.
  12. - interrupts: interrupt specifiers for the timer, one for each entry in
  13. interrupt-names.
  14. - interrupt-names: must contain one entry named "tgi?a" for each enabled
  15. channel, where "?" is the channel index expressed as one digit from "0" to
  16. "4".
  17. - clocks: a list of phandle + clock-specifier pairs, one for each entry
  18. in clock-names.
  19. - clock-names: must contain "fck" for the functional clock.
  20. Example: R7S72100 (RZ/A1H) MTU2 node
  21. mtu2: timer@fcff0000 {
  22. compatible = "renesas,mtu2-r7s72100", "renesas,mtu2";
  23. reg = <0xfcff0000 0x400>;
  24. interrupts = <0 139 IRQ_TYPE_LEVEL_HIGH>,
  25. <0 146 IRQ_TYPE_LEVEL_HIGH>,
  26. <0 150 IRQ_TYPE_LEVEL_HIGH>,
  27. <0 154 IRQ_TYPE_LEVEL_HIGH>,
  28. <0 159 IRQ_TYPE_LEVEL_HIGH>;
  29. interrupt-names = "tgi0a", "tgi1a", "tgi2a", "tgi3a", "tgi4a";
  30. clocks = <&mstp3_clks R7S72100_CLK_MTU2>;
  31. clock-names = "fck";
  32. };