Skip to content

Commit

Permalink
FIXME: arm64: dts: qcom: msm8916-samsung-gt5-common: Add audio jack d…
Browse files Browse the repository at this point in the history
…etection

gt5 devices use jack detection IC. Add it.

Signed-off-by: Jasper Korten <[email protected]>
Co-developed-by: Nikita Travkin <[email protected]>
Signed-off-by: Nikita Travkin <[email protected]>
  • Loading branch information
jja2000 authored and stephan-gh committed Aug 5, 2021
1 parent a28fc3b commit 9366b37
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-gt5-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,16 @@
extcon = <&usb_vbus>;
};

&wcd_codec {
jack-gpios = <&msmgpio 110 GPIO_ACTIVE_LOW>;
qcom,micbias-lvl = <2800>;
qcom,mbhc-vtreshold-low = <75 150 237 450 500>;
qcom,mbhc-vtreshold-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 @@ -352,4 +362,12 @@
drive-strength = <2>;
bias-disable;
};

jack_default: jack-default {
pins = "gpio110";
function = "gpio";

drive-strength = <2>;
bias-disable;
};
};

0 comments on commit 9366b37

Please sign in to comment.