pin modes on pocketbeagle 2

Dear forum,

What is the method for setting the pin mode(s) on the pocketbeagle 2? The setup guide does provide how to set GPIO pins but there is no clarification on setting pin modes. The old pin-mode command does not seem to work so I guess the overlays won’t work either.

Best, Hans.

i did SPI2 as an overlay and it worked.
as for using gpio pin mode, i’ve not tested yet.

Thanks.
You made your own I guess?

1 Like

kind of, someone else posted the basic here about a week or so ago. i just added the second chip select and tested it.

I do have a pinctl command at fpp/capes/drivers/bb64/src at master · FalconChristmas/fpp · GitHub that FPP uses to flip between GPIO/uart/pruin/pruout. Doesn’t do SPI yet, but it would be fairly quick to add.

Hello,
I used a lot config-pin on BBB, so when i got the PB2 and it was missing.
I did a back port of the gpio-helper and the dts generation for the PB2. I planed to do the merge request but there is still some issue with the PB2 having pins connected together.

https://github.com/leo5593/ti-linux-kernel-dev/releases/tag/6.12.y-bone-pinmux-helper-PB2-ALPHA

I will check for the dts generation merge request and the “bone-pinmux-helper” driver.