Repository navigation
arm64: dts: apple: M3: port what asahi-wip has and Aurora lacks - #1086
Merged
Merged
Conversation
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]>
This was referenced Nov 7, 2026
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.
Brings the M3 device trees (
t8122*,t603x*) up to date with AsahiLinuxasahi-wipat 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 withoutAPPLE_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 defaultdisabledtookay.What was ported, per board
ethernet0aliast8122-jxxx.dtsicovers them too; their own panels and links stayps_aicalways-on;ps_dispext0_cpuandps_dispext1_cpuatapple,min-state = <4>; boot framebuffer linked to the existing panelps_aicalways-on;apple,min-state = <4>onps_disp_cpu; four external display processors (DCP, two DARTs, mailbox), all disabled; their clocks andpmgr_dcp; boot framebuffer linked to the existing panelps_aicalways-on,ps_disp_cpumin-state, disabled dcpext nodeswifi0,bluetooth0,ethernet0aliasesCommits, 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 offps_disp_fe. Here it stays onps_disp_fetoo, see conflicts.t6032-j575d: Pass the country to the Wi-Fi firmware: mine. Addsbrcm,ccode-map-trivialto 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 addedranges;to each dcpext node, as every DCP node here that sets#address-cellshas. Without it, W=1 warnsavoid_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.dtsiandt6031-dcp.dtsiwith every node disabled.drivers/soc/apple/display-gate.cenables 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-subsystemwithapple,display-subsystem, 5-cell DART specifiers. Taking it would break the gate, so none of the following is ported:reglayout,compatiblefallbacks (apple,dcp,apple,t8112-dcp), 5-celliommusand#iommu-cells = <5>on the display DARTs, DARTpower-domains, DCPresets,apple,iomfb-surfaces,apple,bw-scratch,portsgraphs,mbox@nodes (Aurora names themmailbox@, disabled),clock-disp, thedisp0alias path.apple,bw-scratch: Aurora<&pmgr_dcp 0 5 0x910>, asahi<&pmgr_dcp 0 4 0x910>.piodmachildren, two piodma DARTs (iommu@2d1304000,iommu@2d5304000) and clocks. The gate creates thepiodmachildren itself.clock-disp0: Aurora 712 MHz, asahi 533.33 MHz.mux@70304c000,mux@b0304c000,mux@f0304c000): asahi disables them, Aurora leaves them on for its display crossbar driver.pmp_bw_scratch@3503d0000: only asahi's DCPapple,bw-scratchuses it, and nothing here would, so it's left out.t6031-dcp.dtsisays 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.clock-dispafter deleting the internal display nodes. Not ported.Other conflicts:
apple,max-brightnessis 525 here, 500 in asahi. T6030 and T6031 panels useapple,panel-j514andapple,panel-j516with 500 here, againstapple,panel-j514s,-j516s,-j514c,-j516cwith 600 in asahi.video-codec@...nodes (8e43283, fdc2018, b9601cb, c46abf5) describe the same block as Aurora'savd@...nodes, with the same compatibles. Theirs start at apiodmaregion 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 whatavd-drv.cgets on boards where it works. Aurora's nodes already have the largercodeandsramsizes from c46abf5.APPLE_USE_PMP(bc4f744) because they block the display gate's overlay. WithAPPLE_USE_PMPdefined, the PMP nodes match.ps_disp_fe: asahi movedapple,min-state = <4>tops_disp_cpu. Both now have it.apple,t6030-nvme-ans3here,apple,t6030-nvme-ans2in asahi.ps_sio_cpu: Aurora also depends onps_uart_p,ps_spi_pandps_audio_p.cio@...) and RTC: Aurora has more registers, power domains and nvmem cells.pci14e4,4433andpci14e4,5f71(BCM4387). asahi haspci14e4,4434andpci14e4,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'st6031-dieX.dtsi, which also gives them to both J575D dies. Splitting them out would add nothing and would drop USB from the J575D.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,dcpextin 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 forapple,t6031-dcpext.Enabled: the J575D PCIe ports 2 and 3 and DARTs 2 and 3 (
pcie-appleandapple-dartare in the tree), the new fixed clocks, andpmgr_dcp.pmgr_dcphas no compatible, so no device is created for it.Build
./linux-build/build kernel --profile asahi linux-m3-dts-sync -- dtbspasses. 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 underarch/arm64/boot/dts,scripts/dtcorinclude/dt-bindings, and the branch's dts tree is byte-identical to what was built.node_name_chars_strictwarnings forclock-dispextN_die1. I kept asahi's names because the t600x and t602x die1 clocks use the same ones.tools/asahi/t6030-pmp-dt-tests.pypasses for J514S and J516S, default and static. I couldn't runtools/asahi/atc-usb3-tests.pyon macOS because it forces ASan leak detection. Its only device-tree input is the atcphy compatibles int6031-dieX.dtsi, which this branch leaves alone.Out of scope
asahi-wip also has three M4 Pro/Max boards this tree lacks:
t6040-j773s,t6041-j575candt6041-j614c. They aren't ported.🤖 Generated with Claude Code