Skip to content

RFC net: dsa: microchip: add PTP support for KSZ9x and LAN937x

Arun Ramadoss lkml llvm netdev oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest8 patches 17 repliesIn review

Changes in v2 from the cover letter

- Added the p2p1step timestamping and conditional execution of 2 step for LAN937x only.
- Added the periodic output support

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8net: ptp: add helper for one-step P2P clocksinclude/linux/ptp_classify.h+73 -03 replies
2/8net: dsa: microchip: adding the posix clock supportdrivers/net/dsa/microchip/Kconfig drivers/net/dsa/microchip/Makefile drivers/net/dsa/microchip/ksz_common.c +4 more+412 -12 replies
3/8net: dsa: microchip: Initial hardware time stamping supportdrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h drivers/net/dsa/microchip/ksz_ptp.c +3 more+218 -27 replies
4/8net: dsa: microchip: Manipulating absolute time using ptp hw clockdrivers/net/dsa/microchip/ksz_common.h drivers/net/dsa/microchip/ksz_ptp.c drivers/net/dsa/microchip/ksz_ptp.h+61 -20 replies
5/8net: dsa: microchip: enable the ptp interrupt for timestampingdrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h drivers/net/dsa/microchip/ksz_ptp.c +2 more+250 -20 replies
6/8net: dsa: microchip: Adding the ptp packet reception logicdrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_ptp.c drivers/net/dsa/microchip/ksz_ptp.h +2 more+186 -60 replies
7/8net: dsa: microchip: add the transmission tstamp logicdrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h drivers/net/dsa/microchip/ksz_ptp.c +4 more+258 -112 replies
8/8net: dsa: microchip: ptp: add periodic output signaldrivers/net/dsa/microchip/ksz_common.h drivers/net/dsa/microchip/ksz_ptp.c drivers/net/dsa/microchip/ksz_ptp.h +1 more+410 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC Patch net-next v2 0/8] net: dsa: microchip: add PTP support for KSZ9x and LAN937x

The LAN937x switch has capable for supporting IEEE 1588 PTP protocol. This patch series add PTP support and tested using the ptp4l application. LAN937x has the same PTP register set similar to KSZ9563, hence the implementation has been made common for the ksz switches. KSZ9563 does not support two step timestamping but LAN937x supports both. Tested the 1step & 2step p2p timestamping in LAN937x and p2p1step timestamping in KSZ9563.

RFC v1 -> v2
- Added the p2p1step timestamping and conditional execution of 2 step for LAN937x only.
- Added the periodic output support

Arun Ramadoss (7):
net: dsa: microchip: adding the posix clock support
net: dsa: microchip: Initial hardware time stamping support
net: dsa: microchip: Manipulating absolute time using ptp hw clock
net: dsa: microchip: enable the ptp interrupt for timestamping
net: dsa: microchip: Adding the ptp packet reception logic
net: dsa: microchip: add the transmission tstamp logic
net: dsa: microchip: ptp: add periodic output signal

Christian Eggers (1):
net: ptp: add helper for one-step P2P clocks

 drivers/net/dsa/microchip/Kconfig       |   12 +
 drivers/net/dsa/microchip/Makefile      |    5 +
 drivers/net/dsa/microchip/ksz_common.c  |   44 +-
 drivers/net/dsa/microchip/ksz_common.h  |   48 +
 drivers/net/dsa/microchip/ksz_ptp.c     | 1117 +++++++++++++++++++++++
 drivers/net/dsa/microchip/ksz_ptp.h     |   96 ++
 drivers/net/dsa/microchip/ksz_ptp_reg.h |  136 +++
 include/linux/dsa/ksz_common.h          |   55 ++
 include/linux/ptp_classify.h            |   73 ++
 net/dsa/tag_ksz.c                       |  288 +++++-
 10 files changed, 1859 insertions(+), 15 deletions(-)
 create mode 100644 drivers/net/dsa/microchip/ksz_ptp.c
 create mode 100644 drivers/net/dsa/microchip/ksz_ptp.h
 create mode 100644 drivers/net/dsa/microchip/ksz_ptp_reg.h
 create mode 100644 include/linux/dsa/ksz_common.h
Signature · 1 line
2.36.1