Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx6sl-evk: Add headphone detection for sound card

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>

authored by

Shengjiu Wang and committed by
Shawn Guo
b2b8d526 7d076e1f

+9
+9
arch/arm/boot/dts/imx6sl-evk.dts
··· 94 94 95 95 sound { 96 96 compatible = "fsl,imx6sl-evk-wm8962", "fsl,imx-audio-wm8962"; 97 + pinctrl-names = "default"; 98 + pinctrl-0 = <&pinctrl_hp>; 97 99 model = "wm8962-audio"; 98 100 ssi-controller = <&ssi2>; 99 101 audio-codec = <&codec>; ··· 108 106 "IN3R", "AMIC"; 109 107 mux-int-port = <2>; 110 108 mux-ext-port = <3>; 109 + hp-det-gpio = <&gpio4 19 GPIO_ACTIVE_LOW>; 111 110 }; 112 111 113 112 panel { ··· 343 340 MX6SL_PAD_FEC_TXD0__GPIO4_IO24 0x3080 344 341 MX6SL_PAD_FEC_TXD1__GPIO4_IO16 0x3080 345 342 MX6SL_PAD_FEC_REF_CLK__GPIO4_IO26 0x3080 343 + >; 344 + }; 345 + 346 + pinctrl_hp: hpgrp { 347 + fsl,pins = < 348 + MX6SL_PAD_FEC_RX_ER__GPIO4_IO19 0x1b0b0 346 349 >; 347 350 }; 348 351