Repository navigation
arm64: dts: apple: t6050: describe the headphone jack codec on every board - #2277
Draft
RyanTheTide wants to merge 1 commit into
Draft
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
Conversation
…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>
This was referenced Nov 19, 2026
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.
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
t6050-jack.dtsi: enables i2c2 and addsjack_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.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.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
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.status = "okay"on i2c2, which was already enabled by default.cirrus,cs42l84has a binding.Still to run
Owners only; no headphone playback is run as part of this PR.
dmesg | grep -i cs42l84showsCirrus Logic CS42L84, Revision: ..and no probe error;ls /sys/bus/i2c/drivers/cs42l84/lists the codec on i2c2 at 0x4b.evteston the jack input device showsSW_HEADPHONE_INSERT1 on plug and 0 on unplug. Same row for the other boards once they have a macaudio card andaop_audioenabled.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:<0 80>, <81 25>, <108 113><0 80>, <81 25>, <108 26>, <135 4>, <140 81><0 80>, <81 140><0 80>, <81 53>, <135 4>, <140 81><0 221><0 134>, <135 4>, <140 81>DTB diff (J714c; J716c, J716s, K114s, K116c are the same apart from the reserved ranges, J873s has only the i2c2 part):
J775d:
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)