Repository navigation
arm64: dts: apple: t8132: clock spi3/spi4 from clkref, describe the laptops' DP855 - #3365
Conversation
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>
|
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. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
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.
|
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. |
|
Non-author merge-train review at One item: the comment says the chip select is "the same pin on the J604 and J713", but |
|
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):
So the J715 uses the same pin as the J604 and J713, and Not covered by this PR: the M4 iMacs J623 (Mac16,2) and J624 (Mac16,3) also list |
There was a problem hiding this comment.
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.
|
@DjDeveloperr code-owner ping (interim ruleset-gap rule, point 6): ready at |
|
Merging under the interim ruleset-gap rule (COMMON-RULES 01:54), at
Revert: |
What: M4 (T8132): clock spi3/spi4 from
clkrefand 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 int8132-laptop.dtsi; both blocks are kept.Why: spi3 and spi4 name
peripheral_clocks, which no driver provides, sospi-appledefers forever on them. The other T8132 SPI controllers, and every other Apple SPI, run from the 24 MHzclkref. The J604 and J713 ADTs list/arm-io/spi4/dp855with 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-spibinds spi4 (3ad110000.spi),i2c-dp855binds the DP855 (spi2.0), MagSafesn201202xstill 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-handoffbuilds int8132-j713-pmgr.dtsiand applies its disabled domains on every Air, which is why the DT-only row on fleet85 got-110.make CHECK_DTBS=yon 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-piodmaneeds driver work first (#3345).