From: Richard Acayan <mailingradian@gmail.com>
To: Jassi Brar <jassisinghbrar@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Andy Gross <agross@kernel.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-remoteproc@vger.kernel.org
Cc: Richard Acayan <mailingradian@gmail.com>
Subject: [PATCH 11/11] arm64: dts: qcom: sdm670-google: configure analog and digital codecs
Date: Mon, 21 Sep 2026 21:58:01 -0400 [thread overview]
Message-ID: <20260922015801.32373-12-mailingradian@gmail.com> (raw)
In-Reply-To: <20260922015801.32373-1-mailingradian@gmail.com>
The SDM660 digital and PM660L analog audio codecs control the headphone
jack on the Pixel 3a. Configure them for sound playback.
Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
.../boot/dts/qcom/sdm670-google-common.dtsi | 87 ++++++++++++++++++-
1 file changed, 86 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
index 3abde2cbf746..48aea5d72092 100644
--- a/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm670-google-common.dtsi
@@ -53,6 +53,14 @@ framebuffer: framebuffer@9c000000 {
};
};
+ clocks {
+ int_cdc_bclk: int-cdc-bclk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <1536000>;
+ };
+ };
+
gpio-keys {
compatible = "gpio-keys";
autorepeat;
@@ -133,7 +141,14 @@ sound {
model = "Google Pixel 3a";
pinctrl-names = "default";
- pinctrl-0 = <&cdc_pdm_default>;
+ pinctrl-0 = <&cdc_pdm_default>,
+ <&cdc_dmic_default>;
+
+ audio-routing = "Analog PDM_RX1", "Digital PDM_RX1",
+ "Analog PDM_RX2", "Digital PDM_RX2",
+ "Analog PDM_RX3", "Digital PDM_RX3",
+ "Digital LPASS_PDM_TX", "Analog PDM_TX",
+ "Analog AMIC2", "Analog MIC BIAS External2";
mm1-dai-link {
link-name = "MultiMedia1";
@@ -166,6 +181,40 @@ cpu {
sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>;
};
};
+
+ lpi-mi2s-rx-dai-link {
+ link-name = "LPI MI2S Playback";
+
+ cpu {
+ sound-dai = <&q6afedai LPI_MI2S_RX_0>;
+ };
+
+ platform {
+ sound-dai = <&q6routing>;
+ };
+
+ codec {
+ sound-dai = <&pm660l_codec 0>,
+ <&lpass_codec 0>;
+ };
+ };
+
+ lpi-mi2s-tx-dai-link {
+ link-name = "LPI MI2S Capture";
+
+ cpu {
+ sound-dai = <&q6afedai LPI_MI2S_TX_3>;
+ };
+
+ platform {
+ sound-dai = <&q6routing>;
+ };
+
+ codec {
+ sound-dai = <&pm660l_codec 1>,
+ <&lpass_codec 1>;
+ };
+ };
};
/*
@@ -568,6 +617,17 @@ rmi4_f12: rmi4-f12@12 {
};
};
+&lpass_codec {
+ clocks = <&int_cdc_bclk>,
+ <&q6afecc LPASS_CLK_ID_INT_MCLK_0 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "ahbix-clk", "mclk";
+
+ 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>;
@@ -631,6 +691,19 @@ &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>;
+
+ status = "okay";
+};
+
&pm660l_flash {
status = "okay";
@@ -673,6 +746,18 @@ &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>;
--
2.55.0
next prev parent reply other threads:[~2026-09-22 1:58 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 1:57 [PATCH 00/11] ADSP for SDM670 and sound on Google Pixel 3a Richard Acayan
2026-09-22 1:57 ` [PATCH 01/11] dt-bindings: soc: qcom,smp2p: add sleepstate support Richard Acayan
2026-09-27 18:08 ` Krzysztof Kozlowski
2026-09-22 1:57 ` [PATCH 02/11] dt-bindings: mailbox: qcom: Add SDM670 APCS compatible Richard Acayan
2026-09-27 18:09 ` Krzysztof Kozlowski
2026-09-22 1:57 ` [PATCH 03/11] dt-bindings: soc: qcom: aoss: Add compatible for SDM670 Richard Acayan
2026-09-27 18:10 ` Krzysztof Kozlowski
2026-09-22 1:57 ` [PATCH 04/11] dt-bindings: remoteproc: qcom: adsp: Add SDM670 ADSP compatible Richard Acayan
2026-09-27 18:10 ` Krzysztof Kozlowski
2026-09-22 1:57 ` [PATCH 05/11] remoteproc: qcom: pas: Add SDM670 ADSP support Richard Acayan
2026-09-22 10:44 ` Konrad Dybcio
2026-09-28 14:55 ` Richard Acayan
2026-09-22 1:57 ` [PATCH 06/11] arm64: dts: qcom: sdm670: add adsp Richard Acayan
2026-09-22 2:08 ` sashiko-bot
2026-10-01 8:38 ` Konrad Dybcio
2026-09-22 1:57 ` [PATCH 07/11] arm64: dts: qcom: sdm670-google: enable adsp Richard Acayan
2026-10-01 8:38 ` Konrad Dybcio
2026-09-22 1:57 ` [PATCH 08/11] arm64: dts: qcom: sdm670-google: add sound card Richard Acayan
2026-09-22 1:57 ` [PATCH 09/11] arm64: dts: qcom: pm660l: add analog audio codec Richard Acayan
2026-09-22 2:05 ` sashiko-bot
2026-09-22 1:58 ` [PATCH 10/11] arm64: dts: qcom: sdm670: add digital " Richard Acayan
2026-10-01 8:39 ` Konrad Dybcio
2026-09-22 1:58 ` Richard Acayan [this message]
2026-09-22 2:11 ` [PATCH 11/11] arm64: dts: qcom: sdm670-google: configure analog and digital codecs sashiko-bot
2026-09-22 10:47 ` Konrad Dybcio
2026-09-25 17:48 ` Richard Acayan
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=20260922015801.32373-12-mailingradian@gmail.com \
--to=mailingradian@gmail.com \
--cc=abelvesa@kernel.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jassisinghbrar@gmail.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mani@kernel.org \
--cc=mathieu.poirier@linaro.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