how can i enable PPS on ENET2_EVENT0_OUT

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i enable PPS on ENET2_EVENT0_OUT

450 Views
wangrui
Contributor I

Hi

    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

Tags (4)
0 Kudos
2 Replies

323 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

  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?

Regards,

Yuri.

323 Views
wangrui
Contributor I

Hi

  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?

0 Kudos