Skip to content

arm64: dts: apple: t8132: clock spi3/spi4 from clkref, describe the laptops' DP855 - #3365

Merged
RyanTheTide merged 2 commits into
mainfrom
fix/dt-parity-t8132-spi-dp855-v2
Nov 27, 2026
Merged

RyanTheTide merged 2 commits into
mainfrom
fix/dt-parity-t8132-spi-dp855-v2

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: M4 (T8132): clock spi3/spi4 from clkref and describe the DP855 panel timing controller on the M4 laptops (J604, J713, J715), with the J713/J715 spi4 power state on. Supersedes #3344, rebased onto main. The only change is the conflict with #2395's MagSafe block in t8132-laptop.dtsi; both blocks are kept.
Why: spi3 and spi4 name peripheral_clocks, which no driver provides, so spi-apple defers forever on them. The other T8132 SPI controllers, and every other Apple SPI, run from the 24 MHz clkref. The J604 and J713 ADTs list /arm-io/spi4/dp855 with its chip select on GPIO 76.
Tested: J713 with kernel 7.3.0-aurora-dtp2 (main fcb1242 + these two commits + #3341's commit, fleet89 Air config) as a guarded one-shot, plus a DT-only aura-try of the production Stage 2 with these nodes: apple-spi binds spi4 (3ad110000.spi), i2c-dp855 binds the DP855 (spi2.0), MagSafe sn201202x still binds, s2idle 1/1 (rtc1), FCHECK + row PASS, 0 failed units. The Mac went back to production after the row. A kernel built from this tree is needed: t8132-platform-handoff builds in t8132-j713-pmgr.dtsi and applies its disabled domains on every Air, which is why the DT-only row on fleet85 got -110. make CHECK_DTBS=y on every T8132 DTB: 0 new warnings vs main. checkpatch --strict clean.
Risk: two-way door · M4 laptops J604, J713, J715. The spi clock change covers every T8132 board, but spi3/spi4 stay disabled elsewhere. J604 and J715 are not in the lab.
Not included: the internal PCIe PIODMA engine. apple-piodma needs driver work first (#3345).

spi3 and spi4 named peripheral_clocks, which no driver provides, so
spi-apple's devm_clk_get_enabled() would defer them forever once
enabled. Every other Apple SPI controller, including the T8132's
enabled ones, runs from the 24 MHz clkref; use it here too.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…ptops

The J604 and J713 ADTs both list the DP855 panel timing controller on
spi4 (/arm-io/spi4/dp855), chip select GPIO 76 (function-spi_cs0).
i2c-dp855 drives it as a read-only I2C adapter and shares the
controller's I2C engine with the display firmware through its lock; it
already binds on the M2 Air with the same SPI timing.

Describe it in t8132-laptop.dtsi (J604, J713, J715) and turn on the spi4
power state on the J713 and J715, whose pmgr file lists only qualified
domains (its parent, spi_p, is already on).

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hold before merge: after this row, 2 of 5 reboots out of the test kernel (7.3.0-aurora-dtp2 = main fcb1242 + #3365 + #3366's T8132 node via DT + #3341's T8112 commit) left the Mac dead until a VDM reboot (J713 once, J473 once; J615 2/2 and J473 1/2 fine). Production boots after recovery are clean. Not yet known whether the hang comes from the kernel's shutdown path (main since fleet85/89) or from these DT nodes. I'll post the dtp2 boot's shutdown journal and a rerun with the dead-man kept through the return reboot before asking for merge.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at f818caca: not ready yet

Check Detail
CI at head ok 3 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at f818caca
Conflicts ok none
PR text ok Risk: two-way · M4 laptops J604, J713, J715. The spi clock change covers every T8132 board, but spi3/spi4 stay disabled elsewhere. J604 and J715 are not in the lab. Not included: the internal PCIe PIODMA engine. apple-piodma needs driver work first (#3345).

Areas: area:bringup

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

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

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 f818cacaf84dd8cc55a03b97ddcef7f1616e27e2

Blockers: Keep the existing return-reboot hold. Please attach the discriminator result for the main kernel with production DT and the feature DT on a known-good base. Also link the J715 wiring observation for the shared GPIO chip select, or report the owner verification requested in #3344. The J604/J713 citations do not verify that connection on J715.

Checked: Independently rebuilt all six T8132 DTBs at this head and ran the DP855 schema check with zero diagnostics. The laptop include keeps the MagSafe block and adds the controller in the same shared SPI topology. Checked the clock-provider change, the J713 domain override, and the posted driver binding row. No new per-board driver gate, private dump, or attribution appears in the diff.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hold lifted. I couldn't reproduce the 11-27 reboot hang: 30 of 30 reboots out of the same test kernel (dtp2) came back on 11-28. J473 did 24, covering the production DT, the nvmem probe, the original aura-try trial DT and s2idle before the reboot. J713 did 6, using the exact original sequence with this PR's DT: aura-try trial Stage 2, s2idle via rtc1, the PMIC probe, then the reboot back to production (31-32 s each). Journals of the two hung boots show a normal shutdown up to 'Journal stopped'. Both hung Macs are cabled to the tethers another lane was driving at the time. Nothing ties the hang to these DT nodes. Ready for review.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Non-author merge-train review at f818caca: MERGE once the J715 chip select is cited. spi3/spi4 now clock from clkref (24 MHz, like every other Apple SPI controller; nothing provides peripheral_clocks for them). spi4 and the DP855 are enabled in t8132-laptop.dtsi with cs-gpios GPIO 76. J713 row at this head: apple-spi and i2c-dp855 bind, MagSafe still binds, s2idle 1/1, 0 failed units.

One item: the comment says the chip select is "the same pin on the J604 and J713", but t8132-laptop.dtsi also reaches the J715. As on #3362, please add the per-board ADT line, especially the J715's /arm-io/spi4 function-spi_cs0 (IPSW ADT is fine), since driving GPIO 76 as a chip select on a board that wires it differently would toggle another line.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Per-board ADT citation for the chip select (device trees of the macOS 26.2 IPSW, one per board; the J713 also from its live ADT):

Board Model /arm-io/spi4 function-spi_cs0 phandle resolves to /arm-io/spi4/dp855 reaches it via
J604 Mac16,1 {GPIO, args [76, 0x10001]} /arm-io/gpio0 (gpio,t8101) parade,DP855 t8132-laptop.dtsi
J713 Mac16,12 {GPIO, args [76, 0x10001]} /arm-io/gpio0 parade,DP855 t8132-laptop.dtsi
J715 Mac16,13 {GPIO, args [76, 0x10001]} /arm-io/gpio0 parade,DP855 t8132-laptop.dtsi

So the J715 uses the same pin as the J604 and J713, and GPIO_ACTIVE_LOW on pinctrl_ap 76 is right for all three. /arm-io/gpio0 is pinctrl_ap. The spi4 block is at the same ADT address on all of them.

Not covered by this PR: the M4 iMacs J623 (Mac16,2) and J624 (Mac16,3) also list /arm-io/spi4/dp855 with the same chip select (GPIO 76, 0x10001), but they don't include t8132-laptop.dtsi. I'll follow up separately. The J773g (Mac16,10) has no spi4 DP855.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 27, 2026

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The exact-head DP855 schema check covered six T8132 DTBs with zero diagnostics. The new ADT table resolves the J715 chip-select concern: J604, J713 and J715 all point to the same GPIO 76 on gpio0. The repeated J713 return tests exercise the original trial sequence, and the owner has lifted the earlier hang hold. Code approved. Keep the exact kernel/DTB row and normal regression and readiness gates attached to the landing decision.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr code-owner ping (interim ruleset-gap rule, point 6): ready at f818caca. The J715 chip select is now cited (GPIO 76 on all three laptops, from the IPSW ADTs), so my review's condition is met. It has the review App's approval at this head, CI green and the J713 row. The spi3/spi4 clock change only reaches buses the desktops leave disabled, so other families have no runtime change. If you have no objection, I'll merge with the documented rationale after 05:19 AEDT. Revert: git revert -m 1 <merge>.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the interim ruleset-gap rule (COMMON-RULES 01:54), at f818caca.

  1. The review App approved at this head, and its later approval supersedes its own earlier request.
  2. CI is green.
  3. J713 row at this head: apple-spi and i2c-dp855 bind, s2idle 1/1.
  4. J604 and J715 have the same chip select per the IPSW ADT citation above. The clock change only reaches spi3/spi4, which only t8132-laptop.dtsi enables (spi4), so the desktops and other families have no runtime change.
  5. There's no open blocking review.
  6. Dj was pinged here at 04:14 AEDT, more than an hour ago, with no objection.

Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 819c502 into main Nov 27, 2026
5 of 6 checks passed
@RyanTheTide
RyanTheTide deleted the fix/dt-parity-t8132-spi-dp855-v2 branch November 27, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant