Repository navigation
arm64: dts: apple: t603x/t8122: M3 binding coverage and node cleanup - #1031
RyanTheTide wants to merge 8 commits into
Conversation
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]>
|
Merged integration/aurora (95e30d5) into this branch as 504dbae. #1141/#1144 moved the J433/J434 jack and sound nodes into |
|
No blockers. I checked the parts that could change behaviour:
The earlier commits carry an 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) |
|
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. |
There was a problem hiding this comment.
Formal pre-PR §1–§6 review at 504dbaea30fe against integration/aurora tip 70a00e583b03: REQUEST_CHANGES.
Code, DT & Supersession Audit
- Partially superseded: The 4
dt-bindingscommits (5143684634,670551daee,269f3375ed,ad0c17a275) have already landed onintegration/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 on70a00e583b03. - §1–§3 (DT / driver compatibility): The 8 DTS/DTSI changes are technically sound:
drivers/mfd/macsmc.c:61,81matches SMC GPIOs by compatible (apple,smc-gpio,apple,smc-low-gpio), so renaminggpio@67500000/gpio@67700000togpio/gpio-lowpreserves both providers.drivers/nvme/host/apple.c:3401-3411binds viaapple,t8103-nvme-ans2andapple,nvme-ans.yaml:21expectsapple,t6030-nvme-ans2.sound/soc/apple/macaudio.c:4453,4473still falls through toapple,j314-macaudioafter puttingapple,j504-macaudiofirst,cirrus,ts-invis unused by CS42L84,&sepexists int8122.dtsi:555(remains disabled), anddai-link@*regmatchesapple,macaudio.yaml.
- §6 (CI & naming): Live CI is green (
dt-checksrun42394552563,host-testsrun42394552521), though it last ran on 2026-11-07 (branch is 4,063 commits behindintegration/aurora).
Blockers
- §4 (Commit attribution / AI trailers & stale history): Six commits (
5143684634,670551daee,269f3375ed,ad0c17a275,cc25121771,22c1e2c3ce) carryAssisted-by: LLMcommit trailers. Commits must carry human author/committer identity and humanSigned-off-by:only, with zero AI commit trailers (keepAssisted-by:in the PR body only). Rebase the remaining DTS changes cleanly onto currentintegration/auroraso 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. - §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_lowfor MTP resets, T6030 NVMe compatible,macaudiodai-links/jack, and J504sepalias), 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 viasmc_gpio_low+ macaudio).
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at 504dbaea30fe
Blockers:
- Six commits (
51436846,670551da,269f3375,ad0c17a2,cc251217,22c1e2c3) carry anAssisted-by: LLMtrailer, and the mergedcd013e7has no sign-off. Fix: rebase the DTS changes ontomain(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- 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.
Superseded by the review at 504dbae
|
Closing: checked line by line against main 569ff3d. The four binding commits (M3 block compatibles, |
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
apple,externally-clocked(the driver already reads it).DTs
regbecomegpio/gpio-low(the driver finds them by compatible); T6030 NVMeapple,t6030-nvme-ans3becomesapple,t6030-nvme-ans2(nothing matched the old name); sound dai-links getreg.cirrus,ts-invon J433/J434, dai-linkreg, and thesepalias 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.