From: Richard Acayan <mailingradian@gmail.com>
To: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
Cc: phone-devel@vger.kernel.org, Richard Acayan <mailingradian@gmail.com>
Subject: [PATCH v4 5/5] arm64: dts: qcom: sdm670-google: add sound card
Date: Mon, 23 Nov 2026 20:56:11 -0500 [thread overview]
Message-ID: <20261124015611.187024-6-mailingradian@gmail.com> (raw)
In-Reply-To: <20261124015611.187024-1-mailingradian@gmail.com>
The Pixel 3a has a sound card for built-in audio (RT5514 and CS35L36
codecs) and for the headphone jack (WCD codec). Add the sound card,
q6asm frontends, and WCD codec for headset audio.
Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
.../boot/dts/qcom/sdm670-google-common.dtsi | 133 ++++++++++++++++++
1 file changed, 133 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
index 2044593c22f3..9c89fb79ce74 100644
--- a/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
@@ -12,6 +12,7 @@
#include <dt-bindings/media/video-interface-devices.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/power/qcom-rpmpd.h>
+#include <dt-bindings/sound/qcom,q6asm.h>
#include "sdm670.dtsi"
#include "pm660.dtsi"
#include "pm660l.dtsi"
@@ -130,6 +131,84 @@ debug_info_mem: debug-info@a1800000 {
};
};
+ sound {
+ compatible = "qcom,sdm660-sndcard";
+ model = "Google Pixel 3a";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&cdc_pdm_default>,
+ <&cdc_dmic_default>;
+
+ audio-routing = "LPASS_PDM_TX", "PDM_TX",
+ "AMIC2", "MIC BIAS External2";
+
+ mm1-dai-link {
+ link-name = "MultiMedia1";
+
+ cpu {
+ sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
+ };
+ };
+
+ mm2-dai-link {
+ link-name = "MultiMedia2";
+
+ cpu {
+ sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
+ };
+ };
+
+ mm3-dai-link {
+ link-name = "MultiMedia3";
+
+ cpu {
+ sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
+ };
+ };
+
+ mm4-dai-link {
+ link-name = "MultiMedia4";
+
+ cpu {
+ sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>;
+ };
+ };
+
+ lpi-mi2s-rx-dai-link {
+ link-name = "LPI MI2S Playback";
+
+ codec {
+ sound-dai = <&pm660l_codec 0>,
+ <&lpass_codec 0>;
+ };
+
+ cpu {
+ sound-dai = <&q6afedai LPI_MI2S_RX_0>;
+ };
+
+ platform {
+ sound-dai = <&q6routing>;
+ };
+ };
+
+ lpi-mi2s-tx-dai-link {
+ link-name = "LPI MI2S Capture";
+
+ codec {
+ sound-dai = <&pm660l_codec 1>,
+ <&lpass_codec 1>;
+ };
+
+ cpu {
+ sound-dai = <&q6afedai LPI_MI2S_TX_3>;
+ };
+
+ platform {
+ sound-dai = <&q6routing>;
+ };
+ };
+ };
+
/*
* The touchscreen regulator seems to be controlled somehow by a gpio.
* Model it as a fixed regulator and keep it on. Without schematics we
@@ -550,6 +629,13 @@ rmi4_f12: rmi4-f12@12 {
};
};
+&lpass_codec {
+ assigned-clocks = <&q6afecc LPASS_CLK_ID_INT_MCLK_0 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ assigned-clock-rates = <9600000>;
+
+ status = "okay";
+};
+
&lpi_tlmm {
/* sensor gpios are protected */
gpio-reserved-ranges = <0 8>, <12 6>;
@@ -613,6 +699,23 @@ &pm660_rradc {
status = "okay";
};
+&pm660l_codec {
+ vdd-cdc-io-supply = <&vreg_l10a_1p8>;
+ vdd-cdc-tx-rx-cx-supply = <&vreg_l1b_0p925>;
+ vdd-micbias-supply = <&vreg_l7b_3p125>;
+
+ qcom,mbhc-vthreshold-low = <75 150 237 437 437>;
+ qcom,mbhc-vthreshold-high = <75 150 237 437 437>;
+
+ qcom,micbias-lvl = <2500>;
+
+ qcom,hphl-jack-type-normally-open;
+ qcom,gnd-jack-type-normally-open;
+ qcom,micbias2-ext-cap;
+
+ status = "okay";
+};
+
&pm660l_flash {
status = "okay";
@@ -655,6 +758,36 @@ &qupv3_id_1 {
status = "okay";
};
+&q6afedai {
+ dai@89 {
+ reg = <LPI_MI2S_RX_0>;
+ qcom,sd-lines = <0 1>;
+ };
+
+ dai@90 {
+ reg = <LPI_MI2S_TX_3>;
+ qcom,sd-lines = <0 1>;
+ };
+};
+
+&q6asmdai {
+ dai@0 {
+ reg = <MSM_FRONTEND_DAI_MULTIMEDIA1>;
+ };
+
+ dai@1 {
+ reg = <MSM_FRONTEND_DAI_MULTIMEDIA2>;
+ };
+
+ dai@2 {
+ reg = <MSM_FRONTEND_DAI_MULTIMEDIA3>;
+ };
+
+ dai@3 {
+ reg = <MSM_FRONTEND_DAI_MULTIMEDIA4>;
+ };
+};
+
&sdhc_1 {
supports-cqe;
mmc-hs200-1_8v;
--
2.56.1
prev parent reply other threads:[~2026-11-24 1:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 1:56 [PATCH v4 0/5] ADSP for SDM670 and sound on Google Pixel 3a Richard Acayan
2026-11-24 1:56 ` [PATCH v4 1/5] arm64: dts: qcom: sdm670: add adsp Richard Acayan
2026-11-24 2:14 ` sashiko-bot
2026-11-24 1:56 ` [PATCH v4 2/5] arm64: dts: qcom: sdm670-google: enable adsp Richard Acayan
2026-11-24 1:56 ` [PATCH v4 3/5] arm64: dts: qcom: pm660l: add analog audio codec Richard Acayan
2026-11-24 1:56 ` [PATCH v4 4/5] arm64: dts: qcom: sdm670: add digital " Richard Acayan
2026-11-24 2:17 ` sashiko-bot
2026-11-24 1:56 ` Richard Acayan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124015611.187024-6-mailingradian@gmail.com \
--to=mailingradian@gmail.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=phone-devel@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox