renesas,tpu.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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,tpu.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Renesas H8/300 Timer Pulse Unit
  7. maintainers:
  8. - Yoshinori Sato <ysato@users.sourceforge.jp>
  9. description:
  10. The TPU is a 16bit timer/counter with configurable clock inputs and
  11. programmable compare match.
  12. This implementation supports only cascade mode.
  13. select:
  14. properties:
  15. compatible:
  16. contains:
  17. const: renesas,tpu
  18. '#pwm-cells': false
  19. required:
  20. - compatible
  21. properties:
  22. compatible:
  23. const: renesas,tpu
  24. reg:
  25. items:
  26. - description: First channel
  27. - description: Second channel
  28. clocks:
  29. maxItems: 1
  30. clock-names:
  31. const: fck
  32. required:
  33. - compatible
  34. - reg
  35. - clocks
  36. - clock-names
  37. additionalProperties: false
  38. examples:
  39. - |
  40. tpu: tpu@ffffe0 {
  41. compatible = "renesas,tpu";
  42. reg = <0xffffe0 16>, <0xfffff0 12>;
  43. clocks = <&pclk>;
  44. clock-names = "fck";
  45. };