st,nomadik-mtu.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. # Copyright 2022 Linaro Ltd.
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/timer/st,nomadik-mtu.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: ST Microelectronics Nomadik Multi-Timer Unit MTU Timer
  8. maintainers:
  9. - Linus Walleij <linus.walleij@linaro.org>
  10. description: This timer is found in the ST Microelectronics Nomadik
  11. SoCs STn8800, STn8810 and STn8815 as well as in ST-Ericsson DB8500.
  12. properties:
  13. compatible:
  14. items:
  15. - const: st,nomadik-mtu
  16. reg:
  17. maxItems: 1
  18. interrupts:
  19. maxItems: 1
  20. clocks:
  21. description: The first clock named TIMCLK clocks the actual timers and
  22. the second clock clocks the digital interface to the interconnect.
  23. maxItems: 2
  24. clock-names:
  25. items:
  26. - const: timclk
  27. - const: apb_pclk
  28. required:
  29. - compatible
  30. - reg
  31. - interrupts
  32. - clocks
  33. - clock-names
  34. additionalProperties: false
  35. examples:
  36. - |
  37. #include <dt-bindings/interrupt-controller/irq.h>
  38. #include <dt-bindings/interrupt-controller/arm-gic.h>
  39. #include <dt-bindings/mfd/dbx500-prcmu.h>
  40. timer@a03c6000 {
  41. compatible = "st,nomadik-mtu";
  42. reg = <0xa03c6000 0x1000>;
  43. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
  44. clocks = <&prcmu_clk PRCMU_TIMCLK>, <&prcc_pclk 6 6>;
  45. clock-names = "timclk", "apb_pclk";
  46. };