Skip to content

arm64: dts: apple: t6040: complete the ANE DART description from the ADT - #638

Closed
RyanTheTide wants to merge 2 commits into
aurora-wipfrom
ane/t6041-dart-window
Closed

RyanTheTide wants to merge 2 commits into
aurora-wipfrom
ane/t6041-dart-window

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Two DT facts from the J616s ADT (26.6.2) that the T6040 ANE description lacked:

  • dart-ane0 translates from vm-base 0x100_0000_0000 for 0x300_0000_0000 bytes, and iBoot preloads the ANE firmware at DVA 0x100_0000_0000 (TEXT, 0xc0000) and 0x100_000c_0000 (DATA, 0x2ac000). The three ANE DARTs get apple,dma-range = <0x100 0x0 0x300 0x0>, as the T8140 ANE DARTs already have.
  • The ANE has a second IOMMU parent, mapper-ane0-mpm on stream 11. The ANE node now lists stream 11 of each DART after stream 0, and the binding allows six iommus entries on the T6041 only (three everywhere else).

Everything stays disabled: there is no H16 firmware backend yet (Daybreak task t-3451 is collecting the protocol). This lands the description so the first H16 driver doesn't also have to fix the DT.

Left out on purpose, because the ADT alone doesn't say what they are: the other six ANE reg windows (0x502280000 and 0x5022a0000 look like the T6021 pmgr and set windows, but the split differs) and the power domains beyond ane_cpu. They come with the driver.

Testing

  • dt_binding_check DT_SCHEMA_FILES=npu/apple,ane.yaml passes.
  • CHECK_DTBS=y W=1 for t6040-j616s, t8140-j700 and t8112-j413: output identical to aurora-wip ebcf9cb (no new warnings).
  • No runtime change while the nodes are disabled. Read-only check after a DTB with this lands on the J616s: xxd /proc/device-tree/ane@484000000/iommus shows six entries, tr -d '\0' < /proc/device-tree/ane@484000000/status still says disabled.

🤖 Generated with Claude Code

The T6041 ADT gives the ANE two IOMMU parents on its DART: stream 0 for
the engine and stream 11 for its MPM. Allow the three DARTs' stream 11
after their stream 0 on the T6041 and keep three entries everywhere else.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
The ADT's dart-ane0 translates from vm-base 0x100_0000_0000 for
0x300_0000_0000 bytes, and iBoot preloads the ANE firmware at DVA
0x100_0000_0000 and 0x100_000c_0000, so the DARTs need that window as on
the T8140. The ANE also has a second IOMMU parent, mapper-ane0-mpm on
stream 11.

Give the three ANE DARTs apple,dma-range and the ANE stream 11 on each.
All of these nodes stay disabled until there is an H16 firmware backend,
so nothing changes at runtime.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Both commits landed unchanged in #669 (merged into aurora-wip), so this one is superseded.

@RyanTheTide
RyanTheTide deleted the ane/t6041-dart-window branch October 31, 2026 04:58
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