[PATCH] arm64: dts: mediatek: mt8390-genio-common: Add DMIC codec for delay

From: Nícolas F. R. A. Prado
Date: Fri Feb 14 2025 - 13:26:08 EST


The UL_SRC_BE DAI is connected to the MT6359 PMIC which can switch
between a headset microphone and a built-in analog microphone. Both
microphones' signals require around 200ms to settle after being enabled.
Add a dmic-codec DAI to the UL_SRC_BE dai link with the corresponding
wakeup-delay-ms to let the signal stabilize and prevent a "pop" sound.

Co-developed-by: Zoran Zhan <zoran.zhan@xxxxxxxxxxxx>
Signed-off-by: Zoran Zhan <zoran.zhan@xxxxxxxxxxxx>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@xxxxxxxxxxxxx>
---
arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi | 15 +++++++++++++++
1 file changed, 15 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi b/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi
index a37cf102a6e928440cc88e7e8fe0225fc28ec962..6c934d70c1eadbc7af3f97af1961e629ab62ab3d 100644
--- a/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi
@@ -218,6 +218,13 @@ usb_p2_vbus: regulator-9 {
regulator-max-microvolt = <5000000>;
enable-active-high;
};
+
+ amic_codec: amic-codec {
+ compatible = "dmic-codec";
+ #sound-dai-cells = <0>;
+ num-channels = <2>;
+ wakeup-delay-ms = <200>;
+ };
};

&adsp {
@@ -970,6 +977,14 @@ codec {
sound-dai = <&pmic 0>;
};
};
+
+ dai-link-1 {
+ link-name = "UL_SRC_BE";
+
+ codec {
+ sound-dai = <&pmic 0>, <&amic_codec>;
+ };
+ };
};

&spi2 {

---
base-commit: 0ae0fa3bf0b44c8611d114a9f69985bf451010c3
change-id: 20250214-genio700-amic-wakeup-delay-200ms-b7b6ae563ee0

Best regards,
--
Nícolas F. R. A. Prado <nfraprado@xxxxxxxxxxxxx>