Repository navigation
arm64: dts: apple: Fill the gaps in the M1-M3 device trees - #1141
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]>
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]>
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.
Gaps found by auditing every M1, M2 and M3 Mac device tree in this tree. I compared each board with its siblings on the same SoC, with asahi-wip, and with the one M1 ADT available (GravityLinux adt-collection
27.0.1/t8103-j313.txt). Every value comes from a sibling with the same SoC or from asahi-wip, and the commits say where a value is a guess. I enabled nothing whose driver is missing from this tree.Changes
t6031-dcp.dtsiand adds the J514/J516 panels. The boot framebuffer now gets its panel size, so simpledrm stops assuming 96 dpi. Every display node stays disabled, because the display gate only acts onapple,t6031machines.apple,soc-die-keys. Each now gets the list its SoC already uses: J613's for T8122, J516S's for T6030, and the T6031 list for the T6034 die. macsmc-hwmon skips keys the firmware lacks.keyboardalias on the M3 laptops. The boot loader fillshid-country-codethrough this alias, and the M2 and M4 MacBooks have it. Without it, every M3 keyboard reported country 0 and hid-apple never applied its ISO swap. Added for the six J514/J516 boards and for J504, J613 and J615.t8122-usbpd-spmi.dtsi, and the crossbar state and DPTX target are SoC wiring. Everything stays disabled until the display gate enables it, as on the J613. Not yet tested on a J615.apple,dcp.yamlandapple,display-subsystem.yamlgainapple,t6031-dcpandapple,t6031-display-subsystem. These are single compatibles, as the driver matches them with no fallback, like the T8132 ones. The DCP schema allows the T6031's eighthregrange (disp-5), and the T6031 DCP joins the T8132 ones in needing noapple,bw-scratch. The schema's firstallOfentry hadif/elsewith nothen, whichdt-doc-validaterejects; it is now the equivalentif: not: ... then:.Not fixed here
APPLE_T600X_NON_ULTRA); T6000/T8112 AVE (lifecycle-only driver); and everything the boot loader, the display gate or the SEP driver enables at boot.Testing
scripts/dtc, and./linux-build/build kernel --profile asahi -- Image modules dtbspasses in the build VM, and its 47 in-scope dtbs are byte-identical to the local builds.disp0_piodmaalias_paths warning, which every board with an internal DCP already has (for example t6031-j514c); W=2 adds the matchingproperty_name_chars_strictwarning. No other new warnings.dt-doc-validate, the kernel's yamllint config and their examples. The build VM has no dt-schema, so this was notmake dt_binding_checkitself. Two new lines remain,t6034-j514m.dtb: aliases: ...and the same for j516m. They are the existing alias warning withdisp0_piodmaadded, the same alias the J514C/J516C already carry, which the boot loader and DCP driver look up by that name. Splitting the comparison per alias would not help:disp0_piodmais new on these two boards, so it would still show as one new entry.🤖 Generated with Claude Code