From 3eebd4eb1d28bee517062dab9b635ea934c095c5 Mon Sep 17 00:00:00 2001 From: Anton Bambura Date: Sat, 5 Feb 2022 03:34:45 +0200 Subject: [PATCH 24/33] ARM: dts: exynos: peach-pit: add jack detection Add GPIOs for headphones and microphone detection. Signed-off-by: Anton Bambura --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index b45a47120213..18cadd6b4ef1 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -93,6 +93,11 @@ sound { samsung,model = "Peach-Pit-I2S-MAX98090"; samsung,i2s-controller = <&i2s0>; samsung,audio-codec = <&max98090>; + 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>; @@ -835,6 +840,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