ARM: dts: imx6qdl-sabresd: Configure the gpio for hp detect
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 6 May 2021 03:41:19 +0000 (11:41 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sun, 23 May 2021 02:35:51 +0000 (10:35 +0800)
Configure the gpio for hp detect for wm8962 sound card

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 d20eaac..0c01054 100644 (file)
@@ -97,6 +97,8 @@
                compatible = "fsl,imx6q-sabresd-wm8962",
                           "fsl,imx-audio-wm8962";
                model = "wm8962-audio";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_hp>;
                ssi-controller = <&ssi2>;
                audio-codec = <&codec>;
                audio-asrc = <&asrc>;
                        >;
                };
 
+               pinctrl_hp: hpgrp {
+                       fsl,pins = <
+                               MX6QDL_PAD_SD3_RST__GPIO7_IO08          0x1b0b0
+                               MX6QDL_PAD_GPIO_9__GPIO1_IO09           0x1b0b0
+                       >;
+               };
+
                pinctrl_i2c1: i2c1grp {
                        fsl,pins = <
                                MX6QDL_PAD_CSI0_DAT8__I2C1_SDA          0x4001b8b1