
Example:
pci@0,4 {
reg = <0x000400 0 0 0 0>;
clocks = <&clockgen 4 0>;
little-endian;
};
2. Felix switch
NA
Verification in Linux
Connect Ethernet interfaces of two boards with back-to-back method (for example, eth0 to eth0).
One board runs as master and the other one runs as slave.
• Check PTP clock and timestamping capability
# ethtool -T eth0
Time stamping parameters for eth0:
Capabilities:
hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE)
hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)
hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 1
Hardware Transmit Timestamp Modes:
off (HWTSTAMP_TX_OFF)
on (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none (HWTSTAMP_FILTER_NONE)
all (HWTSTAMP_FILTER_ALL)
• On the master side
# ifconfig eth0 up
# ifconfig eth0 192.168.1.100
# ptp4l -i eth0 -p /dev/ptp1 -m
• On the slave side
# ifconfig eth0 up
# ifconfig eth0 192.168.1.200
# ptp4l -i eth0 -p /dev/ptp1 -s -m
The slave side would print synchronization messages.
•
Note:
For Felix switch, ptp4l works on both, CPU port with bridge case and CPU port without bridge case. However, ptp4l should
only work on L2 Ethernet protocol with -2 option for CPU port with bridge case.
Known Bugs, Limitations, or Technical Issues
• The Felix switch interrupt had not been implemented in driver. Polling method in work queue was used instead temporary
for timestamping support.
Linux kernel
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
50
NXP Semiconductors
Содержание Layerscape LS1028A BSP
Страница 135: ......