linuxptp/configs/ts2phc-generic.cfg
Richard Cochran 1bdc9143aa Introduce the ts2phc program.
Some PTP Hardware Clocks have input pins that can generate time stamps
on the edges of external signals.  This functionality can be used in
various ways.  For example, one can synchronize a PHC device to a
global time source by taking a Pulse Per Second signal from the source
into the PHC.  This patch adds support for synchronizing one or more
PHC slaves to a given master clock.

The implementation follows a modular design that allows adding
different kinds of master clocks in the future.  This patch starts off
with a single "generic" PPS master, meaning a PPS signal that lacks
and time or date information.  The generic master assumes that the
Linux system time is approximately correct (by NTP or RTC for example)
in order to calculate the time of the incoming PPS edges.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Balint Ferencz <fernya@gmail.com>
2020-05-07 14:57:47 -07:00

19 lines
470 B
INI

#
# This example uses a PPS signal from a GPS receiver as an input to
# the SDP0 pin of an Intel i210 card. The pulse from the receiver has
# a width of 100 milliseconds.
#
# Important! The polarity is set to "both" because the i210 always
# time stamps both the rising and the falling edges of the input
# signal.
#
[global]
use_syslog 0
verbose 1
logging_level 6
ts2phc.pulsewidth 100000000
[eth6]
ts2phc.channel 0
ts2phc.extts_polarity both
ts2phc.pin_index 0