Skip to content

arm64: dts: apple: t6050: describe the headphone jack codec on J714c, K116c and J873s - #2277

Draft
RyanTheTide wants to merge 5 commits into
mainfrom
dtfill-t6050/jack
Draft

RyanTheTide wants to merge 5 commits into
mainfrom
dtfill-t6050/jack

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Main now describes the 3.5 mm jack's CS42L84 codec on the J714s, J716c, J716s, K114c/K114s (t6050-k114.dtsi), K116s and the Studio boards (t6050-studio-audio.dtsi), each with its own node. Three T6050 boards with a jack still have none: the J714c, the K116c and the J873s. On the J714c and K116c i2c2 is disabled.

Change

Since the 12-05 forward merge this PR only covers what main is missing:

  • New t6050-jack.dtsi: enables i2c2 and adds jack_codec: codec@4b (cirrus,cs42l84), reset on AP pin 139 (active high), interrupt on AP pin 134 (level low), the same values as main's per-board nodes and each board's ADT.
  • J714c: include it in place of the i2c2 disable, and open pins 134 and 139 in pinctrl_ap (<0 80>, <81 25>, <108 26>, <135 4>, <140 81>).
  • K116c: include it (t6050-k114-k116.dtsi already exposes 134 and 139).
  • J873s: include it (its pinctrl_ap reserves no ranges).

The boards main already covers are left as main has them. No sound card node and no speaker amps are added: the codec probes on its own and reports a plug only through a macaudio card whose jack link names &jack_codec.

Testing

  • All 11 T6050 DTBs built with CHECK_DTBS=y (dtschema) against main f02bd68: 0 new warnings. Only J714c, J873s and K116c change: i2c2 okay plus the codec node, and on the J714c the reserved ranges above. The other 8 DTBs are byte-identical to main.

Still to run

A probe row from a J714c, K116c or J873s owner: cs42l84 ...-004b bound on i2c2 with no probe error and no interrupt storm on pin 134, 0 SError. None of these boards is in our lab.

…board

The CS42L84 headphone codec was described only on J714s, J775d, K114c and
K116s, each with its own copy of the same node. Every T6050 board's ADT
has the codec at the same place: i2c2, address 0x4b, reset on AP pin 139
(active high) and interrupt on AP pin 134 (level low), and every model has
a 3.5 mm jack.

Move the node into a new shared t6050-jack.dtsi, which also enables i2c2,
and include it from J714s, J775d and t6050-k114-k116.dtsi in place of the
copies. Add it to J714c, J716c, J716s and J873s, and to K114s and K116c
through t6050-k114-k116.dtsi. On the boards that limit pinctrl_ap's
exposed pins (J714c, J716c, J716s, K114s, K116c) open pins 134 and 139.
J714c, J716c and J716s no longer disable i2c2.

The J714s, K114c and K116s DTBs are byte-identical. The J775d DTB only
gains an explicit status = "okay" on i2c2, which was already enabled by
default. J775c is left alone: its full board description is in review
separately and already carries the codec.

These boards have no sound card node yet, so the codec probes on its own;
the jack reports a plug only through a macaudio card that links it.

The original node was written by DjDeveloperr for the J714s, and copied
by Jeff Queisser (J775d), Joshua Warren (K114c) and Jens Axboe (K116s).

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Blockers: 1.

At the head the values are right: the reset (AP 139, active high) and interrupt (AP 134, level low) match the J714s/K114c/K116s node, and every new pin list exposes 134 and 139 while 112 stays reserved (J714c <108 26>, <135 4>, <140 81>; J716c/J716s <81 53>, <135 4>, <140 81>). No card names the codec on the new boards, so they gain a plug-detect device and no output path.

  1. The PR conflicts with integration/aurora in t6050-j775d.dts. ebaf49c moved the Mac Studio audio into t6050-studio-audio.dtsi, which carries its own copy of the jack codec (t6050-studio-audio.dtsi:71-80) for both J775c and J775d. On rebase, drop the J775d hunk and have t6050-studio-audio.dtsi include t6050-jack.dtsi in place of its copy. That also covers J775c, which this PR leaves out, and then the J775c/J775d DTBs should be identical apart from the explicit i2c2 status.
  2. Heads-up: arm64: dts: apple: t6050: share the K boards' N1 and USB-C ports, add K114s and K116c #2280 rewrites the same K-board &pinctrl_ap list (t6050-k114-k116.dtsi:144 here). The second to land needs <0 80>, <81 53>, <135 4>, <140 81> so that pins 80, 134 and 139 are all exposed.
  3. Both CI jobs failed on the runner's apt mirror; rerun after the rebase.

HW row: on the rebased head, each changed board (J714c, J716c, J716s, K114s, K116c, J873s) by its owner: Cirrus Logic CS42L84, Revision in dmesg, codec bound at i2c2-0x4b, no IRQ storm (/proc/interrupts count flat with nothing plugged). J714s or K116s regression: SW_HEADPHONE_INSERT 1/0 on plug/unplug. 0 AVC, 0 failed units, no new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

t6050-j775d.dts: took integration's side (its audio moved to t6050-studio-audio.dtsi); the jack include follows in the next commit.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
The Mac Studio's audio moved into t6050-studio-audio.dtsi, which carries its
own copy of the CS42L84 node. Include t6050-jack.dtsi there instead, as the
other T6050 boards do. The J775d DTB only gains an explicit status = "okay"
on i2c2.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…he jack pins

The K board N1/USB-C change opens pin 80 (PCIe port 0's PERST#) in the shared
K114/K116 pinctrl_ap list, and this branch opens 134 and 139 for the jack.
Use the union, <0 80>, <81 53>, <135 4>, <140 81>, in both so they land in
either order. Pin 80 reads cleanly; only pin 112 takes an SError.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged integration/aurora (f5f023b); conflicts in t6050-j775d.dts resolved (Studio audio now in t6050-studio-audio.dtsi, which includes t6050-jack.dtsi in a follow-up commit; K114/K116 pinctrl_ap list set to the union with #2280: <0 80>, <81 53>, <135 4>, <140 81>), all eleven T6050 board DTBs build with unchanged dtc warnings.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

The conflict is resolved and CI is green on 8da4cc7; still needed are probe rows on that head from each changed board (J714c, J716c, J716s, K114s, K116c, J873s, and J775c/J775d through the shared Studio audio file: CS42L84 bound at i2c2-0x4b, no interrupt storm), plus a J714s or K116s plug/unplug regression row, then it can leave draft.

@ja-818

ja-818 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested the equivalent on a J716s (27.2 stub 26B123): the AOP with its audio service, mic array and ALS, and the CS42L84 jack codec at i2c2 0x4b on pins 134/139 come up as on the J714s. A jack-only macaudio card registers, plugging in is detected, the internal mics record speech, the ALS reads. Speakers stayed off (no J716 protection yet). Seen on one J716s with omarchy-m5's v272-17 kernel. Report: betizzel/omarchy-m5#28.

ja-818 added a commit to ja-818/linux that referenced this pull request Nov 25, 2026
The J716s's AOP-fed card is the J714s's: the J716sAP 27.2 (26B123) ADT
describes the same CS42L84 jack codec, AOP audio service and six
SN012776 amps. No speaker protection has played on this board yet, so
its entry has speakers disabled and no safe level, as the J873's, and
macaudio_speakers_allowed() refuses a speaker link whatever the device
tree says. The jack frame is the J714s's.

Seen on one J716s (27.2 stub, omarchy-m5 v272-17 kernel with this entry
as a module and a jack-only card in its tree): the card registers, the
jack reports a plug and PipeWire shows Headphones and the headset
microphone. Playback through the jack was not listened to (no working
wired headphones at hand). The device tree card follows once the AOP
(aurora-silicon#2285) and jack codec (aurora-silicon#2277) descriptions for the J716s land.

Signed-off-by: Julian Arango <julianarango1818@gmail.com>
@rolotrealanis98

Copy link
Copy Markdown
Contributor

Tested on J716s (16-inch M5 Pro, 27.3 beta stub) at 8da4cc7: the J716s DTB built with this PR (the board's own codec node replaced by t6050-jack.dtsi) is byte-identical to the one the board runs; row from that boot.

  • "cs42l84 1-004b: Cirrus Logic CS42L84, Revision: 36", bound on i2c2 at 0x4b, no probe error
  • with the J716s macaudio card: jack input device present, SW_HEADPHONE_INSERT 0 / SW_MICROPHONE_INSERT 0 with nothing plugged; UCM lists Headphones and Headset
  • 0 SError, 0 deferred, 0 new kernel errors

One note: I kept our board's pinctrl_ap ranges instead of the PR's J716s ranges. Ours already expose 134 and 139, and also the speaker and Touch ID pins, which the PR's J716s ranges would leave out on this board.

Not tested: a plug/unplug with evtest, playback.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide RyanTheTide changed the title arm64: dts: apple: t6050: describe the headphone jack codec on every board arm64: dts: apple: t6050: describe the headphone jack codec on J714c, K116c and J873s Dec 5, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Forward-merged main f02bd68 as 0609586. Main has meanwhile added its own per-board jack codec nodes on J714s, J716c, J716s, K114c/s, K116s and the Studios, so the merge keeps main's files for those boards and this PR now only adds the codec where main still lacks it: J714c, K116c and J873s (title and description updated). Local check: all 11 T6050 DTBs with CHECK_DTBS=y, 0 new warnings, only those three DTBs change. Still needed: one probe row from a J714c, K116c or J873s owner (no T6050 board with these files in our lab).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants