Skip to content

arm64: dts: apple: t603x/t8122: M3 binding coverage and node cleanup - #1031

Closed
RyanTheTide wants to merge 8 commits into
mainfrom
dt/m3-20261107
Closed

RyanTheTide wants to merge 8 commits into
mainfrom
dt/m3-20261107

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Device-tree and binding cleanup for the M3 generation (T603x, T8122). No new nodes: no M3 board lacks a supported block that a sibling board with the same hardware has.

Bindings

  • Add the M3 SoC compatibles, with the fallbacks the DTs and drivers already use, to 15 bindings (dart, mailbox, dwc3, cluster-cpufreq, spi, display-crossbar, nco, mca, cio-reset, pmp, pmp-report + entries, smc, sart, pcie, nvme-ans; T6031 NVMe gets its third power domain).
  • apple,pmgr-pwrstate: document apple,externally-clocked (the driver already reads it).
  • apple,spmi: require IRQ properties only for interrupt controllers (the polled PMIC bus on T6031/T8122 could never pass).
  • apple,macaudio: add the M3 machines.

DTs

  • T603x: SMC GPIO nodes without reg become gpio / gpio-low (the driver finds them by compatible); T6030 NVMe apple,t6030-nvme-ans3 becomes apple,t6030-nvme-ans2 (nothing matched the old name); sound dai-links get reg.
  • T8122: J504 macaudio compatible order, drop the dead cirrus,ts-inv on J433/J434, dai-link reg, and the sep alias on J504 that J613/J615 already have (SEP node stays disabled).

Checks: dtbs_check 0 new warnings; T603x 1063 -> 197, T8122 479 -> 101. dt_binding_check passes for the 18 touched bindings.

Needs hardware test (no M3 Mac here): keyboard/trackpad (MTP reset GPIOs come from gpio-low) and NVMe should still probe.

The M3 Pro, M3 Max and M3 device trees name their DARTs, mailboxes,
DWC3 controllers, cluster cpufreq blocks, SPI controllers, display
crossbars, NCOs, MCAs, CIO resets, PMPs and PMP reports, SMCs, SARTs,
PCIe controllers and NVMe coprocessors with SoC compatibles that the
bindings do not list, so every one of those nodes fails to validate.
Add them with the fallbacks the device trees already use and the
drivers already match:

- dart: T6030 and T6031 fall back to apple,t8110-dart.
- mailbox: T6031 ASC mailboxes fall back to apple,asc-mailbox-v4; the
  T6030 GPU mailbox joins the GPU mailboxes without a fallback.
- dwc3, spi: T6030, T6031 and T8122 fall back to the T8103 blocks.
- cluster-cpufreq: T6030, T6031 and T8122 fall back to T8112.
- display-crossbar: T6030 and T8122 fall back to T6020.
- nco, mca: T6030, T6031 and T8122 fall back to T8103, as T6020 does.
- cio-reset: T6030, T6031 and T8122 fall back to T6000.
- pmp: T6030, T6031 and T8122 fall back to apple,t6000-pmp-v2; the
  T6030 and T8122 reports and the T6031 report with its T6020
  fallback are added, and their entries fall back to the T6000 entry.
- smc, sart, pcie: T6030 and T6031 join the lists of their T6020
  fallbacks' SoCs.
- nvme-ans: T6030 and T6031 fall back to T8103; T6031 has the second
  PCIe power domain as T6000 and T6020 do.

With them the M3 boards lose over a thousand dtbs_check warnings.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
…ocked

The driver reads apple,externally-clocked and the T6030, T6031 and
T8122 device trees set it on their MCA power states, but the binding
does not list it, so every such node fails to validate. Describe it: an
externally clocked domain only reaches the clock-gated state until its
clock runs, and that state then counts as powered up.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
…ntrollers

The binding requires interrupt-controller, #interrupt-cells and
interrupts on every T6030, T6031 and T8122 SPMI controller. Those SoCs
have several SPMI buses, and only the ones with interrupt-capable
devices behind them are wired as interrupt controllers; the PMIC bus
is polled and has no interrupt, so its node can never satisfy the
binding.

Require #interrupt-cells and interrupts only together with
interrupt-controller, on every SoC.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
Add the M3 iMacs (J433, J434), which use the generic machine
configuration, and the M3 laptops and Mac Studio (J504, J514, J516,
J575, J613, J615), which list the earlier machine whose speaker and
jack layout they share (J314, J316, J375, J413, J415) as a fallback
before apple,macaudio.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
- The SMC GPIO nodes carry unit addresses (the SMC key prefixes) but
  no reg. Name them gpio and gpio-low as the SMC binding and the other
  SoCs do; the drivers find them by compatible.
- The T6030 NVMe coprocessor is apple,t6030-nvme-ans3. Nothing matches
  that name; the driver binds through apple,t8103-nvme-ans2. Call it
  apple,t6030-nvme-ans2 like every other SoC's ANS2.
- Give the macaudio dai-link nodes the reg their unit addresses imply,
  as the binding requires.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
- J504 lists apple,j314-macaudio before its own apple,j504-macaudio.
  Put the machine first; the driver still picks the J314 configuration.
- Drop cirrus,ts-inv from the J433 and J434 CS42L84 jack codecs. It is
  a CS42L42 property that the CS42L84 driver and binding do not have.
- Give the macaudio dai-link nodes the reg their unit addresses imply,
  as the binding requires.
- Give J504 the sep alias that J613 and J615 have, so the loader
  reserves the SEP firmware and passes its manifests on this MacBook
  Pro too. The SEP node stays disabled; the J504 Mesa sensor wiring is
  not described yet.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
# Conflicts:
#	Documentation/devicetree/bindings/mux/apple,display-crossbar.yaml
#	Documentation/devicetree/bindings/power/apple,t8140-pmp-report.yaml
#	Documentation/devicetree/bindings/sound/apple,macaudio.yaml
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

Copy link
Copy Markdown
Contributor

Merged integration/aurora (95e30d5) into this branch as 504dbae. #1141/#1144 moved the J433/J434 jack and sound nodes into t8122-j433-j434.dtsi, so I took the integration board files and ported your cirrus,ts-inv removal and dai-link@1 reg into that include. J504 keeps both aliases (keyboard from integration, sep from here). Locally: all 122 Apple DTBs build, 0 new dtc W=1 warnings (40 gone), 0 new CHECK_DTBS lines (30 gone). Only the M3 boards this PR targets change.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

No blockers.

I checked the parts that could change behaviour:

  • J504 macaudio: sound/soc/apple/macaudio.c has no apple,j504-macaudio entry (only a comment at line 3033), so after the reorder J504 still binds macaudio_j314_cfg. The speaker configuration does not change.
  • SMC GPIO nodes: drivers/mfd/macsmc.c finds them by compatible (MFD_CELL_OF(..., "apple,smc-gpio") and of_get_compatible_child(..., "apple,smc-low-gpio")), so the rename to gpio/gpio-low keeps both GPIO providers.
  • NVMe: nothing matches apple,t6030-nvme-ans3, and the driver binds via the apple,t8103-nvme-ans2 fallback, so the rename cannot change probing.
  • macaudio: adding #address-cells/reg to the dai-links does not change how the driver walks them.

The earlier commits carry an Assisted-by: LLM trailer and a noreply Signed-off-by address. No rewrite is needed for the pushed history; new commits should keep that line in the PR body only.

HW row: J615 (T8122), this DTB on the default command line: the macaudio card registers both dai-links, the jack works, and the SMC GPIO providers probe. An M3 Pro owner (J514s) then checks NVMe probe and that the keyboard/trackpad come up. 0 new kernel errors, 0 failed units.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Still needed before merging: a J615 row on this DTB (macaudio registers both dai-links, the jack works, both SMC GPIO providers probe) and a J514s row showing NVMe and the keyboard/trackpad come up.

@DjDeveloperr DjDeveloperr left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formal pre-PR §1–§6 review at 504dbaea30fe against integration/aurora tip 70a00e583b03: REQUEST_CHANGES.

Code, DT & Supersession Audit

  • Partially superseded: The 4 dt-bindings commits (5143684634, 670551daee, 269f3375ed, ad0c17a275) have already landed on integration/aurora; the live diff touches only the 8 DTS/DTSI files (t6030.dtsi, t6031-die0.dtsi, t6032-j575d.dts, t603x-j514-j516.dtsi, t8122-j433-j434.dtsi, t8122-j504.dts, t8122-j613.dts, t8122-j615.dts), none of which are superseded yet on 70a00e583b03.
  • §1–§3 (DT / driver compatibility): The 8 DTS/DTSI changes are technically sound:
    • drivers/mfd/macsmc.c:61,81 matches SMC GPIOs by compatible (apple,smc-gpio, apple,smc-low-gpio), so renaming gpio@67500000/gpio@67700000 to gpio/gpio-low preserves both providers.
    • drivers/nvme/host/apple.c:3401-3411 binds via apple,t8103-nvme-ans2 and apple,nvme-ans.yaml:21 expects apple,t6030-nvme-ans2.
    • sound/soc/apple/macaudio.c:4453,4473 still falls through to apple,j314-macaudio after putting apple,j504-macaudio first, cirrus,ts-inv is unused by CS42L84, &sep exists in t8122.dtsi:555 (remains disabled), and dai-link@* reg matches apple,macaudio.yaml.
  • §6 (CI & naming): Live CI is green (dt-checks run 42394552563, host-tests run 42394552521), though it last ran on 2026-11-07 (branch is 4,063 commits behind integration/aurora).

Blockers

  1. §4 (Commit attribution / AI trailers & stale history): Six commits (5143684634, 670551daee, 269f3375ed, ad0c17a275, cc25121771, 22c1e2c3ce) carry Assisted-by: LLM commit trailers. Commits must carry human author/committer identity and human Signed-off-by: only, with zero AI commit trailers (keep Assisted-by: in the PR body only). Rebase the remaining DTS changes cleanly onto current integration/aurora so the 4 already-superseded binding commits and 2 merge commits are dropped, CI re-runs against current tip, and update the PR description to reflect the remaining 8-file DTS diff.
  2. §5 (Exact-head hardware & regression evidence): The PR currently has zero hardware boot evidence on any affected M3 board (explicitly noted as needing hardware testing). Because this touches live probed nodes (smc_gpio/smc_gpio_low for MTP resets, T6030 NVMe compatible, macaudio dai-links/jack, and J504 sep alias), please provide exact-head boot + regression evidence (0 SELinux denials, 0 failed units, 0 new kernel errors) on at least one T8122 Mac (e.g., J613/J615: macaudio speakers + headphone jack + SMC GPIOs) and one T603x Mac (e.g., J514S: NVMe probe + keyboard/trackpad via smc_gpio_low + macaudio).

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at 504dbaea: not ready yet

Check Detail
CI at head ok 2 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no requested by DjDeveloperr
Hardware row at head no no line with the head SHA 504dbaea, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:platform

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at 504dbaea30fe

Blockers:

  1. Six commits (51436846, 670551da, 269f3375, ad0c17a2, cc251217, 22c1e2c3) carry an Assisted-by: LLM trailer, and the merge dcd013e7 has no sign-off. Fix: rebase the DTS changes onto main (which drops the merge) without the trailers; the snippet below drops them.
git fetch origin
FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch -f --msg-filter "grep -viE '^(assisted-by:|(co-authored-by|signed-off-by):.*(claude|copilot|codex|gemini|cursor|openai|anthropic)|[^a-z]*generated with)' | git stripspace" origin/main..HEAD
git push --force-with-lease
  1. Missing row: one M3 (J613/J615) boot of the rebased head, with the nodes binding as before.

Checked: no Apple material, DT and bindings only.

Evidence

Read the commit list.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 24, 2026 22:41

Superseded by the review at 504dbae

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Closing: checked line by line against main 569ff3d. The four binding commits (M3 block compatibles, apple,externally-clocked, SPMI IRQ properties, M3 macaudio machines), the J504 sep alias and machine-first compatible, and the cirrus,ts-inv removal are all in main. The t603x node changes are superseded: main uses gpio@67500000/gpio@67700000 and apple,t6030-nvme-ans3, and this branch would revert both. Only the macaudio dai-link@N reg / #address-cells is left, and it is missing on every older board too (t8103, t8112, t6022, t6032, t8122, t8142), so it moves to #2827 as one tree-wide fix rather than an M3-only one. Branch kept (with Dj's 11-23 port); reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (bot) needs hardware test needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants