From: Hans Oostendorp Date: Fri, 6 Sep 2019 08:41:10 +0000 (+0200) Subject: The AllWinner H2 SoC has the same pinout as the AllWinner H3 SoC, let the Orange... X-Git-Tag: 2.4.0^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/2660fec7110a9cff8e7073ae9b10910ab5954d1b The AllWinner H2 SoC has the same pinout as the AllWinner H3 SoC, let the Orange Pi Zero board use that microcontroller to keep it more simple --- diff --git a/src/adafruit_blinka/board/orangepizero.py b/src/adafruit_blinka/board/orangepizero.py index 0593e06..bb425aa 100644 --- a/src/adafruit_blinka/board/orangepizero.py +++ b/src/adafruit_blinka/board/orangepizero.py @@ -1,6 +1,8 @@ """Pin definitions for the Orange Pi Zero.""" -from adafruit_blinka.microcontroller.allwinner_h2 import pin +# The Orange Pi Zero uses the AllWinner H2 SoC, but pins +# are the same as the AllWinner H3 SoC, so we import those +from adafruit_blinka.microcontroller.allwinner_h3 import pin PA12 = pin.PA12 SDA = pin.PA12 diff --git a/src/adafruit_blinka/microcontroller/allwinner_h2/__init__.py b/src/adafruit_blinka/microcontroller/allwinner_h2/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/adafruit_blinka/microcontroller/allwinner_h2/pin.py b/src/adafruit_blinka/microcontroller/allwinner_h2/pin.py deleted file mode 100644 index 229dbf7..0000000 --- a/src/adafruit_blinka/microcontroller/allwinner_h2/pin.py +++ /dev/null @@ -1,34 +0,0 @@ -from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin - -PA0 = Pin(0) -UART2_TX = PA0 -PA1 = Pin(1) -UART2_RX = PA1 -PA2 = Pin(2) -PA3 = Pin(3) -PA6 = Pin(6) -PA10 = Pin(10) -PA11 = Pin(11) -TWI0_SCL = PA11 -PA12 = Pin(12) -TWI0_SDA = PA12 -PA13 = Pin(13) -PA14 = Pin(14) -SPI1_SCLK = PA14 -PA15 = Pin(15) -SPI1_MOSI = PA15 -PA16 = Pin(16) -SPI1_MISO = PA16 -PA18 = Pin(18) -PA19 = Pin(19) - -PG6 = Pin(198) -UART1_TX = PG6 -PG7 = Pin(199) -UART1_RX = PG7 - -i2cPorts = ( (0, TWI0_SCL, TWI0_SDA), ) -# ordered as spiId, sckId, mosiId, misoId -spiPorts = ( (1, SPI1_SCLK, SPI1_MOSI, SPI1_MISO), ) -# ordered as uartId, txId, rxId -uartPorts = ( (2, UART2_TX, UART2_RX), )