]> Gentwo Git Trees - linux/.git/commitdiff
arm64: dts: qcom: qcs6490-rb3gen2: Add sound card
authorMohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Wed, 3 Sep 2025 15:13:35 +0000 (20:43 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 8 Sep 2025 14:58:35 +0000 (09:58 -0500)
Add the sound card node with tested playback over WSA8835 speakers
and digital on-board mics.

Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250903151337.1037246-7-mohammad.rafi.shaik@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts

index 09e2cb9053a6be522bd24802378158ca4c3b7664..18cea8812001421456dc85547c3c711e2c42182a 100644 (file)
@@ -1048,6 +1048,51 @@ &sdhc_2 {
        status = "okay";
 };
 
+&sound {
+       compatible = "qcom,qcs6490-rb3gen2-sndcard";
+       model = "QCS6490-RB3Gen2";
+
+       audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
+                       "SpkrRight IN", "WSA_SPK2 OUT",
+                       "VA DMIC0", "vdd-micb",
+                       "VA DMIC1", "vdd-micb",
+                       "VA DMIC2", "vdd-micb",
+                       "VA DMIC3", "vdd-micb";
+
+       wsa-dai-link {
+               link-name = "WSA Playback";
+
+               codec {
+                       sound-dai = <&left_spkr>, <&right_spkr>,
+                                   <&swr2 0>, <&lpass_wsa_macro 0>;
+               };
+
+               cpu {
+                       sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
+               };
+
+               platform {
+                       sound-dai = <&q6apm>;
+               };
+       };
+
+       va-dai-link {
+               link-name = "VA Capture";
+
+               codec {
+                       sound-dai = <&lpass_va_macro 0>;
+               };
+
+               cpu {
+                       sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
+               };
+
+               platform {
+                       sound-dai = <&q6apm>;
+               };
+       };
+};
+
 &swr2 {
        status = "okay";