How to enable SPI on PocketBeagle2

There are not many overlays at all for the PB2. Here’s one I made for spidev on McSPI2, which I made by hand based on older ones. For some reason it shows up as /dev/spidev0.0 instead of /dev/spidev2.0 , but it works well for me.

This uses <&P1_06_E19_spi>, <&P1_08_spi>, <&P1_10_B19_spi>, <&P1_12_A19_spi>

PB2-SPIDEV2.dtso (1.3 KB)

To use it, cd to the folder /opt/source/dtb-* matching your kernel version, then place this in src/arm64/overlays and do sudo ./build_n_install.sh. Then edit extlinux.conf to load this.

1 Like