Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions arch/arm64/boot/dts/apple/t7001-air2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down
84 changes: 84 additions & 0 deletions arch/arm64/boot/dts/apple/t7001.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <AIC_IRQ 103 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 108 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 109 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 110 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 111 IRQ_TYPE_LEVEL_HIGH>;
/*
* 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 = <AIC_IRQ 106 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 107 IRQ_TYPE_LEVEL_HIGH>;
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>;
Expand Down
Loading