nuvoton,npcm7xx-timer.yaml 1.4 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/nuvoton,npcm7xx-timer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Nuvoton NPCM7xx timer
  7. maintainers:
  8. - Jonathan Neuschäfer <j.neuschaefer@gmx.net>
  9. - Tomer Maimon <tmaimon77@gmail.com>
  10. properties:
  11. compatible:
  12. enum:
  13. - nuvoton,wpcm450-timer # for Hermon WPCM450
  14. - nuvoton,npcm750-timer # for Poleg NPCM750
  15. - nuvoton,npcm845-timer # for Arbel NPCM845
  16. reg:
  17. maxItems: 1
  18. interrupts:
  19. items:
  20. - description: The timer interrupt of timer 0
  21. clocks:
  22. items:
  23. - description: The reference clock for timer 0
  24. - description: The reference clock for timer 1
  25. - description: The reference clock for timer 2
  26. - description: The reference clock for timer 3
  27. - description: The reference clock for timer 4
  28. minItems: 1
  29. required:
  30. - compatible
  31. - reg
  32. - interrupts
  33. - clocks
  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/clock/nuvoton,npcm7xx-clock.h>
  40. timer@f0008000 {
  41. compatible = "nuvoton,npcm750-timer";
  42. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  43. reg = <0xf0008000 0x50>;
  44. clocks = <&clk NPCM7XX_CLK_TIMER>;
  45. };