Skip to content

Commit 329f004

Browse files
mchehabJonathan Corbet
authored andcommitted
docs: ptp.txt: convert to ReST and move to driver-api
The conversion is trivial: just adjust title markups. In order to avoid conflicts, let's add an :orphan: tag to it, to be removed when this file gets added to the driver-api book. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 28aedd7 commit 329f004

3 files changed

Lines changed: 20 additions & 10 deletions

File tree

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
:orphan:
12

2-
* PTP hardware clock infrastructure for Linux
3+
===========================================
4+
PTP hardware clock infrastructure for Linux
5+
===========================================
36

47
This patch set introduces support for IEEE 1588 PTP clocks in
58
Linux. Together with the SO_TIMESTAMPING socket options, this
@@ -22,7 +25,8 @@
2225
- Period output signals configurable from user space
2326
- Synchronization of the Linux system time via the PPS subsystem
2427

25-
** PTP hardware clock kernel API
28+
PTP hardware clock kernel API
29+
=============================
2630

2731
A PTP clock driver registers itself with the class driver. The
2832
class driver handles all of the dealings with user space. The
@@ -36,7 +40,8 @@
3640
development, it can be useful to have more than one clock in a
3741
single system, in order to allow performance comparisons.
3842

39-
** PTP hardware clock user space API
43+
PTP hardware clock user space API
44+
=================================
4045

4146
The class driver also creates a character device for each
4247
registered clock. User space can use an open file descriptor from
@@ -49,7 +54,8 @@
4954
ancillary clock features. User space can receive time stamped
5055
events via blocking read() and poll().
5156

52-
** Writing clock drivers
57+
Writing clock drivers
58+
=====================
5359

5460
Clock drivers include include/linux/ptp_clock_kernel.h and register
5561
themselves by presenting a 'struct ptp_clock_info' to the
@@ -66,21 +72,25 @@
6672
class driver, since the lock may also be needed by the clock
6773
driver's interrupt service routine.
6874

69-
** Supported hardware
75+
Supported hardware
76+
==================
77+
78+
* Freescale eTSEC gianfar
7079

71-
+ Freescale eTSEC gianfar
7280
- 2 Time stamp external triggers, programmable polarity (opt. interrupt)
7381
- 2 Alarm registers (optional interrupt)
7482
- 3 Periodic signals (optional interrupt)
7583

76-
+ National DP83640
84+
* National DP83640
85+
7786
- 6 GPIOs programmable as inputs or outputs
7887
- 6 GPIOs with dedicated functions (LED/JTAG/clock) can also be
7988
used as general inputs or outputs
8089
- GPIO inputs can time stamp external triggers
8190
- GPIO outputs can produce periodic signals
8291
- 1 interrupt pin
8392

84-
+ Intel IXP465
93+
* Intel IXP465
94+
8595
- Auxiliary Slave/Master Mode Snapshot (optional interrupt)
8696
- Target Time (optional interrupt)

‎Documentation/networking/timestamping.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ ts[1] used to hold hardware timestamps converted to system time.
368368
Instead, expose the hardware clock device on the NIC directly as
369369
a HW PTP clock source, to allow time conversion in userspace and
370370
optionally synchronize system time with a userspace PTP stack such
371-
as linuxptp. For the PTP clock API, see Documentation/ptp/ptp.txt.
371+
as linuxptp. For the PTP clock API, see Documentation/driver-api/ptp.rst.
372372

373373
Note that if the SO_TIMESTAMP or SO_TIMESTAMPNS option is enabled
374374
together with SO_TIMESTAMPING using SOF_TIMESTAMPING_SOFTWARE, a false

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12765,7 +12765,7 @@ L: netdev@vger.kernel.org
1276512765
S: Maintained
1276612766
W: http://linuxptp.sourceforge.net/
1276712767
F: Documentation/ABI/testing/sysfs-ptp
12768-
F: Documentation/ptp/*
12768+
F: Documentation/driver-api/ptp.rst
1276912769
F: drivers/net/phy/dp83640*
1277012770
F: drivers/ptp/*
1277112771
F: include/linux/ptp_cl*

0 commit comments

Comments
 (0)