2020-05-02 04:50:05 +08:00
|
|
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
2020-05-05 18:19:35 +08:00
|
|
|
$id: http://devicetree.org/schemas/net/ti,k3-am654-cpts.yaml#
|
2020-05-02 04:50:05 +08:00
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
2022-08-25 10:04:27 +08:00
|
|
|
title: The TI AM654x/J721E Common Platform Time Sync (CPTS) module
|
2020-05-02 04:50:05 +08:00
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- Grygorii Strashko <grygorii.strashko@ti.com>
|
|
|
|
- Sekhar Nori <nsekhar@ti.com>
|
|
|
|
|
|
|
|
description: |+
|
|
|
|
The TI AM654x/J721E CPTS module is used to facilitate host control of time
|
|
|
|
sync operations.
|
|
|
|
Main features of CPTS module are
|
|
|
|
- selection of multiple external clock sources
|
|
|
|
- Software control of time sync events via interrupt or polling
|
|
|
|
- 64-bit timestamp mode in ns with PPM and nudge adjustment.
|
|
|
|
- hardware timestamp push inputs (HWx_TS_PUSH)
|
|
|
|
- timestamp counter compare output (TS_COMP)
|
|
|
|
- timestamp counter bit output (TS_SYNC)
|
|
|
|
- periodic Generator function outputs (TS_GENFx)
|
|
|
|
- Ethernet Enhanced Scheduled Traffic Operations (CPTS_ESTFn) (TSN)
|
|
|
|
- external hardware timestamp push inputs (HWx_TS_PUSH) timestamping
|
|
|
|
|
|
|
|
Depending on integration it enables compliance with the IEEE 1588-2008
|
|
|
|
standard for a precision clock synchronization protocol, Ethernet Enhanced
|
|
|
|
Scheduled Traffic Operations (CPTS_ESTFn) and PCIe Subsystem Precision Time
|
|
|
|
Measurement (PTM).
|
|
|
|
|
|
|
|
TI AM654x/J721E SoCs has several similar CPTS modules integrated into the
|
|
|
|
different parts of the system which could be synchronized with each other
|
|
|
|
- Main CPTS
|
|
|
|
- MCU CPSW CPTS with IEEE 1588-2008 support
|
|
|
|
- PCIe subsystem CPTS for PTM support
|
|
|
|
|
|
|
|
Depending on CPTS module integration and when CPTS is integral part of
|
|
|
|
another module (MCU CPSW for example) "compatible" and "reg" can
|
|
|
|
be omitted - parent module is fully responsible for CPTS enabling and
|
|
|
|
configuration.
|
|
|
|
|
|
|
|
properties:
|
|
|
|
$nodename:
|
2020-05-07 02:14:00 +08:00
|
|
|
pattern: "^cpts@[0-9a-f]+$"
|
2020-05-02 04:50:05 +08:00
|
|
|
|
|
|
|
compatible:
|
2021-08-25 03:51:54 +08:00
|
|
|
enum:
|
|
|
|
- ti,am65-cpts
|
|
|
|
- ti,j721e-cpts
|
2020-05-02 04:50:05 +08:00
|
|
|
|
|
|
|
reg:
|
|
|
|
maxItems: 1
|
|
|
|
description:
|
2020-05-07 02:14:00 +08:00
|
|
|
The physical base address and size of CPTS IO range
|
2020-05-02 04:50:05 +08:00
|
|
|
|
|
|
|
reg-names:
|
|
|
|
items:
|
|
|
|
- const: cpts
|
|
|
|
|
|
|
|
clocks:
|
2021-01-05 07:02:53 +08:00
|
|
|
maxItems: 1
|
2020-05-02 04:50:05 +08:00
|
|
|
description: CPTS reference clock
|
|
|
|
|
|
|
|
clock-names:
|
|
|
|
items:
|
|
|
|
- const: cpts
|
|
|
|
|
2020-05-07 02:14:00 +08:00
|
|
|
interrupts:
|
2020-05-02 04:50:05 +08:00
|
|
|
items:
|
|
|
|
- description: CPTS events interrupt
|
|
|
|
|
|
|
|
interrupt-names:
|
|
|
|
items:
|
2020-05-07 02:14:00 +08:00
|
|
|
- const: cpts
|
2020-05-02 04:50:05 +08:00
|
|
|
|
2021-01-16 03:28:48 +08:00
|
|
|
assigned-clock-parents: true
|
|
|
|
|
|
|
|
assigned-clocks: true
|
|
|
|
|
|
|
|
power-domains:
|
|
|
|
maxItems: 1
|
|
|
|
|
2020-05-02 04:50:05 +08:00
|
|
|
ti,cpts-ext-ts-inputs:
|
2020-06-11 05:49:12 +08:00
|
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
2020-05-02 04:50:05 +08:00
|
|
|
maximum: 8
|
|
|
|
description:
|
2020-05-07 02:14:00 +08:00
|
|
|
Number of hardware timestamp push inputs (HWx_TS_PUSH)
|
2020-05-02 04:50:05 +08:00
|
|
|
|
|
|
|
ti,cpts-periodic-outputs:
|
2020-06-11 05:49:12 +08:00
|
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
2020-05-02 04:50:05 +08:00
|
|
|
maximum: 8
|
|
|
|
description:
|
2020-05-07 02:14:00 +08:00
|
|
|
Number of timestamp Generator function outputs (TS_GENFx)
|
2020-05-02 04:50:05 +08:00
|
|
|
|
|
|
|
refclk-mux:
|
|
|
|
type: object
|
2022-08-26 03:26:07 +08:00
|
|
|
additionalProperties: false
|
2020-05-02 04:50:05 +08:00
|
|
|
description: CPTS reference clock multiplexer clock
|
|
|
|
properties:
|
|
|
|
'#clock-cells':
|
|
|
|
const: 0
|
|
|
|
|
|
|
|
clocks:
|
|
|
|
maxItems: 8
|
|
|
|
|
|
|
|
required:
|
|
|
|
- clocks
|
|
|
|
|
|
|
|
required:
|
2020-05-07 02:14:00 +08:00
|
|
|
- compatible
|
|
|
|
- reg
|
2020-05-02 04:50:05 +08:00
|
|
|
- clocks
|
|
|
|
- clock-names
|
2020-05-07 02:14:00 +08:00
|
|
|
- interrupts
|
2020-05-02 04:50:05 +08:00
|
|
|
- interrupt-names
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
|
|
|
|
cpts@310d0000 {
|
|
|
|
compatible = "ti,am65-cpts";
|
2020-06-11 22:58:04 +08:00
|
|
|
reg = <0x310d0000 0x400>;
|
2020-05-02 04:50:05 +08:00
|
|
|
reg-names = "cpts";
|
|
|
|
clocks = <&main_cpts_mux>;
|
|
|
|
clock-names = "cpts";
|
|
|
|
interrupts-extended = <&k3_irq 163 0 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-names = "cpts";
|
|
|
|
ti,cpts-periodic-outputs = <6>;
|
|
|
|
ti,cpts-ext-ts-inputs = <8>;
|
|
|
|
|
|
|
|
main_cpts_mux: refclk-mux {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clocks = <&k3_clks 118 5>, <&k3_clks 118 11>,
|
|
|
|
<&k3_clks 157 91>, <&k3_clks 157 77>,
|
|
|
|
<&k3_clks 157 102>, <&k3_clks 157 80>,
|
|
|
|
<&k3_clks 120 3>, <&k3_clks 121 3>;
|
|
|
|
assigned-clocks = <&main_cpts_mux>;
|
|
|
|
assigned-clock-parents = <&k3_clks 118 11>;
|
|
|
|
};
|
|
|
|
};
|