From d96a319663bbe5d30681db985114cba80d71a8f2 Mon Sep 17 00:00:00 2001 From: Jeff Queisser Date: Sun, 22 Nov 2026 11:44:23 -0800 Subject: [PATCH] arm64: dts: apple: t6050-j775d: enable the AOP over its RTKit mailbox alone, so the Mac Studio gets its sound card The T6050 tree describes the AOP, its mailboxes, its DART and the audio DMA controller disabled, and the J775D board file did not enable them, so the Mac Studio's (J775D) AOP never probed and no sound card registered. Its AOP firmware also does not service the setup port. Started through both mailboxes, its boot timed out after 15 s ("setup port: boot incomplete (AP power on: false, endpoints: 0/0)", probe -110) on the 27.0 and the 27.2 firmware. Read after the timeout, the setup mailbox still held the AP's message, its receive side had raised no interrupt and nothing was queued towards the AP, while the RTKit mailbox had carried the boot up to AP power on. Enable the AOP, its RTKit mailbox, its DART and the audio DMA controller, as the J714s, K114c and K116s board files do, and give the AOP only its RTKit mailbox. The driver takes the setup-port boot only when the AOP is given a mailbox named "setup", so it boots the AOP over RTKit: the firmware announces its audio service, the audio child device binds and the headphone jack's card registers. The setup mailbox node stays described, disabled. The ADT describes the setup port the same way on boards whose firmware uses it, so the board's tree is where this is stated. The Mac Studio audio file said the AOP audio node exists only after a boot loader handoff; it now says it exists once the board enables the AOP. Signed-off-by: Jeff Queisser --- arch/arm64/boot/dts/apple/t6050-j775d.dts | 24 +++++++++++++++++++ .../boot/dts/apple/t6050-studio-audio.dtsi | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/apple/t6050-j775d.dts b/arch/arm64/boot/dts/apple/t6050-j775d.dts index 4d527a6417f83..2f928a1584e79 100644 --- a/arch/arm64/boot/dts/apple/t6050-j775d.dts +++ b/arch/arm64/boot/dts/apple/t6050-j775d.dts @@ -55,6 +55,30 @@ model = "Mac Studio J775D"; }; +/* + * The AOP, with its RTKit mailbox, its DART and the audio DMA controller, booted over the RTKit + * mailbox alone. This board's AOP firmware does not service the setup port: started through both, + * it sends nothing there and leaves the AP's message unread. The setup mailbox stays described, + * disabled. + */ +&aop_mbox { + status = "okay"; +}; + +&aop_dart { + status = "okay"; +}; + +&admac_base_ns { + status = "okay"; +}; + +&aop { + mboxes = <&aop_mbox>; + mbox-names = "mbox"; + status = "okay"; +}; + /* * PCIe ports 2 (the onboard 10 Gb Ethernet) and 3 (the rear USB-A xHCI). The boot loader * powers and trains both links; it disables a port, and its DART, whose link did not come up. diff --git a/arch/arm64/boot/dts/apple/t6050-studio-audio.dtsi b/arch/arm64/boot/dts/apple/t6050-studio-audio.dtsi index 07195f5be9841..1a60bbf3e2b06 100644 --- a/arch/arm64/boot/dts/apple/t6050-studio-audio.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-studio-audio.dtsi @@ -3,7 +3,7 @@ * The audio of the M5 Mac Studio (J775c, J775d): the headphone jack (a * CS42L84) and the built-in speaker (one SN012776), both reached through the * AOP's audio services. The card waits for its CPU component, the AOP audio - * node, which exists only after the boot loader's AOP handoff. + * node, which exists once the board enables the AOP. * * The speaker is described but stays off: the ADT's audio-speaker stream has * no RX (sense) slot, and macaudio admits the speaker only once a protection