Thank you very much! I was able to get the PHC to start ticking once I put in MX6QDL_PAD_GPIO_16__ENET_REF_CLK in the .dts file and rebuilt the device tree blob. I was also able synchronize the clock using ptp4l and phc2sys.
I wasn't sure which hex value to use. I see that you used 0x4001b0a8, but I used the value of 0x4001b0b0, which appears to be the reset value according to the datasheet. I haven't tried your value. Does it make a difference? I also didn't have to set GPR1[21]. It appears that it was already being set by arch/arm/mach-imx/mach-imx6q.c. On Fri, Dec 7, 2018 at 5:47 AM Hannes Mayr <hannes.m...@microgate.it> wrote: > On 05/12/2018 16:27, Keith Squier wrote: > > Hannes, > > I was thinking that it could be a driver issue. I never thought about > > the device tree, but it could be that. At this point, I'm not ruling > > anything out. I'm not familiar with device trees or the imx6 hardware. > > (I was given this hardware and told to set up the PTP services.) > > Please forgive my ignorance. I do have the yocto project to build the > > kernel image for this hardware. How would I go about checking that the > > device tree is set up correctly? Does the imx6 Hardware Development > > Guide talk about setting up the device tree? > > To be more specific it depends on how the ethernet PHY is connected to > the imx6 if a separate clock reference is required to clock the 1588 > timer and therefore if you need to configure this in the device-tree. > The imx6 has a kind of confusing documentation regarding the > ethernet/PTP clock source. Someone has already written a good summary > about this on the linux mailinglist: > > > http://lists.infradead.org/pipermail/linux-arm-kernel/2013-September/201066.html > > If you have Gigabit Ethernet on your board then you probably use RGMII. > In that case check that the reference clock is enabled on the GPIO_16 > pad in the device-tree like this for example: > > MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8 > > If there is no external clock source on pad GPIO_16 (from the PHY for > example) also the imx6 register GPR1[21] = 1 must be set to loop back > the internal clock to GPIO_16. This can either be done in the bootloader > (u-boot) or you can add it to the fec driver. > > Hannes > > >
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users