The device tree overlay which maps the RQX-59G PPS_IN (DB50 Pin#21) to pps-gpio driver.
Download device tree overlay source files:
git clone https://github.com/Adlink-ROS/pps-in-dts.git
Compile the device tree overlay. The Makefile will automatically merge the DTBO into the current using DTB:
cd pps-in-dts
make
Please restart the system to make new device tree take effect:
sync
sudo reboot
After bootup, please enter below commands to check if pps1 can be found.
Install pps-tools for PPS signal verification:
sudo apt install pps-tools
Enter below command to test pps:
sudo ppstest /dev/pps1
If PPS input exists, you should see the result simlar to below picture:
Now, the PPS input is ready to use.
Note: If a timeout occurs, please check the PPS wiring between DB50 Pin #21 of the RQX-59G and your PPS generator.
If PPS_IN is no logger needed, you can enter below command to restore the original device tree:
cd pps-in-dts
make restore