Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64: dts: qcom: msm8916-acer-a1-724: Add sound and modem #341

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/dts-v1/;

#include "msm8916-pm8916.dtsi"
#include "msm8916-modem-qdsp6.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
Expand Down Expand Up @@ -168,6 +169,17 @@
remote-endpoint = <&panel_in>;
};

&mpss_mem {
reg = <0x0 0x86800000 0x0 0x4500000>;
};

&pm8916_codec {
qcom,micbias-lvl = <2800>;
qcom,mbhc-vthreshold-low = <150 237 450 500 590>;
qcom,mbhc-vthreshold-high = <150 237 450 500 590>;
qcom,hphl-jack-type-normally-open;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The microphone/input doesn't switch between earpiece/speaker and headset automatically, but output does.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Headset microphone breaks buttons...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks similar to #353

};

&pm8916_resin {
linux,code = <KEY_VOLUMEDOWN>;
status = "okay";
Expand Down Expand Up @@ -203,6 +215,20 @@
status = "okay";
};

&sound {
model = "acer-a1-724";
audio-routing =
"DMIC1", "MIC BIAS External1",
"DMIC1", "Digital Mic1",
"AMIC2", "MIC BIAS Internal2",
"DMIC2", "MIC BIAS External1",
"DMIC2", "Digital Mic2";

pinctrl-0 = <&cdc_pdm_default &sec_mi2s_default &pri_mi2s_mclk_default &cdc_dmic_default>;
pinctrl-1 = <&cdc_pdm_sleep &sec_mi2s_sleep &pri_mi2s_mclk_sleep &cdc_dmic_sleep>;
pinctrl-names = "default", "sleep";
};

&usb {
extcon = <&usb_id>, <&usb_id>;
status = "okay";
Expand Down
Loading