xref: /linux/Documentation/devicetree/bindings/net/intel,ixp46x-ptp-timer.yaml (revision 3079bfdbda6cc776b4fba4556258966753a6d840)
1323fb75dSLinus Walleij# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2323fb75dSLinus Walleij# Copyright 2018 Linaro Ltd.
3323fb75dSLinus Walleij%YAML 1.2
4323fb75dSLinus Walleij---
5*3079bfdbSRob Herring$id: http://devicetree.org/schemas/net/intel,ixp46x-ptp-timer.yaml#
6*3079bfdbSRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
7323fb75dSLinus Walleij
8323fb75dSLinus Walleijtitle: Intel IXP46x PTP Timer (TSYNC)
9323fb75dSLinus Walleij
10323fb75dSLinus Walleijmaintainers:
11323fb75dSLinus Walleij  - Linus Walleij <linus.walleij@linaro.org>
12323fb75dSLinus Walleij
13323fb75dSLinus Walleijdescription: |
14323fb75dSLinus Walleij  The Intel IXP46x PTP timer is known in the manual as IEEE1588 Hardware
15323fb75dSLinus Walleij  Assist and Time Synchronization Hardware Assist TSYNC provides a PTP
16323fb75dSLinus Walleij  timer. It exists in the Intel IXP45x and IXP46x XScale SoCs.
17323fb75dSLinus Walleij
18323fb75dSLinus Walleijproperties:
19323fb75dSLinus Walleij  compatible:
20323fb75dSLinus Walleij    const: intel,ixp46x-ptp-timer
21323fb75dSLinus Walleij
22323fb75dSLinus Walleij  reg:
23323fb75dSLinus Walleij    maxItems: 1
24323fb75dSLinus Walleij
25323fb75dSLinus Walleij  interrupts:
26323fb75dSLinus Walleij    items:
27323fb75dSLinus Walleij      - description: Interrupt to trigger master mode snapshot from the
28323fb75dSLinus Walleij          PRP timer, usually a GPIO interrupt.
29323fb75dSLinus Walleij      - description: Interrupt to trigger slave mode snapshot from the
30323fb75dSLinus Walleij          PRP timer, usually a GPIO interrupt.
31323fb75dSLinus Walleij
32323fb75dSLinus Walleij  interrupt-names:
33323fb75dSLinus Walleij    items:
34323fb75dSLinus Walleij      - const: master
35323fb75dSLinus Walleij      - const: slave
36323fb75dSLinus Walleij
37323fb75dSLinus Walleijrequired:
38323fb75dSLinus Walleij  - compatible
39323fb75dSLinus Walleij  - reg
40323fb75dSLinus Walleij  - interrupts
41323fb75dSLinus Walleij  - interrupt-names
42323fb75dSLinus Walleij
43323fb75dSLinus WalleijadditionalProperties: false
44323fb75dSLinus Walleij
45323fb75dSLinus Walleijexamples:
46323fb75dSLinus Walleij  - |
47323fb75dSLinus Walleij    #include <dt-bindings/interrupt-controller/irq.h>
48323fb75dSLinus Walleij    ptp-timer@c8010000 {
49323fb75dSLinus Walleij        compatible = "intel,ixp46x-ptp-timer";
50323fb75dSLinus Walleij        reg = <0xc8010000 0x1000>;
51323fb75dSLinus Walleij        interrupt-parent = <&gpio0>;
52323fb75dSLinus Walleij        interrupts = <8 IRQ_TYPE_EDGE_FALLING>, <7 IRQ_TYPE_EDGE_FALLING>;
53323fb75dSLinus Walleij        interrupt-names = "master", "slave";
54323fb75dSLinus Walleij    };
55