3 Contact: Richard Cochran <richardcochran@gmail.com>
5 This directory contains files and directories
6 providing a standardized interface to the ancillary
7 features of PTP hardware clocks.
9 What: /sys/class/ptp/ptpN/
11 Contact: Richard Cochran <richardcochran@gmail.com>
13 This directory contains the attributes of the Nth PTP
14 hardware clock registered into the PTP class driver
17 What: /sys/class/ptp/ptpN/clock_name
19 Contact: Richard Cochran <richardcochran@gmail.com>
21 This file contains the name of the PTP hardware clock
22 as a human readable string. The purpose of this
23 attribute is to provide the user with a "friendly
24 name" and to help distinguish PHY based devices from
25 MAC based ones. The string does not necessarily have
26 to be any kind of unique id.
28 What: /sys/class/ptp/ptpN/max_adjustment
30 Contact: Richard Cochran <richardcochran@gmail.com>
32 This file contains the PTP hardware clock's maximum
33 frequency adjustment value (a positive integer) in
36 What: /sys/class/ptp/ptpN/n_alarms
38 Contact: Richard Cochran <richardcochran@gmail.com>
40 This file contains the number of periodic or one shot
41 alarms offer by the PTP hardware clock.
43 What: /sys/class/ptp/ptpN/n_external_timestamps
45 Contact: Richard Cochran <richardcochran@gmail.com>
47 This file contains the number of external timestamp
48 channels offered by the PTP hardware clock.
50 What: /sys/class/ptp/ptpN/n_periodic_outputs
52 Contact: Richard Cochran <richardcochran@gmail.com>
54 This file contains the number of programmable periodic
55 output channels offered by the PTP hardware clock.
57 What: /sys/class/ptp/ptpN/n_pins
59 Contact: Richard Cochran <richardcochran@gmail.com>
61 This file contains the number of programmable pins
62 offered by the PTP hardware clock.
64 What: /sys/class/ptp/ptpN/pins
66 Contact: Richard Cochran <richardcochran@gmail.com>
68 This directory contains one file for each programmable
69 pin offered by the PTP hardware clock. The file name
70 is the hardware dependent pin name. Reading from this
71 file produces two numbers, the assigned function (see
72 the `PTP_PF_` enumeration values in linux/ptp_clock.h)
73 and the channel number. The function and channel
74 assignment may be changed by two writing numbers into
77 What: /sys/class/ptp/ptpN/pps_available
79 Contact: Richard Cochran <richardcochran@gmail.com>
81 This file indicates whether the PTP hardware clock
82 supports a Pulse Per Second to the host CPU. Reading
83 "1" means that the PPS is supported, while "0" means
86 What: /sys/class/ptp/ptpN/extts_enable
88 Contact: Richard Cochran <richardcochran@gmail.com>
90 This write-only file enables or disables external
91 timestamps. To enable external timestamps, write the
92 channel index followed by a "1" into the file.
93 To disable external timestamps, write the channel
94 index followed by a "0" into the file.
96 What: /sys/class/ptp/ptpN/fifo
98 Contact: Richard Cochran <richardcochran@gmail.com>
100 This file provides timestamps on external events, in
101 the form of three integers: channel index, seconds,
104 What: /sys/class/ptp/ptpN/period
106 Contact: Richard Cochran <richardcochran@gmail.com>
108 This write-only file enables or disables periodic
109 outputs. To enable a periodic output, write five
110 integers into the file: channel index, start time
111 seconds, start time nanoseconds, period seconds, and
112 period nanoseconds. To disable a periodic output, set
113 all the seconds and nanoseconds values to zero.
115 What: /sys/class/ptp/ptpN/pps_enable
117 Contact: Richard Cochran <richardcochran@gmail.com>
119 This write-only file enables or disables delivery of
120 PPS events to the Linux PPS subsystem. To enable PPS
121 events, write a "1" into the file. To disable events,
122 write a "0" into the file.