Banana Pi/Pro

The Banana Pi/Pro is a clone of the well known Raspberry Pi. It has advantages compared to the ‘old’ Raspberry Pi A/B/A+/B+ devices as it is based on the Allwinner A20 Dual Core Cortex-A7. It also has 1G Ethernet compared to 100M Ethernet on the Raspberry.

There is a lot of effort on Mainline Kernel to fully support the Allwinner Chips, for example Fedora 22 Arm will come with support for BananaPi/Pro which means that you will be able to have HDMI Output and a number of periperal modules work out of the box.

Pin-wise the Banana Pi matches the Raspberry Pi, the Banana Pro has a connector similar to the Raspberry Pi A+/B+

Revision Support

Banana Pi Banana Pro

Interface notes

PWM Whilst the Banana Pi is meant to have 1 PWM channel this is currently not supported.

SPI works fine when used with old 3.4 Kernels provided by Lemaker, on Mainline Kernel SPI does currently not work

COM I have created devicetree patches so that Mainline Kernel supports all COM-Interfaces, this is not yet visible in Kernel

Mainline Kernel requires the use of Device-Trees, mraa tries it's best to guess which gpio/serial/i2c/spi is connected where but there is currently no support to manipulate the Device-Tree settings from within mraa. If a device does not work as expected then please check syslog, mraa usually complains with a meaningful message when it is unable to initialize the device.

Pin Mapping

This pin mapping refers to the Banana Pi but gives an idea as to what the values are from mraa. Note that there is an emum to use wiringPi style numbers.

MRAA NumberPhysical PinFunction
1P1-013V3 VCC
2P1-025V VCC
3P1-03I2C SDA
4P1-045V VCC
5P1-05I2C SCL
6P1-06GND
7P1-07GPIO(PI03)
8P1-08UART4 TX
9P1-09GND
10P1-10UART4 RX
11P1-11GPIO(PI19)
12P1-12GPIO(PH02)
13P1-13GPIO(PI18)
14P1-14GND
15P1-15GPIO(PI17)
16P1-16GPIO(PH20)
17P1-173V3 VCC
18P1-18GPIO(PH21)
19P1-19SPI MOSI
20P1-20GND
21P1-21SPI MISO
22P1-22GPIO(PI16)
23P1-23SPI SCL
24P1-24SPI CS0
25P1-25GND
26P1-26SPI CS1

There is also a second 8-pin connector on the Banana Pi, the pins are as follows:

| 27 | P1-19 | 5V VCC | | 28 | P1-20 | 3V3 VCC | | 29 | P1-21 | GPIO(PH5) | | 30 | P1-22 | GPIO(PI22)| | 31 | P1-23 | GPIO(PH03)| | 32 | P1-24 | GPIO(PI20)| | 33 | P1-25 | GND | | 34 | P1-26 | GND |