nxp,sysctr-timer.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/nxp,sysctr-timer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: NXP System Counter Module(sys_ctr)
  7. maintainers:
  8. - Bai Ping <ping.bai@nxp.com>
  9. description: |
  10. The system counter(sys_ctr) is a programmable system counter
  11. which provides a shared time base to Cortex A15, A7, A53, A73,
  12. etc. it is intended for use in applications where the counter
  13. is always powered and support multiple, unrelated clocks. The
  14. compare frame inside can be used for timer purpose.
  15. properties:
  16. compatible:
  17. enum:
  18. - nxp,imx95-sysctr-timer
  19. - nxp,sysctr-timer
  20. reg:
  21. maxItems: 1
  22. interrupts:
  23. maxItems: 1
  24. clocks:
  25. maxItems: 1
  26. clock-names:
  27. const: per
  28. nxp,no-divider:
  29. description: if present, means there is no internal base clk divider.
  30. type: boolean
  31. required:
  32. - compatible
  33. - reg
  34. - interrupts
  35. - clocks
  36. - clock-names
  37. additionalProperties: false
  38. examples:
  39. - |
  40. #include <dt-bindings/interrupt-controller/arm-gic.h>
  41. timer@306a0000 {
  42. compatible = "nxp,sysctr-timer";
  43. reg = <0x306a0000 0x20000>;
  44. clocks = <&clk_8m>;
  45. clock-names = "per";
  46. interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
  47. };