This is an old revision of the document!
Banana Pi
The Banana Pi is a Linux compatible computer with high speed GPIO.
In appearance the Banana Pi is similar to the Raspberry Pi but the hardware is different. The Banana Pi uses the AllWinner A20 whereas the RPi uses the Broadcom BCM2835.
GPIO
The board has a Raspberry Pi compatible GPIO header with 26 pins.
+--CON3--+ 3V3 01 02 5V I2C-SDA2 B21 03 04 5V I2C-SCL2 B20 05 06 GND GPCLK IO-7 I03 07 08 H00 UART3-TX GND 09 10 H01 UART3-RX UART2 RX IO-0 I19 11 12 H02 IO-1 UART2 TX IO-2 I18 13 14 GND UART2 CTS IO-3 I17 15 16 H20 IO-4 CAN TX 3V3 17 18 H21 IO-5 CAN RX SPI0 MOSI I12 19 20 GND SPI0 MISO I13 21 22 I16 IO-6 UART2 RTS SPI0 SCLK I11 23 24 I10 SPI0 CE0 GND 25 26 I14 SPI0 CE1 +--------+
This is the relationship between the Banana Pi GPIO, RPi GPIO, A20 I/O and the Linux sysfs interface.
Banana Pi IO | Raspberry Pi GPIO | A20 I/O | sysfs |
---|---|---|---|
0 | 17 | I19 | 275 |
1 | 18 | H02 | 226 |
2 | 27 | I18 | 274 |
3 | 22 | I17 | 273 |
4 | 23 | H20 | 244 |
5 | 24 | H21 | 245 |
6 | 25 | I16 | 272 |
7 | 4 | I03 | 259 |
A ribbon cable may be used to extend the GPIOs. In this instance a female presentation will be given.
______________________________________________________ / / +-----------------------------------------------------+ | I14 I10 I16 0V H21 H20 0V H2 H1 H0 0V 5V 5V | | | | | | 0V I11 I13 I12 3V I17 I18 I19 0V I3 B20 B21 3V | 1 +-------------------------___-------------------------+
The naming for the ribbon header above is the port and pin of the A20 chip.
______________________________________________________ / / +-----------------------------------------------------+ | 270 266 272 0V 245 244 0V 226 225 224 0V 5V 5V | | | | | | 0V 267 269 268 3V 273 274 275 0V 259 52 53 3V | 1 +-------------------------___-------------------------+
This above ribbon header numbering is for the Linux sysfs interface.