A new ARM64 board almost always arrives speaking the wrong language, because the vendor firmware boots ACPI tables that their BSP kernel and their Windows tooling understand, while mainline arm64 review culture wants a device tree and will not even look at the machine until one exists, so the board that works on the day you unbox it is, by construction, the board you cannot upstream. The CIX Sky1, the CD8180 SoC inside the Radxa Orion O6 and the Orange Pi 6 Plus, was exactly that situation: it booted in ACPI mode, gave you a login prompt, and left the Mali-G720 sitting there as a powered-down decoration, and the space between “boots” and “usable” is where a bring-up diary lives.
This is that diary, told as the sequence of patches rather than a feature list, because the order turned out to be the whole story.
First you need a map
The vendor BSP kernel is a 6.6 tree with the hardware description baked into ACPI, and mainline does not want your ACPI tables, so the zeroth problem is translation. We wrote two scripts, extract-hw-info.sh and acpi-to-dts.sh, that boot the board in its stock ACPI mode, pull the hardware description out of the running system, and convert it into a starting device tree, with the generated output for both the O6 and the O6N checked into the repo as examples so you can diff your extraction against a known-good one. The generated DTS is not the finish line, it is the scaffolding you refine by hand for weeks, but it converts “stare at a dead board” into “edit a text file,” and that is the moment the project becomes tractable. The tooling deserves its own post; here it matters because every later patch hangs off a device tree node that started life as one of those extractions.
Seventy-eight patches become thirteen
The working patch set spent its early life as 78 granular patches, one per fix, which is the right shape while you are still discovering the hardware and exactly the wrong shape once you want another human to review or rebase it, so in February we consolidated down to 13 subsystem-grouped patches and parked the original history on an original-patches branch where it can do no harm. The groupings read like a map of the SoC itself: device trees first, because nothing probes without them, then the Cadence PCIe host controller, then the infrastructure layer of SCMI, mailbox, pinctrl, clock, reset, hwspinlock, and eFuse, then USB and its PHYs, then the display drivers, then the GPU, then audio, networking, the Zhouyi NPU, the video codec, the irqchip and IOMMU work, and finally the thermal, cpufreq, and watchdog odds and ends. The set has since grown back to 41 patches as real fixes accreted, but it grew along the subsystem seams, which is the difference between a patch series and a pile.
The GPU was the long pole
Getting Panthor to print a probe line was the afternoon; getting a GPU you could actually run workloads on took the rest of it, and the diary’s middle chapters are all about that gap. Patch 0006 teaches Panthor the Sky1’s register quirks and gets the Mali-G720-Immortalis detected, but “detected” on this SoC meant a part with no operating points, because the platform bus does not auto-attach the SCMI performance domain the way the driver expects, so the GPU came up pinned at one fixed frequency with devfreq entirely absent. Patch 0015 fixes that by explicitly attaching the named “perf” power domain during devfreq init, letting the SCMI firmware populate the OPP table on a virtual device, copying those OPPs onto the real GPU device, and routing frequency changes back through the virtual one so they travel the SCMI performance protocol instead of a regulator path that does not exist here.
Then the firmware fought back, and this is the part of the diary worth reading twice. The SCP firmware on Sky1 processes perf_level_set messages through a mailbox channel shared by all twelve performance domains on the chip, the simple_ondemand governor polls every 50 milliseconds and can therefore fire up to twenty frequency-change requests per second into that shared channel, and over time the firmware falls behind, answers out of order, and wedges the entire SCMI transport, which takes down every SCMI user on the board including the networking clocks and resets. The fast-channel mechanism that exists for exactly this problem is advertised by the firmware but returns -EOPNOTSUPP to every DESCRIBE_FASTCHANNEL request, so the driver has to police itself, and patch 0023 does it in three layers: skip the SCMI call when the requested frequency matches the last one that succeeded, enforce a minimum 100-millisecond interval between requests with ktime tracking, and on errors back off exponentially from 500 milliseconds to 4 seconds, boosting to a mid-range safe OPP after three consecutive failures in case a low-frequency state is what the firmware is choking on. None of that is clever; all of it is the kind of fix you only write after watching a network interface die because the GPU asked for a frequency change too politely.
HDMI is a bridge, literally
The display side has its own chain of custody, because the Sky1’s linlon-dp display controller feeds a trilin-dpsub DisplayPort transmitter, and on the Orange Pi 6 Plus the physical HDMI connector hangs off a Parade PS185 DP-to-HDMI converter bolted to the board. Patch 0022 wires that up as a proper DRM bridge chain, dp4 encoder into a simple-bridge representing the PS185 into a display-connector that surfaces as HDMI-A, with the converter’s power-down GPIO modeled as a regulator so the bridge framework sequences power in the order the hardware tolerates rather than the order the probe happens to run. The payoff is that modetest and every Wayland compositor see an ordinary HDMI output and never learn the converter exists, which is exactly how much userspace should know about a board-level bridge chip.
Where it landed
The machine this post was written on is an Orange Pi 6 Plus, and this is its afternoon:
$ uname -r
6.19.0-sky1-latest.r5
$ lsmod | grep panthor
panthor 167936 0
drm_gpuvm 40960 1 panthor
$ cat /sys/class/devfreq/15000000.gpu/available_frequencies
72000000 216000000 350000000 600000000 800000000 1000000000
Panthor reports a Mali-G720-Immortalis, id 0xc870, with a harvested shader core mask of 0x550555, ten cores lit out of the physical array, the kernel boots from the device tree (xunlong,orangepi-6-plus in /proc/device-tree/compatible, no ACPI in sight), HDMI-A-1 is up through the PS185 chain, and the GPU idles at 72 MHz and climbs to 1 GHz under load through the SCMI-managed OPP table that patch 0015 made visible and patch 0023 made survivable. The kernel itself arrives as an ordinary .deb from an APT repo with four tracks, main carrying the 6.18 LTS base, latest carrying 6.19, and rc and next for the brave, because a patch set nobody can install is a diary nobody reads.
The honest tradeoff is that none of this is upstream today; we carry 41 patches across four kernel tracks, and every stable point release is a rebase we chose to sign up for. The alternative was worse, though, because the alternative was a drawer full of fast hardware running a 6.6 vendor tree we could not fix, and twenty years of watching vendor kernels fossilize says the rebase treadmill is the cheaper habit. The old way was “wait for the vendor BSP to maybe get a kernel bump,” and the modern equivalent is a git rebase and a changelog entry, and we know which one we would rather do on a Saturday.
