Using GPIO on pocketbeagle2

Hi,

I would like to use GPIO with PB2 but I don’t understand the doc. There is an example on page 38:

to set the GPIO pin state to HIGH
debian@BeagleBone:~$ gpioset X Y=1
to set the GPIO pin state to LOW
debian@BeagleBone:~$ gpioset X Y=0
For Example:
±--------±---------+
| Pin | P1.03 |
+=========+==========+
| GPIO | 1 20 |
±--------±---------+

Use the commands below for controlling this pin (P1.03) where X = 1 and Y =␣
,→20
to set the GPIO pin state to HIGH
debian@BeagleBone:~$ gpioset 1 20=1
to set the GPIO pin state to LOW
debian@BeagleBone:~$ gpioset 1 20=0

They talk about GPIO 1 20 for P1.03 but according to the pinout on page 36, P1.03 is GPIO1_51, am I wrong ?

Thx by advance for your help !

Actually it’s worse, don’t touch that pin it’s USB1.DRVVBUS used by default for the second USB (host)…

Here’s an overlay I did recently to test every gpio.. BeagleBoard-DeviceTrees/src/arm64/overlays/k3-am62-pocketbeagle2-led-all.dtso at v6.12.x-Beagle · beagleboard/BeagleBoard-DeviceTrees · GitHub

2 Likes