There is a function fec_ptp_enable_pps in fec_ptp.c . This function has been called after function ptp_clock_register in fec_ptp_init, which modified by me.
But pps signal can not be detected. please help me... thanks... imx6sx
What NXP Linux BSP release is used?Was ENET2_EVENT0_OUT pin properly configured (in dts file)?
Do You run ptp4l?
How the PPS was enabled?
thx for your reply. The PPS signal has been found.
yes, i use ptp4l. after setting "phc2sys -w -s /dev/ptp0 -d /dev/pps0 -m" and echo 1 > /sys/class/ptp/ptp0/pps_enable, the PPS has been found.
thanks a lot.
I have another question, if one imx6 act as GMC which can output PPS, another imx6 act as slave(OC) which also can PPS.
both of them run "ptp4l -i eth0 -2 -H -m" , after "locked", as the master offset is about [-100, 100] nS. if PPS of two board has the same phase position? or, Is the phase shift should less than microsecond?
Retrieving data ...