From 583f7cde8194fd2c6495ee6022e85ece42884d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pu=C5=A1k=C3=A1=C4=8D?= Date: Fri, 4 Dec 2026 11:33:37 +0100 Subject: [PATCH 1/2] arm64: dts: apple: t7001-j81: Add the display pipe and its DART MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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áč Co-Authored-By: Claude Sonnet 5.5 --- arch/arm64/boot/dts/apple/t7001-j81.dts | 31 +++++++++ arch/arm64/boot/dts/apple/t7001.dtsi | 84 +++++++++++++++++++++++++ 2 files changed, 115 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t7001-j81.dts b/arch/arm64/boot/dts/apple/t7001-j81.dts index aaf8b4165a7d7c..7189fbc160c431 100644 --- a/arch/arm64/boot/dts/apple/t7001-j81.dts +++ b/arch/arm64/boot/dts/apple/t7001-j81.dts @@ -20,3 +20,34 @@ &touchscreen { firmware-name = "apple/j81-fwstart.z2fw"; }; + +/* + * The display pipe takes the 1536x2048 eDP panel over from simpledrm. No + * panel supply (apple,lcd-ldo-gpios) is given on purpose: with it the + * driver would drive the DisplayPort transmitter's AUX channel and link + * training with the A9's register offsets, which are not verified for the + * A8X's "displayport,t7000", and would power-cycle a panel it sees as dark + * at boot. Without it the link and the panel stay as iBoot left them, and + * the panel stays on in system sleep. + */ +&disp0 { + status = "okay"; +}; + +/* + * The display pipe's scanout buffers and the fbdev console buffer come + * from CMA, 12 MiB each at 1536x2048 XRGB8888. The 16 MiB default holds + * only the console buffer. 64 MiB holds it, two or three scanout + * buffers and, with dart_scanout=1, the 12 MiB self-check pattern. + * A cma= on the command line overrides this node. + */ +&{/reserved-memory} { + cma: linux,cma { + compatible = "shared-dma-pool"; + reusable; + /* TODO verify: 64 MiB is enough for the compositor later */ + size = <0x0 0x4000000>; + alignment = <0x0 0x2000000>; + linux,cma-default; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t7001.dtsi b/arch/arm64/boot/dts/apple/t7001.dtsi index a3ac9f31fefdd0..51da3ed97ad66a 100644 --- a/arch/arm64/boot/dts/apple/t7001.dtsi +++ b/arch/arm64/boot/dts/apple/t7001.dtsi @@ -153,6 +153,90 @@ #performance-domain-cells = <0>; }; + /* + * ADT disp0 ("adbe0,t7000", the A8's pipe; iOS's AppleH7GADBE0 + * matches adbe0,t7000 and adbe0,t7001 alike). iBoot leaves the + * pipe, the eDP link and the panel running, reading the boot + * framebuffer through dart-disp0 in bypass. The panel link is + * eDP (ADT displayport, "displayport,t7000", four lanes), so the + * second domain is dp, not mipi_dsi, and the transmitter's + * window is "dp", as on the iPad mini 4. The driver only names + * the connector eDP from that window: without + * apple,lcd-ldo-gpios it never maps or drives the transmitter. + * The ADT's display block and side windows (0x206400000, + * 0x206440000, 0x206480000, 0x2064c0000, 0x206500000) are not + * used by the driver and are left out. + */ + disp0: display-controller@206200000 { + compatible = "apple,t7000-display-pipe"; + reg = <0x2 0x06200000 0x0 0x100000>, + <0x2 0x06304000 0x0 0x4000>, + <0x2 0x06300000 0x0 0x4000>, + <0x2 0x06700000 0x0 0x1000>; + reg-names = "adp", "dart0", "dart1", "dp"; + interrupt-parent = <&aic>; + /* ADT 0x67, 0x6c-0x6f; the first carries vblank and packet completion */ + interrupts = , + , + , + , + ; + /* + * TODO verify: ADT power-gates 0x70 (gate 112, DISP0-V) + * depends on PMGR state 86, ps_disp0; the displayport + * gate 0x72 (114) is taken to be ps_dp (0x202b8 on the + * T7001) by name, as on the iPad mini 4. + */ + power-domains = <&ps_disp0>, <&ps_dp>; + status = "disabled"; + + /* + * The pipe's reads as a DMA master behind dart-disp0, + * every stream of it. Used only with + * apple_adbe_drm.dart_scanout=1: the display driver then + * enables the DART below and creates this device itself, + * after it has mapped the live boot framebuffer, and + * verifies translated scanout before it uses it. + */ + scanout { + /* TODO verify: four streams, as on the A8 */ + iommus = <&disp0_dart 0>, <&disp0_dart 1>, + <&disp0_dart 2>, <&disp0_dart 3>; + apple,dart-deferred-attach; + }; + }; + + /* + * ADT dart-disp0 ("dart,t7001", "dart,s5l8960x"): the DART and + * its SMMU front end, with the A8's error reflector, fetch and + * diag configuration. The ADT's bypass-address (0x800, 0x800) + * is not described: the T7000 DART binding has no such field, + * and iBoot's bypass offset is left as it is. Disabled until the + * display driver has mapped the live scanout. + */ + disp0_dart: iommu@206304000 { + compatible = "apple,t7000-dart", "apple,s5l8960x-dart"; + reg = <0x2 0x06304000 0x0 0x4000>, + <0x2 0x06300000 0x0 0x4000>; + reg-names = "dart", "smmu"; + #iommu-cells = <1>; + interrupt-parent = <&aic>; + interrupts = , + ; + interrupt-names = "dart", "smmu"; + /* + * TODO verify: ADT power-gates 0x24 (gate 36) is not + * mapped to a PMGR state here; described with disp0's + * domain, as on the A8 and the A9. A DART must always + * name a domain that is on when it is probed. + */ + power-domains = <&ps_disp0>; + apple,error-reflector = /bits/ 64 <0x20ffff000>; + apple,fetch-config = <0x000e0303>; + apple,diag-config = <0x00000100>; + status = "disabled"; + }; + ans: block@208040000 { compatible = "apple,t7001-ans", "apple,s5l8960x-ans"; reg = <0x2 0x08040000 0x0 0x1000>; From d9bf4c40587982502f3968771267351001d9e95d Mon Sep 17 00:00:00 2001 From: Henrik Klee Date: Sat, 5 Dec 2026 05:32:35 +0800 Subject: [PATCH 2/2] arm64: dts: apple: t7001-air2: Enable the display pipe on both models 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 --- arch/arm64/boot/dts/apple/t7001-air2.dtsi | 30 ++++++++++++++++++++++ arch/arm64/boot/dts/apple/t7001-j81.dts | 31 ----------------------- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t7001-air2.dtsi b/arch/arm64/boot/dts/apple/t7001-air2.dtsi index c3aa0770c6ae54..dfe9f1ff6855f0 100644 --- a/arch/arm64/boot/dts/apple/t7001-air2.dtsi +++ b/arch/arm64/boot/dts/apple/t7001-air2.dtsi @@ -105,6 +105,23 @@ reg = <0 0 0 0>; no-map; }; + + /* + * The display pipe's scanout buffers and the fbdev console + * buffer come from CMA, 12 MiB each at 1536x2048 XRGB8888. The + * 16 MiB default holds only the console buffer. 64 MiB holds + * it, two or three scanout buffers and, with dart_scanout=1, + * the 12 MiB self-check pattern. A cma= on the command line + * overrides this node. + */ + cma: linux,cma { + compatible = "shared-dma-pool"; + reusable; + /* TODO verify: 64 MiB is enough for the compositor later */ + size = <0x0 0x4000000>; + alignment = <0x0 0x2000000>; + linux,cma-default; + }; }; battery_info: battery { @@ -560,6 +577,19 @@ }; }; +/* + * The display pipe takes the 1536x2048 eDP panel over from simpledrm. No + * panel supply (apple,lcd-ldo-gpios) is given on purpose: with it the + * driver would drive the DisplayPort transmitter's AUX channel and link + * training with the A9's register offsets, which are not verified for the + * A8X's "displayport,t7000", and would power-cycle a panel it sees as dark + * at boot. Without it the link and the panel stay as iBoot left them, and + * the panel stays on in system sleep. + */ +&disp0 { + status = "okay"; +}; + /* The boot loader set up the display; nothing restores it after power loss. */ &ps_disp0 { apple,always-on; diff --git a/arch/arm64/boot/dts/apple/t7001-j81.dts b/arch/arm64/boot/dts/apple/t7001-j81.dts index 7189fbc160c431..aaf8b4165a7d7c 100644 --- a/arch/arm64/boot/dts/apple/t7001-j81.dts +++ b/arch/arm64/boot/dts/apple/t7001-j81.dts @@ -20,34 +20,3 @@ &touchscreen { firmware-name = "apple/j81-fwstart.z2fw"; }; - -/* - * The display pipe takes the 1536x2048 eDP panel over from simpledrm. No - * panel supply (apple,lcd-ldo-gpios) is given on purpose: with it the - * driver would drive the DisplayPort transmitter's AUX channel and link - * training with the A9's register offsets, which are not verified for the - * A8X's "displayport,t7000", and would power-cycle a panel it sees as dark - * at boot. Without it the link and the panel stay as iBoot left them, and - * the panel stays on in system sleep. - */ -&disp0 { - status = "okay"; -}; - -/* - * The display pipe's scanout buffers and the fbdev console buffer come - * from CMA, 12 MiB each at 1536x2048 XRGB8888. The 16 MiB default holds - * only the console buffer. 64 MiB holds it, two or three scanout - * buffers and, with dart_scanout=1, the 12 MiB self-check pattern. - * A cma= on the command line overrides this node. - */ -&{/reserved-memory} { - cma: linux,cma { - compatible = "shared-dma-pool"; - reusable; - /* TODO verify: 64 MiB is enough for the compositor later */ - size = <0x0 0x4000000>; - alignment = <0x0 0x2000000>; - linux,cma-default; - }; -};