Repository navigation
n66: the loudspeaker plays (CS35L21 on MCA2) - #217
Merged
Merged
Conversation
The loudspeaker path needs SmartIO DMA. Extract the n66's own SmartIO firmware from the 19H422 kernelcache (AppleS8000SmartIO), as for the j71t: 487488 bytes, measured with orchard.apple.smartio on the IPSW's kernelcache. Assisted-by: LLM
The iPhone 6s Plus's bottom speaker: a CS35L21 amplifier (the CS35L19 driver from Cascadia, which now accepts it) on I2C1, fed 16-bit TDM slots by MCA2 with its bit clock from the S8000's NCO. With no keep-alive line the amplifier's alive watchdog is turned off, as cs35l33 does, or it mutes its output. The CS42L71 codec stays untouched. There is no speaker protection (the V/I sense iOS reads back) yet, so the output stays capped: MCA2 attenuates every sample by 12 dB, with no control or property to lift it, and the amplifier's gain now stops at 0 dB instead of +12 dB on every board with this driver. The amplifier's own over-temperature and short protections stay on; the driver now watches them while playing, warns, and mutes on a shutdown. The NCO, MCA2, SmartIO and I2C1 are enabled in the S8000/S8003 device tree for every board that has them; the 6s Plus's model file, shared by the Samsung (N66) and TSMC (N66m) models, adds only the amplifier, the card and its i2s-switch route. Exported from a branch on the n66 series; applied in series order the patches reproduce it. On a RAM boot a 440 Hz tone at -20 dB plays from the speaker. Assisted-by: LLM
On RAM boots on 2026-11-23 a quiet 440 Hz tone played from the bottom speaker through the CS35L21 amplifier, and 60 s of pink noise at the output caps ran with the amplifier's status clean (no over-temperature warning or shutdown, no short) at every 2 s poll. Speaker only: there is no speaker protection (V/I sense) yet and the output is capped at -12 dB. The TSMC model (N66m) shares the description and is marked untested. The microphones, earpiece and headphone jack hang off the CS42L71 codec, which has no driver yet, so audio input stays missing. Assisted-by: LLM
henrikklee
added a commit
that referenced
this pull request
Nov 23, 2026
…peakers on every iPad mini 2 and 3 #217 and #223 each brought a driver for the same amplifier. Keep the one #217 carries (Project Cascadia's, which Orchard's iPad mini 1 build uses too, with #217's 16-bit slots, CS35L21, watchdog, gain cap and fault watch) and teach it what the iPad mini 2 needs from #223's: the first amplifier drives the TDM frame when its endpoint says so (new drivers/sound 0043). The binding (0042) describes one node per amplifier; the speakers go into s5l8960x-mini2.dtsi with two amplifier nodes and an audio-graph-card2 card, since the IPSW device trees of all six iPad mini 2 and 3 models describe the same speakers. #223's MCA, SmartIO and MCA1 patches are unchanged apart from numbers (sound 0040-0041, soc-apple 0037, s5l8960x 0014-0015) and the context of the MCA binding and driver after #217's S8000 link. CONFIG_SND_SOC_CS35L19 appears once per config, in Kconfig order. The J85's audio_output is untested until the shared driver runs on it; the other five models are untested with the same description. Also: the Orchard note in the AOP patch names its source like the others do. Assisted-by: LLM
Contributor
|
Thanks! This is on main now. Changes on top:
If you can, please play something on the n66 with main: it now uses the IPSW speaker-config byte. One request: your kernel patches here carry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The iPhone 6s Plus (n66, Samsung S8000): the loudspeaker plays.
Tested on a RAM boot, 2026-11-23:
Hardware. From the ADT and the 19H422 kernelcache:
Kernel
apple,s8000-mca-tdmwith its binding. MCA2 is the clock provider, and the output is capped at -12 dB.okayin s800-0-3.dtsi, per AGENTS.md;CONFIG_SND_SOC_CS35L19=m.Firmware. The n66's own SmartIO firmware is extracted from its kernelcache (
devices/n66/firmware.json).Speaker safety
There is no speaker protection (V/I sense) yet. What protects the speaker now:
Still missing:
Catalog
Tests: 926 OK (2 skipped).
🤖 Generated with Claude Code