Skip to content

Fully describe the waveform for PTP periodic output

Vladimir Oltean netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 9 repliesSuperseded

Changes in v2 from the cover letter

Made sure this applies to net-next.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ptp: add ability to configure duty cycle for periodic outputdrivers/ptp/ptp_chardev.c include/uapi/linux/ptp_clock.h+41 -90 replies
2/3ptp: introduce a phase offset in the periodic output requestinclude/uapi/linux/ptp_clock.h+17 -20 replies
3/3net: mscc: ocelot: add support for PTP waveform configurationdrivers/net/ethernet/mscc/ocelot_ptp.c+50 -241 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchHoratiu Vultur
1/3
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/3] Fully describe the waveform for PTP periodic output

While using the ancillary pin functionality of PTP hardware clocks to synchronize multiple DSA switches on a board, a need arised to be able to configure the duty cycle of the master of this PPS hierarchy.

Also, the PPS master is not able to emit PPS starting from arbitrary absolute times, so a new flag is introduced to support such hardware without making guesses.

With these patches, struct ptp_perout_request now basically describes a general-purpose square wave.

Changes in v2:
Made sure this applies to net-next.

Vladimir Oltean (3):
ptp: add ability to configure duty cycle for periodic output
ptp: introduce a phase offset in the periodic output request
net: mscc: ocelot: add support for PTP waveform configuration

 drivers/net/ethernet/mscc/ocelot_ptp.c | 74 +++++++++++++++++---------
 drivers/ptp/ptp_chardev.c              | 33 +++++++++---
 include/uapi/linux/ptp_clock.h         | 34 ++++++++++--
 3 files changed, 107 insertions(+), 34 deletions(-)
Signature · 1 line
2.25.1