renesas,mtu2.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/renesas,mtu2.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Renesas Multi-Function Timer Pulse Unit 2 (MTU2)
  7. maintainers:
  8. - Geert Uytterhoeven <geert+renesas@glider.be>
  9. - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
  10. description:
  11. The MTU2 is a multi-purpose, multi-channel timer/counter with configurable clock inputs
  12. and programmable compare match.
  13. Channels share hardware resources but their counter and compare match value are
  14. independent. The MTU2 hardware supports five channels indexed from 0 to 4.
  15. properties:
  16. compatible:
  17. items:
  18. - enum:
  19. - renesas,mtu2-r7s72100 # RZ/A1H
  20. - const: renesas,mtu2
  21. reg:
  22. maxItems: 1
  23. interrupts:
  24. minItems: 1
  25. maxItems: 5
  26. description: One entry for each enabled channel.
  27. interrupt-names:
  28. minItems: 1
  29. items:
  30. - const: tgi0a
  31. - const: tgi1a
  32. - const: tgi2a
  33. - const: tgi3a
  34. - const: tgi4a
  35. clocks:
  36. maxItems: 1
  37. clock-names:
  38. const: fck
  39. power-domains:
  40. maxItems: 1
  41. required:
  42. - compatible
  43. - reg
  44. - interrupts
  45. - interrupt-names
  46. - clocks
  47. - clock-names
  48. - power-domains
  49. additionalProperties: false
  50. examples:
  51. - |
  52. #include <dt-bindings/clock/r7s72100-clock.h>
  53. #include <dt-bindings/interrupt-controller/arm-gic.h>
  54. mtu2: timer@fcff0000 {
  55. compatible = "renesas,mtu2-r7s72100", "renesas,mtu2";
  56. reg = <0xfcff0000 0x400>;
  57. interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
  58. interrupt-names = "tgi0a";
  59. clocks = <&mstp3_clks R7S72100_CLK_MTU2>;
  60. clock-names = "fck";
  61. power-domains = <&cpg_clocks>;
  62. };