Skip to content

dt-bindings: Apple M4 Pro/Max (T6040/T6041) compatibles - #372

Merged
RyanTheTide merged 13 commits into
aurora-silicon:integration/aurorafrom
jgoyvaerts:m4pro/dt-bindings-t604x
Oct 23, 2026
Merged

RyanTheTide merged 13 commits into
aurora-silicon:integration/aurorafrom
jgoyvaerts:m4pro/dt-bindings-t604x

Conversation

@jgoyvaerts

Copy link
Copy Markdown
Contributor

Binding-only compatibles for the M4 Pro/Max, so that the driver PRs and a later t604x device tree validate.

  • Yureka Lilian's nine-patch t604x binding series (wdt, aic2, cpus, pmgr-pwrstate, pmgr, s5l-fpwm, pinctrl, i2c, the
    board compatibles), carried unchanged with her authorship, date, message and Acked-by from Krzysztof Kozlowski; I added
    my Signed-off-by as the forwarder.
  • Ours: apple,t6041-asc-mailbox, apple,t6041-pcie (a T8122-style port with the t6020 fallback), and the "abbey"
    SPMI PMIC for apple,spmi-nvmem.

Naming: the SoC blocks use apple,t6041-*, after the T6041 (M4 Max) die the M4 Pro is cut from. Apple's device tree on an M4 Pro names the SoC arm-io,t6041, and Yureka Lilian's acked t604x bindings already use t6041 for the blocks. apple,t6040 stays the machine compatible.

Hardware tested on: Apple MacBook Pro (16-inch, M4 Pro, 2024), J616s / T6040, macOS 26.x firmware, booted by our own loader with our private T6040 device tree.

How tested: These are the compatibles our J616s device tree uses: the board compatible, and the mailbox, PCIe and PMIC NVMEM nodes, all running daily. Yureka's series is what her t604x trees use.

Not tested / limits: Binding-only, so there is nothing to run. Yureka's apple.yaml hunk would land, by its context, inside the aurora,minimal-boot description; it was placed after the M3 Ultra block, with her lines unchanged. #366 touches four of the same schemas, but the two merge cleanly.

Credits: Yureka Lilian (t604x binding series, Acked-by: Krzysztof Kozlowski).

Base: integration/aurora (44d5afc). Built and checked there (aurora's defconfig, W=1 on every touched object, checkpatch --strict, dt_binding_check with dtschema 2026.9). Hardware testing was done on our daily tree, which is based on aurora-wip (Linux 7.1.12) and runs this code. Merges cleanly with #366 and #367.

🤖 Generated with Claude Code

https://claude.ai/code/session_01K4TC3f2CpzFxhnEziL9wcg

yuyuyureka and others added 12 commits October 14, 2026 08:56
The watchdog on the Apple t604x (M4 Pro/Max) SoCs is compatible with the
M1-M4 SoCs. Add "apple,t6041-wdt" as SoC specific compatible.

Acked-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Yureka Lilian <[email protected]>
Signed-off-by: Jonathan Goyvaerts <[email protected]>
The Apple t604x (M4 Pro/Max) SoCs use an AIC3 as interrupt controller,
same as the previous M3-M4 SoCs.

Acked-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Yureka Lilian <[email protected]>
Signed-off-by: Jonathan Goyvaerts <[email protected]>
Add "apple,brava-e" and "apple,brava-p" compatibles for the M4 Pro/Max
efficiency and performance CPU cores respectively. As with the base M4
cores, there is no longer a generational codename, so we assign the core
compatible based on SoC codename ("Brava") plus core type (E-Core /
P-Core).

Acked-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Yureka Lilian <[email protected]>
Signed-off-by: Jonathan Goyvaerts <[email protected]>
The device power state management of the PMGR blocks on the Apple
silicon M4 Pro/Max SoCs (t604x) is compatible with the M1-M4 SoCs.
Add "apple,t6041-pmgr-pwrstate" as M4 Pro/Max specific compatible.

Acked-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Yureka Lilian <[email protected]>
Signed-off-by: Jonathan Goyvaerts <[email protected]>
The PMGR blocks on the Apple Silicon M4 Pro/Max SoCs (t604x) are
compatible with the previous M1-M4 SoCs. Add "apple,t6041-pmgr" as M4
Pro/Max specific compatible.

Acked-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Yureka Lilian <[email protected]>
Signed-off-by: Jonathan Goyvaerts <[email protected]>
The PWM controller on Apple Silicon M4 Pro/Max SoCs is compatible with
the t8103 (M1) one. Add "apple,t6041-fpwm"as per-SoC compatibles for M4
Pro/Max.

Acked-by: Uwe Kleine-König <[email protected]>
Acked-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Yureka Lilian <[email protected]>
Signed-off-by: Jonathan Goyvaerts <[email protected]>
The pin controller on the Apple Silicon T604x (M4 Pro/Max) SoCs is
compatible with t8103. Add "apple,t6041-pinctrl" as SoC specific
compatible under "apple,t8103-pinctrl".

Acked-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Yureka Lilian <[email protected]>
Signed-off-by: Jonathan Goyvaerts <[email protected]>
The i2c block on the Apple Silicon T604x (M4 Pro/Max) SoCs is compatible
with t8103. Add "apple,t6041-i2c" as SoC specific compatible under
"apple,t8103-i2c".

Acked-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Yureka Lilian <[email protected]>
Signed-off-by: Jonathan Goyvaerts <[email protected]>
These devices were offered with M4 Pro/Max SoCs.
Add the corresponding compatibles:

- MacBook Pro (14-inch, M4 Pro, 2024)
- MacBook Pro (14-inch, M4 Max, 2024)
- MacBook Pro (16-inch, M4 Pro, 2024)
- MacBook Pro (16-inch, M4 Max, 2024)
- Mac mini (M4 Pro, 2024)
- Mac Studio (M4 Max, 2025)

No iMac with M4 Pro/Max SoC was released, and the Mac Pro was not
updated in this generation.

Acked-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Yureka Lilian <[email protected]>
Signed-off-by: Jonathan Goyvaerts <[email protected]>
The T6040 (M4 Pro) coprocessor mailboxes are v4 ASC mailboxes.

Signed-off-by: Jonathan Goyvaerts <[email protected]>
Assisted-by: LLM
The PCIe controller of the M4 Pro/Max SoCs (T6040/T6041) has the T602x
layout, with a PHY register range per root port, and works with the
"apple,t6020-pcie" driver data. Add "apple,t6041-pcie" as an SoC
specific compatible with that fallback, like T8122.

Signed-off-by: Jonathan Goyvaerts <[email protected]>
Assisted-by: LLM
The M4 Pro and M4 Max SoCs (T6040/T6041) have an "abbey" PMU on the
primary SPMI bus (Apple's device tree: compatible "pmu,spmi",
"pmu,abbey", SID 0xe). Like the other Apple PMUs it holds the RTC
offset and the boot scratchpad registers that the SMC RTC and reboot
drivers use as NVMEM cells, so add its compatible.

Signed-off-by: Jonathan Goyvaerts <[email protected]>
Assisted-by: LLM
The DARTs of the T6040 (M4 Pro) are T8110-style DARTs, like those of
the T6020 and T8140.

Signed-off-by: Jonathan Goyvaerts <[email protected]>
Assisted-by: LLM
@jgoyvaerts

Copy link
Copy Markdown
Contributor Author

Added dt-bindings: iommu: apple,dart: Add apple,t6041-dart on top: the T6040 (M4 Pro) DARTs are T8110-style, like the T6020 and T8140 ones, and the SoC driver PR for them uses this compatible. One line in apple,dart.yaml; nothing else in this PR changed.

@RyanTheTide
RyanTheTide merged commit 573f98b into aurora-silicon:integration/aurora Oct 23, 2026
RyanTheTide pushed a commit that referenced this pull request Oct 23, 2026
Add the Apple M4 Pro (T6040) and the MacBook Pro (16-inch, M4 Pro,
2024), J616s, in the layout of the T8140 and T6030 trees: t6040.dtsi
with the SoC blocks disabled, t6040-pmgr.dtsi with their power domains,
and t6040-j616s.dts enabling what the board uses. SoC blocks use the
apple,t6041-* compatibles; apple,t6040 is the machine compatible.

This first part is the base SoC:
- the 14 CPUs in three clusters (MPIDR Aff1, also the L2 groups) with
  their caches, cpu-map and capacities. capacity-dmips-mhz comes from
  pinned single-core runs at the lowest p-state (E 1018 MHz, P
  1257 MHz): E/P is 0.652 per MHz, so E 668 and P 1024;
- the AIC, the timer and the 24 MHz reference clock;
- the PMGR blocks and the power domains of these devices;
- the AP and always-on pin controllers. The always-on bank's
  interrupts stay with the AOP firmware, which owns some of its pins;
- the I2C controllers (the J616s wires i2c1/2/3/4/6/8; i2c6 carries
  the Type-C retimers);
- the watchdog;
- the PMIC's NVMEM cells on SPMI and the SMC with its GPIO, reboot and
  RTC functions. The RTC offset is the PMU's info-clock_offset, as on
  T6030;
- the keyboard backlight PWM.

The nodes sit at the root rather than under a simple-bus: the boot
loader edits several of them by path. The blocks known to need
non-posted writes carry nonposted-mmio themselves. The loader fills in
/memory, the framebuffer and the CPU release addresses.

Values are from the J616s Apple Device Tree (macOS 26.6.2). The
apple,t6041-* naming follows Yureka Lilian's acked T604x bindings,
merged with commit 573f98b ("Merge pull request #372 from
jgoyvaerts/m4pro/dt-bindings-t604x"). The RTC offset cell location
follows CJ Damsleth's T6040 device tree, which read the same ADT
property on a J614s.

Signed-off-by: Jonathan Goyvaerts <[email protected]>
Assisted-by: LLM
@jgoyvaerts
jgoyvaerts deleted the m4pro/dt-bindings-t604x branch October 24, 2026 16:14
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