From 82193840594935833541b0fe45061afc22a47729 Mon Sep 17 00:00:00 2001 From: Michael Abood Date: Sun, 26 Jun 2022 16:40:00 -0400 Subject: [PATCH] arm64: dts: qcom: samsung-gtelwifiue: Enable audio This configures audio for samsung-gtelwifiue, which uses PM8916 for audio. Signed-off-by: Michael Abood --- .../dts/qcom/apq8016-samsung-gtelwifiue.dts | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts b/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts index b26e0cc2929ca9..b6a76cb8169cfc 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-samsung-gtelwifiue.dts @@ -3,6 +3,7 @@ /dts-v1/; #include "msm8916-pm8916.dtsi" +#include #include / { @@ -159,6 +160,10 @@ status = "okay"; }; +&lpass { + status = "okay"; +}; + &mdss { status = "okay"; }; @@ -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";