The Global Timebase Counter (GTC) of TI K3 SoCs is the system counter, the one the Arm cores read as the architected counter. It can export one of its counter bits, selected by GTC_CFG0_PUSHEVT, as a push event output, and the Time Sync Router can route that output to one of the CPTS hardware timestamp push inputs (HWx_TS_PUSH). The CPTS then timestamps edges that fall at known counter values, which gives pairs of CPTS and system counter values. Add an optional ti,gtc-push property giving the GTC CFG0 syscon and the HWx_TS_PUSH input the push event is routed to. The CPTS driver uses this to write GTC_CFG0_PUSHEVT. The router itself is configured separately, as it is for ti,pps. Reviewed-by: Rob Herring (Arm) <ro…@kernel.org> Signed-off-by: James Clark <j…@jclark.com> --- .../bindings/net/ti,k3-am654-cpts.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml b/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml index 3572749147fb..7bf5bedc2b9c 100644 --- a/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml +++ b/Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml @@ -101,6 +101,23 @@ properties: The pair of HWx_TS_PUSH input and TS_GENFy output indexes used for PPS events generation. Platform/board specific. + ti,gtc-push: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to the Global Timebase Counter (GTC) CFG0 + syscon + - description: HWx_TS_PUSH input index (0-based) the GTC push event + is routed to + maximum: 7 + description: | + The GTC is the SoC's system counter (the Arm architected counter). Its + push event output, one counter bit selected by GTC_CFG0_PUSHEVT, reaches + a CPTS hardware timestamp push input through the Time Sync Router. With + this property the CPTS timestamps that signal to provide hardware + cross-timestamps of the CPTS and the system counter. The router is + configured separately. Platform/board specific. + refclk-mux: type: object additionalProperties: false
-- 2.56.1