Skip to content

arm64: dts: apple: t8142-j704: Give the DCP its firmware clocks - #3417

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
term-guy:j704-dcp-clocks
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
term-guy:j704-dcp-clocks

Conversation

@term-guy

@term-guy term-guy commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What: The J704's internal DCP gets the firmware clocks that the firmware-27 DCP interface asks for. It reads them by index into the ADT /arm-io/disp0 clock-ids and fails to start without apple,clock-ids, so the driver does not bind (-22). They are described as on the J813: apple,clock-ids = <585 431>, with fixed clocks for both. 585 is 712 MHz, which is entry 0x49 of the J704 ADT's clock-frequencies (the entry 585's low byte names, the same value as on the J813). 431 is never asked for. aura cannot publish these on T8142 (the ADT has no frequency for clock 585). This is split out of #2093 (77a4540b), whose GPU part is held. It is one commit, and DT only.
Tested: J704 (MacBook Pro 14" M5), macOS 27.2 (26B123) firmware, booted through aura, with this commit in the test kernel (boots #1230/#1231): apple-dcp 286e00000.dcp: DCP booted, eDP-1 3024x1964 and, with #2603 + aura#409, HDMI-A-1 2560x1440@144 at once, 0 DART faults, 0 failed units, 0 SELinux denials. A row at this exact head will follow.
Risk: two-way door · J704 only (t8142-j704-display.dtsi).
Not yet: the J704 GPU (#2093, held until its power data has a public-clean source).

The firmware-27 DCP interface asks for its provider clocks by index into
the ADT /arm-io/disp0 clock-ids, and fails to start without
apple,clock-ids. Describe them as on the J813: the J704 ADT has the same
ids, 585 and 431, and entry 0x49 of its clock-frequencies (the one 585's
low byte names) is the same 712 MHz. 431 is never asked for.

Tested on J704 (macOS 27.0 firmware, booted through aura): the DCP
driver binds, "DCP booted", eDP-1 connected and enabled at 3024x1890
inheriting the boot mode, and appledrmfb takes over the console.

Signed-off-by: termg <[email protected]>
@term-guy
term-guy requested review from a team as code owners November 27, 2026 17:51
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (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) labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at 7e564069: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review ok approved by RyanTheTide
Requested changes ok none
Hardware row at head no no line with the head SHA 7e564069, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · J704 only (t8142-j704-display.dtsi).

Areas: area:bringup

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

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict at 7e56406: merge once CI is green and the J704 row is at this head. A row is also fine if its kernel's t8142-j704-display.dtsi matches this head's byte for byte; name that commit.

Blockers: none in the change.

Checked:

  • Identical to main's J813 description (t8142-j813-display.dtsi:76 and :126): apple,clock-ids = <585 431>, fixed 712000000 for 585 and 0 for 431, the firmware-0/firmware-1 clock-names order firmware 27 asks for.
  • 712 MHz is tied to this machine's ADT (clock-frequencies entry 0x49, from 585's low byte), not a guess.
  • J704 display dtsi only; no driver change.

Follow-ups (not for this PR):

  • J704 and J813 now carry the same two fixed clocks. One shared T8142 copy (t8142.dtsi or a t8142-dcp-clocks.dtsi) would keep the next T8142 board from copying them a third time.
  • The rule you describe (clock id low byte -> clock-frequencies entry) is one the loader can apply for every board. That would let aura publish these clocks from the ADT, and the fixed-clock nodes could go.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Nov 27, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 7e564069. Code owner approved and all hosted checks are green. Row: the J704 boots #1230/#1231 ran this patch. Its t8142-j704-display.dtsi hunks are byte-identical to 77a4540b (compared hunk by hunk), and it changes only the J704 DTB, so no other Mac is affected. Non-author review: REVIEW6 confirmed this carries the tested DCP clock patch. It lands before linux#2603 and aura#409. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 50d9872 into aurora-silicon:main Nov 28, 2026
6 of 7 checks passed
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) 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants