Skip to content

arm64: dts: apple: t8122-j613: sample the speaker sense one bit clock later - #2813

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
satchlj:upstream/j613-sense-rx-delay-20261122
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
satchlj:upstream/j613-sense-rx-delay-20261122

Conversation

@satchlj

@satchlj satchlj commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Add apple,rx-delay-bclks = <1 1 0 0 0 0>; to t8122-j613.dts (matching t8122-j615.dts, using the driver support merged in #2589) so J613 speaker sense samples one bit clock later. Replaces #2104.

DT only (t8122-j613.dtb and t8122-j613-25g83.dtb); no driver change.

Hardware verification — MacBook Air 13" M3 (J613, T8122)

Tested on linux-aurora 7.3.0.aurora1-43 (dc7c873addc8) + Aura 1.0.0b17 (5a244b5b) + U-Boot 2026.07.aurora11, capturing 3 s (144,000 frames, skip=12,000, 8 ch S16_LE 48 kHz) from hw:AppleJ613,2 (Speaker Sense) with Speaker Volume Unlock = 0 (DVC capped at max 1 / -100.00 dB):

apple,rx-delay-bclks Quiet raw sense RMS (all 8 ch, counts) Channel mean / min..max Result
Absent (0, unmodified main) 23,125.16–23,512.79 +335..+16,875 / -32768..+32767 FAIL (corrupt bit-shifted sense)
<1 1 0 0 0 0> (this PR) 7.07–8.43 -0.51..-0.43 / -35..+45 PASS
<2 2 0 0 0 0> 23,124.18–23,505.88 +466..+16,865 / -32768..+32767 Rejected by mca.c (rx_delay > 1 clamps to 0 with warning)

Protected playback check with <1 1 0 0 0 0> and speakersafetyd running:

  • First valid sense period: 48000 Hz
  • All 4 speakers unlocked to 0.00 dB (Speaker group 0 gain nominal, Speaker group 1 gain nominal)
  • Gentle 440 Hz tone measured +0.01 W on Left/Right Woofer with smooth thermal model tracking and 0 amp faults across all 4 amplifiers.

… later

The J613 amps' voltage and current sense words reach the speaker ports
late, as on the J615. Describe that with apple,rx-delay-bclks on the two
speaker ports, so the cluster capturing the sense stream samples them one
bit clock later.

Signed-off-by: Satya Benson <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor

One-line DT change that gives J613 the same apple,rx-delay-bclks = <1 1 0 0 0 0> as t8122-j615.dts; the speaker ports are MCA 0/1 on both boards, so the cells line up.

  • The J615 offset may not carry over directly: J613 has two amps per speaker bus, J615 three. The J613 speaker-sense row (clean V/I words with the amps running, and ideally the 0 and 2 offsets for comparison) is needed before this merges, because a misaligned sense stream gives the speaker protection wrong data.
  • Until that row exists, the commit message and the DT comment state as a fact that the J613 sense words arrive one bit clock late. Either add the row first or word them as carried over from J615.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor

@satchlj checking open drafts today. To come out of draft, this still needs:

  • A test run at the current head on a Mac with the hardware it touches, then mark it ready for review.

If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done.

@satchlj
satchlj marked this pull request as ready for review November 28, 2026 00:27
@satchlj
satchlj requested review from a team as code owners November 28, 2026 00:27
@satchlj
satchlj requested review from Acelogic and malik-na November 28, 2026 00:27
@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (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 28, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at b721e12b: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA b721e12b, 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.

@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: MERGE at b721e12b

Blockers: none.

Checked: no Apple material, no AI attribution, no chip/board/firmware gates, no cmdline hacks, human Signed-off-by, DT property apple,rx-delay-bclks = <1 1 0 0 0 0> matches J613 speaker MCA ports (0/1) and t8122-j615.dts, J613 hardware row PASS (23,125 -> 7.07 raw quiet sense RMS, <2> rejected by mca.c), all 4 CI checks (dt-checks, host-tests, pr-text, readiness) green.

Evidence
  • Inspected arch/arm64/boot/dts/apple/t8122-j613.dts: adds &mca { apple,rx-delay-bclks = <1 1 0 0 0 0>; };, DT-only change with no driver modifications.
  • Hardware row on J613 (T8122 MacBook Air 13" M3) in PR body confirms quiet sense RMS drops from 23,125–23,512 (bit-shifted) to 7.07–8.43 counts with <1 1 0 0 0 0>, and <2 2 0 0 0 0> is rejected as expected.
  • CI at b721e12b: dt-checks, host-tests, pr-text, readiness all PASS.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merge-train status at b721e12b: App-approved, CI green, J613 sense-RMS row. It's J613 board DT only, so every other DTB is unchanged. @DjDeveloperr code-owner ping (6-point rule, point 6): merge earliest 16:55 AEDT. Revert: git revert -m 1 <merge>.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging under the 6-point rule (Ryan 09:29, permanent), at b721e12b. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: J613;board-DT-only. (5) There's no blocking review. (6) Dj was pinged here 66 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 9120e48 into aurora-silicon:main Nov 28, 2026
6 of 7 checks passed
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) ci-failing A check failed at the PR head (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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants