Repository navigation
arm64: dts: apple: t6050-j716s: bring up audio as on the J716c - #4349
RyanTheTide merged 1 commit into
Conversation
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>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Hardware row: The tested |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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).
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 lefti2c1/i2c2disabled.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:
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):i2c1audio-speaker/-left-woofer-2/-left-tweeterat 0x38/0x39/0x3a,i2c3-right-woofer-1/-2/-right-tweeterat 0x3b/0x3c/0x3d, allaudio-control,sn012776speaker-config: rx 0.., vsense 0/4/8/.., isense 2/6/10/..ti,vmon-slot-no/ti,imon-slot-no0/2, 4/6, ... 20/22function-resetGPIO 107,interrupts106,function-speaker-id0/1GPIO 136/137i2c2/audio-codec-outputcs42l84at 0x4b,function-resetGPIO 139,interrupts134iop-audio-controller/audio-hp-miconleap-s-adma-rx-0(max-channel-count3)Change
t6050-j716s.dts:sn012776-sdzregulator, the amps oni2c1/i2c3, the jack codec oni2c2, theapple,j716-macaudiosound node, the AOP and its mailboxes and DART, the ADMACs andaop_audiowith chassisJ716. It goes after thet6050-media.dtsiinclude, where its labels are defined.gpio-reserved-ranges, with the J716c's ranges. Pin 112, which takes an SError, stays reserved.Relation to other PRs:
pinctrl_aop; this one touchespinctrl_ap. The row below was run with both.Hardware row: J716s (MacBook Pro 16-inch, M5 Pro), macOS 27.2 (26B123) stub, aura with aurora-silicon/aura#674. PASS
1675a623) with drm/asahi: fix global upper-half TLBI fallback and enable T6050 range TLBI #4284 and arm64: dts: apple: t6050-j716s: describe the HDMI port on dcpext1 #4300 applied.t6050-j716s.dtsthere plus this change; the added lines match this commit's.aurora-stage2-commit. 18 CPUs, GPU and panel unchanged, no Oops/BUG/SError.apple_aop 290c00000.aop: RTKit: Initializing. The three ADMACs probe0 [AppleJ716HPAI]: aop_audio - MacBook Pro J716 HPAI,1 [AppleJ716]: macaudio - MacBook Pro J716(plus HDMI)tas2764bound to0-0038,0-0039,0-003a,2-003b,2-003c,2-003dcs42l84 1-004b: Cirrus Logic CS42L84, Revision: 36hpai [Microphone Array]through PipeWiresgv2.mic.j716: room noise −48 dBFS, three hand claps at full scale (peak 32767), speech −23 to −26 dBFSspeakerguardd-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 holdsaurora-speaker-upgrade: done: speakerguardd v2 owns the speakers (AID41, macOS 26B123, UniversalMac_27.2_26B123_Restore.ipsw)bell.ogatwice throughsgv2.voicing.j716at 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 faultHeadphone Jackgoeson(Headset Mic Jackstaysoff: no microphone on them). WirePlumber switches to itsHeadphonessink (hw:AppleJ716,0)Jack DAC Playback Volumeat 236/256 (−10 dB, register0x3004/0x3006=0x1ec). The PCM wasRUNNING(S24_LE, 2 ch, 48 kHz). The CS42L84 ran DSP_A with 32-bit slots in a 64-BCLK frame, as the ADT'saudio-codec-outputstream 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 DTThe DTB also builds on this branch's base
93596d5.