Repository navigation
arm64: dts: apple: t6040-j773s: HDMI and USB-C displays - #2446
RyanTheTide wants to merge 3 commits into
Conversation
The J773s (Mac mini M4 Pro) has the J616s's DISPEXT0/DISPEXT1 power and PMP wiring, the J616s's dcpext1 routes to three Type-C ports on ATC0-2, and the J575c's LPDPTX HDMI path, but those descriptions sit inside board files mixed with board-only parts. Move the shareable parts into their own files, without changing any device tree: - t6040-dispext0.dtsi: the DISPEXT0 PMP request and the dcpext0 chain power domains, out of t6040-j616s-extdisp-hdmi.dtsi (which keeps the J616s atcphy3 HDMI tunables). - t6040-extdisp-usbc.dtsi: DISPEXT1 power and dcpext1 over typec0-2, out of t6040-j616s-extdisp-usbc.dtsi (which keeps dcpext0's hybrid routes next to its atcphy3 HDMI path). - t604x-dcpext1-mem.dtsi: dcpext1's firmware memory placeholders, out of t6040-j616s-extdisp-mem-loader.dtsi. - t604x-j575-j773-hdmi.dtsi: t6041-j575c-hdmi.dtsi, renamed. Each file is included where its text was, so every T604x DTB (J614s, J616s, J616s tether, J773s, J575c, J614c, J616c) is byte for byte the same as before. Signed-off-by: Ryan Murray <[email protected]>
The J773s (Mac mini M4 Pro) had no display description at all and kept iBoot's boot framebuffer. Its ADT (macOS 26.6.2) has the J575c's HDMI path: lpdptx-phy0 at the same registers with the same PMGR state, display crossbar output 4, dp2hdmi-gpio0 with the same AOP hotplug pin and SMC power pins, and the DP-to-HDMI converter on i2c8 at 0x08. Its three back Thunderbolt ports are the J616s's ATC0-2 with atc0-2-dpphy on crossbar outputs 0-2. dcpext0-3 and their DARTs sit at the J616s and J575c addresses, and DISPEXT0/1 have the J616s's PMGR states and PMP soc-device IDs (18 and 19). ATC3 is the front USB hub's PHY and there is no atc3-dpxbar. Describe it from the shared pieces: dcpext0 drives HDMI through the LPDPTX PHY (t604x-j575-j773-hdmi.dtsi), dcpext1 drives DisplayPort over the three back ports (t6040-extdisp-usbc.dtsi, t604x-dcpext1- mem.dtsi), and both chains get the J616s's PMP-acknowledged DISPEXT power (t6040-dispext0.dtsi). atcphy3, its mailbox and crossbar from t604x-extdisp.dtsi are dropped for the front hub's own ATC3, whose power stays as it was. The dcp/disp0/disp0-piodma aliases let the boot loader find the display subsystem, as on the J575c. Every new node is disabled. Booted state changes: the three back ATC PHYs register a Type-C mode switch (as on the J616s) and the connectors get disabled display routes. The boot loader fills the external processors' firmware memory and the display gate enables each chain once the PMP is bound. Signed-off-by: Ryan Murray <[email protected]>
The M4 Pro display gate powered HDMI only through the J616s's ATC3 chain (atcphy3, its crossbar and power) or the J614s's dcpext2. The J773s (Mac mini M4 Pro) has its HDMI port behind the LPDPTX PHY, as the J575c, and its ATC3 is the front USB hub's: its HDMI chain is the PHY's power, the PMP DISPEXT0 request, DISPEXT0, the AOP pins, the PHY, dcpext0's DARTs, mailbox and dcpext0. Take that chain on any M4 Pro whose device tree describes the LPDPTX PHY, rather than naming the board. dcpext0 there has no Type-C routes and no mux-controls, so the Type-C crossbars are enabled for an HDMI-only processor only when its mux-controls name them. The J616s and J614s, which do not describe the PHY, keep their chains. Signed-off-by: Ryan Murray <[email protected]>
|
Looks good; approve once the J616s regression boot is on this head. I built the J773s DTB at 1958e52. Every path in the new HDMI stage (
HW row: J616s on this head with HDMI and one USB-C display, then each alone. Expect "routes enabled, waiting for the PMP", both stages enabled, a picture on both, hotplug working, 2 s2idle cycles, 0 AVC, 0 failed units and no new kernel errors against the base. Then the J773s row from the PR body, on a boot loader with aura#253 and aura#335. Assisted-by: LLM (Claude:Opus 5.5) |
Replaces #2307, which was accidentally branched from an unmerged DART power-domain branch and carried its commits. Same three commits, now on integration/aurora; content unchanged. All six T604x DTBs rebuilt on this base: J614s, J616s, J614c, J616c and J575c are byte-identical to base, only the J773s changes.
Problem
The J773s (Mac mini M4 Pro) device tree has no display description: no dcp/dcpext nodes, no HDMI path and no USB-C display routes. The mini only ever gets iBoot's boot framebuffer. Its HDMI port does not use the J616s's ATC3 path. It runs through the LPDPTX PHY, as on the J575c Mac Studio, and the M4 Pro display gate only knew the ATC3 chain.
Change
Three commits:
t6040-dispext0.dtsi: the DISPEXT0 PMP request and power.t6040-extdisp-usbc.dtsi: DISPEXT1 power and dcpext1 over typec0-2.t604x-dcpext1-mem.dtsi: dcpext1's firmware memory placeholders.t604x-j575-j773-hdmi.dtsi: the renamed J575c LPDPTX HDMI file.dcp/disp0/disp0-piodmaaliases are added for the boot loader.t604x-extdisp.dtsiare dropped, because ATC3 is the front USB hub here. ATC3 power stays as it was.mux-controlsno longer enables the Type-C crossbars.Testing
unit_address_vs_regwarnings of the dcpext placeholders (8 to 14), the same warnings the J616s and J575c already have.mode-switchon atcphy0-2 (as on the J616s). Every added node is disabled except the connectors' port@3 graph endpoints, which point at disabled routes. Every path in the gate's J773s HDMI and USB-C stages exists in the J773s DTB and is disabled.display-gate.cbuilds with clang and W=1 warnings with 0 warnings (base: 0). checkpatch: no new problems; the only warnings are the British "acknowledgement" spelling, which the tree already uses, and the MAINTAINERS note for the rename.Still to run
A J773s boot. The owner of the community J773s is in #1479. The boot needs the MCC admission for board-id 2 (aura#253) and the aura display handoff without board lists (aura#335).
Pass criteria:
apple-t6041-display: routes enabled, waiting for the PMP, thenstage 0 enabled,stage 1 enabledandprocessors and display subsystem enabled.modetest -c, and hotplug works.A J616s regression boot is also owed: its DTB is unchanged, and its gate path only changes when the LPDPTX PHY is described.
ADT wiring this follows (J773s, macOS 26.6.2)
lpdptx-phy0:dptx-phy,t8132, the same two register windows as the J575c,dp-switch-dfp-endpoint4,source-select-offset1, PMGR DPTX_PHY at pmgr+0x360. The J616s has no such PMGR state.dp2hdmi-gpio0: hdmi_hpd AOP GPIO 36, hdmi_pwr_en / dp2hdmi_pwr_en / reset on SMC keys, force-dpfu AOP GPIO 42,pcon-stays-on. Identical to the J575c.i2c8/pcon0at 0x08.display-crossbar0: dfp atc0-3 + lpdptx-phy0, ufp dispext0-3 + scodec0.atc0-2-dpphyon outputs 0-2; there is noatc3-dpphy/atc3-dpxbar(atc-phy3is the front hub).disp0hasexternal;dcphasdp-switch-ufp-endpoint15. Both match the J575c.atc3-dpphy/atc3-dpxbar.Not covered here
apple_dpin_disabledon T6040).