Skip to content

Commit

Permalink
FIXME: arm64: dts: qcom: msm8916-samsung-j5-common: Add audio jack de…
Browse files Browse the repository at this point in the history
…tection (v2)

v2: Moved from msm8916-samsung-j5x

Headset microphone is broken with this on j5x, headphone buttons are
broken as well. (Needs more investigation...)

Signed-off-by: "Lin, Meng-Bo" <[email protected]>
  • Loading branch information
bolilingmeng89006 committed Aug 4, 2024
1 parent 0321d7b commit cdf211d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,16 @@
reg = <0x0 0x86800000 0x0 0x5800000>;
};

&pm8916_codec {
jack-gpios = <&tlmm 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-0 = <&jack_default>;
pinctrl-names = "default";
};

&pm8916_resin {
status = "okay";
linux,code = <KEY_VOLUMEDOWN>;
Expand Down Expand Up @@ -291,6 +301,13 @@
bias-pull-up;
};

jack_default: jack-default-state {
pins = "gpio110";
function = "gpio";
drive-strength = <2>;
bias-disable;
};

lcd_1p8_ldo_en_default: lcd-1p8-ldo-en-default-state {
function = "gpio";

Expand Down

0 comments on commit cdf211d

Please sign in to comment.