From 78b5f75209f38ef9bb48778d62ca6ada08dddb43 Mon Sep 17 00:00:00 2001 From: Anton Bambura Date: Mon, 14 Mar 2022 21:57:44 +0200 Subject: [PATCH 25/33] ARM: dts: exynos: peach-pi: add jack detection Add GPIOs for headphones and microphone detection. Signed-off-by: Anton Bambura Tested-by: Valentine Iourine --- arch/arm/boot/dts/exynos5800-peach-pi.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 73b2616bd095..82192987a0cb 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -93,6 +93,11 @@ sound { samsung,model = "Peach-Pi-I2S-MAX98091"; samsung,i2s-controller = <&i2s0>; samsung,audio-codec = <&max98091>; + samsung,hp-det-gpios = <&gpx2 1 GPIO_ACTIVE_HIGH>; + samsung,mic-det-gpios = <&gpx1 7 GPIO_ACTIVE_LOW>; + + pinctrl-names = "default"; + pinctrl-0 = <&hp_det_gpio &mic_det_gpio>; cpu { sound-dai = <&i2s0 0>; @@ -817,6 +822,20 @@ ec_irq: ec-irq-pins { samsung,pin-drv = ; }; + mic_det_gpio: mic-det-gpio-pins { + samsung,pins = "gpx1-7"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hp_det_gpio: hp-det-gpio-pins { + samsung,pins = "gpx2-1"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + tps65090_irq: tps65090-irq-pins { samsung,pins = "gpx2-5"; samsung,pin-function = ; -- 2.38.0