enjoy-digital / litepcie_ptm_test

LitePCIe PTM support / test repo.
5 stars 2 forks source link

Test Intel i225 PPS output. #8

Closed trabucayre closed 1 year ago

trabucayre commented 1 year ago

configuration

sudo /bin/bash
echo 1 > /sys/class/ptp/ptpX/pps_enable
echo 2 0 > /sys/class/ptp/ptpX/pins/SDP0
echo '0 0 0 1 0' > /sys/class/ptp/ptpX/period

where:

pinout

GND GND GND
SDP0 SDP1 SDP2

board

Ref

enjoy-digital commented 1 year ago

Since we have two Intel board in the setup, we can just execute each time:

sudo /bin/bash
echo 1 > /sys/class/ptp/ptp0/pps_enable
echo 2 0 > /sys/class/ptp/ptp0/pins/SDP0
echo '0 0 0 1 0' > /sys/class/ptp/ptp0/period
echo 1 > /sys/class/ptp/ptp1/pps_enable
echo 2 0 > /sys/class/ptp/ptp1/pins/SDP0
echo '0 0 0 1 0' > /sys/class/ptp/ptp1/period
enjoy-digital commented 1 year ago

phc2sys commands:

sudo phc2sys -s CLOCK_REALTIME -c /dev/ptp0 -O 0 -m
sudo phc2sys -s CLOCK_REALTIME -c /dev/ptp1 -O 0 -m
enjoy-digital commented 1 year ago

We can now close since documented/integrated in README.