Pine Pinebook

= Identification =

On the back of the device, the following is printed:
 * Prototypes
 * Prototypes do not seem to have external markings besides Pine64 stickers...

The PCB has the following silkscreened on it:
 * Prototypes
 * Mainboard (bottom): A114-A64_V1.1 2016-08-23
 * Daughterboard (top): A114-A64_USB_V1.1 2016-09-23

In android, under Settings->About Tablet, you will find:
 * Model Number: 
 * Build Number: 

Different models
So far there are two different models based on the same PCB


 * 14inch LCD
 * 11inch LCD

= Sunxi support =

Manual build
You can build things for yourself by following our Manual build howto and by choosing from the configurations available below.

Sunxi/Legacy U-Boot
Use the  build target.

Mainline U-Boot
Use the  build target.

Sunxi/Legacy Kernel
Use the  file.

Mainline kernel
Use the  device-tree binary.

= Tips, Tricks, Caveats =

FEL mode
The FEL mode can be entered either via pulling the FEL tespad to GND while turning on the system (see below for Testpad location) or via a specially crafted boot0 on a microSD card.

Power Management
The Pinebook is powered by a 3.5mm/1.35mm barrel plug, sleeve is GND, inner contact +5V. The maximum input current is 3A. The PCB contains an implementation of the standard AXP803 PMIC with a 10Ah LiPo battery attached. There is a secondary power path via the OTG-USB port... TODO: add more info, add current requirements for LCD/backlight and other components

Audio Paths
The Pinebook utilizes the internal codec of the A64 with some extra hardware in the audio paths:


 * LINEOUT is m via amplifiers (1W/8R) (with GPIO controlled mute, PA-SHDN = PH7) to the internal speakers
 * HP-OUT is connected to the 4-pin 3.5mm headset jack
 * MIC1 & MIC2 are used in a multiplexed scheme for either headset jack or internal microphones (TODO)
 * MIC1 is connected to one of the internal microphones
 * MIC2 is multiplexed between the second internal microphone (MIC2-EN=L) or the headphone jack (MIC2-EN=H)
 * GPIO to control MIC2 multiplexer: MIC2-EN = PL11

Video Paths

 * HDMI ...
 * RGB-LCD --> ANX6345 eDP bridge --> LCD ...
 * LCD/backlight is controlled via GPIOs (LCD-EN=PH6, LCD-BL-EN=PD23, LCD-RST=PD24, LCD-HPD=PL7 ) and a PWM output (LCD-PWM=PD22/PWM0)
 * LCD open/close status is detected via a hall effect sensor connected to GPIO PH10 (sensor located between the uSD card slot and headphone jack)

TODO: add more info

Wifi/BT
The RTL8723cs SDIO module is similar to the RTL8723bs used for the Pine64 Wifi/BT module... TODO: wifi mainline driver source and BT firmware loader description...


 * GPIOs
 * WL-PMU-EN = PL2
 * WL-WAKE-AP = PL3
 * BT-RST-N = PL4
 * BT-WAKE-AP = PL5
 * AP-WAKE-BT = PL6

Extra internal headers, sensors

 * Capacitive touchpanel header (provides access to I2C/TWI0, GPIOs PH4&PH8) (populated on prototype PCB only?)
 * Bosch BMA223 acceleration sensor (via I2C/TWI1, default address=0x18 and GPIO-IRQ PH5) (populated on prototype PCB only?)
 * Free USB port on the internal hub? (seems routed to the sdcard daughterboard)

TODO: add more info

...
= Adding a serial port (voids warranty) =



The prototype Pinebook PCBs do not have a UART0 header, only testpads on the bottom side which requires removing the PCB and soldering some wires / breakout board to it. The production units are planned to have UART0 multiplexed on the USB-OTG port (TODO: describe trigger condition)

Device disassembly
Opening the Pinebook is easy, just remove all the screws on the bottom and pull off the cover. Make sure to note which screws go where since they have different lengths!

Locating the UART
The UART and FEL testpad locations can bee seen in the picture, colors are as following: Green-TXD, Orange-RXD, Yellow-FEL, Black-GND. The A64 uses 3,3V CMOS signal levels, so make sure your UART adapter does not use 5V, see UART howto for more information.

= Pictures =

= See also =


 * Ayufan's GitHub with BSP based builds of Android and u-boot, Linux kernel for Pine64, Pinebook
 * wiki.pine64.org Further info on the hardware and firmware.
 * forum.pine64.org Discussion on pine64

Datasheets

 * Pinebook Logicboard Schematic

Manufacturer images
Pine A64 Android release and Linux BSP