Hi,
I've added two PPS sources to my raspberry pi zero 2w.
In /boot/firmware/config.txt I configured:
The pulses come in fine:
One thing though is: how can I find programmatically to which gpio a pps-device is connected?
In dmesg I see:
so I'm guessing 18 and 12 are hex here so that the order in config.txt does not reflect the pps0 or pps1 order (that's why I'm asking).
So what I'm looking for is /dev/pps0 is connected to gpio this or that, withouth parsing dmesg-output.
I've added two PPS sources to my raspberry pi zero 2w.
In /boot/firmware/config.txt I configured:
Code:
dtoverlay=pps-gpio,gpiopin=18dtoverlay=pps-gpio,gpiopin=24
Code:
$ cat /sys/class/pps/pps*/assert1732179620.999835567#825811732179624.999837418#84742
Code:
$ ls -la /dev/pps*crw-rw---- 1 root root 250, 0 Nov 20 09:19 /dev/pps0crw------- 1 root root 250, 1 Nov 20 09:19 /dev/pps1
Code:
[ 10.729767] pps pps0: new PPS source pps@18.-1[ 10.730187] pps pps0: Registered IRQ 184 as PPS source[ 10.731494] pps pps1: new PPS source pps@12.-1[ 10.732099] pps pps1: Registered IRQ 185 as PPS source
So what I'm looking for is /dev/pps0 is connected to gpio this or that, withouth parsing dmesg-output.
Statistics: Posted by flok99 — Thu Nov 21, 2024 9:04 am