Skip to main content
YZHU.1
Associate
September 9, 2020
Question

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?

  • September 9, 2020
  • 1 reply
  • 1713 views

Linux kernel version is "stm32mp1 5.4.31 "

This topic has been closed for replies.

1 reply

Olivier GALLIEN
Technical Moderator
September 14, 2020

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 :

https://wiki.st.com/stm32mpu/wiki/Ethernet_overview

Hope it help

Olivier

Olivier GALLIEN 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.
YZHU.1
YZHU.1Author
Associate
September 15, 2020

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 ?