]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Add additional SPI ports for BCM2711
authorTimon <timon@skerutsch.de>
Thu, 6 May 2021 15:42:35 +0000 (17:42 +0200)
committerGitHub <noreply@github.com>
Thu, 6 May 2021 15:42:35 +0000 (17:42 +0200)
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

index 48eb0c06dc7f999d3f4372a76dfad88202ea78dd..adbe183b7a32942cbd335763ca739d9b2f0cfd34 100644 (file)
@@ -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