Xunlong Orange Pi Zero2

Not to be confused with Zero Plus 2 (H5) This is the H616 version (2020)

= Identification =

A serial number sticker can be found on the back of the board: PI Zero2 - H616 SerialNumber

The PCB has a version number silkscreened nest to the SOC and RAM: Orange Pi Zero2 v1.3

= General Notes =

As usual, the board is shipped with an empty SPI flash, so won't boot anything unless an SD card is installed. The power LED is software controlled, so also won't light up.

Ubuntu Focal image provided by vendor installs and boots to Armbian with no issues. Quick first pass looks good, although some pinmux and regulator logs will probably have to be addressed first.

I have uploaded consoles to capture the starting point with this board.

u-boot environment

serial bootlog

dmesg 4.9.170-sun50iw9

= Sunxi support =

Current status
The Orange Pi Zero2 is used as the bringup vehicle for the H616 SoC mainline effort. Preliminary Linux, U-Boot and Trusted Firmware patches are available and are in the process of being mainlined.

Images
armbian(experimental support)

BSP
Allwinner H616 Android with Kernel 4.9

Xunlong / OrangePi Armbian

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 sun50i-h616-orangepi-zero2.dtb device-tree binary.

= Expansion ports = The Orange Pi Zero2 has a 26-pin, 0.1" populated connector with several low-speed interfaces.

The primary function follows loosely the old Raspberry Pi pin assignment (TWI3 (aka I2C), UART5, SPI1, GPIOs), but pinmuxing gives access to more interfaces (not all at the same time): UART2 (incl. h/w handshake), TWI2, TWI4, SPDIF,  PWM1, PWM2, single bit MMC2.

The Orange Pi Zero2 has another 13-pin, 0.1" header with USB and analogue interfaces. The 13-pin interface board originally used for Orange Pi Zero is compatible with Zero2, but the microphone on the board is no longer available.

= Tips, Tricks, Caveats =

FEL mode
No dedicated FEL button. FEL mode will be entered without an SD card and with no valid eGON signature on the SPI flash (which is empty on arrival). Alternatively the usual FEL trigger SD card image can be used.

The USB-C connector used to power the board carries the USB-OTG signals for the FEL mode, so the board needs to be powered through a host computer or a powered USB hub for using FEL mode.

LEDs
There are two unlabelled LEDs on the board, a red and a green one. According to the schematic they are Power (red) and Status (green), but both are connected to GPIOs (PC12 and PC13), so need active software toggling to light up.

= Serial port =



The UART pins are located behind the USB port on the board. They are marked as TX, RX and GND on the PCB. Just attach some leads according to our UART Howto.

= Pictures =

= See also =
 * [[File:Orange Pi Zero2 H616 Schematic v1.3.pdf]]
 * [[File:OrangePi Zero2 H616 User Manual v1.0.pdf]]