SPI 1 Issue in Pocket Beagle Bone

Hello All,

I am using Debian Version 9.2.

I am able to read and write SPI 0 (Pin P1.6, P1.8, P1.10, P1.12) in Pocket Beagle Bone .

But facing issue for read , write function in SPI 1 (Pin P2.24, P2.26, P2.28, P2.30).

In uEnv.txt i had put

optargs=quiet drm.debug=7 capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
capemgr.enable_partno=BB-SPIDEV0,BB-SPIDEV1

debian@beaglebone:/dev$ ls -al spidev*
crw-rw---- 1 root spi 153, 0 Oct 10 12:07 spidev1.0
crw-rw---- 1 root spi 153, 1 Oct 10 12:07 spidev1.1
crw-rw---- 1 root spi 153, 2 Oct 10 12:07 spidev2.0
crw-rw---- 1 root spi 153, 3 Oct 10 12:07 spidev2.1

Please let me know if anyone can help here.

Hello All,

I am using Debian Version 9.2.

We are continuing to do bug fixes on the weekly builds. You can try https://rcn-ee.net/rootfs/bb.org/testing/2018-01-07/stretch-iot/bone-debian-9.3-iot-armhf-2018-01-07-4gb.img.xz.

I am able to read and write SPI 0 (Pin P1.6, P1.8, P1.10, P1.12) in Pocket Beagle Bone .

But facing issue for read , write function in SPI 1 (Pin P2.24, P2.26, P2.28, P2.30).

In uEnv.txt i had put

optargs=quiet drm.debug=7 capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
capemgr.enable_partno=BB-SPIDEV0,BB-SPIDEV1

capemgr isn’t used by PocketBeagle. You can apply overlays in u-boot using the uEnv.txt, but the optargs related to capemgr will be ignored because capemgr isn’t loaded using the PocketBeagle Device tree.

SPIDEV should be loaded by default in the device tree config. You can see where it is specified in the device tree today here:
https://github.com/beagleboard/linux/blob/4.4/arch/arm/boot/dts/am335x-pocketbeagle.dts#L13

debian@beaglebone:/dev$ ls -al spidev*
crw-rw---- 1 root spi 153, 0 Oct 10 12:07 spidev1.0
crw-rw---- 1 root spi 153, 1 Oct 10 12:07 spidev1.1
crw-rw---- 1 root spi 153, 2 Oct 10 12:07 spidev2.0
crw-rw---- 1 root spi 153, 3 Oct 10 12:07 spidev2.1

Please let me know if anyone can help here.

You need to use spidev2.1 because I used CS!.