Skip to content

arm64: dts: apple: t6050: describe the AOP on every MacBook Pro - #2285

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

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

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • New 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 (with hpai). This is the block the J714s, K114c and K116s had, moved into one file.
  • Each board sets only apple,chassis-name on &aop_audio (the microphone card's identity) and includes the file: J714 (J714c, J714s), J716 (J716c, J716s), K114 (K114c, K114s), K116 (K116c, K116s).
  • The J714c comment that said the AOP audio driver is not on this branch is corrected.

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

  • 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.
  • All 11 T6050 DTBs build with no warnings, before and after.
  • J714s, K114c and K116s DTBs are byte-identical, and so are J775c, J775d and J873s.
  • On J714c, J716c, J716s, K114s and K116c the decompiled diff is the same on each board: status = "okay" on aop_mbox, aop_setup_mbox, aop_dart, aop, admac_base_ns and admac_ec_proxy, and on the audio node apple,chassis-name, apple,machine-kind and the hpai DMA channel. The rest of the diff is phandle renumbering.
  • dt-validate: no new messages on any of the 8 boards (see below).
  • No driver change. The AOP, ALS, lid angle and AOP audio drivers match on the SoC compatibles (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:

  • J714c (XY55bqg6iAw8ttP), J716c (erikwb), J716s (rolotrealanis98), K114s (chrisohearn), K116c (owner unknown):
    1. dmesg | grep -i aop shows the AOP booted, with the als, las and audio services announced.
    2. 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.
    3. The lid angle iio device (aop-las) changes as the lid moves between about 30 and 120 degrees.
    4. arecord -l lists the AppleHPAI card (AppleJ714HPAI, AppleJ716HPAI, AppleK114HPAI, AppleK116HPAI). arecord -D hw:<card>,0 -c 3 -r 48000 -f FLOAT_LE -d 5 /tmp/mic.wav gives non-zero samples on all three channels.

Dependencies:

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:

Node Value
AOP ASC 0x290600000, SRAM window 0x290c00000, interrupts 578-581
Setup port 0x2d067c000, interrupts 582/585, dart-aop stream 1
dart-aop 0x290fc0000, IRQ 616
admac-base-ns 0x293800000, IRQ 637, dart-aop stream 8
Microphone array 3 microphones, 48 kHz, leap-s RX0 via proxy 0x2d3200000, dma-channel 0, dart-aop stream 11
ALS present, same node on every board
AOP audio service present

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):

 aop_mbox, aop_setup_mbox, aop_dart, aop, admac_base_ns, admac_ec_proxy:
-			status = "disabled";
+			status = "okay";
 admac_ec_proxy:
+			phandle = <H>;
 aop/audio:
+				apple,chassis-name = "J716";
+				apple,machine-kind = "MacBook Pro";
-				dma-names = "cout", "cin", "spkr", "sense";
-				dmas = <H H H H H H H H>;
+				dma-names = "cout", "cin", "spkr", "sense", "hpai";
+				dmas = <H H H H H H H H H H>;

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.

Assisted-by: LLM (Claude:Opus 5.5)

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>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

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 status = "okay" lines plus chassis-name, machine-kind and the hpai channel on &admac_ec_proxy 1. The K114s/K114c ALS firmware-name from #1983 survives the merge. dt-checks and the ADT coverage check pass.

  1. t6050-k116s.dts:521-523 says that without the PMP the AOP's audio controller never reaches systemReady and "no AOP service is announced". This PR turns the AOP on for J716c, J716s, K114s and K116c, none of which runs the PMP. The K114c (also no PMP) does announce its ALS (soc: apple: aop: send the 14-inch M5 Max sensor its 193-byte calibration #1983's lux run), so the comment looks too broad. Either narrow it to the audio service, or expect the HPAI card to register and capture to fail on those four boards. Whichever is true, the owner rows should say so, and the comment should match.
  2. J716c is the T6050 board with a working full s2idle path (t6050-j716c.dts:263-264). The AOP now joins it with no apple,sleep-endpoints/apple,wake-endpoints (J714s sets them in t6050-j714s-sleep-soc.dtsi:4453-4456), so aop.rs uses the SoC default order. That is plausible, but nothing has run it, and a failed AOP stop or restart is a sleep regression on a machine people use.

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)

@chrisohearn

Copy link
Copy Markdown

K114s offline qualification of head 9cf00a251e50ad679a5be01a8f987065c3c553f6: t6050-k114s.dtb built cleanly (clang 23.1.3, dtc 1.7.2). The compiled AOP audio node has chassis K114 and the hpai DMA name. The ambient light node is enabled. The exact head's ALS node lacks firmware-name; the same K114s AOP changes compiled with the current integration/aurora base (8b360dc845db, including #1983) retain apple/aop-als-cal.bin on that node.

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.

@ja-818

ja-818 commented Nov 23, 2026

Copy link
Copy Markdown

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.

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