Re: [Linuxptp-users] Grandmaster with gps pps

2018-06-26 Thread Richard Hill
> So have you actually connected PPS to an FEC ENET_1588_EVENT#_IN pin on > the imx, and modify the driver to use this for adjusting clock frequency? Until very recently, I've not had hardware where this connector has been available, so that's why I've had to use the external GPS-PPS/PPS-OUT c

Re: [Linuxptp-users] Grandmaster with gps pps

2018-06-25 Thread Rob Cornall
The 06/25/2018 14:43, Richard Hill wrote: > 1. The hardware nanosecond counter is not the same as PTP nanoseconds. PTP > time is held as > a variable, not by FEC > 2. The PPS-OUT signal does fire each second, but is not necessarily aligned > to PTP 0 > nanoseconds This will not be an issue for o

Re: [Linuxptp-users] Grandmaster with gps pps

2018-06-25 Thread Richard Cochran
On Mon, Jun 25, 2018 at 02:43:27PM +0100, Richard Hill wrote: > 1. The hardware nanosecond counter is not the same as PTP nanoseconds. PTP > time is held as > a variable, not by FEC You can and should use timecounter_cyc2time() to convert raw cycle counts into PTP time. > 2. The PPS-OUT signal

Re: [Linuxptp-users] Grandmaster with gps pps

2018-06-25 Thread Richard Hill
t: Re: [Linuxptp-users] Grandmaster with gps pps On Sat, Jun 23, 2018 at 12:40:33AM +, Rob Cornall wrote: > Another question about connecting the PPS, It does look like there are input > pins on imx6 FEC, > Do I only need to connect the 1PPS to said pin? Not only that, but you'

Re: [Linuxptp-users] Grandmaster with gps pps

2018-06-22 Thread Richard Cochran
On Sat, Jun 23, 2018 at 12:40:33AM +, Rob Cornall wrote: > Another question about connecting the PPS, It does look like there are input > pins on imx6 FEC, > Do I only need to connect the 1PPS to said pin? Not only that, but you'll have to get the time stamps and use them to discipline to PHC

Re: [Linuxptp-users] Grandmaster with gps pps

2018-06-22 Thread Rob Cornall
The 06/21/2018 07:34, Richard Cochran wrote: > On Thu, Jun 21, 2018 at 02:36:02PM +0200, Miroslav Lichvar wrote: > > On Thu, Jun 21, 2018 at 12:24:15AM -0700, Rob Cornall wrote: > > > I know for a different nic like the i210, it has some specific SDPs that > > > can be used > > > for the PPS inpu

Re: [Linuxptp-users] Grandmaster with gps pps

2018-06-21 Thread Richard Cochran
On Thu, Jun 21, 2018 at 02:36:02PM +0200, Miroslav Lichvar wrote: > On Thu, Jun 21, 2018 at 12:24:15AM -0700, Rob Cornall wrote: > > I know for a different nic like the i210, it has some specific SDPs that > > can be used > > for the PPS input - and this could be used to discipline the phc in the

Re: [Linuxptp-users] Grandmaster with gps pps

2018-06-21 Thread Miroslav Lichvar
On Thu, Jun 21, 2018 at 12:24:15AM -0700, Rob Cornall wrote: > I have a setup with master and slave working with ptp supported imx6 macs. > > On master I have a GPS module with serial reports and a pps signal hooked up > to a GPIO on the imx. > I know for a different nic like the i210, it has some

[Linuxptp-users] Grandmaster with gps pps

2018-06-21 Thread Rob Cornall
I have a setup with master and slave working with ptp supported imx6 macs. On master I have a GPS module with serial reports and a pps signal hooked up to a GPIO on the imx. I know for a different nic like the i210, it has some specific SDPs that can be used for the PPS input - and this could be