intel,ixp46x-ptp-timer.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. # Copyright 2018 Linaro Ltd.
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/net/intel,ixp46x-ptp-timer.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: Intel IXP46x PTP Timer (TSYNC)
  8. maintainers:
  9. - Linus Walleij <linusw@kernel.org>
  10. description: |
  11. The Intel IXP46x PTP timer is known in the manual as IEEE1588 Hardware
  12. Assist and Time Synchronization Hardware Assist TSYNC provides a PTP
  13. timer. It exists in the Intel IXP45x and IXP46x XScale SoCs.
  14. properties:
  15. compatible:
  16. const: intel,ixp46x-ptp-timer
  17. reg:
  18. maxItems: 1
  19. interrupts:
  20. items:
  21. - description: Interrupt to trigger master mode snapshot from the
  22. PRP timer, usually a GPIO interrupt.
  23. - description: Interrupt to trigger slave mode snapshot from the
  24. PRP timer, usually a GPIO interrupt.
  25. interrupt-names:
  26. items:
  27. - const: master
  28. - const: slave
  29. required:
  30. - compatible
  31. - reg
  32. - interrupts
  33. - interrupt-names
  34. additionalProperties: false
  35. examples:
  36. - |
  37. #include <dt-bindings/interrupt-controller/irq.h>
  38. ptp-timer@c8010000 {
  39. compatible = "intel,ixp46x-ptp-timer";
  40. reg = <0xc8010000 0x1000>;
  41. interrupt-parent = <&gpio0>;
  42. interrupts = <8 IRQ_TYPE_EDGE_FALLING>, <7 IRQ_TYPE_EDGE_FALLING>;
  43. interrupt-names = "master", "slave";
  44. };