Repository navigation
arm64: dts: apple: t7001-j81: Add the display pipe and its DART - #166
Merged
Merged
Conversation
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>
|
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 Open follow-ups:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the iPad Air 2's (J81, A8X) display controller and display DART to
t7001.dtsiand enables the pipe on the J81 with a 64 MiB CMA region, so the existingapple-adbedriver (it already matchesapple,t7000-display-pipe) takes the panel over from simpledrm and flips client buffers at the frame boundary. No driver change.ps_disp0andps_dpand gets the transmitter window as "dp", which only names the connector eDP.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-disp0stays 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).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.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
git apply).make ARCH=arm64 W=1 apple/t7001-j81.dtbin Orchard's toolchain container: builds; only the two pre-existing warnings (/reserved-memory/ans-firmware,bus@20c000000unit address).display-controller@206200000/iommu@206304000; every reported warning is on pre-existing nodes (SIO, PMIC gpio ranges, PCIe, PMGR touch clock, UART, audio).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.dtsat the same spot, so whichever merges second needs a trivial textual rebase: keep both blocks).🤖 Generated with Claude Code