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

ARM: dts: imx6sx-sdb: 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
7d076e1f fe925380

+9
+9
arch/arm/boot/dts/imx6sx-sdb.dtsi
··· 153 153 154 154 sound { 155 155 compatible = "fsl,imx6sx-sdb-wm8962", "fsl,imx-audio-wm8962"; 156 + pinctrl-names = "default"; 157 + pinctrl-0 = <&pinctrl_hp>; 156 158 model = "wm8962-audio"; 157 159 ssi-controller = <&ssi2>; 158 160 audio-codec = <&codec>; ··· 167 165 "IN3R", "AMIC"; 168 166 mux-int-port = <2>; 169 167 mux-ext-port = <6>; 168 + hp-det-gpio = <&gpio1 17 GPIO_ACTIVE_LOW>; 170 169 }; 171 170 172 171 panel { ··· 468 465 fsl,pins = < 469 466 MX6SX_PAD_CSI_DATA04__GPIO1_IO_18 0x17059 470 467 MX6SX_PAD_CSI_DATA05__GPIO1_IO_19 0x17059 468 + >; 469 + }; 470 + 471 + pinctrl_hp: hpgrp { 472 + fsl,pins = < 473 + MX6SX_PAD_CSI_DATA03__GPIO1_IO_17 0x17059 471 474 >; 472 475 }; 473 476