realtek,otto-timer.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/realtek,otto-timer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Realtek Otto SoCs Timer/Counter
  7. description:
  8. Realtek SoCs support a number of timers/counters. These are used
  9. as a per CPU clock event generator and an overall CPU clocksource.
  10. maintainers:
  11. - Chris Packham <chris.packham@alliedtelesis.co.nz>
  12. properties:
  13. $nodename:
  14. pattern: "^timer@[0-9a-f]+$"
  15. compatible:
  16. items:
  17. - enum:
  18. - realtek,rtl9302-timer
  19. - const: realtek,otto-timer
  20. reg:
  21. items:
  22. - description: timer0 registers
  23. - description: timer1 registers
  24. - description: timer2 registers
  25. - description: timer3 registers
  26. - description: timer4 registers
  27. clocks:
  28. maxItems: 1
  29. interrupts:
  30. items:
  31. - description: timer0 interrupt
  32. - description: timer1 interrupt
  33. - description: timer2 interrupt
  34. - description: timer3 interrupt
  35. - description: timer4 interrupt
  36. required:
  37. - compatible
  38. - reg
  39. - clocks
  40. - interrupts
  41. additionalProperties: false
  42. examples:
  43. - |
  44. timer@3200 {
  45. compatible = "realtek,rtl9302-timer", "realtek,otto-timer";
  46. reg = <0x3200 0x10>, <0x3210 0x10>, <0x3220 0x10>,
  47. <0x3230 0x10>, <0x3240 0x10>;
  48. interrupt-parent = <&intc>;
  49. interrupts = <7>, <8>, <9>, <10>, <11>;
  50. clocks = <&lx_clk>;
  51. };