Repository navigation
arm64: dts: apple: t8142-j704: Give the DCP its firmware clocks - #3417
Conversation
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]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
RyanTheTide
left a comment
There was a problem hiding this comment.
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:76and:126):apple,clock-ids = <585 431>, fixed712000000for 585 and 0 for 431, thefirmware-0/firmware-1clock-names order firmware 27 asks for. - 712 MHz is tied to this machine's ADT (
clock-frequenciesentry 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.dtsior at8142-dcp-clocks.dtsi) would keep the next T8142 board from copying them a third time. - The rule you describe (clock id low byte ->
clock-frequenciesentry) 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.
|
Merging at |
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/disp0clock-idsand fails to start withoutapple,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'sclock-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).