Skip to content

arm64: dts: apple: t6050: describe the headphone jack codec on every board - #2277

Draft
RyanTheTide wants to merge 1 commit into
integration/aurorafrom
dtfill-t6050/jack
Draft

RyanTheTide wants to merge 1 commit into
integration/aurorafrom
dtfill-t6050/jack

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The 3.5 mm headphone jack's CS42L84 codec was described only on J714s, J775d, K114c and K116s, each with its own copy of the same node. J714c, J716c, J716s, J873s, K114s and K116c had no codec, and J714c, J716c, J716s and the K boards disabled i2c2. Every one of these models has a 3.5 mm jack, and each board's ADT has the codec at the same place.

Change

  • 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). Values from each board's ADT; they are the same on all of them.
  • J714s, J775d: include it in place of the local copy.
  • t6050-k114-k116.dtsi: include it in place of the i2c2 disable, and expose pins 134 and 139 in pinctrl_ap. K114c and K116s drop their copies (they keep their own pin lists, which already expose both pins). K114s and K116c get the codec through the shared file.
  • J714c, J716c, J716s: include it in place of the i2c2 disable, and expose pins 134 and 139.
  • J873s: include it (its pinctrl_ap has no reserved ranges).
  • J775c is not touched: its full board description in arm64: dts: apple: support M5 Max Mac Studio (J775c) #2102 already carries the codec.

No sound card node is added. The jack codec probes on its own on the new boards; it reports a plug and plays only through a macaudio card whose jack link names &jack_codec, and that card also needs the AOP audio service (aop_audio), which is not enabled on these boards yet. No speaker amps are added.

Testing

  • Full kernel tree make dtbs CHECK_DTBS=y (dtschema) for every T6050 DTB on this branch: builds clean, no dtc warnings, and no schema message that integration/aurora does not already have.
  • DTB build for all 11 T6050 boards: all OK, 0 warnings before and after.
  • Byte-identical DTBs: J714s, K114c, K116s, J775c.
  • J775d: only gains an explicit status = "okay" on i2c2, which was already enabled by default.
  • Changed: J714c, J716c, J716s, J873s, K114s, K116c (codec node, i2c2 enabled, pinctrl_ap reserved ranges).
  • dt-validate against the processed binding schema, before and after, on the 7 changed DTBs: 0 new messages. cirrus,cs42l84 has a binding.

Still to run

Owners only; no headphone playback is run as part of this PR.

  • Every changed board: dmesg | grep -i cs42l84 shows Cirrus Logic CS42L84, Revision: .. and no probe error; ls /sys/bus/i2c/drivers/cs42l84/ lists the codec on i2c2 at 0x4b.
  • J714s, J775d, K114c, K116s (have a card; regression check, their DTBs are unchanged): evtest on the jack input device shows SW_HEADPHONE_INSERT 1 on plug and 0 on unplug. Same row for the other boards once they have a macaudio card and aop_audio enabled.
  • J714c (owner XY55bqg6iAw8ttP), J716c (erikwb), J716s (rolotrealanis98), K114s, K116c and J873s (no owner yet): probe row above.
Per-board values and DTB diffs

All boards, from each board's ADT: bus i2c2, address 0x4b, reset AP pin 139 active high, interrupt AP pin 134 level low.

pinctrl_ap gpio-reserved-ranges, before -> after:

Board Before After
J714c <0 80>, <81 25>, <108 113> <0 80>, <81 25>, <108 26>, <135 4>, <140 81>
J716c, J716s <0 80>, <81 140> <0 80>, <81 53>, <135 4>, <140 81>
K114s, K116c (shared dtsi) <0 221> <0 134>, <135 4>, <140 81>
J873s none none

DTB diff (J714c; J716c, J716s, K114s, K116c are the same apart from the reserved ranges, J873s has only the i2c2 part):

 			reg = <0x05 0x5018000 0x00 0x4000>;
-			status = "disabled";
+			status = "okay";
+
+			codec@4b {
+				#sound-dai-cells = <0x00>;
+				compatible = "cirrus,cs42l84";
+				interrupts-extended = <0x71 0x86 0x08>;
+				reg = <0x4b>;
+				reset-gpios = <0x71 0x8b 0x00>;
+				sound-name-prefix = "Jack";
+			};
...
-			gpio-reserved-ranges = <0x00 0x50 0x51 0x19 0x6c 0x71>;
+			gpio-reserved-ranges = <0x00 0x50 0x51 0x19 0x6c 0x1a 0x87 0x04 0x8c 0x51>;

J775d:

 			reg = <0x05 0x5018000 0x00 0x4000>;
+			status = "okay";

The original node is DjDeveloperr's J714s node, also carried by Jeff Queisser (J775d), Joshua Warren (K114c) and Jens Axboe (K116s).

Assisted-by: LLM (Claude:Opus 5.5)

…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>
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.

1 participant