Re: [Linuxptp-users] Strange behaviour on AM5728 board

2017-04-09 Thread Axel Holzinger
Hi Richard, On Sat, Apr 08, 2017 at 12:57:44PM +0200, Richard Cochran wrote: > Or you can just hack the driver to print clk_get_rate(cpts->refclk). Cool idea, did that and added this line to drivers/net/ethernet/ti/cpts.c (and noticed who wrote the file) as last line in static void cpts_clk_init

Re: [Linuxptp-users] Strange behaviour on AM5728 board

2017-04-08 Thread Richard Cochran
On Sat, Apr 08, 2017 at 11:39:06AM +0200, Axel Holzinger wrote: > I dived into device tree files and couldn't yet find out how the > manufacturer configures CPTS_RFT_CLK. I have the impression that it's not > running at all. So I contacted them and asked if they can point me in the > right directio

Re: [Linuxptp-users] Strange behaviour on AM5728 board

2017-04-08 Thread Axel Holzinger
Hi Richard, > On Thu, Apr 06, 2017 at 09:30:27PM +0200, Richard Cochran wrote: > Sorry, I didn't mean that those are the correct values. Those two > properties define the clock constants: > > nanoseconds = ticks * cpts_clock_mult / 2^cpts_clock_shift > > The values from the beaglebone are

Re: [Linuxptp-users] Strange behaviour on AM5728 board

2017-04-06 Thread Richard Cochran
On Thu, Apr 06, 2017 at 07:01:47PM +0200, Axel Holzinger wrote: > So the values for cpts_clock_mult and cpts_clock_shift are configured like > you proposed. Sorry, I didn't mean that those are the correct values. Those two properties define the clock constants: nanoseconds = ticks * cpts

Re: [Linuxptp-users] Strange behaviour on AM5728 board

2017-04-06 Thread Axel Holzinger
Hi Richard, thank you for your prompt reply. > On Thu, Apr 06, 2017 at 04:58:18PM +0200, Richard Cochran wrote: > > > > On Thu, Apr 06, 2017 at 01:45:19PM +0200, Axel Holzinger wrote: > > To me it looks like there is trouble correctly adjusting the frequency of > > the PHC, it's always remaining

Re: [Linuxptp-users] Strange behaviour on AM5728 board

2017-04-06 Thread Richard Cochran
On Thu, Apr 06, 2017 at 01:45:19PM +0200, Axel Holzinger wrote: > To me it looks like there is trouble correctly adjusting the frequency of > the PHC, it's always remaining +100, but also delays are ridicously high > and negative (that doesn't make sense, does it?). Does that SoC use the CPTS?

[Linuxptp-users] Strange behaviour on AM5728 board

2017-04-06 Thread Axel Holzinger
Hi linuxptp community, I could put my hands on a TI AM5728 box (Elesar Titanium) running Linux arm 4.1.6-01294--g8406366 #6 SMP PREEMPT armv7l (Debian Jessy) and ethtool is reporting this: user@arm:~/linuxptp-1.8$ sudo ethtool -T eth1 Time stamping parameters for eth1: Capabilities: hardwa