@RobertCNelson thanks for the explanation.
@ladyada
thanks, your comment made me realize that I can adjust the indexes in spiPorts
inside microcontroller/am335x/pin.py
SPI0 is /dev/spidev1.x
and SPI1 is /dev/spidev2.x
on both:
- the current recommended BeagleBoard.org Debian image is Debian 9.5 (Stretch) from 2018-10-07.
- the newest Debian 9.8 (Strecth) snapshot from 2019-04-07:
I think spiPorts
should changed from:
# ordered as spiId, sckId, mosiId, misoId
spiPorts = (
(0, SPI0_SCLK, SPI0_D1, SPI0_D0),
(1, SPI1_SCLK, SPI1_D1, SPI1_D0),
)
to:
# ordered as spiId, sckId, mosiId, misoId
spiPorts = (
(1, SPI0_SCLK, SPI0_D1, SPI0_D0),
(2, SPI1_SCLK, SPI1_D1, SPI1_D0),
)
By the way, the new BeagleBone AI should hopefully launch this Summer. It uses a much more powerful TI Sitara AM5729 SoC but keeps the traditional P8/P9 BeagleBone headers. @jadonk has been working on BeagleBone cape interface spec so that we can have consistency between the new and old BeagleBones.