net: stmmac: dwmac-imx: enable MAC propagation delay correction for i.MX8MP
authorJohannes Zink <j.zink@pengutronix.de>
Tue, 1 Aug 2023 15:44:30 +0000 (17:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Aug 2023 19:17:13 +0000 (12:17 -0700)
commit6cb2e613c79653e40814152def7abec32efe0f29
tree695a07787cc1349455e1a9d5a19cc306e17223fc
parent26cfb838aa002a5c03319f7fce87e9313e794351
net: stmmac: dwmac-imx: enable MAC propagation delay correction for i.MX8MP

As the i.MX8MP supports reading MAC propagation delay and correcting the
Hardware timestamp counter for additional delays [1], enable the feature
for this SoC.

This reduces phase error of the PPS output from the PTP Hardware Clock
from approx 150ns to 100ns.

[1] i.MX8MP Reference Manual, rev.1 Section 11.7.2.5.3 "Timestamp
correction"

Signed-off-by: Johannes Zink <j.zink@pengutronix.de>
Link: https://lore.kernel.org/r/20230719-stmmac_correct_mac_delay-v3-2-61e63427735e@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c