Upstream: RFC the AR100 driver before writing v1 #31
Labels
No labels
blocked-physical
cleanup
hardware
infra
kernel
P1-critical
P2-high
P3-normal
P4-later
reliability
security
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tiagoagueda/a80#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
sunxi_arisc.cis the largest and least certain piece of this work — and the one most likelyto be rejected in its current form.
Mainline sunxi's direction for the ARISC coprocessor is crust, an open-source replacement
firmware, with SCPI/PSCI on newer SoCs. A driver whose purpose is to talk to Allwinner's vendor
blob runs against that direction.
So do not write a polished v1 and hope. Post an RFC, or simply describe the findings on
linux-sunxi and ask. Those are the same people who would review it, and the answer changes
whether this is a week or a month of work.
Regardless of the driver's fate, the protocol reverse-engineering is likely to be useful to
them: 27-ar100-protocol.md,
28-ar100-firmware-re.md, 37-arisc-driver.md.
Needs a DT binding as well as the driver. Depends on issue #4.
⚠️ Nothing has been submitted. See 42-upstreaming.md for routing,
order, mechanics, and the DCO / AI-assistance caveats. Patches are exported to
patches/,which is not the same as proposing them.
The mirror has directly relevant prior art that should shape the RFC.
AR100/HardwareSharingis an extended design discussion about exactly the problem this issueis about: what happens when both Linux and firmware on the AR100 want the same hardware. It is
written around Crust (
github.com/crust-firmware/crust), which the wiki describes as the mostmature AR100/SCP firmware to date, with demonstrated suspend/resume on A64 and H5 boards including
the Pinebook.
Sending patcheslists it as a maintained project with its own tree.Why this matters for our RFC:
R_TWI,R_RSB,R_CPUCFGand the modulegates/resets when an SCP firmware is present. Proposing a Linux-side AR100 driver that ignores
it will draw exactly that objection on the list.
firmware, and that Crust does not implement the specification the page describes. So this is
contested ground, not settled ground - which is an argument for RFC rather than v1, i.e. it
supports what this issue already proposes.
blob (
arisc-v0.0.80.bin) and talk to it, rather than replacing it with free firmware. That isa third position between "no AR100" and "Crust", and it is the part reviewers will have the
least context for.
Worth reading
AR100/HardwareSharingin full before writing the cover letter.From a deep pass over the offline linux-sunxi.org mirror (
a80/linux-sunxi.org/wiki-backup, 4095 pages, snapshot 2026-08-29). linux-sunxi.org content is CC BY-SA; the pages named above are the attribution.