Linux mainlining effort
The purpose of this page is to try and define sub-goals and milestones for the mainlining effort, containing goals and sub-goals with milestones for adding Allwinner support in the upstream mainline Linux Kernel.
Contents |
Overview
The idea is to submit the code needed to run the Linux kernel on Allwinner SoCs upstream, ie. to the official Linux kernel.
This can be achieved by following the concept outlined in the Your new ARM SoC Linux support check-list! article published by Thomas Petazzoni from Bootlin.[1][2]
Where relevant, I have attempted to include who is currently working on an item, mostly separate from any particular mainlining goal.
Status
The Mainline Kernel howto contains the currently used repositories for the mainlining process. The U-Boot repository and toolchain is described in the Mainline U-Boot howto.
The Mainline Kernel category gives an overview of currently supported devices.
Status Matrix
The goal of this matrix is to give an easy view of work on each SoC worked on by linux-sunxi.
Model | A10 | A10s | A13 | A20 | A23 | A31 | A33 | A64 | A80 | A83T | GR8 | H3 | H5 | H6 | R40 | V3s | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AC97 | NO | N/A | N/A | NO | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | NO | N/A | |
Audio Codec | 4.4 | 4.4 | 4.4 | 4.4 | 4.10 | 4.10 | 4.11 | 5.0 | N/A | N/A | 4.9 | 4.10 | 4.12 | NO | NO | 4.13 | |
ADC | GPADC | 4.12 | 4.12 | 4.12 | 4.12 | N/A | WIP | N/A | N/A | NO | N/A | 4.12 | N/A | N/A | N/A | NO | N/A |
Thermal | 3.16 | 3.14 | 3.14 | 3.16 | ? | WIP | 4.12 | WIP | WIP | WIP | 4.9 | WIP | WIP | WIP | NO | N/A | |
Touch | 3.16 | 3.14 | 3.14 | 3.16 | N/A | WIP | N/A | N/A | NO | N/A | 4.9 | N/A | N/A | N/A | NO | N/A | |
Camera | BT656 | WIP | WIP | WIP | WIP | ? | 5.0 | ? | ? | ? | WIP | WIP | 5.0 | 5.0 | ? | ? | 5.0 |
ISP | NO | N/A | N/A | NO | N/A | NO | N/A | N/A | NO | NO | N/A | N/A | N/A | N/A | N/A | NO | |
MIPI-CSI | N/A | N/A | N/A | N/A | N/A | NO | N/A | N/A | NO | NO | N/A | N/A | N/A | N/A | N/A | NO | |
Parallel | WIP | WIP | WIP | WIP | ? | 5.0 | ? | ? | ? | WIP | WIP | 5.0 | 5.0 | ? | ? | 5.0 | |
Clocks | 3.10 | 3.11 | 3.10 | 3.12 | 3.17 | 3.12 | 4.2 | 4.10 | 3.19 | 4.13 | 4.9 | 4.8 | 4.12 | 4.17 | 4.14 | 4.11 | |
CPUFreq (DVFS) | 4.0 | 4.0 | 4.0 | 4.0 | NO | 4.2 | 4.11 | NO | NO | 4.17 | NO | 4.18 | WIP | WIP | NO | NO | |
Crypto | 4.3 | 4.13 | 4.13 | 4.3 | ? | 4.3 | 4.3 | WIP | WIP | WIP | 4.13 | WIP | WIP | WIP | WIP | ? | |
Display (SimpleFB) | 3.19 | 3.19 | 4.0 | 3.19 | 3.19 | 3.19 | 3.19 | 4.17 | NO | NO | 4.9 | 4.16 | 4.16 | NO | NO | NO | |
Display
(DRM) |
CVBS | NO | 4.9 ? | 4.7 | NO | N/A | N/A | N/A | N/A | N/A | N/A | 4.9 | NO | NO | NO | NO | N/A |
HDMI Audio | NO | NO | N/A | NO | N/A | NO | N/A | NO | NO | NO | N/A | NO | NO | NO | NO | N/A | |
HDMI CEC | 4.15 | 4.14 | N/A | 4.15 | N/A | 4.15 | N/A | 4.20 | NO | 4.17 | N/A | 4.17 | 4.17 | NO | WIP | N/A | |
HDMI Video | 4.15 | 4.13 | N/A | 4.15 | N/A | 4.15 | N/A | 4.20 | NO | 4.17 | N/A | 4.17 | 4.17 | 5.0 | 4.19 | N/A | |
LVDS | ? | N/A | N/A | ? | ? | ? | ? | ? | ? | 4.16 | N/A | N/A | N/A | N/A | ? | N/A | |
MIPI DSI | N/A | N/A | N/A | N/A | ? | NO | 4.18 | WIP | NO | NO | N/A | N/A | N/A | N/A | NO | N/A | |
RGB | 4.15 | ? | 4.7 | 4.15 | WIP | 4.10 | 4.9 | NO | 4.17 | 4.16 | 4.9 | N/A | N/A | NO | NO | 4.13 | |
VGA | NO | N/A | N/A | NO | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | NO | N/A | |
DMA | 4.3 | 4.3 | 4.3 | 4.3 | 3.18 | 3.17 | 4.2 | 4.15 | ? | 4.9 | 4.9 | 4.2 | 4.12 | ? | NO | 4.13 | |
Ethernet | EMAC | 3.11 | 3.11 | N/A | 3.11 | N/A | N/A | N/A | 4.15 | 5.1 | 4.16 | N/A | 4.15 | 4.15 | 5.0 | 4.18 | 4.13 |
GMAC | N/A | N/A | 3.15 | 3.17 | |||||||||||||
HW Spinlocks | N/A | N/A | N/A | N/A | N/A | N/A | N/A | NO | NO | NO | N/A | NO | NO | NO | N/A | N/A | |
I2C | 3.11 | 3.12 | 3.11 | 3.13 | 3.18 | 3.15 | 4.2 | 4.10 | 3.19 | 4.16 | 4.9 | 4.9 | 4.12 | 4.19 | 4.15 | 4.11 | |
I2S | 4.8 | ? | N/A | 4.8 | ? | 4.13 | 4.11 | 4.17 | NO | 4.16 | 4.9 | 4.14 | NO | NO | NO | N/A | |
IOMMU | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | NO | N/A | N/A | |
IR | 3.17 | 4.0 | 4.0 | 3.17 | N/A | 4.0 | N/A | WIP | 4.5 | 4.20 | 4.9 | 4.6 | 4.12 | NO | ? | N/A | |
Keypad | WIP | N/A | N/A | WIP | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | NO | N/A | |
LRADC | 4.0 | 4.0 | 4.0 | 4.0 | 4.0 | 4.0 | 4.2 | ? | ? | ? | 4.9 | ? | ? | N/A | ? | 4.13 | |
MsgBox | N/A | N/A | N/A | N/A | N/A | N/A | N/A | NO | NO | NO | N/A | NO | NO | NO | N/A | N/A | |
NAND | ? | ? | 4.12 [3] | ? | 4.9 [3] | ? | 4.9 [3] | ? | ? | ? | 4.9 [3] | ? | ? | NO | ? | N/A | |
PCIe | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | NO [4] | N/A | N/A | |
Pinctrl | 3.9 | 3.9 | 3.9 | 3.12 | 3.18 | 3.12 | 4.2 | 4.6 | 3.19 | 4.4 | 4.9 | 4.5 | 4.12 | 4.17 | 4.14 | 4.11 | |
PWM | 4.0 | 4.4 | 4.4 | 4.0 | 4.4 | WIP | 4.4 | 4.19 | NO | 4.16 | 4.9 | 4.9 | 4.12 | ? | WIP | 4.12 | |
RSB | N/A | N/A | N/A | N/A | 4.4 | N/A | 4.4 | 4.13 | 4.3 | 4.14 | N/A | ? | ? | ? | N/A | N/A | |
RTC | 3.14 | N/A | N/A | 3.14 | 3.18 | 3.18 | 4.2 | 4.10 | N/A | N/A | N/A | 4.5 | 4.12 | ? | ? | 4.11 | |
SATA | 3.15 | N/A | N/A | 3.15 | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | 4.20 | N/A | |
SD/ MMC | 3.16 | 3.16 | 3.16 | 3.16 | 3.18 | 3.16 | 4.2 | 4.11 | 4.0 | 4.14 | 4.9 | 4.5 | 4.12 | 4.19 | 4.14 | 4.11 | |
SMP | N/A | N/A | N/A | PSCI | PSCI | PSCI | PSCI | PSCI | 4.17 | 4.18 | N/A | PSCI | PSCI | PSCI | PSCI | N/A | |
SPDIF | 4.7 | N/A | N/A | 4.7 | N/A | 4.9 | N/A | 4.17 | ? | 4.13 | 4.9 | 4.11 | 4.12 | NO | ? | N/A | |
SPI | 3.16 | 3.15 | 3.15 | 3.15 | ? | 3.15 | ? | 4.15 | ? | ? | 4.9 | 4.10 | 4.12 | NO | ? | 4.13 | |
SRAM | 4.2 | 4.2 | 4.2 | 4.2 | 4.19 | NO | 4.19 | 4.19 | N/A | N/A | 4.2 | 4.19 | ? | 5.1 | NO | NO | |
USB | 3.15 | 3.15 | 3.15 | 3.15 | 4.3 | 3.16 | 4.3 | 4.11 | 4.2 | 4.14 | 4.9 | 4.8 | 4.12 | WIP | 4.15 | 4.11 | |
USB OTG | 4.3 | 4.3 | 4.3 | 4.3 | 4.8 | 4.3 | 4.8 | 4.11 | NO | WIP | 4.9 | 4.12 | 4.12 | WIP | NO | 4.11 | |
USB3 | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | NO | N/A | N/A | N/A | N/A | WIP | N/A | N/A | |
VE | Sunxi-Cedrus | 5.1 | ? | 4.20 | 4.20 | ? | ? | 4.20 | 5.0 | NO | NO | ? | 4.20 | 5.0 | 5.1 | NO | ? | |
Watchdog | 3.12 | 3.12 | 3.12 | 3.12 | 3.18 | 3.18 | 4.2 | 4.17 | 3.19 | 4.6 | 4.9 | 4.5 | 4.12 | ? | ? | 4.11 | |
Model | A10 | A10s | A13 | A20 | A23 | A31 | A33 | A64 | A80 | A83T | GR8 | H3 | H5 | H6 | R40 | V3s |
Legend |
---|
In Linux mainline since version x |
Nobody works on it, but it should be compatible with already done drivers |
Somebody works on it |
No support, nobody works on it |
support impossible |
Status is unknown/to be completed |
Work In Progress
Core Stuff
- AR100 firmware (WiP: Samuel Holland) ARISC firmware for sunxi SoCs
- Message box (WiP: Samuel Holland) patch
Major drivers
- A83T
- USB OTG Chen-Yu Tsai ARM: sun8i: a83t: Enable USB OTG
- A64
- MIPI-DSI (WiP: Jagan Teki) drm/sun4i: Allwinner A64 MIPI-DSI support
- H6
- USB 2.0/3.0 support (WiP: Icenowy Zheng (icenowy)) patch-v3
- Audio codec support:
- AC100 Audio codec support (WiP: Ondrej Jirman (megi)) WIP branch
- CSI (camera sensor interface)
- A10 CSI support (WiP: Maxime Ripard media: Allwinner A10 CSI support)
- Security System/Crypto Engine
- sun8i-ss/sun9i-ss/sun5i-ss (WIP: LABBE Corentin more info at http://sunxi.montjoie.ovh/) RFC
- Video Engine
- H.264 decoding support (WiP: Maxime Ripard (mripard)) patch-v2
Minor drivers
- H6 Cpufreq (DVFS) WIP Yangtao Li arm64: dts: allwinner: h6: Enable CPU DVFS(cpufreq)
- H5 Cpufreq (DVFS) WIP Chen-Yu Tsai arm64: dts: allwinner: h5: Enable CPU DVFS (cpufreq)
- A64 IR WIP Jernej Skrabec Add support for IR on Allwinner A64
- R40 PWM (WIP Hao Zhang patch-v2)
- A31/A31s PWM support (WiP: Siarhei Volkau patch-v1)
- A20 Keypad (WiP: Yassin Jaffer (ddc) patch)
- A83T H3 H5 A80 A64 H6 Thermal driver (WIP: Philipp Rossak (embed-3d) v3-branch: [1] patch v3: contains only a83t and h3)
Planned for 5.1
- A10
- Cedrus
- PMU
- A20
- Audio Codec improvements
- A23
- Display pipeline
- LCD enabled on Q8 A23 tablets
- A64
- ARM Architectural Timer errata workaround
- PMU
- CSI
- A80
- GMAC support
- H6
- Cedrus
- CSI in general
- RGR565 support
- JPEG pass-through support
Merged into 5.0
- A64
- Cedrus
- DTS changes for audio codec
- H6
- Ethernet
- DE3/HDMI support
- USB 2.0
- H3 / H5
- CSI Support
- H5
- Cedrus
- V3s
- CSI Support
- Broadcom-based (AMPAK modules) Bluetooth support on
Merged into 4.20
- A13 / A20 / A33 / H3
- Cedrus driver
- A83T
- IR receiver
- A64
- Cleanup for device tree files
- HDMI support
- Audio codec support (DTS changes will be merged in 5.0)
- H3 / H5
- SID
- R40
- SATA
New Devices Supported
- Pine64 LTS
- Xunlong Orange Pi Zero Plus 2 (H3 variant)
- Sinovoip Banana Pi M2+ (H5 variant)
Merged into 4.19
- A10 / A13 / A20 / A23 / A33
- SRAM controller / system control
- A64
- SRAM controller / system control
- Display clocks and bus
- RTC clock output
- PWM
- R_I2C
- H3
- SRAM controller / system control
- H6
- MMC
- PMIC
- R40
- HDMI support
Board Changes
- SPI flash node for Orange Pi PC 2 and Pine64 SoPINE
- Use lid switch as wake-up source for A64 based laptops
- LEDs added for PineH64
New Devices
- Pine Pinebook
- Amarula A64-Relic
Changes merged up to 4.18
Changes up to 4.18 can be found on Linux mainlining history page.
References
- ↑ http://www.elinux.org/images/a/ad/Arm-soc-checklist.pdf
- ↑ Your New ARM SoC Linux Support Check-List – ELCE 2012
- ↑ 3.0 3.1 3.2 3.3 While the NAND controller itself is supported, the NAND technology found on the vast majority of boards isn't. See this page
- ↑ Allwinner H6 has a quirky PCIe controller that doesn't map the PCIe address space properly to CPU, and accessing the PCIe config space, IO space or memory space will need to be wrapped. As Linux doesn't wrap PCIe memory space access, it's not possible to do a proper PCIe controller driver for H6. The BSP kernel modifies the driver to wrap the access, so it's also not generic, and only devices with modified driver will work.
See also
External Links
- kernel.org - Official website for the Linux Kernel
- http://github.com/torvalds/linux - Linus Torvalds' GitHub account with the upstream Linux kernel
- Linux Kernel documentation index
- Linux Kernel man pages
- Kernel Newbies Site - Excellent source of information for people new to kernel
- Linus' kernel tree for 2.6
- Kernel bugzilla - Regressions for each of recent versions
- Linux-libre project - Maintains and distributes fully free kernel
- LinGrok, Linux kernel source code cross-reference
- Bootlin LXR (Linux Cross Reference)
- linux-arm-kernel - Mailing list archive
How to upstream
- Your new ARM SoC Linux support check-list! by Thomas Petazzoni of Bootlin
- Linux Kernel Upstreaming How-To (CNXSoft - Embedded Software Development)
- How to Write and Submit a Linux Kernel Patch (CNXSoft - Embedded Software Development)
- Linaro resources page from LCA (Linaro Connect Asia) 2014