From e89ad368f4cf534e24477a25433169c2543d5606 Mon Sep 17 00:00:00 2001 From: Diljit Singh Date: Thu, 19 Nov 2026 01:07:13 -0500 Subject: [PATCH] arm64: dts: apple: t8132-j773g: the headphone jack The Mac mini has no microphones, so the AOP audio node was deleted; but like the M4 Pro Mac mini (J773s) its headphone jack is a CS42L84 on the AOP's jack back-end. Describe the jack's streams, "cout" and "cin" on base-ns ADMAC channels 4 and 5 (ADT audio-codec-output and audio-codec-input), with no "dma" channel so the AOP audio component attaches no microphone, and a jack card of its own. The speaker stays without a card. Signed-off-by: Diljit Singh --- arch/arm64/boot/dts/apple/t8132-j773g.dts | 40 ++++++++++++++++++++--- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t8132-j773g.dts b/arch/arm64/boot/dts/apple/t8132-j773g.dts index baf3e3ffcfecb..9fe251a2cca63 100644 --- a/arch/arm64/boot/dts/apple/t8132-j773g.dts +++ b/arch/arm64/boot/dts/apple/t8132-j773g.dts @@ -32,6 +32,31 @@ gpios = <&pinctrl_ap 15 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + /* + * The headphone jack: the AOP audio component's jack back-end (DAI 4) + * to the CS42L84 (ADT /arm-io/i2c1/audio-codec-output), a card of its + * own as on the M4 Pro Mac mini. The speaker has no card yet. + */ + sound_jack: sound-jack { + compatible = "apple,j773-macaudio-jack", "apple,macaudio"; + model = "Mac mini J773g Jack"; + #address-cells = <1>; + #size-cells = <0>; + + dai-link@0 { + reg = <0>; + link-name = "Headphone Jack"; + + cpu { + sound-dai = <&aop_audio 4>; + }; + + codec { + sound-dai = <&jack_codec>; + }; + }; + }; }; /* @@ -53,12 +78,17 @@ }; /* - * The AOP audio component always runs a microphone stream, and this Mac - * has no microphones (ADT iop-audio-controller has no audio-hp) and no - * speaker sense, so it has no sound card yet. The AOP registers its audio - * service by itself: without the node, no driver binds it. + * No microphones (ADT iop-audio-controller has no audio-hp): only the jack's + * streams, "cout" and "cin" on base-ns ADMAC channels 4 and 5 (ADT + * audio-codec-output and audio-codec-input), as on the M4 Pro Mac mini. + * Without a "dma" channel the AOP audio component attaches no PDM device. */ -/delete-node/ &aop_audio; +&aop_audio { + dmas = <&admac1 4>, <&admac1 5>; + dma-names = "cout", "cin"; + apple,chassis-name = "J773g"; + apple,machine-kind = "Mac mini"; +}; /* * The SN012776 speaker amp (ADT /arm-io/i2c3/audio-speaker at 0x38, mono,