Skip to content

arm64: dts: apple: t7001-j81: Add the display pipe and its DART - #166

Merged
henrikklee merged 2 commits into
OrchardLinux:mainfrom
mattonik:j81-display-dt
Dec 4, 2026
Merged

henrikklee merged 2 commits into
OrchardLinux:mainfrom
mattonik:j81-display-dt

Conversation

@mattonik

@mattonik mattonik commented Dec 4, 2026 •

Copy link
Copy Markdown

Adds the iPad Air 2's (J81, A8X) display controller and display DART to t7001.dtsi and enables the pipe on the J81 with a 64 MiB CMA region, so the existing apple-adbe driver (it already matches apple,t7000-display-pipe) takes the panel over from simpledrm and flips client buffers at the frame boundary. No driver change.

  • From the J81's ADT: ADP window 0x206200000 (1 MiB), interrupts 103 and 108-111; DART 0x206304000 + SMMU 0x206300000, interrupts 106/107, error reflector/fetch/diag as on the other A8 boards. The panel link is eDP (as on the iPad mini 4): the pipe holds ps_disp0 and ps_dp and gets the transmitter window as "dp", which only names the connector eDP.
  • The J81 enables the pipe without apple,lcd-ldo-gpios, so adbe never touches the transmitter, the link or the panel (iBoot's link and panel stay as they are); dart-disp0 stays disabled (DART bypass, buffers from CMA). The 16 MiB default CMA holds only the fbdev console buffer at 1536x2048, so the board gets a 64 MiB region (same fix as the N56).
  • Tested on an iPad Air 2 (J81): Initialized adbe 1.0.0 for 206200000.display-controller, fb0: adbedrmfb, eDP-1 connected at 1536x2048@60 Hz, modetest sets the mode and flips, interrupt 103 counts vblank/flip events; a GPU renderer's frames (dumb buffers PRIME-exported and imported into powervr) are flipped with PAGE_FLIP events at 60.0 Hz (599 flips, intervals 16659-16689 us, no missed vblank in 10 s). dtc with W=1 adds no warnings; dt-validate (the project's dtbs_check run against this tree's bindings) reports nothing for the new nodes.
  • Not exercised: translated scanout (apple_adbe_drm.dart_scanout=1), and the power-gate to PMGR-state mapping of the DART (gate 36) and the transmitter (gate 114), which is taken from the A8 boards (noted in the commit message).

Checks done

  • Applies cleanly to main (checked with git apply).
  • make ARCH=arm64 W=1 apple/t7001-j81.dtb in Orchard's toolchain container: builds; only the two pre-existing warnings (/reserved-memory/ans-firmware, bus@20c000000 unit address).
  • dtbs_check (j81-dtbs-check derivation pointed at this tree on the aarch64 builder): no warning on display-controller@206200000 / iommu@206304000; every reported warning is on pre-existing nodes (SIO, PMIC gpio ranges, PCIe, PMGR touch clock, UART, audio).
  • Hardware: the same DT also ran on the rebased GPU series (drm/imagination: apple: add the A8X (T7001) GPU for the iPad Air 2 #165) on 2026-12-04: panel adopted, KMS flips from GPU-rendered buffers and a touch-driven cube at ~3.5-4 ms per frame.

This is independent of the GPU series in #165 (it only touches the display nodes and the J81 board file; both PRs add a node block to t7001-j81.dts at the same spot, so whichever merges second needs a trivial textual rebase: keep both blocks).

🤖 Generated with Claude Code

Describe the A8X's display pipe (ADT disp0, "adbe0,t7000") and its display
DART (dart-disp0) from the J81's Apple device tree, so that the ADBE driver
can take the panel over from simpledrm and flip client buffers at the frame
boundary instead of every frame being copied into the boot framebuffer.

From the ADT: the ADP window at 0x206200000 (1 MiB) and the pipe's five
interrupts (103, 108-111); the DART at 0x206304000 and its SMMU at
0x206300000 with their interrupts (106, 107), the A8's error reflector,
fetch and diag configuration. The panel link is eDP, as on the iPad mini 4:
the pipe holds ps_disp0 and ps_dp (T7001's 0x202b8), and gets the
transmitter's window as "dp", which only names the connector eDP.

Enable the pipe on the J81 without a panel supply, so that the driver never
touches the transmitter, the link or the panel, and give the board a 64 MiB
CMA region: the fbdev console buffer and each scanout buffer are 12 MiB.
dart-disp0 stays disabled; the driver enables it only with
apple_adbe_drm.dart_scanout=1.

Tested on an iPad Air 2 (J81): adbe adopts the live panel without changing
the picture ("Initialized adbe 1.0.0 for 206200000.display-controller",
eDP-1 connected at 1536x2048@60), modetest sets the mode, and a GPU
renderer's frames (dumb buffers exported and imported into powervr) are
flipped with PAGE_FLIP events at 60.0 Hz (599 flips, intervals
16659-16689 us, no missed vblank in 10 s). The interrupt at index 0 (103)
carries the vblank/flip events. The power-gate to PMGR state mapping of the
DART (gate 36) and of the transmitter (gate 114) is taken from the A8
boards and is only exercised in the bypass configuration.

Signed-off-by: Martin Puškáč <martin@icebear.sk>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The display pipe and its 64 MiB CMA pool were enabled in the J81 board
file only. The J82 (cellular) has the same A8X, display pipe and
1536x2048 eDP panel, so move both into the shared iPad Air 2 file. The
CMA pool goes into the reserved-memory node that is already there.

Assisted-by: LLM
Signed-off-by: Henrik Klee <henrik@goat-code.com>
@henrikklee
henrikklee merged commit b74b525 into OrchardLinux:main Dec 4, 2026
4 checks passed
@henrikklee

Copy link
Copy Markdown

Merged, thank you, Martin! The iPad Air 2's display pipe now takes the panel over from the boot framebuffer, with its DART described next to it.

What we changed on your branch: one commit of ours on top of yours moves &disp0 { status = "okay"; } and the 64 MiB CMA region from t7001-j81.dts into the shared t7001-air2.dtsi (the CMA region into the reserved-memory node already there). The cellular iPad Air 2 (J82) has the same chip, display pipe and panel, so it gets the display pipe too. We enable a block for every board that has the hardware, unless there's evidence that it breaks one. Your commit is unchanged.

Open follow-ups:

  • The "TODO verify" comments: the display pipe's power gates (disp0 and dp), the DART's power gate 36, the four scanout streams, and whether 64 MiB of CMA is enough for a compositor.
  • The node uses the A8's apple,t7000-display-pipe compatible. Upstream style would add an A8X compatible first ("apple,t7001-display-pipe", "apple,t7000-display-pipe") and list it in the binding.
  • Translated scanout through the DART (apple_adbe_drm.dart_scanout=1) hasn't been tested on an Air 2 yet; a report from a boot with it on would tell us whether it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants