netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/7] support the cpts found on am335x devices
@ 2012-10-15 19:48 Richard Cochran
  2012-10-15 19:48 ` [PATCH V2 1/7] cpsw: rename register banks to match the reference manual Richard Cochran
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: Richard Cochran @ 2012-10-15 19:48 UTC (permalink / raw)
  To: netdev
  Cc: linux-arm-kernel, David Miller, Cyril Chemparathy, Mugunthan V N,
	Sriramakrishnan A G

This patch series, based on linux-3.7-rc1 plus the fixes I posted
today, adds support for the Common Platform Time Sync (CPTS) found on
the popular BeagleBone. The code enables hardware time stamping and a
PTP Hardware Clock.

Changes in V2
   - Now uses device tree
   - Actually works with vanilla kernel

This work has been tested using the linuxptp PTP stack, and it seems
to be working quite well. One limitation of the hardware is that not
possible to adjust the clock frequency. Even without with this
capability, the driver will be still be useful for 802.1AS
applications, since they typically use a free running clock.

There is one open issue with this driver which will hopefully soon be
resolved. 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 +-
 arch/arm/boot/dts/am33xx.dtsi                  |    5 +-
 drivers/net/ethernet/ti/Kconfig                |    8 +
 drivers/net/ethernet/ti/Makefile               |    2 +-
 drivers/net/ethernet/ti/cpsw.c                 |   84 ++++-
 drivers/net/ethernet/ti/cpsw_reg.h             |   81 ++++
 drivers/net/ethernet/ti/cpts.c                 |  468 ++++++++++++++++++++++++
 drivers/net/ethernet/ti/cpts.h                 |  148 ++++++++
 include/linux/platform_data/cpsw.h             |    1 +
 9 files changed, 788 insertions(+), 20 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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-10-22 11:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 19:48 [PATCH V2 0/7] support the cpts found on am335x devices Richard Cochran
2012-10-15 19:48 ` [PATCH V2 1/7] cpsw: rename register banks to match the reference manual Richard Cochran
2012-10-15 19:48 ` [PATCH V2 2/7] cpsw: add missing fields to the CPSW_SS register bank Richard Cochran
2012-10-15 19:48 ` [PATCH V2 3/7] cpsw: correct the CPSW_PORT register bank declaration Richard Cochran
2012-10-15 19:48 ` [PATCH V2 4/7] cpsw: add a common header file for regsiter declarations Richard Cochran
2012-10-15 19:48 ` [PATCH V2 5/7] cpts: introduce time stamping code and a PTP hardware clock Richard Cochran
2012-10-15 19:48 ` [PATCH V2 6/7] cpsw: add a DT field for the cpts offset Richard Cochran
2012-10-15 19:48 ` [PATCH V2 7/7] cpsw: use the time stamping capabilities of the cpts Richard Cochran
2012-10-16 16:33 ` [PATCH V2 0/7] support the cpts found on am335x devices N, Mugunthan V
2012-10-16 17:14   ` Richard Cochran
2012-10-16 23:11     ` N, Mugunthan V
2012-10-17 18:27       ` Richard Cochran
2012-10-22 10:39         ` N, Mugunthan V
2012-10-22 11:02           ` Richard Cochran

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).