This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IEEE 1588v1 support by EMAC in AM335x.

Other Parts Discussed in Thread: DP83640

Hi all,

I want to need the information about EMAC support of IEEE 1588v1 (not 1588v2).
I'm evaluating the clock synchronization using 1588v1. (for compatibility, 1588v2 cannot be used)

The platform is BBB, SDK v02.00.00.00.

When I execute ptp4l as slave-only in the network which the clock master exists,

root@am335x-evm:~# ptp4l -i eth0 -m -s -H

ptp4l[6060.535]: selected /dev/ptp0 as PTP clock
ptp4l[6060.545]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[6060.547]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[6068.519]: selected best master clock d05fb8.fffe.e44add
ptp4l[6075.998]: selected best master clock d05fb8.fffe.e44add

[ 7363.399227] cpts: unable to obtain a time stamp
[ 7371.427656] cpts: event pool is empty


The result of ethtool -T is follows:

root@am335x-evm:~# ethtool -T eth0
Time stamping parameters for eth0:
Capabilities:
hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE)
software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE)
hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
off (HWTSTAMP_TX_OFF)
on (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none (HWTSTAMP_FILTER_NONE)
ptpv2-event (HWTSTAMP_FILTER_PTP_V2_EVENT)

So, it seems that PHC subsystem for EMAC in AM335x does not support 1588v1.

Unfortunately I can't find detailed document about this issue.

Please let me know that EMAC in AM335x can support IEEE 1588v1 or not.

Regards,
TOMINAGA Satoshi