diff mbox series

ARM: dts: imx6qdl-sabresd: Support headphone and microphone detection

Message ID 1596623944-3104-1-git-send-email-shengjiu.wang@nxp.com
State Accepted
Commit d923d839429c42efda01ffd2d73bff9097495f9d
Headers show
Series ARM: dts: imx6qdl-sabresd: Support headphone and microphone detection | expand

Commit Message

Shengjiu Wang Aug. 5, 2020, 10:39 a.m. UTC
Add "DMIC" rounting, headphone and microphone detect gpio for sound
card, then output sound can switch between headphone and speaker.
input sound can switch between DMIC and AMIC.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>

---
 arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

-- 
2.27.0

Comments

Shawn Guo Aug. 22, 2020, 12:42 p.m. UTC | #1
On Wed, Aug 05, 2020 at 06:39:04PM +0800, Shengjiu Wang wrote:
> Add "DMIC" rounting, headphone and microphone detect gpio for sound

> card, then output sound can switch between headphone and speaker.

> input sound can switch between DMIC and AMIC.

> 

> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>


Applied, thanks.
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
index 28b35ccb3757..d933b5384a96 100644
--- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
@@ -105,9 +105,13 @@  sound {
 			"Ext Spk", "SPKOUTL",
 			"Ext Spk", "SPKOUTR",
 			"AMIC", "MICBIAS",
-			"IN3R", "AMIC";
+			"IN3R", "AMIC",
+			"DMIC", "MICBIAS",
+			"DMICDAT", "DMIC";
 		mux-int-port = <2>;
 		mux-ext-port = <3>;
+		hp-det-gpio = <&gpio7 8 GPIO_ACTIVE_LOW>;
+		mic-det-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>;
 	};
 
 	backlight_lvds: backlight-lvds {