|
|
|
@ -506,15 +506,15 @@ int ORANGEPI_PIN_MASK[12][32] = //[BANK] [INDEX]
|
|
|
|
|
#ifdef CONFIG_ORANGEPI_ZERO |
|
|
|
|
int pinToGpioOrangePi[64] = |
|
|
|
|
{ |
|
|
|
|
17, 18, 27, 22, 23, 24, 25, 4, // From the Original Wiki - GPIO 0 through 7: wpi 0 - 7
|
|
|
|
|
2, 3, // I2C - SDA0, SCL0 wpi 8 - 9
|
|
|
|
|
8, 7, // SPI - CE1, CE0 wpi 10 - 11
|
|
|
|
|
10, 9, 11, // SPI - MOSI, MISO, SCLK wpi 12 - 14
|
|
|
|
|
14, 15, // UART - Tx, Rx wpi 15 - 16
|
|
|
|
|
12, 11, 6, 198, 199, 1, 7, 0, // From the Original Wiki - GPIO 0 through 7: wpi 0 - 7
|
|
|
|
|
3, 19, // I2C - SDA0, SCL0 wpi 8 - 9
|
|
|
|
|
18, 15, // SPI - CE1, CE0 wpi 10 - 11
|
|
|
|
|
16, 2, 14, // SPI - MOSI, MISO, SCLK wpi 12 - 14
|
|
|
|
|
13, 10, // UART - Tx, Rx wpi 15 - 16
|
|
|
|
|
-1, -1, -1, -1, // Rev 2: New GPIOs 8 though 11 wpi 17 - 20
|
|
|
|
|
5, 6, 13, 19, 26, // B+ wpi 21, 22, 23, 24, 25
|
|
|
|
|
12, 16, 20, 21, // B+ wpi 26, 27, 28, 29
|
|
|
|
|
0, 1, // B+ wpi 30, 31
|
|
|
|
|
-1, -1, -1, -1, -1, // B+ wpi 21, 22, 23, 24, 25
|
|
|
|
|
-1, -1, -1, -1, // B+ wpi 26, 27, 28, 29
|
|
|
|
|
-1, 1, // B+ wpi 30, 31
|
|
|
|
|
|
|
|
|
|
// Padding:
|
|
|
|
|
|
|
|
|
@ -526,26 +526,26 @@ int physToGpioOrangePi[64] =
|
|
|
|
|
{ |
|
|
|
|
-1, // 0
|
|
|
|
|
-1, -1, // 1, 2
|
|
|
|
|
2, -1, |
|
|
|
|
3, -1, |
|
|
|
|
4, 14, |
|
|
|
|
-1, 15, |
|
|
|
|
17, 18, |
|
|
|
|
27, -1, |
|
|
|
|
22, 23, |
|
|
|
|
-1, 24, |
|
|
|
|
10, -1, |
|
|
|
|
9, 25, |
|
|
|
|
11, 8, |
|
|
|
|
-1, 7, // 25, 26
|
|
|
|
|
|
|
|
|
|
0, 1, //27, 28
|
|
|
|
|
5, -1, //29, 30
|
|
|
|
|
6, 12, //31, 32
|
|
|
|
|
13, -1, //33, 34
|
|
|
|
|
19, 16, //35, 36
|
|
|
|
|
26, 20, //37, 38
|
|
|
|
|
-1, 21, //39, 40
|
|
|
|
|
12, -1, |
|
|
|
|
11, -1, |
|
|
|
|
6,198, |
|
|
|
|
-1,199, |
|
|
|
|
1, 7, |
|
|
|
|
0, -1, |
|
|
|
|
3, 19, |
|
|
|
|
-1, 18, |
|
|
|
|
15, -1, |
|
|
|
|
16, 2, |
|
|
|
|
14, 13, |
|
|
|
|
-1, 10, // 25, 26
|
|
|
|
|
|
|
|
|
|
-1, -1, //27, 28
|
|
|
|
|
-1, -1, //29, 30
|
|
|
|
|
-1, -1, //31, 32
|
|
|
|
|
-1, -1, //33, 34
|
|
|
|
|
-1, -1, //35, 36
|
|
|
|
|
-1, -1, //37, 38
|
|
|
|
|
-1, -1, //39, 40
|
|
|
|
|
// Padding:
|
|
|
|
|
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 56
|
|
|
|
@ -554,39 +554,39 @@ int physToGpioOrangePi[64] =
|
|
|
|
|
|
|
|
|
|
int physToPinOrangePi[64] =
|
|
|
|
|
{ |
|
|
|
|
-1, // 0
|
|
|
|
|
-1, -1, // 1, 2
|
|
|
|
|
8, -1, //3, 4
|
|
|
|
|
9, -1, //5, 6
|
|
|
|
|
7, 15, //7, 8
|
|
|
|
|
-1, 16, //9,10
|
|
|
|
|
0, 1, //11,12
|
|
|
|
|
2, -1, //13,14
|
|
|
|
|
3, 4, //15,16
|
|
|
|
|
-1, 5, //17,18
|
|
|
|
|
12, -1, //19,20
|
|
|
|
|
13, 6, //21,22
|
|
|
|
|
14, 10, //23, 24
|
|
|
|
|
-1, 11, // 25, 26
|
|
|
|
|
-1, // 0
|
|
|
|
|
-1, -1, // 1, 2
|
|
|
|
|
0, -1, //3, 4
|
|
|
|
|
1, -1, //5, 6
|
|
|
|
|
2, 3, //7, 8
|
|
|
|
|
-1, 4, //9,10
|
|
|
|
|
5, 6, //11,12
|
|
|
|
|
7, -1, //13,14
|
|
|
|
|
8, 9, //15,16
|
|
|
|
|
-1, 10, //17,18
|
|
|
|
|
11, -1, //19,20
|
|
|
|
|
12, 13, //21,22
|
|
|
|
|
14, 15, //23, 24
|
|
|
|
|
-1, 16, // 25, 26
|
|
|
|
|
|
|
|
|
|
30, 31, //27, 28
|
|
|
|
|
21, -1, //29, 30
|
|
|
|
|
22, 26, //31, 32
|
|
|
|
|
23, -1, //33, 34
|
|
|
|
|
24, 27, //35, 36
|
|
|
|
|
25, 28, //37, 38
|
|
|
|
|
-1, 29, //39, 40
|
|
|
|
|
-1, -1, //27, 28
|
|
|
|
|
-1, -1, //29, 30
|
|
|
|
|
-1, -1, //31, 32
|
|
|
|
|
-1, -1, //33, 34
|
|
|
|
|
-1, -1, //35, 36
|
|
|
|
|
-1, -1, //37, 38
|
|
|
|
|
-1, -1, //39, 40
|
|
|
|
|
// Padding:
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 56
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, // ... 63
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
int ORANGEPI_PIN_MASK[12][32] = //[BANK] [INDEX]
|
|
|
|
|
{ |
|
|
|
|
{ 0, 1, 2, 3,-1,-1, 6, 7,-1,-1,10,11,12,13,14,15,16,17,18,19,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,},//PA
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-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,},//PJ
|
|
|
|
|
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,},//PK
|
|
|
|
|
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,},//PL
|
|
|
|
|
{-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,},//PL
|
|
|
|
|
}; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -993,7 +993,7 @@ const char *piModelNames[6] =
|
|
|
|
|
"OrangePi PC2", |
|
|
|
|
#elif CONFIG_ORANGEPI_A64 |
|
|
|
|
"OrangePi Win/Winplus", |
|
|
|
|
#elif CONFIG_ORANGEPI_H3 |
|
|
|
|
#elif CONFIG_ORANGEPI_H3 || CONFIG_ORANGEPI_H3_ZEROPLUS2 |
|
|
|
|
"OrangePi H3 family", |
|
|
|
|
#elif CONFIG_ORANGEPI_ZERO |
|
|
|
|
"OrangePi Zero", |
|
|
|
|