Skip to content

arm64: dts: apple: Fill the gaps in the M1-M3 device trees - #1141

Merged
DjDeveloperr merged 7 commits into
integration/aurorafrom
dts/pre-m5-completeness
Nov 7, 2026
Merged

DjDeveloperr merged 7 commits into
integration/aurorafrom
dts/pre-m5-completeness

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

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

  • t6034 J514m/J516m internal display. These boards had no DCP, display DARTs, mailbox, display subsystem or panel node. The T6031 boards on the same die have them, and so does asahi-wip. The commit includes t6031-dcp.dtsi and 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 on apple,t6031 machines.
  • SoC die keys on seven boards. The M3 GPU thermal limit needs the SMC die zone on every T8122 board, and on the J514S/J516S. J433, J434, J504, J615, J514S, J514M and J516M had no 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.
  • keyboard alias on the M3 laptops. The boot loader fills hid-country-code through 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.
  • J615 external display. The J615 gets the J613's dcpext Type-C routes. Both Airs have the same two USB-C ports on ATC0/ATC1 via 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.
  • J433/J434 AOP. Enables the mics and ambient light sensor, as on the M1 iMacs and every other T8122 Mac. Not yet tested on an M3 iMac.
  • Bindings for the T6031 display. apple,dcp.yaml and apple,display-subsystem.yaml gain apple,t6031-dcp and apple,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 eighth reg range (disp-5), and the T6031 DCP joins the T8132 ones in needing no apple,bw-scratch. The schema's first allOf entry had if/else with no then, which dt-doc-validate rejects; it is now the equivalent if: not: ... then:.
  • J456/J457 fans. These were the only fan-cooled M1/M2 Macs without fan hwmon sensors. The 4-port J456 has two fans and the 2-port J457 one; the counts come from the product spec, not an ADT.

Not fixed here

  • No ADT for the values. M1/M3 iMac speakers; J504 HDMI and USB-C DisplayPort; J575d Type-C port controllers and ATC/USB4 aliases. J575d's dwc3/ATC/USB4 nodes are enabled but have no connectors.
  • Driver lacks the SoC. M3 CPU PMU (no everest/sawtooth support), M3 ANE/AVE/JPEG, the T603x SEP (no platform profile), the T6032 GPU (refused at probe).
  • Disabled on purpose and unchanged. Ultra ANE (untested, a53461c); M1 Ultra USB-C DisplayPort (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

  • Build. All 47 M1-M4 dtbs build with the tree's own scripts/dtc, and ./linux-build/build kernel --profile asahi -- Image modules dtbs passes in the build VM, and its 47 in-scope dtbs are byte-identical to the local builds.
  • dtc warnings. No warnings at the default level. At W=1 each T6034 board gains the disp0_piodma alias_paths warning, which every board with an internal DCP already has (for example t6031-j514c); W=2 adds the matching property_name_chars_strict warning. No other new warnings.
  • dt-checks. CHECK_DTBS reported the T6031 DCP and display subsystem as matching no schema on the J514C/J516C, and now on the J514M/J516M; the binding commit removes those 8 lines. I ran dt-schema 2026.9 locally: no new warning on any of the 47 M1-M4 boards, and both bindings pass dt-doc-validate, the kernel's yamllint config and their examples. The build VM has no dt-schema, so this was not make dt_binding_check itself. Two new lines remain, t6034-j514m.dtb: aliases: ... and the same for j516m. They are the existing alias warning with disp0_piodma added, 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_piodma is new on these two boards, so it would still show as one new entry.
  • Hardware. None of these changes has run on a Mac yet.

🤖 Generated with Claude Code

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
DjDeveloperr merged commit 206a460 into integration/aurora Nov 7, 2026
1 of 2 checks passed
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]>
DjDeveloperr added a commit that referenced this pull request Nov 7, 2026
…check-every-adt-devi

Brings in #1142, #1141, #1144, #1094, #1151, #1140, #1161, #1097 and
#1163. No conflicts. The four inventories still resolve against the
merged DTBs: J316s, J616s, J413 and J700 keep their MISSING counts with
no broken paths.

Signed-off-by: Diljit Singh <[email protected]>
@RyanTheTide
RyanTheTide deleted the dts/pre-m5-completeness branch November 16, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant