[PATCH v2 13/21] arm64: dts: apple: t8103-j45x: Add headset jack nodes
James Calligeros
jcalligeros99 at gmail.com
Sat Oct 3 23:03:40 PDT 2026
The M1 iMacs integrate Apple-specific variants of the TI TAS2770
and Cirrus CS42L42. Since it is not yet safe to expose the speakers
on these machines, add the headset jack nodes and advertise them
to the machine driver via the sound node.
Signed-off-by: James Calligeros <jcalligeros99 at gmail.com>
---
arch/arm64/boot/dts/apple/t8103-j456.dts | 38 +++++++++++++++++++++++++
arch/arm64/boot/dts/apple/t8103-j457.dts | 38 +++++++++++++++++++++++++
2 files changed, 76 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/t8103-j456.dts b/arch/arm64/boot/dts/apple/t8103-j456.dts
index 090c97bb781b..1fc74ebf9ab2 100644
--- a/arch/arm64/boot/dts/apple/t8103-j456.dts
+++ b/arch/arm64/boot/dts/apple/t8103-j456.dts
@@ -88,3 +88,41 @@ &pcie0_dart_1 {
&pcie0_dart_2 {
status = "okay";
};
+
+&i2c1 {
+ status = "okay";
+
+ jack_codec: codec at 48 {
+ compatible = "cirrus,cs42l83";
+ reg = <0x48>;
+ interrupts-extended = <&pinctrl_ap 183 IRQ_TYPE_LEVEL_LOW>;
+ reset-gpios = <&pinctrl_nub 11 GPIO_ACTIVE_HIGH>;
+ #sound-dai-cells = <0>;
+ sound-name-prefix = "Jack";
+ cirrus,ts-inv = <1>;
+ };
+};
+
+/ {
+ sound: sound {
+ compatible = "apple,j456-macaudio";
+ model = "iMac J456";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dai-link at 1 {
+ reg = <1>;
+
+ link-name = "Headphone Jack";
+
+ codec {
+ sound-dai = <&jack_codec>;
+ };
+
+ cpu {
+ sound-dai = <&mca 2>;
+ };
+ };
+ };
+};
diff --git a/arch/arm64/boot/dts/apple/t8103-j457.dts b/arch/arm64/boot/dts/apple/t8103-j457.dts
index ebddde75455c..d8ea6bb53b3f 100644
--- a/arch/arm64/boot/dts/apple/t8103-j457.dts
+++ b/arch/arm64/boot/dts/apple/t8103-j457.dts
@@ -69,3 +69,41 @@ ethernet0: ethernet at 0,0 {
&pcie0_dart_2 {
status = "okay";
};
+
+&i2c1 {
+ status = "okay";
+
+ jack_codec: codec at 48 {
+ compatible = "cirrus,cs42l83";
+ reg = <0x48>;
+ interrupts-extended = <&pinctrl_ap 183 IRQ_TYPE_LEVEL_LOW>;
+ reset-gpios = <&pinctrl_nub 11 GPIO_ACTIVE_HIGH>;
+ #sound-dai-cells = <0>;
+ sound-name-prefix = "Jack";
+ cirrus,ts-inv = <1>;
+ };
+};
+
+/ {
+ sound: sound {
+ compatible = "apple,j457-macaudio";
+ model = "iMac J457";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dai-link at 1 {
+ reg = <1>;
+
+ link-name = "Headphone Jack";
+
+ codec {
+ sound-dai = <&jack_codec>;
+ };
+
+ cpu {
+ sound-dai = <&mca 2>;
+ };
+ };
+ };
+};
--
2.55.0
More information about the Linux-mediatek
mailing list