snps,dw-apb-timer.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/snps,dw-apb-timer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Synopsys DesignWare APB Timer
  7. maintainers:
  8. - Daniel Lezcano <daniel.lezcano@linaro.org>
  9. properties:
  10. compatible:
  11. oneOf:
  12. - const: snps,dw-apb-timer
  13. - enum:
  14. - snps,dw-apb-timer-sp
  15. - snps,dw-apb-timer-osc
  16. deprecated: true
  17. reg:
  18. maxItems: 1
  19. interrupts:
  20. maxItems: 1
  21. resets:
  22. maxItems: 1
  23. clocks:
  24. minItems: 1
  25. items:
  26. - description: Timer ticks reference clock source
  27. - description: APB interface clock source
  28. clock-names:
  29. minItems: 1
  30. items:
  31. - const: timer
  32. - const: pclk
  33. clock-frequency: true
  34. additionalProperties: false
  35. required:
  36. - compatible
  37. - reg
  38. - interrupts
  39. oneOf:
  40. - required:
  41. - clocks
  42. - clock-names
  43. - required:
  44. - clock-frequency
  45. - required:
  46. - clock-freq
  47. examples:
  48. - |
  49. timer@ffe00000 {
  50. compatible = "snps,dw-apb-timer";
  51. interrupts = <0 170 4>;
  52. reg = <0xffe00000 0x1000>;
  53. clocks = <&timer_clk>, <&timer_pclk>;
  54. clock-names = "timer", "pclk";
  55. };
  56. - |
  57. timer@ffe00000 {
  58. compatible = "snps,dw-apb-timer";
  59. interrupts = <0 170 4>;
  60. reg = <0xffe00000 0x1000>;
  61. clocks = <&timer_clk>;
  62. clock-names = "timer";
  63. };
  64. - |
  65. timer@ffe00000 {
  66. compatible = "snps,dw-apb-timer";
  67. interrupts = <0 170 4>;
  68. reg = <0xffe00000 0x1000>;
  69. clock-frequency = <25000000>;
  70. };
  71. ...