From 3e4aeaa73172f602673340ba43006392f286b7b2 Mon Sep 17 00:00:00 2001 From: Michael Abood Date: Sun, 26 Jun 2022 16:42:02 -0400 Subject: [PATCH] arm64: dts: qcom: samsung-gtelwifiue: Add jack detection This adds headphone jack detection for samsung-gtelwifiue. This is required for headset microphones to work. Signed-off-by: Michael Abood --- .../dts/qcom/apq8016-samsung-gtelwifiue.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts b/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts index b6a76cb8169cfc..f154b4546f0d75 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts @@ -241,6 +241,17 @@ extcon = <&pm8916_usbin>; }; +&wcd_codec { + jack-gpios = <&msmgpio 110 GPIO_ACTIVE_LOW>; + qcom,micbias-lvl = <2800>; + + qcom,mbhc-vthreshold-low = <75 150 237 450 500>; + qcom,mbhc-vthreshold-high = <75 150 237 450 500>; + + pinctrl-names = "default"; + pinctrl-0 = <&jack_default>; +}; + &smd_rpm_regulators { vdd_l1_l2_l3-supply = <&pm8916_s3>; vdd_l4_l5_l6-supply = <&pm8916_s4>; @@ -353,6 +364,14 @@ bias-disable; }; + jack_default: jack-default { + pins = "gpio110"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + gpio_keys_default: gpio-keys-default { pins = "gpio107", "gpio109"; function = "gpio";