Repository navigation
Conversation
The T8152 (M6) PMGR blocks are compatible with the T8103 ones. The J873 device tree already uses this compatible; document it. Signed-off-by: LiamRay11 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The T8152 (M6) PMGR power state controls are compatible with the T8103 ones. The J873 device tree already uses this compatible; document it. Signed-off-by: LiamRay11 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The I2C controllers of T8152 (M6) are compatible with the T8103 ones. Signed-off-by: LiamRay11 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The T8152 (M6) watchdog is compatible with the T8103 one. Signed-off-by: LiamRay11 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The T8152 (M6) FPWM, which drives the keyboard backlight of the J804 MacBook Pro, is compatible with the S5L one. Signed-off-by: LiamRay11 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reading every pin of the T8152 GPIO block to fill a register cache at probe takes an SError on the J804 MacBook Pro: pins 78 and 208 fault on an AP read. The T8140 profile accesses the block uncached and honours gpio-reserved-ranges, so a board that has to keep the CPU off such pins can use "apple,t8152-pinctrl", "apple,t8140-pinctrl", as T6050 does with its T8132 fallback. The existing T8103 fallback stays valid for boards that do not need it. Signed-off-by: LiamRay11 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
As on T8140, the OS cannot request core power-down on T8152 (M6) and WFI is the only idle state. Allow "apple,t8152-cpuidle" with the T8140 compatible as its fallback, which the driver already matches. Signed-off-by: LiamRay11 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Turn the disabled J804 inventory into a board description for a RAM
boot from the loader, on top of the shared T8152 description:
- the twelve CPUs (the loader removes those it has not started),
with the first two performance states of each cluster, which the
cpufreq driver may use without a thermal policy, as on J873
- the AIC and the timer, the boot framebuffer and CPU idle
- the SMC with its mailbox, the pcIO output that resets the
trackpad's touch controller, and the hardware monitor: fan, power,
voltage and current keys, with temperatures discovered. The fan
is monitored only; its speed stays under firmware control
- the watchdog, the GPIO controller with the pins that fault on an
AP read reserved, the I2C controllers of the jack codec and the
speaker amplifiers, and the keyboard backlight PWM
- the boot NOR and the PMGR block from t8152-j873-qspi.dtsi, shared
with J873, plus the SIO and I2C power states
Everything else stays described and disabled; the storage, display,
input, wireless and GPU nodes follow with their drivers. The values
come from the J804 ADT.
Tested on a MacBook Pro (M6, J804) with an equivalent standalone device
tree on an earlier base (integration/aurora f5fa539): all twelve CPUs
come up, the watchdog restarts the machine, the SMC hardware monitor
reports about 170 inputs including the fan, the keyboard backlight
lights, and the NVRAM partition of the boot NOR reads. This tree,
rewritten onto the shared T8152 labels, has not been booted.
Signed-off-by: LiamRay11 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
sithglan
left a comment
There was a problem hiding this comment.
Test report, 2026-11-17: Apple Mac mini M6 (J873g/T8152, board 0x24). PR revision tested: a96fb0778c158b79a93a2efea123b182143a626b.
Host validation used the combined #2105–2108/#2110–2112 series (54742c617db4 on 677be395b9d2) with Clang 22. All changed driver objects built with W=1 and no new warnings; two pre-existing DART unused-helper warnings were unchanged.
All 137 Apple DTBs built at both base and combined head, with zero new warning lines and eight removed. All ten changed bindings passed dt_binding_check. This validates the shared binding changes and the J804 DT build. The test machine is J873g, so J804 board behavior was not hardware-tested.
|
Blockers: 3.
I checked the rest. The fan has no manual-control property, so it stays under firmware control. The OPP tables hold only the two unmanaged levels. The jack codec stays disabled. No per-unit values are in the tree. HW row: J804 booted from this exact rebased branch, without the retest-only nodes where possible (or list them): 12 CPUs, Assisted-by: LLM (Claude:Opus 5.5) |
The J873g (Mac mini, M6) has no cpuidle node, so cpuidle-apple never binds there: the CPUs idle through the default WFI without a cpuidle driver, and s2idle cannot freeze the tick or suspend timekeeping. The J804 board file in aurora-silicon#2107 adds the node for that board only. The cores and their idle behaviour are the SoC's: as on T8140, the OS cannot request core power-down and WFI is the only state, which the T8140 profile of the driver already handles (CYC_OVRD is left alone on anything newer than M3). Put the node in t8152-peripherals.dtsi, which both the J873g tree and t8152.dtsi (J804, J833ct) include. Signed-off-by: Ryan Murray <[email protected]>
|
The J804 board description is still needed. The original head conflicts in the I2C binding on integration/aurora The shared T8152 node placement and the pinctrl fallback across J804 and J873g remain open from the review above. A J804 boot on the revised tree is still needed. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: HOLD at a96fb0778c15
Blockers:
- Merge conflict & superseded commits on
main(Documentation/devicetree/bindings/i2c/apple,i2c.yaml:33,arch/arm64/boot/dts/apple/t8152-j804.dts:41-43): PR ismergeable_state: dirty(1525 commits behindmain83950d093e1b) and conflicts inapple,i2c.yaml, wheremainalready addedapple,t8142-i2candapple,t8152-i2c. Five of the seven binding commits (7a4451c9ab58apple,pmgr.yaml,0271b017312aapple,pmgr-pwrstate.yaml,b39ba54e9e53apple,i2c.yaml,4b3528fb2aaeapple,wdt.yaml,dd16da0b28a8apple,t8140-cpuidle.yaml) are already onmain, andt8152-j804.dts:41-43duplicates thecpuidlenode now provided byt8152-peripherals.dtsi:12-14(included viat8152.dtsi). Fix: Rebase onto currentmain, drop the five superseded binding commits, and remove the duplicatecpuidlenode fromt8152-j804.dts. - §4 attribution violation (all 8 commits
7a4451c9ab58..a96fb0778c15and PR body): Every commit carries a non-humanCo-Authored-Bytrailer and the PR body ends with a tool-generated footer. Fix: Re-commit with only the human author/committer and humanSigned-off-by:trailer, and delete the footer from the PR body completely (do not add anAssisted-byline either; current policy prohibits any tool/model attribution in commits or PR text). - §1 / DT pinctrl fallback split (
Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml:35-40,arch/arm64/boot/dts/apple/t8152-j804.dts:277-299): Keepingapple,t8152-pinctrlunder bothapple,t8103-pinctrl(used byt8152-j873-n1.dtsi) andapple,t8140-pinctrl(used here) assigns two different driver profiles by board to the same T8152 GPIO block. Uncached access (apple,t8140-pinctrl) is the SoC-level profile for T8152 whilegpio-reserved-rangesstays per board. Fix: Useapple,t8140-pinctrlas the single T8152 fallback inapple,pinctrl.yamland updatet8152-j873-n1.dtsi(or move the shared T8152 SoC nodes into shared DTSI as noted previously). - §5 missing exact-head hardware row & stale commit text (
a96fb0778c15): Commita96fb0778c15still says the shared-label tree "has not been booted", contradicting the PR body, and the 2026-11-16 boot report ran on an olderbf423bf0e9-PR integration branch with out-of-tree DT nodes and omits the required regression row counts (0SELinux denials,0failed units,0new kernel errors). Fix: Update the commit message after rebasing ontomainand post an exact-head J804 boot row with the regression counts (plus a J873g boot row once the shared pinctrl/DTSI updates touch J873g).
Checked: Verified live PR state, mergeability, all 8 commits, full diff against current main (83950d093e1b), overlap with #2105 and J873g T8152 DTs/bindings, §1–§3 safety (fan, OPP, audio/speaker, SMC pcIO, pinctrl), §4 clean-room/attribution, §5 CI and hardware evidence, and §6 naming.
Evidence
- PR state & mergeability:
OPEN, cross-repo fork (LiamRay11/linux:j804/dt-board->main), heada96fb0778c158b79a93a2efea123b182143a626b, base677be395b9d2,mergeable: false(dirty), 1525 commits behindmain(83950d093e1b). - CI (stale base
677be395b9d2, 2026-11-17):dt-checksPASS,host-testsPASS; will need to run clean against currentmainafter rebase (not re-triggered here). - Binding status on current
main:- Already merged:
apple,pmgr.yaml(apple,t8152-pmgr),apple,pmgr-pwrstate.yaml(apple,t8152-pmgr-pwrstate),apple,i2c.yaml(apple,t8142-i2c+apple,t8152-i2c— conflict),apple,wdt.yaml(apple,t8152-wdt),apple,t8140-cpuidle.yaml(apple,t8152-cpuidle->apple,t8140-cpuidle). - Still needed:
apple,s5l-fpwm.yaml(apple,t8152-fpwm) andapple,pinctrl.yaml(apple,t8152-pinctrl->apple,t8140-pinctrl).
- Already merged:
- Overlap check: No file overlap with
#2105(Documentation/devicetree/bindings/mailbox/apple,mailbox.yamlonly). Note on shared SoC nodes:t8152-j873g.dtscurrently includest8152-peripherals.dtsidirectly rather thant8152.dtsi, so any deduplication of shared T8152 nodes (opp,cpufreq,smc,wdt,pinctrl_ap,i2c1/i2c3,ps_sio/ps_i2c1/ps_i2c3) should account for botht8152.dtsiandt8152-j873g.dts. - §3 safety (clean):
- Fan
fan-F0Acomitsapple,fan-manual-control, somacsmc_hwmon_fan_user_control()leavesfan1_targetread-only and firmware keeps fan control. - CPU OPPs are limited to unmanaged P-states 2–3 (matching J873g).
jack_codec(cs42l84) isstatus = "disabled"andi2c3has no speaker amp child nodes (no unprotected speaker playback).smc_pciocommand template0x001c000000010000satisfiesapple,smc-pcio-gpio.yaml(low 16 bits clear) and stays inactive on currentmainapple,t8152-smcMFD cell list.
- Fan
- §4 clean-room & §6 naming (clean in diff): No copyrighted blobs/listings or per-unit values in the DT; prose uses
auraand avoids disallowed names.
Keep both I2C compatibles from main. Its T8152 entry already covers the J804. Signed-off-by: DjDeveloperr <[email protected]>
The J804 and J873 use the same AP pin controller. Select the uncached T8140 accessors on both, preserving each board’s reserved GPIO ranges. The distinct J873 AOP controller retains its T8103-compatible access. The shared peripherals include already provides the J804 CPU idle node. Signed-off-by: DjDeveloperr <[email protected]>
There was a problem hiding this comment.
Verdict: REQUEST CHANGES at f3679f213f5f
Blockers:
- Disallowed commit trailers and PR footer still present (flagged in the 2026-11-21 review): Commits
7a4451c9ab..a96fb0778cremain in the branch history with disallowed co-author trailers, and the PR description still ends with the auto-generated tool footer. Please remove the disallowed trailers (keeping only authorSigned-off-by) and clean up the PR description per repository policy. - Unaddressed SoC node duplication (
arch/arm64/boot/dts/apple/t8152-j804.dts): Shared T8152 SoC nodes (m6_e_opp,m6_pm_opp,m6_e_cpufreq,m6_pm_cpufreq,smc_mbox,smc,wdt,pinctrl_ap,ps_sio) are still duplicated fromt8152-j873g.dtsrather than factored into shared T8152.dtsidefinitions as requested in earlier review. - Queued CI and missing exact-head
f3679f213f5fhardware rows:dt-checks,host-tests, andreadinessare still running/queued atf3679f213f5f. Because commitf3679f213f5falso changespinctrl_apinarch/arm64/boot/dts/apple/t8152-j873-n1.dtsifromapple,t8103-pinctrltoapple,t8140-pinctrl, exact-head boot verification is needed on both J804 (new board) and J873g (confirmingpinctrl_apuncached access + N1/GPIO still probe cleanly).
Checked:
- Audited the full 4-file diff (
+368/-2,MERGEABLEagainstmain):apple,pinctrl.yaml,apple,s5l-fpwm.yaml,t8152-j804.dts, andt8152-j873-n1.dtsi. - Verified
baeb777c5aresolved the priorapple,i2c.yamlconflict withmain, andf3679f213f5falignst8152-j873-n1.dtsiwith the uncachedapple,t8140-pinctrlfallback introduced inapple,pinctrl.yaml.
Evidence
- Head:
f3679f213f5f3b4df33ce8c73127d0828263ba47(basemain,MERGEABLE). - Status checks at review time:
dt-checksIN_PROGRESS,host-testsQUEUED,readiness / readinessQUEUED. - Commits
7a4451c9ab,0271b01731,b39ba54e9e,4b3528fb2a,8fe9dff82a,8f74027631,dd16da0b28, anda96fb0778cstill carry the disallowed co-author trailers flagged on 2026-11-21.
|
Merged main and fixed the J804 CPU-idle duplication and AP GPIO fallback in f3679f2. Both J804 and J873g DTBs build with one CPU-idle node and the same AP accessors. The separate J873g AOP bank keeps its original fallback. The J804/J873g hardware receipts and the author correction to the original commit trailers remain outstanding. |
|
AI attribution check (12-01 policy): commit(s) 7a4451c, 0271b01, b39ba54, 4b3528f, 8fe9dff, 8f74027, dd16da0, a96fb07 carry a |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Summary
Turns the disabled J804 inventory (
t8152-j804.dts, 12 lines ont8152.dtsi) into a board description for a RAM boot from the loader (aurora,minimal-boot, as J873g). It builds on the shared T8152 description and its canonical labels, and adds the bindings the board needs. Storage, display, input, wireless, GPU, audio and media nodes follow with their drivers.Commits
apple,t8152-pmgrandapple,t8152-pmgr-pwrstate. These are already used by the J873 DT, so this also removes base warnings.apple,t8152-i2c,apple,t8152-wdt,apple,t8152-fpwmapple,t8152-pinctrlwith anapple,t8140-pinctrlfallback. T8140 is the uncached profile that honoursgpio-reserved-ranges, following the existing T6050 -> T8132 pattern. With the T8103 profile, J804 takes an SError at probe reading pins 78/208. J873 is unchanged.apple,t8152-cpuidlewith anapple,t8140-cpuidlefallback, which the driver already matches.arm64: dts: apple: t8152-j804:apple,smc-pcio-gpiooutput for the trackpad AFE reset, and hwmon with fan/power/voltage/current keys. The fan is monitored only: there is noapple,fan-manual-control, so its speed stays under firmware control as on the other T8152 boardsLED_FUNCTION_KBD_BACKLIGHT,LED_COLOR_ID_WHITE)t8152-j873-qspi.dtsi, which J804 shares with J873g, plus SIO/I2C power states. Renaming it to a board-neutral name would touch J873g, so it is left for a separate change.hwmon-common.dtsi/hwmon-laptop.dtsi: those hardcode temperature keys, while J804 usesapple,discover-temperatures, and its fan mode key is the lower-caseF0mdTesting
On hardware: MacBook Pro 14-inch (M6, J804), 2026-11-16, tested by LiamRay11.
bf423bf0ewith all nine J804 linux PRs merged (t8152-mailboxes, dart-gen3, dt-board, centauri, g18-fast-retire, cfg80211-stale-scan, smc, cs42l84-jack, and an NVMe PR that is not sent yet), plus retest-only device-tree changes that are not part of these PRs: SSD nodes (ANS mailbox, SART, NVMe), PCIe port 0 with the N1 Wi-Fi, the USB0 gadget console, and aread-onlyNVRAM partition. Those nodes were needed to reach the root filesystem and SSH.systemctl rebootfrom this kernel (watchdog restart) returned to the installed system.Results for this PR (this board file plus the retest-only nodes above):
apple_idle), the watchdog (/dev/watchdog0; the restart above went through it), the NOR partitions (aura_stage2.log,adt,nvram),kbd_backlight,i2c-0/i2c-1and pinctrl with the reserved ranges all probe and work.nvrampartition writable, as upstream'st8152-j873-qspi.dtsi(shared with J873g) has it for asahi-nvram and asahi-bless. The retest tree addedread-onlyto it (mtd flags 0x800), so writes to it were not exercised.t8152-j804.dtbitself has no CHECK_DTBS warning.Known limitation: cpufreq logs
invalid apple,fast-die-effort (-2): CPUs 1-6 stay limited to 972000 kHz. T8152's cpufreq expects a fast-die limit, and this tree does not provideapple,fast-die-effort(-2 is -ENOENT; the PMP report it would point at is not described yet), so the cluster keeps the driver's fallback limit. It is left for the follow-up with the full OPP tables and the thermal policy (see Deviations).Checks on this base:
scripts/dtc/apple-dt-check.sh(basebf423bf0e, head = this series together with j804/dart-gen3, j804/t8152-mailboxes and the J804 NVMe change): 137 Apple DTBs built at both, 0 new CHECK_DTBS warnings (8 removed: the J873gapple,t8152-pmgr/-pmgr-pwrstateones), anddt_binding_checkpasses for every changed binding.integration/aurora has since moved to
677be395b; this branch still merges into it without conflicts.Deviations from the bring-up tree
apple,tlbi-aperturefromj804/dart-gen3. The retest tree described USB0 as a gadget console with upstream's DART node model and it worked; the USB nodes come with their own PR.apple,t8152-spmi,apple,woodcote-pmic) and are follow-ups.Hardware values
Addresses, IRQs, power-state offsets, the pcIO template and the GPIO reserved ranges are hardware description from the J804 ADT, in the same style as the existing T8152 files. There are no per-unit values: memory, CPU release addresses, the framebuffer, MAC and BD addresses are filled by the loader.
Dependencies
None for the tree. The SMC's input, power and pcIO cells only register with
j804/smc; without it the SMC is telemetry-only, as on J873. Later J804 PRs build on this one.