Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 35 additions & 5 deletions arch/arm64/boot/dts/apple/t8132-j773g.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
};
};
};
};

/*
Expand All @@ -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,
Expand Down
Loading