drivers/ptp

PTP Hardware Clock subsystem and IEEE 1588 timing drivers

Linux's IEEE 1588 Precision Time Protocol subsystem, providing both real timing hardware support — Intel PCH, NXP QorIQ, Renesas/IDT ClockMatrix, and OCP TimeCard cards used in telecom, broadcast, finance, and hyperscale data centres — and virtual PTP clocks that let KVM and VMware guests read accurate time from their host. In use since the early 2010s.

keep conf=0.88 deploy=medium replacement=none subsystem=ptp category=infrastructure
88%

recommendation

It should stay because this directory is the kernel's umbrella for IEEE 1588 Precision Time Protocol support, covering both virtual clocks used by KVM and VMware guests and physical timing hardware still sold new in 2025, including Renesas ClockMatrix devices and OCP TimeCard precision NICs used in data centres and finance. Upstream fixes were still landing and being backported to stable trees in late 2025, so the code is actively maintained rather than legacy.

repository signals

27 files
17,828 source lines
294 commits, 5y
+13,520 / −4,829 lines added / removed, 5y
87 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 294 total · active in 53/61 months
2021 2022 2023 2024 2025 2026 2021-04: 0 commits · +0 −0 2021-05: 2 commits · +3 −22 2021-06: 7 commits · +468 −9 2021-07: 3 commits · +4 −4 2021-08: 16 commits · +1,415 −201 2021-09: 26 commits · +2,157 −1,768 2021-10: 5 commits · +18 −13 2021-11: 2 commits · +6 −8 2021-12: 1 commit · +0 −4 2022-01: 2 commits · +7 −7 2022-02: 11 commits · +120 −171 2022-03: 24 commits · +1,549 −707 2022-04: 0 commits · +0 −0 2022-05: 19 commits · +702 −430 2022-06: 5 commits · +12 −25 2022-07: 1 commit · +1 −0 2022-08: 0 commits · +0 −0 2022-09: 2 commits · +4 −10 2022-10: 7 commits · +520 −52 2022-11: 7 commits · +649 −125 2022-12: 0 commits · +0 −0 2023-01: 1 commit · +43 −7 2023-02: 1 commit · +23 −23 2023-03: 7 commits · +404 −15 2023-04: 0 commits · +0 −0 2023-05: 0 commits · +0 −0 2023-06: 6 commits · +60 −33 2023-07: 1 commit · +1 −1 2023-08: 1 commit · +187 −0 2023-09: 3 commits · +311 −62 2023-10: 7 commits · +186 −55 2023-11: 6 commits · +41 −30 2023-12: 3 commits · +7 −29 2024-01: 4 commits · +1,100 −12 2024-02: 4 commits · +306 −22 2024-03: 4 commits · +32 −29 2024-04: 5 commits · +10 −18 2024-05: 1 commit · +3 −3 2024-06: 3 commits · +6 −12 2024-07: 1 commit · +1 −1 2024-08: 2 commits · +108 −74 2024-09: 5 commits · +22 −20 2024-10: 5 commits · +775 −10 2024-11: 3 commits · +8 −3 2024-12: 3 commits · +18 −18 2025-01: 2 commits · +12 −0 2025-02: 5 commits · +24 −29 2025-03: 3 commits · +20 −3 2025-04: 7 commits · +76 −31 2025-05: 4 commits · +20 −20 2025-06: 16 commits · +375 −406 2025-07: 3 commits · +33 −7 2025-08: 9 commits · +1,175 −65 2025-09: 8 commits · +170 −118 2025-10: 2 commits · +5 −1 2025-11: 9 commits · +59 −41 2025-12: 1 commit · +1 −0 2026-01: 5 commits · +221 −35 2026-02: 4 commits · +42 −40 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. lore.kernel.org

    PTP core code in this directory was still receiving upstream fixes in late 2025.

  2. lore.kernel.org

    PTP core fixes were being backported to stable trees in late 2025, indicating maintained relevance rather than retirement.

  3. docs.kernel.org

    The kernel documents this as the common PTP hardware clock infrastructure supporting multiple concrete clock drivers, including modern hardware such as Renesas ClockMatrix.

  4. docs.kernel.org

    PTP_KVM remains a documented virtual-clock feature for current KVM guests, showing ongoing deployment in virtualization use cases.

  5. timebeat.app

    An OCP TimeCard class device supported by this directory is marketed as current hardware, supporting the conclusion that relevant hardware is still sold new.

codex reasoning notes (technical)

Shell inspection of drivers/ptp/Kconfig showed this is an active mixed subsystem directory, not one obsolete chip driver: core PTP infrastructure plus KVM, VMCLOCK, VMware, OCP TimeCard, QorIQ, Intel PCH, Renesas/IDT and others. `lore_activity` on drivers/ptp/ptp_clock.c produced 2025 fix and stable-backport lore URLs, so upstream attention is current. A directory-level `lore_file_timeline` returned no matches for the path prefix, and a broad `lore_regex` removal/deprecation scan timed out; no positive removal evidence was found. Web search provided the kernel PTP/PTP_KVM docs and a current OCP-TAP Timecard product page. Because this directory underpins both present-day VM guest clocks and still-sold precision timing hardware, the correct recommendation is keep, not deprecate.