]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: dts: imx6sl-evk: Add headphone detection for sound card
authorShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 24 Aug 2020 07:50:38 +0000 (15:50 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 31 Aug 2020 02:30:30 +0000 (10:30 +0800)
Headphone detection is triggered by GPIO, then driver can
switch between speaker and headphone.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6sl-evk.dts

index 7a3827548cab160dd9d72da11ee0b7ca1426950f..25f6f2fb1555ee1f62dcf45b1d813e0a9469e0c2 100644 (file)
@@ -94,6 +94,8 @@
 
        sound {
                compatible = "fsl,imx6sl-evk-wm8962", "fsl,imx-audio-wm8962";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_hp>;
                model = "wm8962-audio";
                ssi-controller = <&ssi2>;
                audio-codec = <&codec>;
                        "IN3R", "AMIC";
                mux-int-port = <2>;
                mux-ext-port = <3>;
+               hp-det-gpio = <&gpio4 19 GPIO_ACTIVE_LOW>;
        };
 
        panel {
                        >;
                };
 
+               pinctrl_hp: hpgrp {
+                       fsl,pins = <
+                               MX6SL_PAD_FEC_RX_ER__GPIO4_IO19   0x1b0b0
+                       >;
+               };
+
                pinctrl_i2c1: i2c1grp {
                        fsl,pins = <
                                MX6SL_PAD_I2C1_SCL__I2C1_SCL    0x4001b8b1