Skip to content

arm64: dts: apple: t6050-j716s: describe the HDMI port on dcpext1 - #4300

Open
rolotrealanis98 wants to merge 2 commits into
aurora-silicon:mainfrom
rolotrealanis98:pr/t6050-j716s-hdmi
Open

rolotrealanis98 wants to merge 2 commits into
aurora-silicon:mainfrom
rolotrealanis98:pr/t6050-j716s-hdmi

Conversation

@rolotrealanis98

@rolotrealanis98 rolotrealanis98 commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What: describe the J716s HDMI port: ATC3 into the DP-to-HDMI converter on dcpext1 (crossbar state 2), its pcIO power lines, AOP GPIO 14 hotplug and HDMI audio on dp-audio2.
Tested: J716s HDMI row at d699096 (in the comments), CHECK_DTBS and the dt-checks flow (Testing below).
Risk: two-way door. J716s (M5 Pro 16-inch) DT only; the K114c, K116s and J714s DTBs are byte-identical to main's.

Problem

The J716s (MacBook Pro 16-inch, M5 Pro) has the same HDMI port as the K114/K116 and the J714s: ATC3 as a fixed four-lane DisplayPort PHY into the on-board DP-to-HDMI converter. Main's J716s tree doesn't describe it. Its ADT also gives the port to dcpext1 (dp-switch-ufp-endpoint 1, port 0: crossbar state 2), where t6050-atc3-hdmi.dtsi hardcodes dcpext0 and state 0.

Change

  1. dt-bindings: mfd: apple,smc: the J716s's gP bank already takes the SMC's gpio node (the N1's power line, gP13), so its pcIO outputs need another node name. This allows gpio-pcio (apple,smc-pcio-gpio). The MFD cell finds the node by its compatible, so the driver is unchanged.
  2. t6050-atc3-hdmi.dtsi takes the engine and crossbar state from the board (T6050_HDMI_DCPEXT, T6050_HDMI_MUX_INDEX). A board that defines neither gets dcpext0 and state 0, as before. The K114c, K116s and J714s DTBs are byte-identical to main's.
  3. t6050-j716s.dts:
    • Includes the dtsi with dcpext1 and state 2.
    • Brings the pcIO outputs back as gpio-pcio (label smc_pcio) with the two converter lines. Its templates are the K114/K116's first two: 0 dp2hdmi_pwr_en, 1 hdmi_pwr_en. Line 2 (afe-reset) is left out: the AFE reset uses gp1c.
    • Removes AOP GPIO 14 (the converter's hotplug) from gpio-reserved-ranges.
    • Describes HDMI audio: dp-audio2 on dcpext1, through dispext1's ADMAC, as on the J714s.

Relation to other PRs:

Testing (at d699096)

J716s (firmware 27.3), Innoview 2560x1600 display over HDMI.

  • Kernel: 7.3.0-ge174b968f5b3, the J716s daily on main 0c502a2.
  • DTB: built from main 19c6615 with this PR, plus one test-only file (not in the PR). That file enables atc3_phy with atc-phy3's ADT tunables and enables atc3_dpxbar. The loader used here (aura j716s-next10-hdmi) predates aura main's T6050 fixed DP PHY support, which sets both at handoff. That aura main path wasn't run on the J716s for this test.
Check Result
Connector HDMI-A-1 on dcpext1 (392e00000.dcp), mux-index 2
Modes offered 2560x1600 at 165, 120, 60 Hz; 1920x1080 up to 240 Hz
Mode run 2560x1600@165, mode_set_gated ... DSC=NO, colorID 83
Picture yes (owner)
Hotplug AOP GPIO 14 (hdmi-hpd). Unplugged and replugged: HPD 0→1, back at 165 Hz in about 3 s
Power lines gpio-pcio lines 0 and 1, held by dcpext1 as dp2hdmi-pwren and hdmi-pwren
Audio card "Apple HDMI", PipeWire sink audio-controller-2. A 4 s stream ran (PCM RUNNING) with no DMA errors. Not listened to
Kernel log 0 WARN/Oops/SError
  • At boot, one of nine mode sets reported DSC=YES (colorID 88). Every later set, including after the replug, was DSC=NO, colorID 83.
  • The firmware's getClockFrequency(0) (0) < videoClock ... Giving up on frequencies line appears at each mode set, as it does on this engine's USB-C routes (drm/apple: T6050: no DSC modes on an external engine without its provider clock #3922).
  • dt-checks (apple-dt-check flow, base main 19c6615):
    • CHECK_DTBS: no new warnings or errors.
    • adt-coverage, dart-pd and sibling-drift: pass.

A board that describes the gP bank in "gpio" (the J716s) names its pcIO
outputs "gpio-pcio"; the MFD cell takes the node by its compatible. The
schema did not list that name.

Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com>
The J716s's HDMI port is the K boards' and the J714s's: ATC3 as a fixed
four-lane DisplayPort PHY into the on-board DP-to-HDMI converter, with
its hotplug on AOP GPIO 14 and its two power enables on the SMC's pcIO
outputs. The ADT gives it to dcpext1, though (dp-switch-ufp-endpoint 1,
port 0: crossbar state 2), not dcpext0.

t6050-atc3-hdmi.dtsi now takes the engine and its crossbar state from
the board (T6050_HDMI_DCPEXT, T6050_HDMI_MUX_INDEX), with dcpext0 and 0
as before when a board defines neither; the K114's tree is unchanged.

The J716s includes it with dcpext1 and state 2. Its gP bank already
takes the SMC's "gpio" node, so the pcIO outputs come back as
"gpio-pcio" under the smc_pcio label, with the two converter lines (its
templates are the K114/K116's first two). It exposes AOP GPIO 14 and
describes the HDMI audio: dp-audio2, dcpext1's, through the engine's
own ADMAC as on the J714s.

Signed-off-by: Rolando Trevino <122947376+rolotrealanis98@users.noreply.github.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T11:20:38.823657Z d699096 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Merge readiness at d6990964: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no needs one approving review from Core, Omarchy Mac or Aurora Maintainers (not the author)
Requested changes no requested by aurora-silicon-review
Hardware row at head no no line with the head SHA d6990964, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · . J716s (M5 Pro 16-inch) DT only; the K114c, K116s and J714s DTBs are byte-identical to main's. Problem The J716s (MacBook Pro 16-inch, M5 Pro) has the same HDMI port as the K114/K116 and the J714s: ATC3 as a fixed four-lane DisplayPort PHY into the on-board DP-to-HDMI converter. Main's J716s tree doesn't describe it. Its ADT also gives the port to dcpext1 (dp-switch-ufp-endpoint 1, port 0: crossbar state 2), where t6050-atc3-hdmi.dtsi hardcodes dcpext0 and state 0. Change 1. dt-bindings: mfd: apple,smc: the J716s's gP bank already takes the SMC's gpio node (the N1's power line, gP13), so its pcIO outputs need another node name. This allows gpio-pcio (apple,smc-pcio-gpio). The MFD cell finds the node by its compatible, so the driver is unchanged. 2. t6050-atc3-hdmi.dtsi takes the engine and crossbar state from the board (T6050_HDMI_DCPEXT, T6050_HDMI_MUX_INDEX). A board that defines neither gets dcpext0 and state 0, as before. The K114c, K116s and J714s DTBs are byte-identical to main's. 3. t6050-j716s.dts: - Includes the dtsi with dcpext1 and state 2. - Brings the pcIO outputs back as gpio-pcio (label smc_pcio) with the two converter lines. Its templates are the K114/K116's first two: 0 dp2hdmi_pwr_en, 1 hdmi_pwr_en. Line 2 (afe-reset) is left out: the AFE reset uses gp1c. - Removes AOP GPIO 14 (the converter's hotplug) from gpio-reserved-ranges. - Describes HDMI audio: dp-audio2 on dcpext1, through dispext1's ADMAC, as on the J714s. Relation to other PRs: - It follows #4189 (merged). - It's independent of #2283, which gives the J716s's USB-C ports dcpext0 and dcpext2 and no dcpext1 route. That PR's comment that dcpext1 "is left for USB4 DisplayPort tunnels" doesn't hold on this machine, where dcpext1 drives HDMI. - #2283 already conflicts with main in t6050-j716s.dts (main's media, USB4 and GPU/panel additions); this branch merges cleanly onto main. Testing (at d699096) J716s (firmware 27.3), Innoview 2560x1600 display over HDMI. - Kernel: 7.3.0-ge174b968f5b3, the J716s daily on main 0c502a2. - DTB: built from main 19c6615 with this PR, plus one test-only file (not in the PR). That file enables atc3_phy with atc-phy3's ADT tunables and enables atc3_dpxbar. The loader used here (aura j716s-next10-hdmi) predates aura main's T6050 fixed DP PHY support, which sets both at handoff. That aura main path wasn't run on the J716s for this test.

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@AlexVittorioCastellano

Copy link
Copy Markdown
Contributor

Hardware row: T6050 / J716s (MacBook Pro 16-inch, M5 Pro), at d6990964: fails with released aura as is, passes with the PHY and crossbar enabled

  • Setup: macOS 27.2 (26B123) stub, aura 1.0.0b19 37698011 (packaged, and the same code path as aura main 647f1d5a). Kernel: the linux-aurora 7.3.0.aurora1-53 recipe (linux main 1675a623, with drm/asahi: fix global upper-half TLBI fallback and enable T6050 range TLBI #4284's two drm/asahi commits). DTB: that kernel tree with this PR's two commits, built with make apple/t6050-j716s.dtb. Without the PR, the same build is byte-identical to the packaged 53 DTB. Monitor: HUAWEI AD80HW over HDMI.

1. This PR's DTB alone: no picture

aura copies the tunables and hands dcpext1 over:

FDT: T6050 ATC3 DP PHY tunables copied
DCP: T6050: dcpext1 handed off: bw-scratch 0x30000

But phy@38b000000 (atc3_phy) stays disabled in the live tree, so dcpext1 never gets its PHY:

apple-dcp 392e00000.dcp: Failed to get dp-phy: -517     (x39)
apple-dcp 392e00000.dcp: deferred probe timeout, ignoring dependency
apple-dcp 392e00000.dcp: external display processor unusable (probe failed: -110); the other displays go on without it

The Stage 2 trial didn't commit either: apple-mcc was still deferred.

The cause is in aura's handoff. t6050_ext_one() (src/kboot_display_handoff.c:6190 on main 647f1d5a) runs t6050_route(), which enables a fixed output's dp-phy, only when t6050.headless || routes. A laptop isn't headless, and the J716s's dcpext1 has no typec-routes (#2283 gives the J716s's USB-C ports dcpext0 and dcpext2). So nothing enables atc3_phy here. On the J714s and K boards, dcpext0 also carries Type-C routes, which is presumably why they don't hit this. The PR's test-only file, which enables both nodes, hid it.

2. The same DTB with atc3_phy and atc3_dpxbar set to okay: pass

That's the only change, two status properties, the same as the PR's test-only file minus the tunables, which aura already copies.

Check Result
Connector HDMI-A-1 on dcpext1 (392e00000.dcp), dp2hdmi HPD connected:1, forwarding converter service requests (HBR3 link)
Modes offered 20, 640x480 to 1920x1080 (the monitor's EDID maximum)
Mode run 1920x1080@60, mode_set_gated ... DSC=NO VRR=NO, colorID 60. KDE uses it beside the panel
Picture yes (owner)
Hotplug unplug at 74.2 s (display HPD removed), replug at 85.8 s, mode_set_gated 1920x1080@60 again at 86.4 s; picture back (owner)
Power lines gpio-pcio 0 dp2hdmi-pwren, 1 hdmi-pwren; AOP GPIO 14 hdmi-hpd in, high
Audio card "Apple HDMI" registered. Not played
Kernel log 0 WARNING/Oops/SError/BUG. The Stage 2 trial committed

The firmware's getClockFrequency(0) (0) < videoClock 74250000! Giving up on frequencies appears at the mode set, as in the PR's row.

I didn't test which of the two nodes is strictly needed. t6050_route_next() walks only phys and the GPIO controllers for a route without typec-routes, not mux-controls, so aura wouldn't enable atc3_dpxbar even if t6050_route() ran for dcpext1.

For this PR to work on its own, either aura has to run t6050_route() (and enable the crossbar) for an engine whose only output is a fixed one, or the J716s tree has to enable atc3_phy and atc3_dpxbar itself.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Dec 4, 2026
@rolotrealanis98

Copy link
Copy Markdown
Contributor Author

Hardware at d6990964e103: J716s (MacBook Pro 16-inch, M5 Pro), firmware 27.3, Innoview 2560x1600 over HDMI. PASS.

Check Result
Connector HDMI-A-1 on dcpext1 (392e00000.dcp), mux-index 2
Modes, mode run 2560x1600 at 165, 120, 60 Hz; 1920x1080 up to 240 Hz. 2560x1600@165, DSC=NO, colorID 83 (with #3922 86202c62)
Hotplug AOP GPIO 14 (hdmi-hpd, IRQ). Unplugged at 220.8 s, HPD back at 226.5 s, 2560x1600 set again at 228.5 s
Power lines macsmc-pcio-gpio lines 0 dp2hdmi-pwren and 1 hdmi-pwren, held
Audio card "Apple HDMI", PipeWire sink audio-controller-2. A 4 s silent stream ran (PCM RUNNING), DMA config OK, no errors. Not listened to
Kernel log 0 WARN/Oops/SError

apple/t6050-j716s.dtb and apple/t6050-j716s-hdmi.dtb at d6990964 build with W=1. The one warning, pmp@284e00000 unit address, comes from t6050-peripherals.dtsi, which this PR doesn't change.

@github-actions github-actions Bot added blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-template PR body lacks Tested or Risk (bot) labels Dec 4, 2026

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST_CHANGES at d6990964e103620950a2dc8355c4c2b58316b5b7

Blockers:

Failure: The unmodified PR DTB produces no HDMI picture on J716s with the released Aura handoff. The hardware report shows DCP timing out while probing its disabled DP PHY. The same DTB works when the PHY and crossbar statuses are enabled. I rebuilt the PR DTB and confirmed that both nodes are disabled and the fixed HDMI engine has no Type-C routes. Current Aura still skips the route setup for that case at kboot_display_handoff.c:6190, and its fixed-route walk returns before the mux lookup at line 5984. Please make the default handoff enable the fixed route's dependencies.

Checked: Built J716s and its three sibling DTBs at the PR head and base. J714s, K114c, and K116s are byte-identical. J716s resolves the HDMI mux index, pcIO node and audio endpoint in the compiled tree. The SMC binding document passed validation and the focused comparison reported the same diagnostics on the base and head.

Evidence

The J716s report covers the exact DT changes with the released loader and shows both the failed default boot and the successful status-only control. The later author's row still uses a test-only enablement.

#4300 (comment)
https://github.com/aurora-silicon/aura/blob/2cf23900914a36d3f702e3c45540276f77d904d8/src/kboot_display_handoff.c#L6186-L6192

@AlexVittorioCastellano

Copy link
Copy Markdown
Contributor

Follow-up to my row: the aura side is fixed in aurora-silicon/aura#674. With it, this PR's DTB works on the J716s as is, with no test-only file enabling atc3_phy/atc3_dpxbar.

J716s, linux-aurora 7.3.0.aurora1-53 with this PR at d6990964 (the same DTB as my failing row), Stage 2 from that aura head:

  • atc3_phy and atc3_dpxbar were enabled by the handoff and bound.
  • HDMI-A-1 lit at 1920x1080@60 beside the panel.
  • The trial committed, and the kernel log has no Oops/BUG/SError.

So nothing in this PR has to change for the J716s.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Your current PR description already includes valid Tested: and Risk: lines, but the only pr-text run (47322378330) evaluated the pre-edit description from when the PR was opened.

Making any small edit to the PR description (rather than rerunning the old workflow run) will trigger a fresh pr-text run against the current body.

@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) needs-hw-row No hardware row at the PR head (bot) labels Dec 5, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

@rolotrealanis98 aurora-silicon/aura#674 just merged (0daa04b14df2), so the Stage 2 dependency is now in aura main. To turn pr-text green on this PR, please add Tested: and Risk: lines to the PR description (the check re-runs automatically on edit).

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at d699096

Checked: The J716s retest used this DTB and the Aura fix from aurora-silicon/aura#674. The handoff enabled the PHY and crossbar, and HDMI-A-1 lit at 1920×1080@60 without a test overlay. Aura merged the fix at 0daa04b14df2. I verified that its display-handoff source is byte-identical to the revision used in the retest. This resolves the earlier HDMI handoff failure.

Checked: The focused SMC schema comparison showed no new diagnostics, and the three sibling DTBs were byte-identical in the original review.

Follow-ups: Update the PR description with the passing J716s result and the Aura dependency. Use plain Tested: and Risk: lines so the PR-text check recognizes them.

#4300 (comment)
aurora-silicon/aura#674

This branch has not been deployed

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

Labels

area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants