Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4810

Interfacing (DSI, CSI, I2C, etc.) • pps0/1: which gpio pin?

$
0
0
Hi,

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
The pulses come in fine:

Code:

$ cat /sys/class/pps/pps*/assert1732179620.999835567#825811732179624.999837418#84742
One thing though is: how can I find programmatically to which gpio a pps-device is connected?

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
In dmesg I see:

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 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.

Statistics: Posted by flok99 — Thu Nov 21, 2024 9:04 am



Viewing all articles
Browse latest Browse all 4810

Trending Articles