nxp,lpc3220-timer.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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,lpc3220-timer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: NXP LPC3220 timer
  7. maintainers:
  8. - Animesh Agarwal <animeshagarwal28@gmail.com>
  9. description: |
  10. The NXP LPC3220 timer is used on a wide range of NXP SoCs. This includes
  11. LPC32xx, LPC178x, LPC18xx and LPC43xx parts.
  12. properties:
  13. compatible:
  14. const: nxp,lpc3220-timer
  15. reg:
  16. maxItems: 1
  17. interrupts:
  18. maxItems: 1
  19. clocks:
  20. maxItems: 1
  21. clock-names:
  22. const: timerclk
  23. resets:
  24. maxItems: 1
  25. required:
  26. - compatible
  27. - reg
  28. - interrupts
  29. - clocks
  30. - clock-names
  31. additionalProperties: false
  32. examples:
  33. - |
  34. #include <dt-bindings/clock/lpc32xx-clock.h>
  35. #include <dt-bindings/interrupt-controller/irq.h>
  36. timer@4004c000 {
  37. compatible = "nxp,lpc3220-timer";
  38. reg = <0x4004c000 0x1000>;
  39. interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
  40. clocks = <&clk LPC32XX_CLK_TIMER1>;
  41. clock-names = "timerclk";
  42. };