Skip to content

arm64: dts: apple: t6050-j716s: bring up audio as on the J716c - #4349

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
AlexVittorioCastellano:dts/t6050-j716s-audio
Dec 5, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
AlexVittorioCastellano:dts/t6050-j716s-audio

Conversation

@AlexVittorioCastellano

@AlexVittorioCastellano AlexVittorioCastellano commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What: Bring up the J716s's audio (MacBook Pro 16-inch, M5 Pro) as on the J716c: the AOP and its audio service, the three-microphone array, the CS42L84 headphone codec and the six SN012776 speaker amps behind apple,j716-macaudio. Until now main's J716s tree said "Audio is not brought up" and left i2c1/i2c2 disabled.

Tested: J716s hardware row below. AOP up, both sound cards, all six amps and the jack codec bound, and speakerguardd v2 took the speakers with this Mac's own tuning. Microphones captured, and a short chime played through the speakers at 20% was heard. Headphone insertion is detected, and a tone played through the jack was heard.

Risk: two-way · J716s DT only. Speaker playback stays behind the kernel's speaker-protection grant (speakerguardd v2).

Not yet:

  • headset microphone and the jack's buttons (the headphones used have neither);
  • ALS and the other AOP sensor services.

Problem

The J716s ADT names the same sound hardware as the J716c, value for value. I read them from the machine's own ADT (/sys/firmware/apple/adt, macOS 27.2 26B123 stub):

J716s ADT J716c DT
Amps i2c1 audio-speaker/-left-woofer-2/-left-tweeter at 0x38/0x39/0x3a, i2c3 -right-woofer-1/-2/-right-tweeter at 0x3b/0x3c/0x3d, all audio-control,sn012776 same addresses
Amp slots speaker-config: rx 0.., vsense 0/4/8/.., isense 2/6/10/.. ti,vmon-slot-no/ti,imon-slot-no 0/2, 4/6, ... 20/22
Amp lines function-reset GPIO 107, interrupts 106, function-speaker-id0/1 GPIO 136/137 same
Jack i2c2/audio-codec-output cs42l84 at 0x4b, function-reset GPIO 139, interrupts 134 same
Microphones iop-audio-controller/audio-hp-mic on leap-s-adma-rx-0 (max-channel-count 3) same

Change

t6050-j716s.dts:

  • Drops the "Audio is not brought up" block. It takes the J716c's sound block as it is: the sn012776-sdz regulator, the amps on i2c1/i2c3, the jack codec on i2c2, the apple,j716-macaudio sound node, the AOP and its mailboxes and DART, the ADMACs and aop_audio with chassis J716. It goes after the t6050-media.dtsi include, where its labels are defined.
  • Opens AP pins 106, 107, 134, 136, 137 and 139 in gpio-reserved-ranges, with the J716c's ranges. Pin 112, which takes an SError, stays reserved.

Relation to other PRs:

Hardware row: J716s (MacBook Pro 16-inch, M5 Pro), macOS 27.2 (26B123) stub, aura with aurora-silicon/aura#674. PASS

Check Result
AOP apple_aop 290c00000.aop: RTKit: Initializing. The three ADMACs probe
Cards 0 [AppleJ716HPAI]: aop_audio - MacBook Pro J716 HPAI, 1 [AppleJ716]: macaudio - MacBook Pro J716 (plus HDMI)
Amps tas2764 bound to 0-0038, 0-0039, 0-003a, 2-003b, 2-003c, 2-003d
Jack codec cs42l84 1-004b: Cirrus Logic CS42L84, Revision: 36
Microphones hpai [Microphone Array] through PipeWire sgv2.mic.j716: room noise −48 dBFS, three hand claps at full scale (peak 32767), speech −23 to −26 dBFS
speakerguardd v2 speakerguardd-gate: starting: j716s (spp3) is gated for v2 and the kernel has the v2 interface on AppleJ716; self-check: j716s wiring cbba18ec53f0a442 (derived), the same wiring hash as the J716c; V/I sense initialized: 12 switches enabled and read back; protection ready: every check holds
Tuning aurora-speaker-upgrade: done: speakerguardd v2 owns the speakers (AID41, macOS 26B123, UniversalMac_27.2_26B123_Restore.ipsw)
Speakers bell.oga twice through sgv2.voicing.j716 at 20%: heard. speakerguardd: protection granted, wake: the first 855 frames (17.8 ms) held until the amps played; 0 frames over capacity since start. No amp fault
Jack detect Wired headphones in: Headphone Jack goes on (Headset Mic Jack stays off: no microphone on them). WirePlumber switches to its Headphones sink (hw:AppleJ716,0)
Jack playback A 440 Hz tone at −20 dBFS was heard, with Jack DAC Playback Volume at 236/256 (−10 dB, register 0x3004/0x3006 = 0x1ec). The PCM was RUNNING (S24_LE, 2 ch, 48 kHz). The CS42L84 ran DSP_A with 32-bit slots in a 64-BCLK frame, as the ADT's audio-codec-output stream gives (2 channels, 64 BCLKs), and its PLL was locked (0x040e = 0x10). The DMA channel matches the ADT (audio-codec-output → base-ns-adma-tx-2, dmas = <&admac_base_ns 4>). A first try was not heard: the sink at 15 % had put the DAC at −49 dB (0x19e), which with a −15 dBFS chime is about −64 dBFS. That is the volume law of asahi-audio#47, not this DT

The DTB also builds on this branch's base 93596d5.

The J716s (MacBook Pro 16-inch, M5 Pro) left its audio disabled. Its ADT
names the same sound hardware as the J716c: six SN012776 amps on i2c1
(0x38-0x3a) and i2c3 (0x3b-0x3d) with the same speaker-config slots,
shutdown line (AP pin 107) and fault interrupt (106), speaker ID on
pins 136 and 137, the CS42L84 jack codec at i2c2 0x4b with reset 139
and interrupt 134, and three microphones on leap-s RX0 (audio-hp-mic).

Take the J716c's AOP, ADMAC, amp, jack codec and apple,j716-macaudio
nodes as they are, and open the AP pins they name in
gpio-reserved-ranges, as the J716c does. Pin 112 stays reserved.

Signed-off-by: Alex Castellano <141355265+AlexVittorioCastellano@users.noreply.github.com>
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (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 Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Merge readiness at 29b2af51: not ready yet

Check Detail
CI at head ok 2 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 29b2af51
Conflicts ok none
PR text ok Risk: two-way · J716s DT only. Speaker playback stays behind the kernel's speaker-protection grant (speakerguardd v2).

Areas: area:bringup

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

@AlexVittorioCastellano

Copy link
Copy Markdown
Contributor Author

Hardware row: 29b2af51 on T6050 / J716s (MacBook Pro 16-inch, M5 Pro), macOS 27.2 (26B123) stub: pass.

The tested t6050-j716s.dts contains every line this commit adds (235 of 235) and none of the lines it removes. The results are those in the description. Today's boot also had them, with one test-only addition outside this PR (&ps_gfx { apple,always-on; }, for s2idle, see #4190): both sound cards and the HPAI card came up. Headphone playback was heard again through the jack, now with asahi-audio#49's volume law in front of it.

@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 29b2af5

Checked: Built J716s, J716c and J714s at the exact base and head. J716c and J714s DTBs stayed byte-identical. The J716s DTB adds no focused dtschema diagnostics. Checked the compiled amp links, distinct V/I slots, complementary zero masks, shared fail-closed SDZ supply, jack reset and interrupt, and AOP DMA mapping against J716c. GPIO 112 remains reserved. The sound compatible selects the existing v2-only J716 speaker lease, with the legacy unlock path disabled. The playback and capture results are the author's combined-boot hardware row.

Follow-ups: Keep the shared AOP and jack descriptions in sync with #2285 and #2277 if those drafts land, so the same nodes have one definition.

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ORCH5 merge sweep: passes the six-point gate (CI green at 29b2af5, independent review approval by aurora-silicon-review[bot], no taint, no Stage 1/LocalPolicy change).

@RyanTheTide
RyanTheTide merged commit 7963274 into aurora-silicon:main Dec 5, 2026
5 checks passed
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) 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.

2 participants