Repository navigation
arm64: dts: apple: t6050: describe the headphone jack codec on J714c, K116c and J873s - #2277
RyanTheTide wants to merge 5 commits 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>
|
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
HW row: on the rebased head, each changed board (J714c, J716c, J716s, K114s, K116c, J873s) by its owner: 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>
|
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. |
|
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. |
|
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. |
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>
|
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.
One note: I kept our board's Not tested: a plug/unplug with evtest, playback. |
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
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). |
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:
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), the same values as main's per-board nodes and each board's ADT.pinctrl_ap(<0 80>, <81 25>, <108 26>, <135 4>, <140 81>).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
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 ...-004bbound on i2c2 with no probe error and no interrupt storm on pin 134, 0 SError. None of these boards is in our lab.