amlogic,meson6-timer.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/amlogic,meson6-timer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Amlogic Meson6 SoCs Timer Controller
  7. maintainers:
  8. - Neil Armstrong <neil.armstrong@linaro.org>
  9. - Martin Blumenstingl <martin.blumenstingl@googlemail.com>
  10. properties:
  11. compatible:
  12. const: amlogic,meson6-timer
  13. reg:
  14. maxItems: 1
  15. interrupts:
  16. maxItems: 4
  17. description: per-timer event interrupts
  18. clocks:
  19. maxItems: 2
  20. clock-names:
  21. items:
  22. - const: xtal
  23. - const: pclk
  24. required:
  25. - compatible
  26. - reg
  27. - interrupts
  28. - clocks
  29. - clock-names
  30. additionalProperties: false
  31. examples:
  32. - |
  33. #include <dt-bindings/interrupt-controller/irq.h>
  34. #include <dt-bindings/interrupt-controller/arm-gic.h>
  35. timer@c1109940 {
  36. compatible = "amlogic,meson6-timer";
  37. reg = <0xc1109940 0x14>;
  38. interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>,
  39. <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>,
  40. <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>,
  41. <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
  42. clocks = <&xtal>, <&clk81>;
  43. clock-names = "xtal", "pclk";
  44. };