From: Drew Fustini Date: Fri, 12 Apr 2019 10:03:02 +0000 (+0000) Subject: do not set SPI_NO_CS bit when chip is AM3358 #104 X-Git-Tag: 1.3.0~2^2~1 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/d7709fa4def4e95fe8615f6025b098d48f607157?ds=inline;hp=d7709fa4def4e95fe8615f6025b098d48f607157 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 ---