is it possible to disable SPI0 channel on Raspberry Pi 3 B (with latest Raspbian) and keep SPI1 in use? I would like to use SPI1 only (due to custom PCB tracing) and need to use SPI0 pins as GPIOs... All manuals and tutorials only mentions disabling SPI1 or whole SPI subsystem...
-
AFAIK it's perfectly possible to enable them separately. Disable SPI0 through raspi-config (or removing dtparam=spi=on from /boot/config.txt) and enable SPI1 with one of the spi1-xcs overlays (with x=1, 2 or 3). Somehow I get the feeling that this is not what you are looking for because I cannot remember seeing any docs saying that you cannot enable SPI0 and SPI1 separately...– DirkCommented Oct 23, 2018 at 13:25
Add a comment
|
1 Answer
You don't really need to do anything apart from just use the GPIO.
If SPI0 is enabled those GPIO will be in SPI mode. If you set one or more of those GPIO to be an INPUT or an OUTPUT those GPIO will no longer be in SPI mode (and any SPI calls you make will not affect those GPIO).
In summary as long as you set the GPIO you use to be an INPUT or an OUTPUT you need not worry about them being affected by SPI calls.