From: Richard Cochran <richardcochran@gmail.com>
To: <netdev@vger.kernel.org>
Cc: <linux-arm-kernel@lists.infradead.org>,
David Miller <davem@davemloft.net>,
Cyril Chemparathy <cyril@ti.com>,
Mugunthan V N <mugunthanvnm@ti.com>,
Sriramakrishnan A G <srk@ti.com>
Subject: [PATCH RFC 0/7] support the cpts found on am335x devices
Date: Thu, 11 Oct 2012 22:27:15 +0200 [thread overview]
Message-ID: <cover.1349985570.git.richardcochran@gmail.com> (raw)
This patch series, based on today's mainline master 12250d8, is a RFC
adding support for the Common Platform Time Sync (CPTS) found on the
popular BeagleBone. The code enables hardware time stamping and a PTP
Hardware Clock.
Due to DT problems with the most current CPSW driver, this work has
been compiled and booted, but not tested. However, I have tested work
similar to this, based on the AM335XPSP_04.06.00.08 branch in TI's
arago repo, and found it to work well.
There are two open issue with this driver, which will hopefully soon
be resolved.
1. ATM it is not possible to adjust the clock frequency. I heard a
rumor that the fractional multipliers on the am335x do not work
when changed, but I have not yet verified this myself. Even if it
turns out to be true, still the driver will be useful for 802.1AS
applications, since they will typically use a free running clock.
2. Time stamping only works on UDP packets. Although Layer 2 is
supposed to work according to the TRM, I have not yet figured out
how. The UDP only works when setting an undocumented bit, so maybe
someone from TI can fill me in on this.
Thanks,
Richard
Richard Cochran (7):
cpsw: rename register banks to match the reference manual
cpsw: add missing fields to the CPSW_SS register bank.
cpsw: correct the CPSW_PORT register bank declaration
cpsw: add a common header file for regsiter declarations
cpts: introduce time stamping code and a PTP hardware clock.
cpsw: add a DT field for the cpts offset
cpsw: use the time stamping capabilities of the cpts
Documentation/devicetree/bindings/net/cpsw.txt | 11 +-
drivers/net/ethernet/ti/Kconfig | 8 +
drivers/net/ethernet/ti/Makefile | 2 +-
drivers/net/ethernet/ti/cpsw.c | 80 ++++-
drivers/net/ethernet/ti/cpsw_reg.h | 81 ++++
drivers/net/ethernet/ti/cpts.c | 469 ++++++++++++++++++++++++
drivers/net/ethernet/ti/cpts.h | 148 ++++++++
include/linux/platform_data/cpsw.h | 1 +
8 files changed, 785 insertions(+), 15 deletions(-)
create mode 100644 drivers/net/ethernet/ti/cpsw_reg.h
create mode 100644 drivers/net/ethernet/ti/cpts.c
create mode 100644 drivers/net/ethernet/ti/cpts.h
--
1.7.2.5
next reply other threads:[~2012-10-11 20:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-11 20:27 Richard Cochran [this message]
2012-10-11 20:27 ` [PATCH RFC 1/7] cpsw: rename register banks to match the reference manual Richard Cochran
2012-10-11 20:27 ` [PATCH RFC 2/7] cpsw: add missing fields to the CPSW_SS register bank Richard Cochran
2012-10-11 20:27 ` [PATCH RFC 3/7] cpsw: correct the CPSW_PORT register bank declaration Richard Cochran
2012-10-11 20:27 ` [PATCH RFC 4/7] cpsw: add a common header file for regsiter declarations Richard Cochran
2012-10-11 20:27 ` [PATCH RFC 5/7] cpts: introduce time stamping code and a PTP hardware clock Richard Cochran
2012-10-11 20:27 ` [PATCH RFC 6/7] cpsw: add a DT field for the cpts offset Richard Cochran
2012-10-11 20:27 ` [PATCH RFC 7/7] cpsw: use the time stamping capabilities of the cpts Richard Cochran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1349985570.git.richardcochran@gmail.com \
--to=richardcochran@gmail.com \
--cc=cyril@ti.com \
--cc=davem@davemloft.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mugunthanvnm@ti.com \
--cc=netdev@vger.kernel.org \
--cc=srk@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).