-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from adafruit/master
Merge
- Loading branch information
Showing
22 changed files
with
384 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""Pin definitions for the Coral Dev Board.""" | ||
|
||
from adafruit_blinka.microcontroller.nxp_imx8m import pin | ||
|
||
# Board name = RPI name [= alias] = pin name | ||
I2C2_SDA = D2 = SDA = pin.I2C2_SDA | ||
I2C2_SCL = D3 = SCL = pin.I2C2_SCL | ||
|
||
PWM1 = D12 = pin.PWM1 | ||
PWM2 = D13 = pin.PWM2 | ||
PWM3 = D22 = pin.PWM3 | ||
|
||
GPIO_P13 = D27 = pin.GPIO6 | ||
GPIO_P16 = D23 = pin.GPIO73 | ||
GPIO_P18 = D24 = pin.GPIO138 | ||
GPIO_P29 = D5 = pin.GPIO7 | ||
GPIO_P31 = D6 = pin.GPIO8 | ||
GPIO_P36 = D16 = pin.GPIO141 | ||
GPIO_P37 = D26 = pin.GPIO77 | ||
|
||
ECSPI1_MISO = D9 = MISO = pin.ECSPI1_MISO | ||
ECSPI1_MOSI = D10 = MOSI = pin.ECSPI1_MOSI | ||
ECSPI1_SCLK = D11 = SCLK = SCK = pin.ECSPI1_SCLK | ||
ECSPI1_SS0 = D8 = SS0 = pin.ECSPI1_SS0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"""Pin definitions for the Coral Dev Board Mini.""" | ||
|
||
from adafruit_blinka.microcontroller.mt8167 import pin | ||
|
||
# Board name = RPI name [= alias] = pin name | ||
GPIO22 = D4 = pin.GPIO22 # Pin 7 | ||
GPIO9 = D17 = pin.GPIO9 # Pin 11 | ||
GPIO36 = D18 = pin.GPIO36 # Pin 12 | ||
GPIO10 = D27 = pin.GPIO10 # Pin 13 | ||
GPIO0 = D23 = pin.GPIO0 # Pin 16 | ||
GPIO1 = D24 = pin.GPIO1 # Pin 18 | ||
GPIO7 = D25 = pin.GPIO7 # Pin 22 | ||
GPIO8 = D7 = pin.GPIO8 # Pin 26 | ||
GPIO37 = D19 = pin.GPIO37 # Pin 35 | ||
GPIO13 = D16 = pin.GPIO13 # Pin 36 | ||
GPIO45 = D26 = pin.GPIO45 # Pin 37 | ||
GPIO38 = D20 = pin.GPIO38 # Pin 38 | ||
GPIO39 = D21 = pin.GPIO39 # Pin 40 | ||
|
||
I2C1_SDA = D2 = SDA1 = pin.I2C1_SDA # Pin 3 | ||
I2C1_SCL = D3 = SCL1 = pin.I2C1_SCL # Pin 5 | ||
I2C2_SDA = D0 = SDA2 = pin.I2C2_SDA # Pin 27 | ||
I2C2_SCL = D1 = SCL2 = pin.I2C2_SCL # Pin 28 | ||
|
||
PWM_A = D12 = pin.PWM_A # Pin 32 | ||
PWM_B = D13 = pin.PWM_B # Pin 33 | ||
PWM_C = D22 = pin.PWM_C # Pin 15 | ||
|
||
SPI_MO = D10 = MOSI = pin.SPI_MO # Pin 19 | ||
SPI_MI = D9 = MISO = pin.SPI_MI # Pin 21 | ||
SPI_CLK = D11 = SCLK = pin.SPI_CLK # Pin 23 | ||
SPI_CSB = D8 = CS0 = pin.SPI_CSB # Pin 24 | ||
|
||
# UART currently not supported | ||
GPIO63 = D14 = pin.GPIO63 # UART0_TX, Pin 8 | ||
GPIO62 = D15 = pin.GPIO62 # UART0_RX, Pin 10 | ||
GPIO65 = D5 = pin.GPIO65 # UART1_TX, Pin 29 | ||
GPIO64 = D6 = pin.GPIO64 # UART1_RX, Pin 31 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
"""Pin definitions for the PineH64.""" | ||
|
||
from adafruit_blinka.microcontroller.allwinner.h6 import pin | ||
|
||
D2 = pin.PD26 | ||
D3 = pin.PD25 | ||
D4 = pin.PL8 | ||
D5 = pin.PH2 | ||
D6 = pin.PG14 | ||
D7 = pin.PC16 | ||
D8 = pin.PH3 | ||
D9 = pin.PH6 | ||
D10 = pin.PH5 | ||
D11 = pin.PH4 | ||
D12 = pin.PD22 | ||
D13 = pin.PD21 | ||
D14 = pin.PD19 | ||
D15 = pin.PD20 | ||
D16 = pin.PD24 | ||
D17 = pin.PL9 | ||
D18 = pin.PG11 | ||
D19 = pin.PG10 | ||
D21 = pin.PG12 | ||
D22 = pin.PG13 | ||
D23 = pin.PD16 | ||
D24 = pin.PD17 | ||
D25 = pin.PD18 | ||
D26 = pin.PD23 | ||
D27 = pin.PD14 | ||
|
||
SDA = D2 | ||
SCL = D3 | ||
|
||
SCLK = D11 | ||
MOSI = D10 | ||
MISO = D9 | ||
CS = D8 | ||
SCK = SCLK | ||
|
||
UART_TX = D14 | ||
UART_RX = D15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
"""Pin definitions for the SoPine.""" | ||
|
||
from adafruit_blinka.microcontroller.allwinner.a64 import pin | ||
|
||
D2 = pin.PH3 | ||
D3 = pin.PH2 | ||
D4 = pin.PL10 | ||
D5 = pin.PH5 | ||
D6 = pin.PH6 | ||
D7 = pin.PH7 | ||
D8 = pin.PC3 | ||
D9 = pin.PC1 | ||
D10 = pin.PC0 | ||
D11 = pin.PC2 | ||
D12 = pin.PC4 | ||
D13 = pin.PC5 | ||
D14 = pin.PB0 | ||
D15 = pin.PB1 | ||
D16 = pin.PC6 | ||
D17 = pin.PC7 | ||
D18 = pin.PC8 | ||
D19 = pin.PC9 | ||
D20 = pin.PC10 | ||
D21 = pin.PC11 | ||
D22 = pin.PC12 | ||
D23 = pin.PC13 | ||
D24 = pin.PC14 | ||
D25 = pin.PC15 | ||
D26 = pin.PC16 | ||
D27 = pin.PH9 | ||
|
||
SDA = D2 | ||
SCL = D3 | ||
|
||
SCL2 = pin.PL8 | ||
SDA2 = pin.PL9 | ||
|
||
SCLK = D11 | ||
MOSI = D10 | ||
MISO = D9 | ||
CS = D8 | ||
SCK = SCLK | ||
|
||
UART_TX = D14 | ||
UART_RX = D15 | ||
|
||
UART3_TX = pin.PD0 | ||
UART3_RX = pin.PD1 | ||
|
||
UART4_TX = pin.PD2 | ||
UART4_RX = pin.PD3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Definition for the AllWinner H6 chip""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
"""Allwinner H6 Pin Names""" | ||
from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin | ||
|
||
PC16 = Pin((1, 79)) | ||
|
||
PD14 = Pin((1, 110)) | ||
PD15 = Pin((1, 111)) | ||
PD16 = Pin((1, 112)) | ||
PD17 = Pin((1, 113)) | ||
PD18 = Pin((1, 114)) | ||
PD19 = Pin((1, 115)) | ||
UART2_TX = PD19 | ||
PD20 = Pin((1, 116)) | ||
UART2_RX = PD20 | ||
PD21 = Pin((1, 117)) | ||
PD22 = Pin((1, 118)) | ||
PD23 = Pin((1, 119)) | ||
PD24 = Pin((1, 120)) | ||
PD25 = Pin((1, 121)) | ||
TWI0_SCL = PD25 | ||
PD26 = Pin((1, 122)) | ||
TWI0_SDA = PD26 | ||
|
||
PG10 = Pin((1, 202)) | ||
PG11 = Pin((1, 203)) | ||
PG12 = Pin((1, 204)) | ||
PG13 = Pin((1, 205)) | ||
PG14 = Pin((1, 206)) | ||
|
||
PH2 = Pin((1, 226)) | ||
PH3 = Pin((1, 227)) | ||
SPI1_CS = PH3 | ||
PH4 = Pin((1, 228)) | ||
SPI1_SCLK = PH4 | ||
PH5 = Pin((1, 229)) | ||
SPI1_MOSI = PH5 | ||
PH6 = Pin((1, 230)) | ||
SPI1_MISO = PH6 | ||
PH8 = Pin((1, 230)) | ||
PH9 = Pin((1, 231)) | ||
|
||
PL8 = Pin((1, 360)) | ||
PL9 = Pin((1, 361)) | ||
|
||
i2cPorts = ((0, TWI0_SCL, TWI0_SDA),) | ||
spiPorts = ((0, SPI1_SCLK, SPI1_MOSI, SPI1_MISO),) | ||
uartPorts = ((2, UART2_TX, UART2_RX),) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.