On Agilex 5, the trigger input that an EMAC uses for external timestamps, auxiliary snapshot trigger input 1, comes either from an HPS pin or from the FPGA fabric. The ppstrig_sel bit of the EMAC's tsn register in the System Manager selects which. Which one is right depends on the board's FPGA design. On the Terasic DE25-Nano, the trigger can only come from the FPGA. Add a boolean property for an EMAC whose trigger input 1 is driven by the FPGA design. As the FPGA design is often loaded at run time, the property will usually be set by the overlay that goes with the design, which has to be applied before the EMAC is probed. Signed-off-by: James Clark <j…@jclark.com> --- .../devicetree/bindings/net/altr,socfpga-stmmac.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml b/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml index ce1bd5f2c470..d634920469e4 100644 --- a/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml +++ b/Documentation/devicetree/bindings/net/altr,socfpga-stmmac.yaml @@ -130,6 +130,14 @@ properties: Should be the phandle to the emac splitter soft IP node if DWMAC controller is connected an emac splitter. + altr,f2h-ptp-aux-trig: + type: boolean + description: + If present, indicates that the FPGA design drives auxiliary snapshot + trigger input 1 of the EMAC (ptp_aux_ts_trig_i[1], used for external + timestamps). Otherwise, the input is taken from the HPS I/O pin + multiplexer. + altr,f2h_ptp_ref_clk: $ref: /schemas/types.yaml#/definitions/phandle description: @@ -196,6 +204,8 @@ allOf: interrupt-names: maxItems: 1 + altr,f2h-ptp-aux-trig: false + dma-coherent: false unevaluatedProperties: false
-- 2.56.1