xref: /freebsd-src/sys/contrib/device-tree/Bindings/net/intel,ixp46x-ptp-timer.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2354d7675SEmmanuel Vadot# Copyright 2018 Linaro Ltd.
3354d7675SEmmanuel Vadot%YAML 1.2
4354d7675SEmmanuel Vadot---
5*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/net/intel,ixp46x-ptp-timer.yaml#
6*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7354d7675SEmmanuel Vadot
8354d7675SEmmanuel Vadottitle: Intel IXP46x PTP Timer (TSYNC)
9354d7675SEmmanuel Vadot
10354d7675SEmmanuel Vadotmaintainers:
11354d7675SEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
12354d7675SEmmanuel Vadot
13354d7675SEmmanuel Vadotdescription: |
14354d7675SEmmanuel Vadot  The Intel IXP46x PTP timer is known in the manual as IEEE1588 Hardware
15354d7675SEmmanuel Vadot  Assist and Time Synchronization Hardware Assist TSYNC provides a PTP
16354d7675SEmmanuel Vadot  timer. It exists in the Intel IXP45x and IXP46x XScale SoCs.
17354d7675SEmmanuel Vadot
18354d7675SEmmanuel Vadotproperties:
19354d7675SEmmanuel Vadot  compatible:
20354d7675SEmmanuel Vadot    const: intel,ixp46x-ptp-timer
21354d7675SEmmanuel Vadot
22354d7675SEmmanuel Vadot  reg:
23354d7675SEmmanuel Vadot    maxItems: 1
24354d7675SEmmanuel Vadot
25354d7675SEmmanuel Vadot  interrupts:
26354d7675SEmmanuel Vadot    items:
27354d7675SEmmanuel Vadot      - description: Interrupt to trigger master mode snapshot from the
28354d7675SEmmanuel Vadot          PRP timer, usually a GPIO interrupt.
29354d7675SEmmanuel Vadot      - description: Interrupt to trigger slave mode snapshot from the
30354d7675SEmmanuel Vadot          PRP timer, usually a GPIO interrupt.
31354d7675SEmmanuel Vadot
32354d7675SEmmanuel Vadot  interrupt-names:
33354d7675SEmmanuel Vadot    items:
34354d7675SEmmanuel Vadot      - const: master
35354d7675SEmmanuel Vadot      - const: slave
36354d7675SEmmanuel Vadot
37354d7675SEmmanuel Vadotrequired:
38354d7675SEmmanuel Vadot  - compatible
39354d7675SEmmanuel Vadot  - reg
40354d7675SEmmanuel Vadot  - interrupts
41354d7675SEmmanuel Vadot  - interrupt-names
42354d7675SEmmanuel Vadot
43354d7675SEmmanuel VadotadditionalProperties: false
44354d7675SEmmanuel Vadot
45354d7675SEmmanuel Vadotexamples:
46354d7675SEmmanuel Vadot  - |
47354d7675SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
48354d7675SEmmanuel Vadot    ptp-timer@c8010000 {
49354d7675SEmmanuel Vadot        compatible = "intel,ixp46x-ptp-timer";
50354d7675SEmmanuel Vadot        reg = <0xc8010000 0x1000>;
51354d7675SEmmanuel Vadot        interrupt-parent = <&gpio0>;
52354d7675SEmmanuel Vadot        interrupts = <8 IRQ_TYPE_EDGE_FALLING>, <7 IRQ_TYPE_EDGE_FALLING>;
53354d7675SEmmanuel Vadot        interrupt-names = "master", "slave";
54354d7675SEmmanuel Vadot    };
55