Repository navigation
arm64: dts: apple: Factor the M3 trees and trim their comments (no dtb change) - #1144
Merged
Merged
Conversation
The 14-core M3 Max is the T6031 die with fewer cores enabled, and its J514m and J516m MacBook Pros share the J514/J516 chassis and panels. Unlike the T6031 boards they had no DCP, display DARTs, mailbox, display subsystem or panel node, so simpledrm assumed 96 dpi for their boot framebuffer. asahi-wip describes the display on T6034 too. Include t6031-dcp.dtsi in both boards, add the J514/J516 panel nodes with the values the T6030 and T6031 boards use, and link the boot framebuffer to its panel as they do. Every display node stays disabled: the display gate only acts on apple,t6031 machines. Signed-off-by: Diljit Singh <[email protected]>
The M3 GPU thermal limit needs the SMC die temperature zone, which macsmc-hwmon builds from apple,soc-die-keys: on every T8122 board, and together with the PMP hotspot on the J514S and J516S. Only the J613, J516S, J514C and J516C described the keys, so the J433, J434, J504, J615, J514S, J514M and J516M had no die zone. The keys are the SoC's, so give each board the list its SoC already has: - T8122: move the J613 list and its thermal pressure key to t8122-jxxx.dtsi, which every T8122 board includes; - J514S: the J516S list (T6030); - J514M, J516M: the T6031 list, the same die. Keys the firmware lacks are skipped, and a missing pressure key is ignored with a warning, so a key that is absent on one of these boards costs nothing. The J613 output is unchanged. Signed-off-by: Diljit Singh <[email protected]>
The boot loader finds the internal keyboard through the "keyboard" alias and fills in its hid-country-code and apple,keyboard-layout-id from the ADT; the M2 and M4 MacBooks have the alias. The M3 MacBook Air and Pro boards had the keyboard node but no alias, so every M3 keyboard reported country code 0 and hid-apple never applied its ISO key swap. Add the alias to t603x-j514-j516.dtsi for the six J514 and J516 boards, and to the J504, J613 and J615. Signed-off-by: Diljit Singh <[email protected]>
The J613 got Type-C display routes for dcpext in 2e05454 ("arm64: dts: apple: t8122-j613: Wire dcpext to both USB-C ports"); the J615, the 15-inch MacBook Air on the same SoC, had none, so it had no external display. The routes depend only on SoC wiring that both Airs share: t8122-usbpd-spmi.dtsi connects the left-back port to ATC0 and the left-front port to ATC1 on both, dcpext sits on display crossbar ufp1 port 0 (state 2) of either ATC, and its DPTX target is the ATC index. Give the J615 the J613's dcpext alias, routes and connector endpoints. As on the J613, dcpext, its routes, DARTs, mailbox and both crossbars stay disabled; the display gate enables them only after the boot loader has marked the dcpext firmware ready and the internal display was handed over. Not yet tested on a J615. Signed-off-by: Diljit Singh <[email protected]>
The M3 iMacs have microphones and an ambient light sensor behind the AOP, as the M1 iMacs (J456, J457) and every other T8122 Mac do, but their device trees left the AOP, its mailbox, DART and ADMAC disabled, so neither was available. Enable them and name the chassis for the AOP audio card, as on the M1 iMacs. The AOP and its services are the SoC's, so nothing here is board-specific beyond the chassis name; not yet tested on an M3 iMac. Signed-off-by: Diljit Singh <[email protected]>
The M1 iMacs are the only fan-cooled M1 and M2 Macs without fan hwmon sensors: the Mac minis include hwmon-mini.dtsi, the MacBook Pros and Mac Studios hwmon-fan.dtsi or hwmon-fan-dual.dtsi. The 4-port J456 has two fans and the 2-port J457 one; the counts are from the product spec, not an ADT. The F0/F1 keys are the same on every Apple silicon Mac in this tree, and macsmc-hwmon skips a fan whose keys the firmware lacks, so a wrong count only hides or drops a channel. Signed-off-by: Diljit Singh <[email protected]>
apple,soc-die-keys lists SMC keys of the SoC, not of the board, but it was repeated in each board file: the same T6030 list in the J514S and J516S, the same T6031 list in the J514C, J516C, J514M and J516M, and the T8122 list in t8122-jxxx.dtsi beside the SoC's own CPU temperature channels. Move each list to its SoC: t8122.dtsi gets it in smc_hwmon next to those channels, t6030.dtsi and t6031.dtsi as an override at the end. t6031.dtsi rather than t6031-die0.dtsi, which the T6032 shares. The T6034 boards include t6031.dtsi, so they keep their list. No change in any dtb. Signed-off-by: Diljit Singh <[email protected]>
The J613 and J615 were two full board files that differed only in the panel, the Wi-Fi/BT board type, the speakers and their sound card, the AOP chassis name, the firmware names and the J613's thermal zones. The keyboard backlight, AOP, jack codec, MTP, camera, Touch ID, hwmon and the dcpext Type-C routes were copied in both. Move the shared parts to t8122-j613-j615.dtsi, as t600x-j314-j316.dtsi does for the M1 Pro/Max MacBook Pros, and label the MTP multi-touch node mtp_mt so the boards set its firmware the way the J514/J516 do. Drop the boards' framebuffer panel links: t8122-jxxx.dtsi already sets the same ones. No change in any dtb other than property order; dtc -s output of every board is identical. Signed-off-by: Diljit Singh <[email protected]>
The two M3 iMacs differ only in the model, the panel compatible, the Wi-Fi/BT board type, the AOP chassis name, the sound card name and the J434's second PCIe port. Everything else (Ethernet, AOP, the jack codec and its card, the camera and the fans) was copied in both. Move the shared parts to t8122-j433-j434.dtsi and label the sound node so the boards only name the card, as the J514/J516 boards do. No change in any dtb other than property order; dtc -s output of every board is identical. Signed-off-by: Diljit Singh <[email protected]>
Several T8122 comments were paragraphs: measurement procedures, curve fits, boot loader and gate hand-off narratives and crash addresses, up to 27 lines above a node. That history is in the commits that added those nodes. Cut each to the facts a reader of the node needs, in a line or two, and put the text of the 25G83 comments that started on the /* line on lines of their own. Use the mtp_mt label in the 25G83 boards. No change in any dtb. Signed-off-by: Diljit Singh <[email protected]>
The T6030, T6031 and T6034 additions carried the same kind of paragraphs as the T8122 ones: boot loader function names, gate command-line behaviour, register maps and IRQ orders spelt out, and lines past 100 columns. That history is in the commits that added the nodes. Cut each to the facts a reader of the node needs, give t6030-gpu.dtsi the header the other GPU files have, move the T6030 GPU's status to the end of the node and drop two stray blank lines. No change in any dtb other than property order; dtc -s output of every board is identical. Signed-off-by: Diljit Singh <[email protected]>
t8122-jxxx.dtsi said its GPU memory nodes were filled by an opt-in diagnostic exporter; the boot loader fills and enables them when it hands the GPU over, as t8122-gpu.dtsi says. A "To be filled by loader" comment after the last of them described nothing. t603x-j514s-j516s-usb4.dtsi described itself as loader aliases only; most of it is the Type-C display routes and dcpext1's audio. No change in any dtb. Signed-off-by: Diljit Singh <[email protected]>
t6031-dcp.dtsi describes the M3 Max internal display with
"apple,t6031-dcp" and "apple,t6031-display-subsystem", which the
display driver matches on their own, with no generic fallback. Neither
binding listed them, so CHECK_DTBS reported both nodes as matching no
schema on the J514C and J516C, and now on the J514M and J516M.
Add both as single compatibles, like the T8132 ones. The T6031 DCP maps
disp-0 to disp-5 before iop-vbar, eight ranges: allow an eighth reg and
disp-5 in the seventh name. Like the T8132 DCP it finds the PMGR
bandwidth page as its disp-5 range, so it needs no apple,bw-scratch.
The first allOf entry had an if and an else but no then, which
dt-doc-validate rejects ("'then' is a dependency of 'else'"). Write it
as the equivalent "if: not: ... then:".
Signed-off-by: Diljit Singh <[email protected]>
Take the T6031 DCP and display subsystem bindings from PR 1. Signed-off-by: Diljit Singh <[email protected]>
The comment trim in "arm64: dts: apple: t8122: Trim the long comments"
replaced five comments from their second line, leaving each original
"/*" line above the new comment. The preprocessor warns about the
nested "/*" ('/*' within block comment); the dtb was unaffected.
Remove the five leftover lines. No change in any dtb.
Signed-off-by: Diljit Singh <[email protected]>
DjDeveloperr
added a commit
that referenced
this pull request
Nov 7, 2026
Brings in #1141 and #1144, which move the shared J433/J434 jack and sound nodes into t8122-j433-j434.dtsi, and #1097, plus the rest of integration since this branch's base. Take the integration J433 and J434 board files and port this branch's change into the shared include: drop the unused cirrus,ts-inv from the CS42L84 and give dai-link@1 its reg. The J504 aliases keep both the integration keyboard alias and this branch's sep alias. Signed-off-by: Diljit Singh <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Factoring and comment cleanup in the M3 device trees, measured against Asahi's M1/M2 layout. No dtb changes.
This PR is based on the PR 1 branch (
dts/pre-m5-completeness), because it moves blocks that PR 1 adds to the J615, the iMacs and the die-key lists. Merge PR 1 first; this diff then shows only the cleanup. PR 1's later binding commit comes in through a merge commit, so neither branch was force-pushed.Changes
apple,soc-die-keyslists SoC keys, but it was copied into each board file. It moves tot8122.dtsi,t6030.dtsiandt6031.dtsi. The T6031 list goes int6031.dtsirather thant6031-die0.dtsi, which the T6032 shares.t8122-j613-j615.dtsi. The two M3 Airs were full copies of each other apart from the panel, Wi-Fi type, speakers, chassis name, firmware names and the J613's thermal zones. Shared parts now live in one file, ast600x-j314-j316.dtsidoes for the M1 Pro/Max laptops. The boards' framebuffer panel links duplicatedt8122-jxxx.dtsi, so they are gone.t8122-j433-j434.dtsi. The same treatment for the two M3 iMacs. Each board file is now about 50 lines./*line are fixed, and the T6030 GPU'sstatusmoves to the end of its node./*lines int8122.dtsithat cpp warned about ('/*' within block comment). A follow-up commit removes them; the dtbs were unaffected.t8122-jxxx.dtsicredited an opt-in diagnostic exporter with filling the GPU memory nodes; the boot loader does it.t603x-j514s-j516s-usb4.dtsidescribed only its aliases.M4 (
t8132*,t604x*) and M1/M2 files are untouched.Identical output
Checked against PR 1's head for every in-scope dtb, with the tree's own dtc:
dtc -I dtb -O dts -s(8)Only property order changed on the eight sorted-identical boards. dtc warnings are the same as PR 1's at W=0, W=1 and W=2, and CHECK_DTBS output is unchanged as well, since no node or property changes.
./linux-build/build kernel --profile asahi linux-dts-style -- Image modules dtbspasses in the build VM.🤖 Generated with Claude Code