fsl,ftm-timer.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/fsl,ftm-timer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Freescale FlexTimer Module (FTM) Timer
  7. maintainers:
  8. - Animesh Agarwal <animeshagarwal28@gmail.com>
  9. properties:
  10. compatible:
  11. const: fsl,ftm-timer
  12. reg:
  13. maxItems: 1
  14. interrupts:
  15. maxItems: 1
  16. clocks:
  17. description: The clocks provided by the SoC to drive the timer, must
  18. contain an entry for each entry in clock-names.
  19. minItems: 4
  20. maxItems: 4
  21. clock-names:
  22. items:
  23. - const: ftm-evt
  24. - const: ftm-src
  25. - const: ftm-evt-counter-en
  26. - const: ftm-src-counter-en
  27. big-endian: true
  28. required:
  29. - compatible
  30. - reg
  31. - interrupts
  32. - clocks
  33. - clock-names
  34. additionalProperties: false
  35. examples:
  36. - |
  37. #include <dt-bindings/clock/vf610-clock.h>
  38. #include <dt-bindings/interrupt-controller/irq.h>
  39. ftm@400b8000 {
  40. compatible = "fsl,ftm-timer";
  41. reg = <0x400b8000 0x1000>;
  42. interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>;
  43. clock-names = "ftm-evt", "ftm-src", "ftm-evt-counter-en", "ftm-src-counter-en";
  44. clocks = <&clks VF610_CLK_FTM2>, <&clks VF610_CLK_FTM3>,
  45. <&clks VF610_CLK_FTM2_EXT_FIX_EN>, <&clks VF610_CLK_FTM3_EXT_FIX_EN>;
  46. big-endian;
  47. };