phy: nxp-c45-tja11xx: add timestamping support
authorRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Mon, 10 May 2021 15:34:33 +0000 (18:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 May 2021 21:54:23 +0000 (14:54 -0700)
commit514def5dd33984e986e0a3afd2a369d8b4688d3f
tree52d7f4fff7ffa70e632aff195c5a5ac03ee591bd
parent9d9d415f0048e4f7a6109595e2d1657850569c6c
phy: nxp-c45-tja11xx: add timestamping support

Add mii_timestamper interface and register a ptp clock.
The package timestamping can work with or without interrupts.
RX timestamps are received in the reserved field of the PTP package.
TX timestamps are read via MDIO from a set of registers.

Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/nxp-c45-tja11xx.c