sysfs-ptp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. What: /sys/class/ptp/
  2. Date: September 2010
  3. Contact: Richard Cochran <richardcochran@gmail.com>
  4. Description:
  5. This directory contains files and directories
  6. providing a standardized interface to the ancillary
  7. features of PTP hardware clocks.
  8. What: /sys/class/ptp/ptpN/
  9. Date: September 2010
  10. Contact: Richard Cochran <richardcochran@gmail.com>
  11. Description:
  12. This directory contains the attributes of the Nth PTP
  13. hardware clock registered into the PTP class driver
  14. subsystem.
  15. What: /sys/class/ptp/ptpN/clock_name
  16. Date: September 2010
  17. Contact: Richard Cochran <richardcochran@gmail.com>
  18. Description:
  19. This file contains the name of the PTP hardware clock
  20. as a human readable string.
  21. What: /sys/class/ptp/ptpN/max_adjustment
  22. Date: September 2010
  23. Contact: Richard Cochran <richardcochran@gmail.com>
  24. Description:
  25. This file contains the PTP hardware clock's maximum
  26. frequency adjustment value (a positive integer) in
  27. parts per billion.
  28. What: /sys/class/ptp/ptpN/n_alarms
  29. Date: September 2010
  30. Contact: Richard Cochran <richardcochran@gmail.com>
  31. Description:
  32. This file contains the number of periodic or one shot
  33. alarms offer by the PTP hardware clock.
  34. What: /sys/class/ptp/ptpN/n_external_timestamps
  35. Date: September 2010
  36. Contact: Richard Cochran <richardcochran@gmail.com>
  37. Description:
  38. This file contains the number of external timestamp
  39. channels offered by the PTP hardware clock.
  40. What: /sys/class/ptp/ptpN/n_periodic_outputs
  41. Date: September 2010
  42. Contact: Richard Cochran <richardcochran@gmail.com>
  43. Description:
  44. This file contains the number of programmable periodic
  45. output channels offered by the PTP hardware clock.
  46. What: /sys/class/ptp/ptpN/pps_avaiable
  47. Date: September 2010
  48. Contact: Richard Cochran <richardcochran@gmail.com>
  49. Description:
  50. This file indicates whether the PTP hardware clock
  51. supports a Pulse Per Second to the host CPU. Reading
  52. "1" means that the PPS is supported, while "0" means
  53. not supported.
  54. What: /sys/class/ptp/ptpN/extts_enable
  55. Date: September 2010
  56. Contact: Richard Cochran <richardcochran@gmail.com>
  57. Description:
  58. This write-only file enables or disables external
  59. timestamps. To enable external timestamps, write the
  60. channel index followed by a "1" into the file.
  61. To disable external timestamps, write the channel
  62. index followed by a "0" into the file.
  63. What: /sys/class/ptp/ptpN/fifo
  64. Date: September 2010
  65. Contact: Richard Cochran <richardcochran@gmail.com>
  66. Description:
  67. This file provides timestamps on external events, in
  68. the form of three integers: channel index, seconds,
  69. and nanoseconds.
  70. What: /sys/class/ptp/ptpN/period
  71. Date: September 2010
  72. Contact: Richard Cochran <richardcochran@gmail.com>
  73. Description:
  74. This write-only file enables or disables periodic
  75. outputs. To enable a periodic output, write five
  76. integers into the file: channel index, start time
  77. seconds, start time nanoseconds, period seconds, and
  78. period nanoseconds. To disable a periodic output, set
  79. all the seconds and nanoseconds values to zero.
  80. What: /sys/class/ptp/ptpN/pps_enable
  81. Date: September 2010
  82. Contact: Richard Cochran <richardcochran@gmail.com>
  83. Description:
  84. This write-only file enables or disables delivery of
  85. PPS events to the Linux PPS subsystem. To enable PPS
  86. events, write a "1" into the file. To disable events,
  87. write a "0" into the file.