]> Repositories - Adafruit_Blinka-hackapet.git/commit
do not set SPI_NO_CS bit when chip is AM3358 #104
authorDrew Fustini <drew@pdp7.com>
Fri, 12 Apr 2019 10:03:02 +0000 (10:03 +0000)
committerDrew Fustini <drew@pdp7.com>
Fri, 12 Apr 2019 12:36:36 +0000 (12:36 +0000)
commitd7709fa4def4e95fe8615f6025b098d48f607157
tree7b421404eab07e420aff7d346df665694a6ab24a
parent1d32b1f741afd0cfc6bc338368aeb3f6440c8d1d
do not set SPI_NO_CS bit when chip is AM3358 #104

Avoid trying to set SPI_NO_CS mode bit when the chip is AM3358 as this
will always fail as Linux kernel driver omap2_mcspi does not support it.

This applies to the BeagleBone Black and PocketBeagle.

For testing, BME280 was wired to SPI0 peripheral on BeagleBone Black.

Run these commands to make sure the pins are in the correct mode:

config-pin p9.13 gpio     # GPIO used for CS
config-pin p9.18 spi      # SPI0_D1 (MOSI)
config-pin p9.21 spi      # SPI0_D0 (MISO)
config-pin p9.22 spi_sclk # SPI0_SCLK

SPI0 was accessed via /dev/spidev0.0
src/adafruit_blinka/microcontroller/generic_linux/spi.py