162306a36Sopenharmony_ciWhat:		/sys/class/ptp/
262306a36Sopenharmony_ciDate:		September 2010
362306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
462306a36Sopenharmony_ciDescription:
562306a36Sopenharmony_ci		This directory contains files and directories
662306a36Sopenharmony_ci		providing a standardized interface to the ancillary
762306a36Sopenharmony_ci		features of PTP hardware clocks.
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/
1062306a36Sopenharmony_ciDate:		September 2010
1162306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
1262306a36Sopenharmony_ciDescription:
1362306a36Sopenharmony_ci		This directory contains the attributes of the Nth PTP
1462306a36Sopenharmony_ci		hardware clock registered into the PTP class driver
1562306a36Sopenharmony_ci		subsystem.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/clock_name
1862306a36Sopenharmony_ciDate:		September 2010
1962306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
2062306a36Sopenharmony_ciDescription:
2162306a36Sopenharmony_ci		This file contains the name of the PTP hardware clock
2262306a36Sopenharmony_ci		as a human readable string. The purpose of this
2362306a36Sopenharmony_ci		attribute is to provide the user with a "friendly
2462306a36Sopenharmony_ci		name" and to help distinguish PHY based devices from
2562306a36Sopenharmony_ci		MAC based ones. The string does not necessarily have
2662306a36Sopenharmony_ci		to be any kind of unique id.
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/max_adjustment
2962306a36Sopenharmony_ciDate:		September 2010
3062306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
3162306a36Sopenharmony_ciDescription:
3262306a36Sopenharmony_ci		This file contains the PTP hardware clock's maximum
3362306a36Sopenharmony_ci		frequency adjustment value (a positive integer) in
3462306a36Sopenharmony_ci		parts per billion.
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/max_vclocks
3762306a36Sopenharmony_ciDate:		May 2021
3862306a36Sopenharmony_ciContact:	Yangbo Lu <yangbo.lu@nxp.com>
3962306a36Sopenharmony_ciDescription:
4062306a36Sopenharmony_ci		This file contains the maximum number of ptp vclocks.
4162306a36Sopenharmony_ci		Write integer to re-configure it.
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/n_alarms
4462306a36Sopenharmony_ciDate:		September 2010
4562306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
4662306a36Sopenharmony_ciDescription:
4762306a36Sopenharmony_ci		This file contains the number of periodic or one shot
4862306a36Sopenharmony_ci		alarms offer by the PTP hardware clock.
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/n_external_timestamps
5162306a36Sopenharmony_ciDate:		September 2010
5262306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
5362306a36Sopenharmony_ciDescription:
5462306a36Sopenharmony_ci		This file contains the number of external timestamp
5562306a36Sopenharmony_ci		channels offered by the PTP hardware clock.
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/n_periodic_outputs
5862306a36Sopenharmony_ciDate:		September 2010
5962306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
6062306a36Sopenharmony_ciDescription:
6162306a36Sopenharmony_ci		This file contains the number of programmable periodic
6262306a36Sopenharmony_ci		output channels offered by the PTP hardware clock.
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/n_pins
6562306a36Sopenharmony_ciDate:		March 2014
6662306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
6762306a36Sopenharmony_ciDescription:
6862306a36Sopenharmony_ci		This file contains the number of programmable pins
6962306a36Sopenharmony_ci		offered by the PTP hardware clock.
7062306a36Sopenharmony_ci
7162306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/n_vclocks
7262306a36Sopenharmony_ciDate:		May 2021
7362306a36Sopenharmony_ciContact:	Yangbo Lu <yangbo.lu@nxp.com>
7462306a36Sopenharmony_ciDescription:
7562306a36Sopenharmony_ci		This file contains the number of virtual PTP clocks in
7662306a36Sopenharmony_ci		use.  By default, the value is 0 meaning that only the
7762306a36Sopenharmony_ci		physical clock is in use.  Setting the value creates
7862306a36Sopenharmony_ci		the corresponding number of virtual clocks and causes
7962306a36Sopenharmony_ci		the physical clock to become free running.  Setting the
8062306a36Sopenharmony_ci		value back to 0 deletes the virtual clocks and
8162306a36Sopenharmony_ci		switches the physical clock back to normal, adjustable
8262306a36Sopenharmony_ci		operation.
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/pins
8562306a36Sopenharmony_ciDate:		March 2014
8662306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
8762306a36Sopenharmony_ciDescription:
8862306a36Sopenharmony_ci		This directory contains one file for each programmable
8962306a36Sopenharmony_ci		pin offered by the PTP hardware clock. The file name
9062306a36Sopenharmony_ci		is the hardware dependent pin name. Reading from this
9162306a36Sopenharmony_ci		file produces two numbers, the assigned function (see
9262306a36Sopenharmony_ci		the `PTP_PF_` enumeration values in linux/ptp_clock.h)
9362306a36Sopenharmony_ci		and the channel number. The function and channel
9462306a36Sopenharmony_ci		assignment may be changed by two writing numbers into
9562306a36Sopenharmony_ci		the file.
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/pps_available
9862306a36Sopenharmony_ciDate:		September 2010
9962306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
10062306a36Sopenharmony_ciDescription:
10162306a36Sopenharmony_ci		This file indicates whether the PTP hardware clock
10262306a36Sopenharmony_ci		supports a Pulse Per Second to the host CPU. Reading
10362306a36Sopenharmony_ci		"1" means that the PPS is supported, while "0" means
10462306a36Sopenharmony_ci		not supported.
10562306a36Sopenharmony_ci
10662306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/extts_enable
10762306a36Sopenharmony_ciDate:		September 2010
10862306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
10962306a36Sopenharmony_ciDescription:
11062306a36Sopenharmony_ci		This write-only file enables or disables external
11162306a36Sopenharmony_ci		timestamps. To enable external timestamps, write the
11262306a36Sopenharmony_ci		channel index followed by a "1" into the file.
11362306a36Sopenharmony_ci		To disable external timestamps, write the channel
11462306a36Sopenharmony_ci		index followed by a "0" into the file.
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/fifo
11762306a36Sopenharmony_ciDate:		September 2010
11862306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
11962306a36Sopenharmony_ciDescription:
12062306a36Sopenharmony_ci		This file provides timestamps on external events, in
12162306a36Sopenharmony_ci		the form of three integers: channel index, seconds,
12262306a36Sopenharmony_ci		and nanoseconds.
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/period
12562306a36Sopenharmony_ciDate:		September 2010
12662306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
12762306a36Sopenharmony_ciDescription:
12862306a36Sopenharmony_ci		This write-only file enables or disables periodic
12962306a36Sopenharmony_ci		outputs. To enable a periodic output, write five
13062306a36Sopenharmony_ci		integers into the file: channel index, start time
13162306a36Sopenharmony_ci		seconds, start time nanoseconds, period seconds, and
13262306a36Sopenharmony_ci		period nanoseconds. To disable a periodic output, set
13362306a36Sopenharmony_ci		all the seconds and nanoseconds values to zero.
13462306a36Sopenharmony_ci
13562306a36Sopenharmony_ciWhat:		/sys/class/ptp/ptp<N>/pps_enable
13662306a36Sopenharmony_ciDate:		September 2010
13762306a36Sopenharmony_ciContact:	Richard Cochran <richardcochran@gmail.com>
13862306a36Sopenharmony_ciDescription:
13962306a36Sopenharmony_ci		This write-only file enables or disables delivery of
14062306a36Sopenharmony_ci		PPS events to the Linux PPS subsystem. To enable PPS
14162306a36Sopenharmony_ci		events, write a "1" into the file. To disable events,
14262306a36Sopenharmony_ci		write a "0" into the file.
143