From 9cf00a251e50ad679a5be01a8f987065c3c553f6 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Thu, 19 Nov 2026 22:55:53 +1100 Subject: [PATCH 1/2] arm64: dts: apple: t6050: describe the AOP on every MacBook Pro 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 --- arch/arm64/boot/dts/apple/t6050-aop.dtsi | 57 +++++++++++++++++++++++ arch/arm64/boot/dts/apple/t6050-j714c.dts | 11 ++++- arch/arm64/boot/dts/apple/t6050-j714s.dts | 37 ++------------- arch/arm64/boot/dts/apple/t6050-j716c.dts | 7 +++ arch/arm64/boot/dts/apple/t6050-j716s.dts | 7 +++ arch/arm64/boot/dts/apple/t6050-k114c.dts | 37 ++------------- arch/arm64/boot/dts/apple/t6050-k114s.dts | 7 +++ arch/arm64/boot/dts/apple/t6050-k116c.dts | 7 +++ arch/arm64/boot/dts/apple/t6050-k116s.dts | 56 ++-------------------- 9 files changed, 104 insertions(+), 122 deletions(-) create mode 100644 arch/arm64/boot/dts/apple/t6050-aop.dtsi diff --git a/arch/arm64/boot/dts/apple/t6050-aop.dtsi b/arch/arm64/boot/dts/apple/t6050-aop.dtsi new file mode 100644 index 0000000000000..4e8882f7e3fb1 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t6050-aop.dtsi @@ -0,0 +1,57 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * The AOP of the T6050 MacBook Pros (J714c, J714s, J716c, J716s, K114c, K114s, K116c, K116s), + * with its sensor services (ambient light, lid angle) and its audio service, and the + * microphone array that service captures. + * + * Each of these boards' ADTs has the same nodes here: the AOP (ASC 0x290600000, interrupts + * 578-581), its setup port (aop-exclave-mailbox at 0x2d067c000, dart-aop stream 1), dart-aop + * (0x290fc0000, IRQ 616), admac-base-ns (0x293800000, IRQ 637, dart-aop stream 8), the + * ambient light sensor and the audio service under the AOP, and the same microphone array: + * audio-hp-mic, three microphones on leap-s ADMAC RX0, which the AP reaches through the proxy + * aperture admac-hp-mic-ec-proxy (0x2d3200000, dma-channel 0, admac-leap-s interrupt 638, + * dart-aop stream 11). The nodes themselves are in t6050-die0.dtsi and t6050-peripherals.dtsi, + * disabled. The lid angle is a service the AOP firmware announces; it has no node of its own. + * + * The LEAP leaves have no AP power state: the firmware raises them with the hpai service's + * "pw0 " when the capture opens, and the proxy ADMAC's registers are first touched after + * that, when the capture requests its channel. + * + * Only the chassis name, the microphone card's identity (AppleHPAI), differs: each + * board sets &aop_audio's apple,chassis-name before it includes this file, after + * t6050-peripherals.dtsi. + */ + +/* The AOP, booted through its setup port, with its sensor and audio services. */ +&aop_mbox { + status = "okay"; +}; + +&aop_setup_mbox { + status = "okay"; +}; + +&aop_dart { + status = "okay"; +}; + +&aop { + status = "okay"; +}; + +&admac_base_ns { + status = "okay"; +}; + +&admac_ec_proxy { + status = "okay"; +}; + +&aop_audio { + apple,machine-kind = "MacBook Pro"; + /* hpai: leap-s RX0 is Linux channel 1 of the proxy ADMAC (2N for TX N, 2N+1 for RX N) */ + dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, + <&admac_base_ns 0>, <&admac_base_ns 1>, + <&admac_ec_proxy 1>; + dma-names = "cout", "cin", "spkr", "sense", "hpai"; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-j714c.dts b/arch/arm64/boot/dts/apple/t6050-j714c.dts index cf1d62c690fcc..e819f84eaacb0 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714c.dts +++ b/arch/arm64/boot/dts/apple/t6050-j714c.dts @@ -142,8 +142,8 @@ * 0 left woofer 1, 1 right woofer 1, 2 left woofer 2, 3 right woofer 2, 4 left tweeter, * 5 right tweeter. * - * There is no sound card yet: the AOP audio driver is not on this branch, and the jack codec - * (i2c2) is not described. The amps stay in shutdown until a stream asks for them. + * There is no sound card yet: the jack codec (i2c2) is not described. The amps stay in + * shutdown until a stream asks for them. */ / { speaker_sdz: regulator-sn012776-sdz { @@ -460,3 +460,10 @@ &avd { status = "okay"; }; + +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ +&aop_audio { + apple,chassis-name = "J714"; +}; + +#include "t6050-aop.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-j714s.dts b/arch/arm64/boot/dts/apple/t6050-j714s.dts index 383ec08bedbe2..0824e49788677 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j714s.dts @@ -902,44 +902,13 @@ }; }; -/* The AOP, booted through its setup port, with its sensor and audio services. */ -&aop_mbox { - status = "okay"; -}; - -&aop_setup_mbox { - status = "okay"; -}; - -&aop_dart { - status = "okay"; -}; - -&aop { - status = "okay"; -}; - -/* - * The microphone array: ADT audio-hp-mic, three microphones on leap-s RX0 through the - * proxy ADMAC (Linux channel 1, as on J813), captured by the AOP audio service's own card. - */ -&admac_base_ns { - status = "okay"; -}; - -&admac_ec_proxy { - status = "okay"; -}; - +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ &aop_audio { apple,chassis-name = "J714"; - apple,machine-kind = "MacBook Pro"; - dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, - <&admac_base_ns 0>, <&admac_base_ns 1>, - <&admac_ec_proxy 1>; - dma-names = "cout", "cin", "spkr", "sense", "hpai"; }; +#include "t6050-aop.dtsi" + /* The video decoder (J714sAP ADT avd0, as on the J714c), its DART and power states. */ &pmgr4 { status = "okay"; diff --git a/arch/arm64/boot/dts/apple/t6050-j716c.dts b/arch/arm64/boot/dts/apple/t6050-j716c.dts index 8fdea5242027b..c2d186c8b1cb8 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716c.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716c.dts @@ -235,6 +235,13 @@ #include "t6050-max-atc2.dtsi" +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ +&aop_audio { + apple,chassis-name = "J716"; +}; + +#include "t6050-aop.dtsi" + /* This unit's host DROM (router UUID from an earlier boot) */ &acio2_nhi { apple,thunderbolt-drom = [ff 92 e6 6e ee 18 7c ac 05 90 19 c3 8c 00 5c 00 diff --git a/arch/arm64/boot/dts/apple/t6050-j716s.dts b/arch/arm64/boot/dts/apple/t6050-j716s.dts index 43747a4ce6be7..3d6d5b390c4ae 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716s.dts @@ -570,3 +570,10 @@ #define T6050_J716S #include "t6050-peripherals.dtsi" + +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ +&aop_audio { + apple,chassis-name = "J716"; +}; + +#include "t6050-aop.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-k114c.dts b/arch/arm64/boot/dts/apple/t6050-k114c.dts index 13ea865ba58e1..1bde2c12943bf 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114c.dts +++ b/arch/arm64/boot/dts/apple/t6050-k114c.dts @@ -294,44 +294,13 @@ }; }; -/* The AOP, booted through its setup port, with its sensor and audio services. */ -&aop_mbox { - status = "okay"; -}; - -&aop_setup_mbox { - status = "okay"; -}; - -&aop_dart { - status = "okay"; -}; - -&aop { - status = "okay"; -}; - -/* - * The microphone array: ADT audio-hp-mic, three microphones on leap-s RX0 through the - * proxy ADMAC (Linux channel 1, as on J813), captured by the AOP audio service's own card. - */ -&admac_base_ns { - status = "okay"; -}; - -&admac_ec_proxy { - status = "okay"; -}; - +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ &aop_audio { apple,chassis-name = "K114"; - apple,machine-kind = "MacBook Pro"; - dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, - <&admac_base_ns 0>, <&admac_base_ns 1>, - <&admac_ec_proxy 1>; - dma-names = "cout", "cin", "spkr", "sense", "hpai"; }; +#include "t6050-aop.dtsi" + /* * ==== The left-front USB-C port (ATC1) ==== * diff --git a/arch/arm64/boot/dts/apple/t6050-k114s.dts b/arch/arm64/boot/dts/apple/t6050-k114s.dts index caa609babef0d..3976e95de86df 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114s.dts +++ b/arch/arm64/boot/dts/apple/t6050-k114s.dts @@ -22,3 +22,10 @@ #define T6050_K114S #include "t6050-peripherals.dtsi" + +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ +&aop_audio { + apple,chassis-name = "K114"; +}; + +#include "t6050-aop.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-k116c.dts b/arch/arm64/boot/dts/apple/t6050-k116c.dts index ff9e875fb1951..a69803ca2f571 100644 --- a/arch/arm64/boot/dts/apple/t6050-k116c.dts +++ b/arch/arm64/boot/dts/apple/t6050-k116c.dts @@ -22,3 +22,10 @@ #define T6050_K116C #include "t6050-peripherals.dtsi" + +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ +&aop_audio { + apple,chassis-name = "K116"; +}; + +#include "t6050-aop.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-k116s.dts b/arch/arm64/boot/dts/apple/t6050-k116s.dts index fe6468edc72c1..6a69c8bd2f7bd 100644 --- a/arch/arm64/boot/dts/apple/t6050-k116s.dts +++ b/arch/arm64/boot/dts/apple/t6050-k116s.dts @@ -730,19 +730,13 @@ }; }; -/* ADT admac-base-ns: 0x293800000, IRQ 637, 13 TX + 13 RX channels, dart-aop stream 8 */ -&admac_base_ns { - status = "okay"; -}; - /* * The AOP audio service (apple,t6050-aop-audio, t6050-die0.dtsi: dmas cout/cin/spkr/sense = - * base-ns 4/5/0/1). The chassis name is the microphone card's identity (AppleK116HPAI), the - * machine kind the card's long name. + * base-ns 4/5/0/1). The chassis name is the microphone card's identity (AppleK116HPAI); the + * rest of the AOP is in t6050-aop.dtsi, below. */ &aop_audio { apple,chassis-name = "K116"; - apple,machine-kind = "MacBook Pro"; }; /* @@ -804,51 +798,9 @@ }; }; -/* - * The AOP, booted through its setup port (ADT aop-exclave-mailbox at 0x2d067c000, dart-aop - * stream 1), with its RTKit mailbox (ADT aop interrupts 578-581), dart-aop (0x290fc0000, - * IRQ 616, 17 streams, locked tables on the ADT l1-tt-0 root) and the AOP itself - * (0x290c00000 SRAM window, ASC 0x290600000). All four nodes are in t6050-die0.dtsi / - * t6050-peripherals.dtsi of the PR tree, disabled. - */ -&aop_mbox { - status = "okay"; -}; - -&aop_setup_mbox { - status = "okay"; -}; +/* The AOP, its sensors and the microphone array */ +#include "t6050-aop.dtsi" -&aop_dart { - status = "okay"; -}; - -&aop { - status = "okay"; -}; - -/* - * The microphone array: ADT audio-hp-mic ("Digital Mic", three microphones imi1/imi2/imi3, - * 48 kHz float32) on leap-s ADMAC RX0, which the AP reaches through the proxy aperture ADT - * admac-hp-mic-ec-proxy: reg 0x2d3200000 size 0x34000 (not behind the arm-io translation, - * like the AOP setup port), dma-channel 0, admac-leap-s interrupt 638, dart-aop - * mapper-admac-leap-s stream 11 (vm-base-11 0x10040000000, vm-size-11 0xffff0000). The K116s - * ADT has the J714s values in each of these. The AOP audio service captures the array on a - * card of its own (AppleK116HPAI). The LEAP leaves have no AP power state: the firmware - * raises them with the hpai service's "pw0 " when the capture opens, and the ADMAC's - * registers are first touched after that, when the capture requests its channel. - */ -&admac_ec_proxy { - status = "okay"; -}; - -&aop_audio { - /* hpai: leap-s RX0 is Linux channel 1 of the proxy ADMAC (2N for TX N, 2N+1 for RX N) */ - dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, - <&admac_base_ns 0>, <&admac_base_ns 1>, - <&admac_ec_proxy 1>; - dma-names = "cout", "cin", "spkr", "sense", "hpai"; -}; /* The GPU, handed over by the boot loader */ #include "t6050-k116s-gpu.dtsi" From 31bb133d4be8378db24ae01bd5402496bb782dca Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Sat, 5 Dec 2026 12:01:12 +1100 Subject: [PATCH 2/2] arm64: dts: apple: t6050: share the AOP block, add it to J714c and K116c Main enabled the AOP on the J714s, J716c, J716s, K114c, K114s and K116s, each with its own copy of the same block. They now include t6050-aop.dtsi and set only the chassis name; their DTBs are byte-identical to main's. The J714c and K116c ADTs have the same AOP, setup port, dart-aop, admac-base-ns, ALS, audio service and microphone array nodes, so they include the file too (chassis J714 and K116). Their DTBs differ from main's only by the six status lines, the chassis name, the machine kind and the hpai channel. The K116s PMP comment said no AOP service is announced without the PMP; only the audio service waits for it (the K114c announced its ALS without the PMP), so it says that now. Signed-off-by: Ryan Murray --- arch/arm64/boot/dts/apple/t6050-j714c.dts | 11 +++- arch/arm64/boot/dts/apple/t6050-j714s.dts | 37 ++------------ arch/arm64/boot/dts/apple/t6050-j716c.dts | 37 ++------------ arch/arm64/boot/dts/apple/t6050-j716s.dts | 37 ++------------ arch/arm64/boot/dts/apple/t6050-k114.dtsi | 37 ++------------ arch/arm64/boot/dts/apple/t6050-k116c.dts | 7 +++ arch/arm64/boot/dts/apple/t6050-k116s.dts | 61 +++-------------------- 7 files changed, 34 insertions(+), 193 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t6050-j714c.dts b/arch/arm64/boot/dts/apple/t6050-j714c.dts index f6da08c085819..ceee532d6b563 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714c.dts +++ b/arch/arm64/boot/dts/apple/t6050-j714c.dts @@ -153,8 +153,8 @@ * 0 left woofer 1, 1 right woofer 1, 2 left woofer 2, 3 right woofer 2, 4 left tweeter, * 5 right tweeter. * - * There is no sound card yet: the AOP audio driver is not on this branch, and the jack codec - * (i2c2) is not described. The amps stay in shutdown until a stream asks for them. + * There is no sound card yet: the jack codec (i2c2) is not described. The amps stay in + * shutdown until a stream asks for them. */ / { speaker_sdz: regulator-sn012776-sdz { @@ -543,3 +543,10 @@ &clpc { apple,high-power-mode; }; + +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ +&aop_audio { + apple,chassis-name = "J714"; +}; + +#include "t6050-aop.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-j714s.dts b/arch/arm64/boot/dts/apple/t6050-j714s.dts index 7f8f6313c77c3..f7157f47225df 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j714s.dts @@ -790,44 +790,13 @@ #include "t6050-sn012776-speakers.dtsi" -/* The AOP, booted through its setup port, with its sensor and audio services. */ -&aop_mbox { - status = "okay"; -}; - -&aop_setup_mbox { - status = "okay"; -}; - -&aop_dart { - status = "okay"; -}; - -&aop { - status = "okay"; -}; - -/* - * The microphone array: ADT audio-hp-mic, three microphones on leap-s RX0 through the - * proxy ADMAC (Linux channel 1, as on J813), captured by the AOP audio service's own card. - */ -&admac_base_ns { - status = "okay"; -}; - -&admac_ec_proxy { - status = "okay"; -}; - +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ &aop_audio { apple,chassis-name = "J714"; - apple,machine-kind = "MacBook Pro"; - dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, - <&admac_base_ns 0>, <&admac_base_ns 1>, - <&admac_ec_proxy 1>; - dma-names = "cout", "cin", "spkr", "sense", "hpai"; }; +#include "t6050-aop.dtsi" + /* * The camera has no light the kernel drives here; the DCP draws the software indicator while * the camera streams. DRM owns swap slots 0 and 1 on this DCP (no apple,iomfb-surfaces), so diff --git a/arch/arm64/boot/dts/apple/t6050-j716c.dts b/arch/arm64/boot/dts/apple/t6050-j716c.dts index a097951f39afd..2d87ec371c3f9 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716c.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716c.dts @@ -599,44 +599,13 @@ }; }; -/* The AOP, booted through its setup port, with its sensor and audio services. */ -&aop_mbox { - status = "okay"; -}; - -&aop_setup_mbox { - status = "okay"; -}; - -&aop_dart { - status = "okay"; -}; - -&aop { - status = "okay"; -}; - -/* - * The microphone array: ADT audio-hp-mic, three microphones on leap-s RX0 through the - * proxy ADMAC (Linux channel 1, as on J714s), captured by the AOP audio service's own card. - */ -&admac_base_ns { - status = "okay"; -}; - -&admac_ec_proxy { - status = "okay"; -}; - +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ &aop_audio { apple,chassis-name = "J716"; - apple,machine-kind = "MacBook Pro"; - dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, - <&admac_base_ns 0>, <&admac_base_ns 1>, - <&admac_ec_proxy 1>; - dma-names = "cout", "cin", "spkr", "sense", "hpai"; }; +#include "t6050-aop.dtsi" + /* macOS offers High Power mode on this machine */ &clpc { apple,high-power-mode; diff --git a/arch/arm64/boot/dts/apple/t6050-j716s.dts b/arch/arm64/boot/dts/apple/t6050-j716s.dts index 1db9d021fae9c..3acff625c2331 100644 --- a/arch/arm64/boot/dts/apple/t6050-j716s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j716s.dts @@ -790,44 +790,13 @@ }; }; -/* The AOP, booted through its setup port, with its sensor and audio services. */ -&aop_mbox { - status = "okay"; -}; - -&aop_setup_mbox { - status = "okay"; -}; - -&aop_dart { - status = "okay"; -}; - -&aop { - status = "okay"; -}; - -/* - * The microphone array: ADT audio-hp-mic, three microphones on leap-s RX0 through the - * proxy ADMAC (Linux channel 1, as on J714s), captured by the AOP audio service's own card. - */ -&admac_base_ns { - status = "okay"; -}; - -&admac_ec_proxy { - status = "okay"; -}; - +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ &aop_audio { apple,chassis-name = "J716"; - apple,machine-kind = "MacBook Pro"; - dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, - <&admac_base_ns 0>, <&admac_base_ns 1>, - <&admac_ec_proxy 1>; - dma-names = "cout", "cin", "spkr", "sense", "hpai"; }; +#include "t6050-aop.dtsi" + /* * Left-front port (ATC1): the USB4/Thunderbolt router and its PCIe tunnel. The J716sAP ADT's * /arm-io/acio1, acio-cpu1, dart-acio1, apciec1 and dart-apciec1 have the J714s's addresses, diff --git a/arch/arm64/boot/dts/apple/t6050-k114.dtsi b/arch/arm64/boot/dts/apple/t6050-k114.dtsi index c3b4bea0b8576..f86685182ae04 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-k114.dtsi @@ -97,40 +97,9 @@ #include "t6050-sn012776-speakers.dtsi" -/* The AOP, booted through its setup port, with its sensor and audio services. */ -&aop_mbox { - status = "okay"; -}; - -&aop_setup_mbox { - status = "okay"; -}; - -&aop_dart { - status = "okay"; -}; - -&aop { - status = "okay"; -}; - -/* - * The microphone array: ADT audio-hp-mic, three microphones on leap-s RX0 through the - * proxy ADMAC (Linux channel 1, as on J813), captured by the AOP audio service's own card. - */ -&admac_base_ns { - status = "okay"; -}; - -&admac_ec_proxy { - status = "okay"; -}; - +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ &aop_audio { apple,chassis-name = "K114"; - apple,machine-kind = "MacBook Pro"; - dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, - <&admac_base_ns 0>, <&admac_base_ns 1>, - <&admac_ec_proxy 1>; - dma-names = "cout", "cin", "spkr", "sense", "hpai"; }; + +#include "t6050-aop.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-k116c.dts b/arch/arm64/boot/dts/apple/t6050-k116c.dts index 4cc28acf5043b..0053285ba2495 100644 --- a/arch/arm64/boot/dts/apple/t6050-k116c.dts +++ b/arch/arm64/boot/dts/apple/t6050-k116c.dts @@ -67,3 +67,10 @@ apple,tunable-lane0-rx-top-cio = <0x35c 0xe00 0x0>; apple,tunable-lane1-rx-top-cio = <0x35c 0xe00 0x0>; }; + +/* The AOP, its sensors and the microphone array (t6050-aop.dtsi) */ +&aop_audio { + apple,chassis-name = "K116"; +}; + +#include "t6050-aop.dtsi" diff --git a/arch/arm64/boot/dts/apple/t6050-k116s.dts b/arch/arm64/boot/dts/apple/t6050-k116s.dts index db902593e3f38..55b12884faae8 100644 --- a/arch/arm64/boot/dts/apple/t6050-k116s.dts +++ b/arch/arm64/boot/dts/apple/t6050-k116s.dts @@ -120,7 +120,8 @@ * file. Its report tells it which devices are on; the PMC honours its votes next to the CLPC. * The AOP's audio firmware needs it too: its LEAP cluster enable goes through PMP-managed * power domains (every AOP and AUDIO domain of this ADT is "no_ps"), and without the PMP it - * fails, the audio controller never reaches systemReady and no AOP service is announced. + * fails and the audio controller never reaches systemReady, so the audio service is not + * announced. The sensor services do not wait for it (the K114c announced its ALS without the PMP). */ &ps_pms { status = "okay"; @@ -307,21 +308,16 @@ }; }; -/* ADT admac-base-ns: 0x293800000, IRQ 637, 13 TX + 13 RX channels, dart-aop stream 8 */ -&admac_base_ns { - status = "okay"; -}; - /* - * The AOP audio service (apple,t6050-aop-audio, t6050-die0.dtsi: dmas cout/cin/spkr/sense = - * base-ns 4/5/0/1). The chassis name is the microphone card's identity (AppleK116HPAI), the - * machine kind the card's long name. + * The AOP, its sensors and the microphone array (t6050-aop.dtsi). The chassis name is the + * microphone card's identity (AppleK116HPAI). */ &aop_audio { apple,chassis-name = "K116"; - apple,machine-kind = "MacBook Pro"; }; +#include "t6050-aop.dtsi" + /* * The sound card. "apple,k116-macaudio" needs its macaudio.c entry (patches/0001-ASoC-apple- * macaudio-Add-K116.patch): the same amps, slots, frame and sense layout as J714 @@ -381,51 +377,6 @@ }; }; -/* - * The AOP, booted through its setup port (ADT aop-exclave-mailbox at 0x2d067c000, dart-aop - * stream 1), with its RTKit mailbox (ADT aop interrupts 578-581), dart-aop (0x290fc0000, - * IRQ 616, 17 streams, locked tables on the ADT l1-tt-0 root) and the AOP itself - * (0x290c00000 SRAM window, ASC 0x290600000). All four nodes are in t6050-die0.dtsi / - * t6050-peripherals.dtsi of the PR tree, disabled. - */ -&aop_mbox { - status = "okay"; -}; - -&aop_setup_mbox { - status = "okay"; -}; - -&aop_dart { - status = "okay"; -}; - -&aop { - status = "okay"; -}; - -/* - * The microphone array: ADT audio-hp-mic ("Digital Mic", three microphones imi1/imi2/imi3, - * 48 kHz float32) on leap-s ADMAC RX0, which the AP reaches through the proxy aperture ADT - * admac-hp-mic-ec-proxy: reg 0x2d3200000 size 0x34000 (not behind the arm-io translation, - * like the AOP setup port), dma-channel 0, admac-leap-s interrupt 638, dart-aop - * mapper-admac-leap-s stream 11 (vm-base-11 0x10040000000, vm-size-11 0xffff0000). The K116s - * ADT has the J714s values in each of these. The AOP audio service captures the array on a - * card of its own (AppleK116HPAI). The LEAP leaves have no AP power state: the firmware - * raises them with the hpai service's "pw0 " when the capture opens, and the ADMAC's - * registers are first touched after that, when the capture requests its channel. - */ -&admac_ec_proxy { - status = "okay"; -}; - -&aop_audio { - /* hpai: leap-s RX0 is Linux channel 1 of the proxy ADMAC (2N for TX N, 2N+1 for RX N) */ - dmas = <&admac_base_ns 4>, <&admac_base_ns 5>, - <&admac_base_ns 0>, <&admac_base_ns 1>, - <&admac_ec_proxy 1>; - dma-names = "cout", "cin", "spkr", "sense", "hpai"; -}; /* The GPU, handed over by the boot loader */ #include "t6050-k114-k116-gpu.dtsi"