Skip to content

Commit

Permalink
arm64: dts: qcom: samsung-gtelwifiue: Enable audio
Browse files Browse the repository at this point in the history
This configures audio for samsung-gtelwifiue, which uses PM8916 for
audio.

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

#include "msm8916-pm8916.dtsi"
#include <dt-bindings/sound/apq8016-lpass.h>
#include <dt-bindings/gpio/gpio.h>

/ {
Expand Down Expand Up @@ -159,6 +160,10 @@
status = "okay";
};

&lpass {
status = "okay";
};

&mdss {
status = "okay";
};
Expand Down Expand Up @@ -192,6 +197,39 @@
cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
};

&sound {
status = "okay";

pinctrl-names = "default", "sleep";
pinctrl-0 = <&cdc_pdm_lines_act>;
pinctrl-1 = <&cdc_pdm_lines_sus>;

model = "msm8916";
audio-routing =
"AMIC1", "MIC BIAS Internal1",
"AMIC2", "MIC BIAS Internal2";

dai-link-primary {
link-name = "Primary MI2S";
cpu {
sound-dai = <&lpass MI2S_PRIMARY>;
};
codec {
sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
};
};

dai-link-tertiary {
link-name = "Tertiary MI2S";
cpu {
sound-dai = <&lpass MI2S_TERTIARY>;
};
codec {
sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
};
};
};

&usb {
status = "okay";
dr_mode = "peripheral";
Expand Down

0 comments on commit 8219384

Please sign in to comment.