Skip to content

Commit

Permalink
arm64: dts: qcom: samsung-gtelwifiue: Add jack detection
Browse files Browse the repository at this point in the history
This adds headphone jack detection for samsung-gtelwifiue. This
is required for headset microphones to work.

Signed-off-by: Michael Abood <[email protected]>
  • Loading branch information
person4268 committed Jun 27, 2022
1 parent 8219384 commit 3e4aeaa
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 3e4aeaa

Please sign in to comment.