From: Timon Date: Thu, 6 May 2021 15:42:35 +0000 (+0200) Subject: Add additional SPI ports for BCM2711 X-Git-Tag: 6.8.2~1^2~1 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/58768059b7561389ff0d5d20c558d1d1878324b2 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. --- 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