ARM: dts: imx6qdl-sabresd: Support headphone and microphone detection
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 5 Aug 2020 10:39:04 +0000 (18:39 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sat, 22 Aug 2020 12:41:46 +0000 (20:41 +0800)
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-sabresd.dtsi

index 68b3e68..7dddcab 100644 (file)
                        "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 {