Hi Yvonne, On Thu, Nov 05, 2020 at 04:23:40PM +0800, yvonne_cyh wrote: > Hi Vladimir > Could you please send me the patch? I did not find a place to download it.
https://github.com/vladimiroltean/linuxptp/tree/ts2phc-dynamic-direction-v3 > I also would like to confirm with you that. > FEC supports pps, but I could not run ptp on it. So i could not get pps as no > ptp stacking is running on it. > Swith supports external time stamps channel, can run ptp on it and sync to a > ptp master or slave by L2 transport. > With your patch, I can get fec syncd to switch, right? just like ptp is > running on it ? switch can correct the phc of fec, right? Yes. > And this will make pps out of fec? > Do I still need to enable the pps_enable node? > # echo 1 > /sys/class/ptp/ptp0/pps_enable > [ 3184.501924] fec 30be0000.ethernet: No ptp stack is running Useless error, removed here. https://patchwork.ozlabs.org/project/netdev/patch/20200715154300.13933-2-sorga...@gmail.com/ > # ./testptp -d /dev/ptp1 -c -----switch > capabilities: > 1000000 maximum frequency adjustment (ppb) > 0 programmable alarms > 1 external time stamp channels > 0 programmable periodic signals This will be a problem. I am not sure why driver authors insist on implementing PTP_CLK_REQ_PPS instead of PTP_CLK_REQ_PEROUT. ts2phc will require PTP_CLK_REQ_PEROUT. > 0 pulse per second > 15 programmable pins > 0 cross timestamping _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users