Showing results for 
Search instead for 
Did you mean: 

How to use two STM32MP157C DK2 to do PTP(IEEE 1588v2)synchronization? I type command "ethtool -T eth0", it seems the Linux system support PTP functions, can I install PTP utilities such as "ptp4l" ? can I enable the PPS signal?

Associate II

Linux kernel version is "stm32mp1 5.4.31 "

ST Employee

Hi @YZHU.1​ 

Yes PTP is supported.

A first clue : on linux side, you can activate the clock on the device tree:

clock-names = "stmmaceth", "ptp_ref";

Maybe further help reading wiki :

Hope it help


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Oliver ,

It good to get your reply! we will try to activate the PTP clock as you have instructed.

We have browsed site you recommend ( wiki/ethernet_overview) and still hard to find the detailed information about how to implement PTP in STOPENLINUX.

We are now using new stm32mp1 kernel v5.4(en.FLASH-stm32mp1-openstlinux-5-4-dunfell-mp1-20-06-24)running on stm32mp157c DK2.

LinuxPTP has been installed and ptp4l is working fine.

We noticed there were some instructions(by AntonioST)about PTP on Kernel version 4.19 one year ago, are they still apply to kernel v5.4?

Is it necessary and how do I send message to device "/sys/class/ptp/ptp0/period" to activate the PPS signal ?