18c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/
28c2ecf20Sopenharmony_ciDate:		September 2010
38c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
48c2ecf20Sopenharmony_ciDescription:
58c2ecf20Sopenharmony_ci		This directory contains files and directories
68c2ecf20Sopenharmony_ci		providing a standardized interface to the ancillary
78c2ecf20Sopenharmony_ci		features of PTP hardware clocks.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/
108c2ecf20Sopenharmony_ciDate:		September 2010
118c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
128c2ecf20Sopenharmony_ciDescription:
138c2ecf20Sopenharmony_ci		This directory contains the attributes of the Nth PTP
148c2ecf20Sopenharmony_ci		hardware clock registered into the PTP class driver
158c2ecf20Sopenharmony_ci		subsystem.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/clock_name
188c2ecf20Sopenharmony_ciDate:		September 2010
198c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
208c2ecf20Sopenharmony_ciDescription:
218c2ecf20Sopenharmony_ci		This file contains the name of the PTP hardware clock
228c2ecf20Sopenharmony_ci		as a human readable string. The purpose of this
238c2ecf20Sopenharmony_ci		attribute is to provide the user with a "friendly
248c2ecf20Sopenharmony_ci		name" and to help distinguish PHY based devices from
258c2ecf20Sopenharmony_ci		MAC based ones. The string does not necessarily have
268c2ecf20Sopenharmony_ci		to be any kind of unique id.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/max_adjustment
298c2ecf20Sopenharmony_ciDate:		September 2010
308c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
318c2ecf20Sopenharmony_ciDescription:
328c2ecf20Sopenharmony_ci		This file contains the PTP hardware clock's maximum
338c2ecf20Sopenharmony_ci		frequency adjustment value (a positive integer) in
348c2ecf20Sopenharmony_ci		parts per billion.
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/n_alarms
378c2ecf20Sopenharmony_ciDate:		September 2010
388c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
398c2ecf20Sopenharmony_ciDescription:
408c2ecf20Sopenharmony_ci		This file contains the number of periodic or one shot
418c2ecf20Sopenharmony_ci		alarms offer by the PTP hardware clock.
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/n_external_timestamps
448c2ecf20Sopenharmony_ciDate:		September 2010
458c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
468c2ecf20Sopenharmony_ciDescription:
478c2ecf20Sopenharmony_ci		This file contains the number of external timestamp
488c2ecf20Sopenharmony_ci		channels offered by the PTP hardware clock.
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/n_periodic_outputs
518c2ecf20Sopenharmony_ciDate:		September 2010
528c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
538c2ecf20Sopenharmony_ciDescription:
548c2ecf20Sopenharmony_ci		This file contains the number of programmable periodic
558c2ecf20Sopenharmony_ci		output channels offered by the PTP hardware clock.
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/n_pins
588c2ecf20Sopenharmony_ciDate:		March 2014
598c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
608c2ecf20Sopenharmony_ciDescription:
618c2ecf20Sopenharmony_ci		This file contains the number of programmable pins
628c2ecf20Sopenharmony_ci		offered by the PTP hardware clock.
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/pins
658c2ecf20Sopenharmony_ciDate:		March 2014
668c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
678c2ecf20Sopenharmony_ciDescription:
688c2ecf20Sopenharmony_ci		This directory contains one file for each programmable
698c2ecf20Sopenharmony_ci		pin offered by the PTP hardware clock. The file name
708c2ecf20Sopenharmony_ci		is the hardware dependent pin name. Reading from this
718c2ecf20Sopenharmony_ci		file produces two numbers, the assigned function (see
728c2ecf20Sopenharmony_ci		the `PTP_PF_` enumeration values in linux/ptp_clock.h)
738c2ecf20Sopenharmony_ci		and the channel number. The function and channel
748c2ecf20Sopenharmony_ci		assignment may be changed by two writing numbers into
758c2ecf20Sopenharmony_ci		the file.
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/pps_available
788c2ecf20Sopenharmony_ciDate:		September 2010
798c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
808c2ecf20Sopenharmony_ciDescription:
818c2ecf20Sopenharmony_ci		This file indicates whether the PTP hardware clock
828c2ecf20Sopenharmony_ci		supports a Pulse Per Second to the host CPU. Reading
838c2ecf20Sopenharmony_ci		"1" means that the PPS is supported, while "0" means
848c2ecf20Sopenharmony_ci		not supported.
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/extts_enable
878c2ecf20Sopenharmony_ciDate:		September 2010
888c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
898c2ecf20Sopenharmony_ciDescription:
908c2ecf20Sopenharmony_ci		This write-only file enables or disables external
918c2ecf20Sopenharmony_ci		timestamps. To enable external timestamps, write the
928c2ecf20Sopenharmony_ci		channel index followed by a "1" into the file.
938c2ecf20Sopenharmony_ci		To disable external timestamps, write the channel
948c2ecf20Sopenharmony_ci		index followed by a "0" into the file.
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/fifo
978c2ecf20Sopenharmony_ciDate:		September 2010
988c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
998c2ecf20Sopenharmony_ciDescription:
1008c2ecf20Sopenharmony_ci		This file provides timestamps on external events, in
1018c2ecf20Sopenharmony_ci		the form of three integers: channel index, seconds,
1028c2ecf20Sopenharmony_ci		and nanoseconds.
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/period
1058c2ecf20Sopenharmony_ciDate:		September 2010
1068c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
1078c2ecf20Sopenharmony_ciDescription:
1088c2ecf20Sopenharmony_ci		This write-only file enables or disables periodic
1098c2ecf20Sopenharmony_ci		outputs. To enable a periodic output, write five
1108c2ecf20Sopenharmony_ci		integers into the file: channel index, start time
1118c2ecf20Sopenharmony_ci		seconds, start time nanoseconds, period seconds, and
1128c2ecf20Sopenharmony_ci		period nanoseconds. To disable a periodic output, set
1138c2ecf20Sopenharmony_ci		all the seconds and nanoseconds values to zero.
1148c2ecf20Sopenharmony_ci
1158c2ecf20Sopenharmony_ciWhat:		/sys/class/ptp/ptpN/pps_enable
1168c2ecf20Sopenharmony_ciDate:		September 2010
1178c2ecf20Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
1188c2ecf20Sopenharmony_ciDescription:
1198c2ecf20Sopenharmony_ci		This write-only file enables or disables delivery of
1208c2ecf20Sopenharmony_ci		PPS events to the Linux PPS subsystem. To enable PPS
1218c2ecf20Sopenharmony_ci		events, write a "1" into the file. To disable events,
1228c2ecf20Sopenharmony_ci		write a "0" into the file.
123