Repository navigation
arm64: dts: apple: t6050-j716s: describe the HDMI port on dcpext1 - #4300
rolotrealanis98 wants to merge 2 commits into
Conversation
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>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Hardware row: T6050 / J716s (MacBook Pro 16-inch, M5 Pro), at
1. This PR's DTB alone: no picture aura copies the tunables and hands dcpext1 over: But The Stage 2 trial didn't commit either: The cause is in aura's handoff. 2. The same DTB with That's the only change, two
The firmware's I didn't test which of the two nodes is strictly needed. For this PR to work on its own, either aura has to run |
|
Hardware at
|
There was a problem hiding this comment.
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
|
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 J716s, linux-aurora 7.3.0.aurora1-53 with this PR at
So nothing in this PR has to change for the J716s. |
|
Your current PR description already includes valid Making any small edit to the PR description (rather than rerunning the old workflow run) will trigger a fresh |
|
@rolotrealanis98 aurora-silicon/aura#674 just merged ( |
There was a problem hiding this comment.
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.
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-endpoint1, port 0: crossbar state 2), wheret6050-atc3-hdmi.dtsihardcodes dcpext0 and state 0.Change
dt-bindings: mfd: apple,smc: the J716s's gP bank already takes the SMC'sgpionode (the N1's power line, gP13), so its pcIO outputs need another node name. This allowsgpio-pcio(apple,smc-pcio-gpio). The MFD cell finds the node by its compatible, so the driver is unchanged.t6050-atc3-hdmi.dtsitakes 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.t6050-j716s.dts:gpio-pcio(labelsmc_pcio) with the two converter lines. Its templates are the K114/K116's first two: 0dp2hdmi_pwr_en, 1hdmi_pwr_en. Line 2 (afe-reset) is left out: the AFE reset uses gp1c.gpio-reserved-ranges.Relation to other PRs:
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.
atc3_phywith atc-phy3's ADT tunables and enablesatc3_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.392e00000.dcp),mux-index2mode_set_gated ... DSC=NO, colorID 83hdmi-hpd). Unplugged and replugged: HPD 0→1, back at 165 Hz in about 3 sgpio-pciolines 0 and 1, held by dcpext1 asdp2hdmi-pwrenandhdmi-pwrenaudio-controller-2. A 4 s stream ran (PCMRUNNING) with no DMA errors. Not listened toDSC=YES(colorID 88). Every later set, including after the replug, wasDSC=NO, colorID 83.getClockFrequency(0) (0) < videoClock ... Giving up on frequenciesline 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).apple-dt-checkflow, base main 19c6615):CHECK_DTBS: no new warnings or errors.