[PATCH v3 net-next 00/15] Add NETC Timer PTP driver and add PTP support for i.MX95

Wei Fang
2025-08-12T10:07:05Z

This series adds NETC Timer PTP clock driver, which supports precise
periodic pulse, time capture on external pulse and PTP synchronization.
It also adds PTP support to the enetc v4 driver for i.MX95 and optimizes
the PTP-related code in the enetc driver.

---
v1 link: https://lore.kernel.org/imx/20250711065748.250159-1-wei.fang@nxp.com/
v2 link: https://lore.kernel.org/imx/20250716073111.367382-1-wei.fang@nxp.com/
---

F.S. Peng (1):
ptp: netc: add external trigger stamp support

Wei Fang (14):
dt-bindings: ptp: add NETC Timer PTP clock
dt-bindings: net: add ptp-timer property
dt-bindings: net: add an example for ENETC v4
ptp: netc: add NETC V4 Timer PTP driver support
ptp: netc: add PTP_CLK_REQ_PPS support
ptp: netc: add periodic pulse output support
ptp: netc: add debugfs support to loop back pulse signal
MAINTAINERS: add NETC Timer PTP clock driver section
net: enetc: save the parsed information of PTP packet to skb->cb
net: enetc: extract enetc_update_ptp_sync_msg() to handle PTP Sync
packets
net: enetc: remove unnecessary CONFIG_FSL_ENETC_PTP_CLOCK check
net: enetc: add PTP synchronization support for ENETC v4
net: enetc: don't update sync packet checksum if checksum offload is
used
arm64: dts: imx95: add standard PCI device compatible string to NETC
Timer

.../bindings/net/ethernet-controller.yaml | 5 +
.../devicetree/bindings/net/fsl,enetc.yaml | 15 +
.../devicetree/bindings/ptp/nxp,ptp-netc.yaml | 63 +
MAINTAINERS | 9 +
arch/arm64/boot/dts/freescale/imx95.dtsi | 1 +
drivers/net/ethernet/freescale/enetc/enetc.c | 209 +--
drivers/net/ethernet/freescale/enetc/enetc.h | 21 +-
.../net/ethernet/freescale/enetc/enetc4_hw.h | 6 +
.../net/ethernet/freescale/enetc/enetc4_pf.c | 3 +
.../ethernet/freescale/enetc/enetc_ethtool.c | 92 +-
.../net/ethernet/freescale/enetc/enetc_hw.h | 1 +
drivers/ptp/Kconfig | 11 +
drivers/ptp/Makefile | 1 +
drivers/ptp/ptp_netc.c | 1127 +++++++++++++++++
include/linux/fsl/netc_global.h | 12 +-
15 files changed, 1474 insertions(+), 102 deletions(-)
create mode 100644 Documentation/devicetree/bindings/ptp/nxp,ptp-netc.yaml
create mode 100644 drivers/ptp/ptp_netc.c

--
2.34.1