Skip to content

arm64: dts: apple: M3: port what asahi-wip has and Aurora lacks - #1086

Merged
DjDeveloperr merged 10 commits into
integration/aurorafrom
dts/m3-asahi-sync-v2
Nov 7, 2026
Merged

DjDeveloperr merged 10 commits into
integration/aurorafrom
dts/m3-asahi-sync-v2

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Brings the M3 device trees (t8122*, t603x*) up to date with AsahiLinux asahi-wip at c2e6784b008c (2026-11-05).

Aurora was already ahead on most of it. Most asahi-wip commits since v7.3 are in this tree through earlier imports. To find what was really missing, I flattened every M3 board in both trees with the in-tree dtc (-I dts -O dts -s) and compared them node by node, with and without APPLE_USE_PMP. The branch drops no Aurora node or property. The only Aurora values it changes are the J575D PCIe ports 2 and 3 and their DARTs, which go from the SoC default disabled to okay.

What was ported, per board

Board Added
t8122-j433, j434 (iMac) DCP panel node; boot framebuffer linked to it
t8122-j434 ethernet0 alias
t8122-j504 (MBP 14 M3) DCP panel node; boot framebuffer linked to it
t8122-j613, j615 the new framebuffer link in t8122-jxxx.dtsi covers them too; their own panels and links stay
t6030-j514s, j516s ps_aic always-on; ps_dispext0_cpu and ps_dispext1_cpu at apple,min-state = <4>; boot framebuffer linked to the existing panel
t6031-j514c, j516c ps_aic always-on; apple,min-state = <4> on ps_disp_cpu; four external display processors (DCP, two DARTs, mailbox), all disabled; their clocks and pmgr_dcp; boot framebuffer linked to the existing panel
t6034-j514m, j516m same t6031 die changes: ps_aic always-on, ps_disp_cpu min-state, disabled dcpext nodes
t6032-j575d (Mac Studio) the above on both dies; Wi-Fi, Bluetooth, SD reader, 10 GbE and xHCI PCIe device nodes; ports 2 and 3 and their DARTs enabled; wifi0, bluetooth0, ethernet0 aliases

Commits, oldest first:

  • t603x: Mark AIC power-state as always-on: cherry-pick of 74768a2 (Janne Grunau).
  • t6032-j575d: Add PCIe device nodes: cherry-pick of 4aa4ffb (Janne Grunau). Only conflict was the end of the file, where both trees appended; both blocks kept.
  • t6031: Add "apple,min-state" to ps_disp_cpu: cherry-pick of 3267df9 (Janne Grunau). Upstream moves the property off ps_disp_fe. Here it stays on ps_disp_fe too, see conflicts.
  • t6032-j575d: Pass the country to the Wi-Fi firmware: mine. Adds brcm,ccode-map-trivial to the new J575D Wi-Fi node, as 7d9a9ae did for every other Apple Broadcom Wi-Fi node.
  • t8122-jxxx: add panel nodes: cherry-pick of b22e6f3 (sofus), without the J613 and J615 hunks.
  • t8122-j434: Add the ethernet0 alias: retyped from f12cfb0 (Alyssa Milburn). The rest of that commit is already here.
  • t6030: Keep the dispext CPUs at min-state 4: retyped from the pmgr hunk of e7d06d0 (Ramzi Abdiche). The M1, M2 and T8122 trees already do this. The display gate still raises the floor to active when it enables a dcpext.
  • t603x-j514-j516: Give the boot framebuffer its panel: retyped from 5d53e28 (sofus). Done per board, because the T6034 boards have no panel node here.
  • t6031: Add Display hardware: cherry-pick of d8fd894 (sofus), external display processors only. I added ranges; to each dcpext node, as every DCP node here that sets #address-cells has. Without it, W=1 warns avoid_unnecessary_addr_size.

No new files, so no copyright headers to carry over.

Conflicts (Aurora kept in every case)

The display hardware is where the trees disagree most. Aurora describes it in t8122-dcp.dtsi, t6030-dcp.dtsi and t6031-dcp.dtsi with every node disabled. drivers/soc/apple/display-gate.c enables them after the boot loader marks a handoff. That driver checks the nodes are still disabled and adds properties at runtime. asahi-wip's DCP series (edcef67, e7d06d0, d8fd894, 5d53e28) takes another route: enabled mailboxes and DARTs, /soc/display-subsystem with apple,display-subsystem, 5-cell DART specifiers. Taking it would break the gate, so none of the following is ported:

  • All M3 DCPs: asahi's reg layout, compatible fallbacks (apple,dcp, apple,t8112-dcp), 5-cell iommus and #iommu-cells = <5> on the display DARTs, DART power-domains, DCP resets, apple,iomfb-surfaces, apple,bw-scratch, ports graphs, mbox@ nodes (Aurora names them mailbox@, disabled), clock-disp, the disp0 alias path.
  • T8122 dcpext apple,bw-scratch: Aurora <&pmgr_dcp 0 5 0x910>, asahi <&pmgr_dcp 0 4 0x910>.
  • T6030 dcpext: asahi adds display register ranges, piodma children, two piodma DARTs (iommu@2d1304000, iommu@2d5304000) and clocks. The gate creates the piodma children itself.
  • T6030 clock-disp0: Aurora 712 MHz, asahi 533.33 MHz.
  • T6030 Type-C display crossbars (mux@70304c000, mux@b0304c000, mux@f0304c000): asahi disables them, Aurora leaves them on for its display crossbar driver.
  • T6030 pmp_bw_scratch@3503d0000: only asahi's DCP apple,bw-scratch uses it, and nothing here would, so it's left out.
  • T6034 internal display: asahi describes the DCP, its mailbox and DARTs, the display subsystem, panels and the framebuffer link for J514M and J516M, through the shared die0 file. t6031-dcp.dtsi says on purpose that it is only for T6031 boards because none of it is known to hold on T6034. Not ported. This needs your call.
  • T6032: asahi keeps clock-disp after deleting the internal display nodes. Not ported.

Other conflicts:

  • Panels. J613 apple,max-brightness is 525 here, 500 in asahi. T6030 and T6031 panels use apple,panel-j514 and apple,panel-j516 with 500 here, against apple,panel-j514s, -j516s, -j514c, -j516c with 600 in asahi.
  • AVD. asahi's video-codec@... nodes (8e43283, fdc2018, b9601cb, c46abf5) describe the same block as Aurora's avd@... nodes, with the same compatibles. Theirs start at a piodma region and have seven named interrupts and two DART streams. Adding them would create a second device for the block, and merging the extra interrupts and DART stream into Aurora's nodes would change what avd-drv.c gets on boards where it works. Aurora's nodes already have the larger code and sram sizes from c46abf5.
  • T6030 PMP. asahi has the PMP, its DART, mailbox and report unconditionally. Aurora keeps them under APPLE_USE_PMP (bc4f744) because they block the display gate's overlay. With APPLE_USE_PMP defined, the PMP nodes match.
  • T6031 ps_disp_fe: asahi moved apple,min-state = <4> to ps_disp_cpu. Both now have it.
  • T6030 NVMe: apple,t6030-nvme-ans3 here, apple,t6030-nvme-ans2 in asahi.
  • T6030 ps_sio_cpu: Aurora also depends on ps_uart_p, ps_spi_p and ps_audio_p.
  • T6030 ACIO (cio@...) and RTC: Aurora has more registers, power domains and nvmem cells.
  • M3 Pro and Max MacBook Pro Wi-Fi and Bluetooth. Aurora has pci14e4,4433 and pci14e4,5f71 (BCM4387). asahi has pci14e4,4434 and pci14e4,5f72 (BCM4388) since d3fa2f4. I kept Aurora's per the rule, but I think asahi is right here. Aurora's value dates from an older asahi import (25ac3b0), and Aurora's own 7d9a9ae calls the J514S Wi-Fi a BCM4388. PCI drivers bind by device ID, so nothing changes at runtime, but a follow-up should fix it.

Not ported:

  • t6031-usb-atc.dtsi. asahi moved the T6031 USB and ATC nodes into it and includes it only from the T6031 and T6034 boards. The same nodes, with the same properties, are already in Aurora's t6031-dieX.dtsi, which also gives them to both J575D dies. Splitting them out would add nothing and would drop USB from the J575D.
  • asahi's dt-check-style reformatting commits. They reorder properties and blank lines without changing content.

Left disabled

The T6031 dcpext nodes (dcp@2cac00000, dcp@306c00000, dcp@44ac00000, dcp@44ec00000), their DARTs and mailboxes on every T6031, T6034 and T6032 die. The drivers match them (apple,dcpext in drm/apple, apple,t8110-dart, apple,asc-mailbox-v4), but nothing here can run them yet. The T6031 display gate has no dcpext support. Neither tree has a binding document for apple,t6031-dcpext.

Enabled: the J575D PCIe ports 2 and 3 and DARTs 2 and 3 (pcie-apple and apple-dart are in the tree), the new fixed clocks, and pmgr_dcp. pmgr_dcp has no compatible, so no device is created for it.

Build

  • ./linux-build/build kernel --profile asahi linux-m3-dts-sync -- dtbs passes. All 14 M3 dtbs are rebuilt: t8122-j433, j434, j504, j613, j613-25g83, j615, j615-25g83, t6030-j514s, j516s, t6031-j514c, j516c, t6032-j575d, t6034-j514m, j516m. dtc printed no warnings. That build ran on 597f7ecccb, before I rebased onto e5a1f1d. The rebase changes nothing under arch/arm64/boot/dts, scripts/dtc or include/dt-bindings, and the branch's dts tree is byte-identical to what was built.
  • I also compiled base and branch locally with the in-tree dtc, all default checks on plus the W=1 and W=2 flags, and compared warning messages. No new warnings at the default level or W=1. At W=2 the J575D gets four node_name_chars_strict warnings for clock-dispextN_die1. I kept asahi's names because the t600x and t602x die1 clocks use the same ones.
  • tools/asahi/t6030-pmp-dt-tests.py passes for J514S and J516S, default and static. I couldn't run tools/asahi/atc-usb3-tests.py on macOS because it forces ASan leak detection. Its only device-tree input is the atcphy compatibles in t6031-dieX.dtsi, which this branch leaves alone.
  • Not boot tested, as requested.

Out of scope

asahi-wip also has three M4 Pro/Max boards this tree lacks: t6040-j773s, t6041-j575c and t6041-j614c. They aren't ported.

🤖 Generated with Claude Code

jannau and others added 10 commits November 7, 2026 05:28
The interrupt-controller on Apple silicon systems is initialized early
via IRQCHIP_DECLARE. The early initialization does not include the usual
automatic handling of simple "power-domains" and leaves its power-domain
unused. This may result in genpd powering this critical power-domain
down resulting in a mostly dead system after "PM: genpd: Disabling
unused power domains".

Signed-off-by: Janne Grunau <[email protected]>
(cherry picked from commit 74768a2)
Signed-off-by: Diljit Singh <[email protected]>
Add WiFi, Bluetooth, SD-Card reader, ethernet NIC and USB xHCI device
nodes for M3 Ultra Mac Studio.
The bootloader will fill MAC addresses for the network devices, add
Wifi and Bluetooth calibration data and set "apple,antenna-sku".

Signed-off-by: Janne Grunau <[email protected]>
(cherry picked from commit 4aa4ffb)
Signed-off-by: Diljit Singh <[email protected]>
The power-state ps_disp_cpu must not be power-gate as the DCP
coprocessor will not wake up end probably needs to be reinitialized. It
is unknown how coprocessors started by Apple's bootloader are booted.
The power-state dependencies for the display differ on t6031 from all
other M1/M2/M3 SoCs. This likely contributed to adding the
"apple,min-state" to the wrong power-state. Add a comment explaing this
differences.

Signed-off-by: Janne Grunau <[email protected]>
(cherry picked from commit 3267df9)
[Diljit Singh: keep "apple,min-state" on ps_disp_fe as well, which this
 tree already sets; only add it to ps_disp_cpu and the comment]
Signed-off-by: Diljit Singh <[email protected]>
The J575D Wi-Fi node is new in this tree. Mark it with
brcm,ccode-map-trivial, as commit 7d9a9ae ("arm64: dts: apple: pass
the country to the Wi-Fi firmware") did for the other Apple Broadcom
Wi-Fi nodes, so brcmfmac passes the regulatory domain to the firmware.

Signed-off-by: Diljit Singh <[email protected]>
Signed-off-by: sofus <[email protected]>
Signed-off-by: Janne Grunau <[email protected]>
(cherry picked from commit b22e6f3)
[Diljit Singh: drop the J613 and J615 hunks; this tree already has
 their panel nodes and boot framebuffer links]
Signed-off-by: Diljit Singh <[email protected]>
The J434 describes its Ethernet controller, whose MAC address the loader
fills in, but unlike the J433 it has no ethernet0 alias. Add it.

Ported from asahi-wip commit f12cfb0 ("arm64: dts: apple: t8122: Add
PCIe device nodes") by Alyssa Milburn; the rest of that commit is
already in this tree.

Signed-off-by: Diljit Singh <[email protected]>
Like ps_disp_cpu, the power states of the two external display
coprocessors should not be power-gated: a power-gated DCP coprocessor
does not wake up again without being reinitialized. The M1, M2 and
T8122 trees already floor their dispext CPU power states at 4.

The display gate still raises these states to active before it enables
an external display processor.

Ported from asahi-wip commit e7d06d0 ("arm64: dts: apple: Describe T6030
display hardware") by Ramzi Abdiche; that commit's display nodes are
not taken, as this tree describes the T6030 display its own way.

Signed-off-by: Diljit Singh <[email protected]>
With the panel's physical size, simpledrm reports the real DPI of the
internal display instead of assuming 96, so early users pick the same
HiDPI scale as the display driver does later. The J613 and J615 boot
framebuffers already link their panels this way.

Label the existing J514 and J516 panel nodes on the T6030 and T6031
boards and link each boot framebuffer to its panel.
post-init-providers keeps the framebuffer from waiting for the panel,
which has no driver of its own.

The T6034 boards have no DCP or panel node in this tree, so they are
left as they are.

Ported from asahi-wip commit 5d53e28 ("arm64: dts: apple: t603x-j514-j516:
Add panel nodes and use DCP") by sofus; only the framebuffer link is
taken, as this tree already has its own panel nodes.

Signed-off-by: Diljit Singh <[email protected]>
Add device nodes for display hardware and prepare for using dcp on the
integrated display. Since dipslay output is not supported on the M3
Ultra remove the "display-subsystem" node as well.

Signed-off-by: sofus <[email protected]>
Signed-off-by: Janne Grunau <[email protected]>
(cherry picked from commit d8fd894)
[Diljit Singh: take only the four external display processors on each
 die (DCP, DARTs and mailbox, all disabled), their clocks and the
 pmgr_dcp node; this tree describes the internal display in
 t6031-dcp.dtsi, so its nodes, the display subsystem and the T6032
 deletions are left out. Add "ranges;" to each dcpext node, as every
 DCP node here that sets #address-cells has.]
Signed-off-by: Diljit Singh <[email protected]>
The M3 Pro and Max MacBook Pros carry a BCM4388, as the T6032 and every
M4 board here already say. Use its Wi-Fi (14e4:4434) and Bluetooth
(14e4:5f72) IDs instead of the BCM4387 ones. PCI binds by ID and the node
by its address, so nothing changes at runtime.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr
DjDeveloperr merged commit 43c790f into integration/aurora Nov 7, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the dts/m3-asahi-sync-v2 branch November 7, 2026 12:07
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.

3 participants