From 58768059b7561389ff0d5d20c558d1d1878324b2 Mon Sep 17 00:00:00 2001 From: Timon Date: Thu, 6 May 2021 17:42:35 +0200 Subject: [PATCH] Add additional SPI ports for BCM2711 Currently the additional SPI ports on the Pi4 or CM4 are not usable in Blinka without doing this change manually. SPI6 uses the same pins as the default SPI1 pins. --- src/adafruit_blinka/microcontroller/bcm283x/pin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/adafruit_blinka/microcontroller/bcm283x/pin.py b/src/adafruit_blinka/microcontroller/bcm283x/pin.py index 48eb0c0..adbe183 100644 --- a/src/adafruit_blinka/microcontroller/bcm283x/pin.py +++ b/src/adafruit_blinka/microcontroller/bcm283x/pin.py @@ -142,6 +142,10 @@ spiPorts = ( (0, SCLK, MOSI, MISO), (1, SCLK_1, MOSI_1, MISO_1), (2, SCLK_2, MOSI_2, MISO_2), + (3, D3, D2, D1), #SPI3 on Pi4/CM4 + (4, D7, D6, D5), #SPI4 on Pi4/CM4 + (5, D15, D14, D13), #SPI5 on Pi4/CM4 + ) # ordered as uartId, txId, rxId -- 2.49.0