PPS output for IEEE 1588 on Verdin imx8mm

Dear Toradex,

we have enabled PPS output from ptp driver by changing device tree to reassign SODIMM 222 to MX8MM_IOMUXC_GPIO1_IO09_ENET1_1588_EVENT0_OUT. We have also changed the driver to toggle the EVENT0_OUT pin (as opposed to a short pulse) so we can see the result more easily on our oscilloscope. The PPS out is enabled by

echo 1 > /sys/class/ptp/ptp0/pps_enable

When linuxptp (v3.1.1) has slaved to a master.

However, the pin toggles every 2.16s, not once per second. Has anyone got pps output from the fec_ptp driver working on the Verdin with linuxptp?

I have fixed the issue. I now get 1pps.

I had to change the interrupt configuration in the device tree for fec1:

interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = “1”, “2”, “3”, “pps”;

Hi @jrsharp67 !

Thanks for the solution! I am marking your last message as such.

Also, I would like to link this nice reference from NXP:

Best regards,