how can i enable PPS on ENET2_EVENT0_OUT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how can i enable PPS on ENET2_EVENT0_OUT

1,469 次查看
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

标记 (4)
0 项奖励
回复
2 回复数

1,342 次查看
Yuri
NXP Employee
NXP Employee

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.

1,342 次查看
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 项奖励
回复