Skip to content

Commit

Permalink
Merge pull request #655 from Iainrach/LePotatoPatch
Browse files Browse the repository at this point in the history
Le potato patch
  • Loading branch information
makermelissa committed Feb 23, 2023
2 parents 32fe870 + 2fd99b6 commit 802e687
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/adafruit_blinka/board/librecomputer/aml_s905x_cc_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
SCL = pin.i2cPorts[0][1]
SDA = pin.i2cPorts[0][2]

SCLK = pin.SPI1_SCLK
MOSI = pin.SPI1_MOSI
MISO = pin.SPI1_MISO
SPI_CS = pin.SPI1_CS
SCLK = pin.SPI0_SCLK
MOSI = pin.SPI0_MOSI
MISO = pin.SPI0_MISO
SPI_CS = pin.SPI0_CS

# Pinout reference:
# https://github.com/libre-computer-project/libretech-wiring-tool/blob/master/libre-computer/aml-s905x-cc/gpio.map
Expand Down
6 changes: 5 additions & 1 deletion src/adafruit_blinka/microcontroller/amlogic/s905x/pin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
UART2_RX = GPIO292
UART2_TX = GPIO291

SPI0_SCLK = GPIO290
SPI0_MISO = GPIO288
SPI0_MOSI = GPIO287
SPI0_CS = GPIO289
SPI1_SCLK = GPIO223
SPI1_MISO = GPIO288
SPI1_MOSI = GPIO287
Expand All @@ -63,7 +67,7 @@
(1, I2C1_SCK, I2C1_SDA),
)

spiPorts = (0, SPI1_SCLK, SPI1_MOSI, SPI1_MISO)
spiPorts = ((0, SPI0_SCLK, SPI0_MOSI, SPI0_MISO), (1, SPI1_SCLK, SPI1_MOSI, SPI1_MISO))

uartPorts = (
(1, UART1_TX, UART1_RX),
Expand Down

0 comments on commit 802e687

Please sign in to comment.