Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1808392ybi; Sat, 8 Jun 2019 19:31:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxf7SDG7GLtq9wWpgh0Y/FhCZvWLqbBioU1x2BZCJ4S0QND+G3cV0OXpoVLlkqXGbF9hUhL X-Received: by 2002:a17:90a:21ac:: with SMTP id q41mr14283641pjc.31.1560047474917; Sat, 08 Jun 2019 19:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560047474; cv=none; d=google.com; s=arc-20160816; b=WcKfPwEPsHx7SDaBKPmM1F/mU6dQ4NQfGgZncCakUJryf2oyyx2iQT2QsNPOCbkCiY AN4hZLKTHY85ufLaEO3+Q7/aV3YSGOhIOvDhUeWwuQ0cpBJkO5j6qCvOFRxPkFEbcCTC xF84mlqefEHMjKkYVEi8bAQd+emk5Qyuzbk123K+sourf9g6hcLo1am7sB1vEhK9CoUT 1Na6qFuRKNhWfE0pELwG3c+auR9rocBYfM/dYxA91FESec/wjYKBHIew9GV2Xy8AkA1L nmq/rUnGFLR1e0OFhx6MJ1G56mj+S1qdSJ4wQVqTVG5QmQdOL3Dq5iIiT3t5Bfr9B2tj 1NgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ek1YxZXqpgW8Xkg9VWvB5QFV11VlpBzdQZNl/oIX+Jg=; b=uqvlPrlNw0bgWojVFZ7ew/Mk4QA0fTanZxs2gRWpjIBOrlWlW/FYk2Js+EE4LwFDx0 7AejDKnXA6Ed1q/A/o9AK80ec72BQTL1FOfxMpI/fHE0kT+VV80JcxvaZ8l6lO+322pW D441PWluuSVCl7uewmxo2slpsYORI2hhAzZbnMizvo7uOFkjrJcZyCfB9D7j03+Z3EEY tT6kb6mt8Qd263V15JXj12tI1YHdD2QFLJ4+BKVkJGPYBxETNIjtIGr15sDO7FeijzMN AHQessOg0BwWFuygzwb59czs5r9IrndMnc09GeI+abJRbm261MVEdVGEjnc6S0cEElDN 3ixw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gpvQ1kev; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo10si5868584pjb.59.2019.06.08.19.30.37; Sat, 08 Jun 2019 19:31:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gpvQ1kev; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728181AbfFIC1h (ORCPT + 99 others); Sat, 8 Jun 2019 22:27:37 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55658 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727929AbfFIC1d (ORCPT ); Sat, 8 Jun 2019 22:27:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ek1YxZXqpgW8Xkg9VWvB5QFV11VlpBzdQZNl/oIX+Jg=; b=gpvQ1kevvOeZ2zA4DOoPyXzyaD B54Gm6Y5ILc+AX7uWrosU2qvC0LKQLbXyKzk+D+Y8705eVD6autmgxwcKHC0+xwxs2ohhMqKTzk7h ojkI7pGkZmWvYJ8GBvbFqxuEccn68NcN5+xPn9wFJRwlAxhndrRnzYKjXAbZ2JF+wGg4vKhYy+Ax+ N4JFj/zUiUHYElYcdQNrKirLycJ27vxW9eNlBVRluny9eW9FnsggUJlDQTIxSXDPU/Pdfciq7oc7r AplKCJWY4JBGyybo2mWnQAgZGOfurFz92odD6qIF1vNaRLfJH+/IhgnuAkvDSED2GmhdZohkY9ng3 L3caq9DQ==; Received: from 179.176.115.133.dynamic.adsl.gvt.net.br ([179.176.115.133] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hZnYS-0001n0-Dj; Sun, 09 Jun 2019 02:27:32 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hZnYL-0000Jx-Eo; Sat, 08 Jun 2019 23:27:25 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , Richard Cochran , "David S. Miller" , netdev@vger.kernel.org Subject: [PATCH v3 23/33] docs: ptp.txt: convert to ReST and move to driver-api Date: Sat, 8 Jun 2019 23:27:13 -0300 Message-Id: <1736539355fdee1effe3b332cf3d93124394672b.1560045490.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../{ptp/ptp.txt => driver-api/ptp.rst} | 26 +++++++++++++------ Documentation/networking/timestamping.txt | 2 +- MAINTAINERS | 2 +- 3 files changed, 20 insertions(+), 10 deletions(-) rename Documentation/{ptp/ptp.txt => driver-api/ptp.rst} (88%) diff --git a/Documentation/ptp/ptp.txt b/Documentation/driver-api/ptp.rst similarity index 88% rename from Documentation/ptp/ptp.txt rename to Documentation/driver-api/ptp.rst index 11e904ee073f..b6e65d66d37a 100644 --- a/Documentation/ptp/ptp.txt +++ b/Documentation/driver-api/ptp.rst @@ -1,5 +1,8 @@ +:orphan: -* PTP hardware clock infrastructure for Linux +=========================================== +PTP hardware clock infrastructure for Linux +=========================================== This patch set introduces support for IEEE 1588 PTP clocks in Linux. Together with the SO_TIMESTAMPING socket options, this @@ -22,7 +25,8 @@ - Period output signals configurable from user space - Synchronization of the Linux system time via the PPS subsystem -** PTP hardware clock kernel API +PTP hardware clock kernel API +============================= A PTP clock driver registers itself with the class driver. The class driver handles all of the dealings with user space. The @@ -36,7 +40,8 @@ development, it can be useful to have more than one clock in a single system, in order to allow performance comparisons. -** PTP hardware clock user space API +PTP hardware clock user space API +================================= The class driver also creates a character device for each registered clock. User space can use an open file descriptor from @@ -49,7 +54,8 @@ ancillary clock features. User space can receive time stamped events via blocking read() and poll(). -** Writing clock drivers +Writing clock drivers +===================== Clock drivers include include/linux/ptp_clock_kernel.h and register themselves by presenting a 'struct ptp_clock_info' to the @@ -66,14 +72,17 @@ class driver, since the lock may also be needed by the clock driver's interrupt service routine. -** Supported hardware +Supported hardware +================== + + * Freescale eTSEC gianfar - + Freescale eTSEC gianfar - 2 Time stamp external triggers, programmable polarity (opt. interrupt) - 2 Alarm registers (optional interrupt) - 3 Periodic signals (optional interrupt) - + National DP83640 + * National DP83640 + - 6 GPIOs programmable as inputs or outputs - 6 GPIOs with dedicated functions (LED/JTAG/clock) can also be used as general inputs or outputs @@ -81,6 +90,7 @@ - GPIO outputs can produce periodic signals - 1 interrupt pin - + Intel IXP465 + * Intel IXP465 + - Auxiliary Slave/Master Mode Snapshot (optional interrupt) - Target Time (optional interrupt) diff --git a/Documentation/networking/timestamping.txt b/Documentation/networking/timestamping.txt index bbdaf8990031..8dd6333c3270 100644 --- a/Documentation/networking/timestamping.txt +++ b/Documentation/networking/timestamping.txt @@ -368,7 +368,7 @@ ts[1] used to hold hardware timestamps converted to system time. Instead, expose the hardware clock device on the NIC directly as a HW PTP clock source, to allow time conversion in userspace and optionally synchronize system time with a userspace PTP stack such -as linuxptp. For the PTP clock API, see Documentation/ptp/ptp.txt. +as linuxptp. For the PTP clock API, see Documentation/driver-api/ptp.rst. Note that if the SO_TIMESTAMP or SO_TIMESTAMPNS option is enabled together with SO_TIMESTAMPING using SOF_TIMESTAMPING_SOFTWARE, a false diff --git a/MAINTAINERS b/MAINTAINERS index b982622ea7ee..72d1e5da0779 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12795,7 +12795,7 @@ L: netdev@vger.kernel.org S: Maintained W: http://linuxptp.sourceforge.net/ F: Documentation/ABI/testing/sysfs-ptp -F: Documentation/ptp/* +F: Documentation/driver-api/ptp.rst F: drivers/net/phy/dp83640* F: drivers/ptp/* F: include/linux/ptp_cl* -- 2.21.0