Repository navigation
arm64: dts: apple: t6050: describe the AOP on every MacBook Pro - #2285
RyanTheTide wants to merge 1 commit into
Conversation
The AOP, with its ambient light and lid angle services and the microphone array its audio service captures, was enabled only on the J714s, K114c and K116s. The ADTs of all eight T6050 MacBook Pros (J714c, J714s, J716c, J716s, K114c, K114s, K116c, K116s) have the same AOP, setup port, dart-aop, admac-base-ns, ALS, audio service and microphone array nodes (three microphones on leap-s RX0 through the proxy ADMAC), with the same addresses, interrupts and DART streams. Only the chassis name the microphone card takes its identity from differs. Move the enables and the audio service's DMA channels into a new t6050-aop.dtsi and include it from all eight boards. Each board sets only apple,chassis-name: J714 (J714c, J714s), J716 (J716c, J716s), K114 (K114c, K114s) and K116 (K116c, K116s). Values are from each board's ADT. The J714s, K114c and K116s DTBs are byte-identical; the J775c, J775d and J873s are unchanged. The J714s block is DjDeveloperr's, the K114c one Joshua Warren's and the K116s one Jens Axboe's. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Looks good; approve once the J716c row below (with s2idle) is on the head. Checked: on current integration/aurora the J714s, K114c and K116s DTBs are byte-identical, and on J714c, J716c, J716s, K114s and K116c the label-resolved diff is exactly the six
HW row: J716c on the head: AOP started with the als, las and audio services, illuminance changes under a cover, lid angle tracks, 3x s2idle with lid and key wakes and the AOP restarted each time (no "did not stop"/"not answered" lines), mic capture 3 ch non-zero (or the documented failure). Then the same boot check on one more non-PMP board (J716s, K114s or K116c). 0 AVC, 0 failed units, no new kernel errors. Assisted-by: LLM (Claude:Opus 5.5) |
|
K114s offline qualification of head The K114s integration build with #2280 and #2276 required reconciling overlapping changes to the board file. Its compiled DTB retains the N1 and G17S definitions as well as AOP audio and ALS calibration. Both the exact head and the combination have no enabled K114 sound-card node or speaker amp nodes. Evidence covers the DTB build and properties. Microphone capture and ALS calibration on this tree still need a hardware run. Written with Codex for Chris O'Hearn. |
|
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. |
Problem
The AOP is enabled only on the J714s, K114c and K116s. On the J714c, J716c, J716s, K114s and K116c the ambient light sensor (True Tone), the lid angle and the microphone array are not described, so none of them appear.
Change
The ADTs of all eight T6050 MacBook Pros have the same AOP, setup port, dart-aop, admac-base-ns, ALS, AOP audio service and microphone array nodes: three microphones on leap-s RX0 through the proxy ADMAC, with the same addresses, interrupts and DART streams on every board. The ALS node is the same on every board too. The lid angle is a service the AOP firmware announces and has no node of its own.
t6050-aop.dtsi: the AOP, its mailbox and setup port, dart-aop, admac-base-ns and the proxy ADMAC enabled, and the audio service's machine kind and DMA channels (withhpai). This is the block the J714s, K114c and K116s had, moved into one file.apple,chassis-nameon&aop_audio(the microphone card's identity) and includes the file: J714 (J714c, J714s), J716 (J716c, J716s), K114 (K114c, K114s), K116 (K116c, K116s).The J714s block is DjDeveloperr's, the K114c one Joshua Warren's, and the K116s one Jens Axboe's.
dart-aop has no power-domains, as on the boards that already enable it. The AOP runs from before the handoff on states the AP does not switch off, and the DART lint in #2261 exempts it.
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 aop_mbox, aop_setup_mbox, aop_dart, aop, admac_base_ns and admac_ec_proxy, and on the audio nodeapple,chassis-name,apple,machine-kindand thehpaiDMA channel. The rest of the diff is phandle renumbering.apple,t6050-aop,apple,aop-als,apple,aop-las,apple,t6050-aop-audio). None of them has a board list.Still to run
Not booted on these five boards. Rows for each owner:
dmesg | grep -i aopshows the AOP booted, with the als, las and audio services announced.cat /sys/bus/iio/devices/iio:device*/in_illuminance_input(the aop-als device) changes when a light is put over and then taken off the sensor.arecord -llists the AppleHPAI card (AppleJ714HPAI, AppleJ716HPAI, AppleK114HPAI, AppleK116HPAI).arecord -D hw:<card>,0 -c 3 -r 48000 -f FLOAT_LE -d 5 /tmp/mic.wavgives non-zero samples on all three channels.Dependencies:
firmware-nameon&aop_alsfor the K114c and K114s. If another board's dmesg shows "no ALS calibration named in the device tree; the sensor stays off", that board needs the same line, on top of soc: apple: aop: send the 14-inch M5 Max sensor its 193-byte calibration #1983. soc: apple: aop: send the 14-inch M5 Max sensor its 193-byte calibration #1983 merges cleanly with this PR for the K114s. For the K114c there is a text conflict: its&aop_alshunk sits next to the block this PR moves. To resolve it, keep the&aop_alsnode after#include "t6050-aop.dtsi".Per-board values and DTB diffs
Values compared in each board's ADT (J714c, J714s, J716c, J716s: three ADT versions; K114c, K114s, K116c, K116s: two ADT versions). They are identical on all eight boards:
Only the AOP firmware's name differs (one for the J714/J716 boards, one per K board). iBoot loads that firmware, so it is not in the DT.
Decompiled diff, the same on J714c, J716c, J716s, K114s and K116c (chassis name per board, phandle numbers masked):
dt-validate (messages before -> after, new):
J714c 1 -> 1, J714s 6 -> 6, J716c 7 -> 7, J716s 0 -> 0, K114c 1 -> 1, K114s 0 -> 0, K116c 0 -> 0, K116s 0 -> 0; 0 new on every board. The existing messages are not AOP nodes.