* [PATCH v1 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards
@ 2025-03-17 5:41 Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 1/8] arm64: dts: qcom: sc7280: Add gpr node Prasad Kumpatla
` (7 more replies)
0 siblings, 8 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-03-17 5:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
quic_pkumpatl, kernel, Mohammad Rafi Shaik
From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Audio support is now enabled on the qcs6490-RB3Gen2 and qcm6490-idp boards.
The updates include adding the necessary audio device tree support and the required
dependencies.
Both the qcs6490-RB3Gen2 and qcm6490-idp boards are derived from the same SoC
platform. Therefore, the audio support changes are included in a single patch
set for consistency and ease of maintenance.
Mohammad Rafi Shaik (8):
arm64: dts: qcom: sc7280: Add gpr node
arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support
arm64: dts: qcom: qcs6490-rb3gen2: Modify WSA and VA macro clock nodes
for audioreach solution
arm64: dts: qcom: qcs6490-rb3gen2: add WSA8830 speakers
arm64: dts: qcom: qcs6490-rb3gen2: Add sound card
arm64: dts: qcom: qcm6490-idp: Modify WSA/VA/RX/TX macro clock nodes
for audioreach solution
arm64: dts: qcom: qcm6490-idp: Add WSA8830 speakers and WCD9370
headset codec
arm64: dts: qcom: qcm6490-idp: Add sound card
arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 282 +++++++++++++++++++
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 138 +++++++++
arch/arm64/boot/dts/qcom/sc7280.dtsi | 105 +++++++
3 files changed, 525 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH v1 1/8] arm64: dts: qcom: sc7280: Add gpr node
2025-03-17 5:41 [PATCH v1 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Prasad Kumpatla
@ 2025-03-17 5:41 ` Prasad Kumpatla
2025-03-26 22:51 ` Bryan O'Donoghue
2025-03-17 5:41 ` [PATCH v1 2/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support Prasad Kumpatla
` (6 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Prasad Kumpatla @ 2025-03-17 5:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
quic_pkumpatl, kernel, Mohammad Rafi Shaik
From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Add GPR node along with APM(Audio Process Manager) and PRM(Proxy
resource Manager) audio services.
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
---
arch/arm64/boot/dts/qcom/sc7280.dtsi | 37 ++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
index 0f2caf36910b..39fbd3c40e47 100644
--- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
@@ -25,6 +25,8 @@
#include <dt-bindings/reset/qcom,sdm845-aoss.h>
#include <dt-bindings/reset/qcom,sdm845-pdc.h>
#include <dt-bindings/soc/qcom,apr.h>
+#include <dt-bindings/soc/qcom,gpr.h>
+#include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h>
#include <dt-bindings/soc/qcom,rpmh-rsc.h>
#include <dt-bindings/sound/qcom,lpass.h>
#include <dt-bindings/thermal/thermal.h>
@@ -3857,6 +3859,41 @@ q6routing: routing {
};
};
+ gpr {
+ compatible = "qcom,gpr";
+ qcom,glink-channels = "adsp_apps";
+ qcom,domain = <GPR_DOMAIN_ID_ADSP>;
+ qcom,intents = <512 20>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ q6apm: service@1 {
+ compatible = "qcom,q6apm";
+ reg = <GPR_APM_MODULE_IID>;
+ #sound-dai-cells = <0>;
+
+ q6apmdai: dais {
+ compatible = "qcom,q6apm-dais";
+ iommus = <&apps_smmu 0x1801 0x0>;
+ };
+
+ q6apmbedai: bedais {
+ compatible = "qcom,q6apm-lpass-dais";
+ #sound-dai-cells = <1>;
+ };
+ };
+
+ q6prm: service@2 {
+ compatible = "qcom,q6prm";
+ reg = <GPR_PRM_MODULE_IID>;
+
+ q6prmcc: clock-controller {
+ compatible = "qcom,q6prm-lpass-clocks";
+ #clock-cells = <2>;
+ };
+ };
+ };
+
fastrpc {
compatible = "qcom,fastrpc";
qcom,glink-channels = "fastrpcglink-apps-dsp";
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH v1 2/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support
2025-03-17 5:41 [PATCH v1 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 1/8] arm64: dts: qcom: sc7280: Add gpr node Prasad Kumpatla
@ 2025-03-17 5:41 ` Prasad Kumpatla
2025-03-26 23:02 ` Bryan O'Donoghue
2025-03-27 14:12 ` Dmitry Baryshkov
2025-03-17 5:41 ` [PATCH v1 3/8] arm64: dts: qcom: qcs6490-rb3gen2: Modify WSA and VA macro clock nodes for audioreach solution Prasad Kumpatla
` (5 subsequent siblings)
7 siblings, 2 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-03-17 5:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
quic_pkumpatl, kernel, Mohammad Rafi Shaik
From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Add WSA macroLPASS Codecs along with SoundWire controller.
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
---
arch/arm64/boot/dts/qcom/sc7280.dtsi | 68 ++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
index 39fbd3c40e47..90b2f6e2b7c0 100644
--- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
@@ -2602,6 +2602,64 @@ swr1: soundwire@3230000 {
status = "disabled";
};
+ lpass_wsa_macro: codec@3240000 {
+ compatible = "qcom,sc7280-lpass-wsa-macro";
+ reg = <0x0 0x03240000 0x0 0x1000>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&lpass_wsa_swr_clk>, <&lpass_wsa_swr_data>;
+
+ clocks = <&lpass_aon LPASS_AON_CC_TX_MCLK_CLK>,
+ <&lpass_aon LPASS_AON_CC_TX_MCLK_2X_CLK>,
+ <&lpass_va_macro>;
+ clock-names = "mclk", "npl", "fsgen";
+
+ power-domains = <&lpass_hm LPASS_CORE_CC_LPASS_CORE_HM_GDSC>,
+ <&lpass_aon LPASS_AON_CC_LPASS_AUDIO_HM_GDSC>;
+ power-domain-names = "macro", "dcodec";
+
+ #clock-cells = <0>;
+ clock-output-names = "mclk";
+ #sound-dai-cells = <1>;
+
+ status = "disabled";
+ };
+
+ swr2: soundwire@3250000 {
+ compatible = "qcom,soundwire-v1.6.0";
+ reg = <0x0 0x03250000 0x0 0x2000>;
+
+ interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&lpass_wsa_macro>;
+ clock-names = "iface";
+
+ qcom,din-ports = <2>;
+ qcom,dout-ports = <6>;
+
+ resets = <&lpass_audiocc LPASS_AUDIO_SWR_WSA_CGCR>;
+ reset-names = "swr_audio_cgcr";
+
+ qcom,ports-sinterval-low = /bits/ 8 <0x07 0x1f 0x3f 0x07
+ 0x1f 0x3f 0x0f 0x0f>;
+ qcom,ports-offset1 = /bits/ 8 <0x01 0x02 0x0c 0x06 0x12 0x0d 0x07 0x0a>;
+ qcom,ports-offset2 = /bits/ 8 <0xff 0x00 0x1f 0xff 0x00 0x1f 0x00 0x00>;
+ qcom,ports-hstart = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff>;
+ qcom,ports-hstop = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff>;
+ qcom,ports-word-length = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff>;
+ qcom,ports-block-pack-mode = /bits/ 8 <0xff 0xff 0x01 0xff 0xff 0x01
+ 0xff 0xff>;
+ qcom,ports-block-group-count = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff
+ 0xff 0xff>;
+ qcom,ports-lane-control = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff
+ 0xff 0xff>;
+
+ #address-cells = <2>;
+ #size-cells = <0>;
+ #sound-dai-cells = <1>;
+
+ status = "disabled";
+ };
+
lpass_audiocc: clock-controller@3300000 {
compatible = "qcom,sc7280-lpassaudiocc";
reg = <0 0x03300000 0 0x30000>,
@@ -2808,6 +2866,16 @@ lpass_tx_swr_data: tx-swr-data-state {
pins = "gpio1", "gpio2", "gpio14";
function = "swr_tx_data";
};
+
+ lpass_wsa_swr_clk: wsa-swr-clk-state {
+ pins = "gpio10";
+ function = "wsa_swr_clk";
+ };
+
+ lpass_wsa_swr_data: wsa-swr-data-state {
+ pins = "gpio11";
+ function = "wsa_swr_data";
+ };
};
gpu: gpu@3d00000 {
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH v1 3/8] arm64: dts: qcom: qcs6490-rb3gen2: Modify WSA and VA macro clock nodes for audioreach solution
2025-03-17 5:41 [PATCH v1 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 1/8] arm64: dts: qcom: sc7280: Add gpr node Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 2/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support Prasad Kumpatla
@ 2025-03-17 5:41 ` Prasad Kumpatla
2025-04-01 16:05 ` Konrad Dybcio
2025-03-17 5:41 ` [PATCH v1 4/8] arm64: dts: qcom: qcs6490-rb3gen2: add WSA8830 speakers amplifier Prasad Kumpatla
` (4 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Prasad Kumpatla @ 2025-03-17 5:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
quic_pkumpatl, kernel, Mohammad Rafi Shaik
From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Modify and enable WSA, VA and lpass_tlmm clock properties.
For audioreach solution mclk, npl and fsgen clocks
are enabled through the q6prm clock driver.
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 31 ++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
index 7a36c90ad4ec..23dea375c213 100644
--- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
@@ -12,6 +12,7 @@
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
+#include <dt-bindings/sound/qcom,q6afe.h>
#include "sc7280.dtsi"
#include "pm7250b.dtsi"
#include "pm7325.dtsi"
@@ -666,6 +667,36 @@ redriver_usb_con_sbu: endpoint {
};
};
+&lpass_tlmm {
+ clocks = <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "core", "audio";
+};
+
+&lpass_va_macro {
+ /delete-property/ power-domains;
+ /delete-property/ power-domain-names;
+ clocks = <&q6prmcc LPASS_CLK_ID_VA_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "mclk", "macro", "dcodec";
+
+ status = "okay";
+};
+
+&lpass_wsa_macro {
+ /delete-property/ power-domains;
+ /delete-property/ power-domain-names;
+ clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&lpass_va_macro>;
+ clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
+
+ status = "okay";
+};
+
&mdss {
status = "okay";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH v1 4/8] arm64: dts: qcom: qcs6490-rb3gen2: add WSA8830 speakers amplifier
2025-03-17 5:41 [PATCH v1 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Prasad Kumpatla
` (2 preceding siblings ...)
2025-03-17 5:41 ` [PATCH v1 3/8] arm64: dts: qcom: qcs6490-rb3gen2: Modify WSA and VA macro clock nodes for audioreach solution Prasad Kumpatla
@ 2025-03-17 5:41 ` Prasad Kumpatla
2025-03-26 17:28 ` Jorge Ramirez
2025-03-17 5:41 ` [PATCH v1 5/8] arm64: dts: qcom: qcs6490-rb3gen2: Add sound card Prasad Kumpatla
` (3 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Prasad Kumpatla @ 2025-03-17 5:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
quic_pkumpatl, kernel, Mohammad Rafi Shaik
From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Add nodes for WSA8830 speakers amplifier on qcs6490-rb3gen2 board.
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 27 ++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
index 23dea375c213..a1a3df77ad57 100644
--- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
@@ -870,6 +870,33 @@ &sdhc_2 {
status = "okay";
};
+&swr2 {
+ qcom,din-ports = <0>;
+ qcom,dout-ports = <8>;
+
+ left_spkr: speaker@0,1 {
+ compatible = "sdw10217020200";
+ reg = <0 1>;
+ powerdown-gpios = <&tlmm 158 GPIO_ACTIVE_LOW>;
+ #sound-dai-cells = <0>;
+ sound-name-prefix = "SpkrLeft";
+ #thermal-sensor-cells = <0>;
+ vdd-supply = <&vreg_l18b_1p8>;
+ qcom,port-mapping = <1 2 3 7>;
+ };
+
+ right_spkr: speaker@0,2 {
+ compatible = "sdw10217020200";
+ reg = <0 2>;
+ powerdown-gpios = <&tlmm 158 GPIO_ACTIVE_LOW>;
+ #sound-dai-cells = <0>;
+ sound-name-prefix = "SpkrRight";
+ #thermal-sensor-cells = <0>;
+ vdd-supply = <&vreg_l18b_1p8>;
+ qcom,port-mapping = <4 5 6 8>;
+ };
+};
+
&tlmm {
gpio-reserved-ranges = <32 2>, /* ADSP */
<48 4>; /* NFC */
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH v1 5/8] arm64: dts: qcom: qcs6490-rb3gen2: Add sound card
2025-03-17 5:41 [PATCH v1 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Prasad Kumpatla
` (3 preceding siblings ...)
2025-03-17 5:41 ` [PATCH v1 4/8] arm64: dts: qcom: qcs6490-rb3gen2: add WSA8830 speakers amplifier Prasad Kumpatla
@ 2025-03-17 5:41 ` Prasad Kumpatla
2025-04-01 21:32 ` Konrad Dybcio
2025-03-17 5:41 ` [PATCH v1 6/8] arm64: dts: qcom: qcm6490-idp: Modify WSA/VA/RX/TX macro clock nodes for audioreach solution Prasad Kumpatla
` (2 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Prasad Kumpatla @ 2025-03-17 5:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
quic_pkumpatl, kernel, Mohammad Rafi Shaik
From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Add the sound card node with tested playback over WSA8835 speakers
and msm mics.
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 80 ++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
index a1a3df77ad57..5d4d3df6eff9 100644
--- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
+++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
@@ -219,6 +219,56 @@ vph_pwr: vph-pwr-regulator {
regulator-min-microvolt = <3700000>;
regulator-max-microvolt = <3700000>;
};
+
+ sound: sound {
+ compatible = "qcom,qcs6490-rb3gen2-sndcard";
+ model = "qcs6490-rb3gen2-snd-card";
+
+ 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";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ wsa-dai-link {
+ link-name = "CODEC_DMA-LPAIF_WSA-RX-0";
+
+ cpu {
+ sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
+ };
+
+ codec {
+ sound-dai = <&left_spkr>, <&right_spkr>, <&swr2 0>,
+ <&lpass_wsa_macro 0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ va-dai-link {
+ link-name = "CODEC_DMA-LPAIF_VA-TX-0";
+
+ cpu {
+ sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
+ };
+
+ codec {
+ sound-dai = <&lpass_va_macro 0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+ };
+
};
&apps_rsc {
@@ -697,6 +747,36 @@ &lpass_wsa_macro {
status = "okay";
};
+&lpass_dmic01_clk {
+ drive-strength = <8>;
+ bias-disable;
+};
+
+&lpass_dmic01_data {
+ bias-pull-down;
+};
+
+&lpass_dmic23_clk {
+ drive-strength = <8>;
+ bias-disable;
+};
+
+&lpass_dmic23_data {
+ bias-pull-down;
+};
+
+&lpass_wsa_swr_clk {
+ drive-strength = <2>;
+ slew-rate = <1>;
+ bias-disable;
+};
+
+&lpass_wsa_swr_data {
+ drive-strength = <2>;
+ slew-rate = <1>;
+ bias-bus-hold;
+};
+
&mdss {
status = "okay";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH v1 6/8] arm64: dts: qcom: qcm6490-idp: Modify WSA/VA/RX/TX macro clock nodes for audioreach solution
2025-03-17 5:41 [PATCH v1 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Prasad Kumpatla
` (4 preceding siblings ...)
2025-03-17 5:41 ` [PATCH v1 5/8] arm64: dts: qcom: qcs6490-rb3gen2: Add sound card Prasad Kumpatla
@ 2025-03-17 5:41 ` Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 7/8] arm64: dts: qcom: qcm6490-idp: Add WSA8830 speakers amplifier and WCD9370 headset codec Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 8/8] arm64: dts: qcom: qcm6490-idp: Add sound card Prasad Kumpatla
7 siblings, 0 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-03-17 5:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
quic_pkumpatl, kernel, Mohammad Rafi Shaik
From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Modify and enable WSA, VA, RX and TX macro and lpass_tlmm clock properties.
For audioreach solution mclk, npl and fsgen clocks are enabled through
the q6prm clock driver.
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 57 ++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
index 9209efcc49b5..5f994188bb0b 100644
--- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
@@ -13,6 +13,7 @@
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
+#include <dt-bindings/sound/qcom,q6afe.h>
#include "sc7280.dtsi"
#include "pm7250b.dtsi"
#include "pm7325.dtsi"
@@ -515,6 +516,62 @@ &gpu_zap_shader {
firmware-name = "qcom/qcm6490/a660_zap.mbn";
};
+&lpass_rx_macro {
+ /delete-property/ power-domains;
+ /delete-property/ power-domain-names;
+ clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&lpass_va_macro>;
+ clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
+
+ status = "okay";
+};
+
+&lpass_tlmm {
+ clocks = <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "core", "audio";
+};
+
+&lpass_tx_macro {
+ /delete-property/ power-domains;
+ /delete-property/ power-domain-names;
+ clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&lpass_va_macro>;
+ clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
+
+ status = "okay";
+};
+
+&lpass_va_macro {
+ /delete-property/ power-domains;
+ /delete-property/ power-domain-names;
+ clocks = <&q6prmcc LPASS_CLK_ID_VA_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ clock-names = "mclk", "macro", "dcodec";
+
+ status = "okay";
+};
+
+&lpass_wsa_macro {
+ /delete-property/ power-domains;
+ /delete-property/ power-domain-names;
+ clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+ <&lpass_va_macro>;
+ clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
+
+ status = "okay";
+};
+
&mdss {
status = "okay";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH v1 7/8] arm64: dts: qcom: qcm6490-idp: Add WSA8830 speakers amplifier and WCD9370 headset codec
2025-03-17 5:41 [PATCH v1 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Prasad Kumpatla
` (5 preceding siblings ...)
2025-03-17 5:41 ` [PATCH v1 6/8] arm64: dts: qcom: qcm6490-idp: Modify WSA/VA/RX/TX macro clock nodes for audioreach solution Prasad Kumpatla
@ 2025-03-17 5:41 ` Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 8/8] arm64: dts: qcom: qcm6490-idp: Add sound card Prasad Kumpatla
7 siblings, 0 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-03-17 5:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
quic_pkumpatl, kernel, Mohammad Rafi Shaik
From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Add nodes for WSA8830 speakers amplifier and WCD9370 headset codec
on qcm6490-idp board.
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 83 ++++++++++++++++++++++++
1 file changed, 83 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
index 5f994188bb0b..cbe11c6b6672 100644
--- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
@@ -170,6 +170,30 @@ vph_pwr: vph-pwr-regulator {
regulator-min-microvolt = <3700000>;
regulator-max-microvolt = <3700000>;
};
+
+ wcd9370: audio-codec-0 {
+ compatible = "qcom,wcd9370-codec";
+
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&wcd_reset_n>;
+ pinctrl-1 = <&wcd_reset_n_sleep>;
+
+ reset-gpios = <&tlmm 83 GPIO_ACTIVE_HIGH>;
+
+ vdd-buck-supply = <&vreg_l17b_1p7>;
+ vdd-rxtx-supply = <&vreg_l18b_1p8>;
+ vdd-px-supply = <&vreg_l18b_1p8>;
+ vdd-mic-bias-supply = <&vreg_bob_3p296>;
+
+ qcom,micbias1-microvolt = <1800000>;
+ qcom,micbias2-microvolt = <1800000>;
+ qcom,micbias3-microvolt = <1800000>;
+
+ qcom,rx-device = <&wcd937x_rx>;
+ qcom,tx-device = <&wcd937x_tx>;
+
+ #sound-dai-cells = <1>;
+ };
};
&apps_rsc {
@@ -729,6 +753,30 @@ &sdc2_data {
drive-strength = <10>;
};
+&swr2 {
+ left_spkr: speaker@0,1 {
+ compatible = "sdw10217020200";
+ reg = <0 1>;
+ powerdown-gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
+ #sound-dai-cells = <0>;
+ sound-name-prefix = "SpkrLeft";
+ #thermal-sensor-cells = <0>;
+ vdd-supply = <&vreg_l18b_1p8>;
+ qcom,port-mapping = <1 2 3 7>;
+ };
+
+ right_spkr: speaker@0,2 {
+ compatible = "sdw10217020200";
+ reg = <0 2>;
+ powerdown-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
+ #sound-dai-cells = <0>;
+ sound-name-prefix = "SpkrRight";
+ #thermal-sensor-cells = <0>;
+ vdd-supply = <&vreg_l18b_1p8>;
+ qcom,port-mapping = <4 5 6 8>;
+ };
+};
+
&sdhc_1 {
non-removable;
no-sd;
@@ -752,6 +800,22 @@ &sdhc_2 {
cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>;
};
+&swr0 {
+ wcd937x_rx: codec@0,4 {
+ compatible = "sdw20217010a00";
+ reg = <0 4>;
+ qcom,rx-port-mapping = <1 2 3 4 5>;
+ };
+};
+
+&swr1 {
+ wcd937x_tx: codec@0,3 {
+ compatible = "sdw20217010a00";
+ reg = <0 3>;
+ qcom,tx-port-mapping = <1 1 2 3>;
+ };
+};
+
&tlmm {
gpio-reserved-ranges = <32 2>, /* ADSP */
<48 4>; /* NFC */
@@ -761,6 +825,25 @@ sd_cd: sd-cd-state {
function = "gpio";
bias-pull-up;
};
+
+ sw_ctrl: sw-ctrl-state {
+ pins = "gpio86";
+ function = "gpio";
+ bias-pull-down;
+ };
+
+ wcd_reset_n: wcd-reset-n-state {
+ pins = "gpio83";
+ function = "gpio";
+ drive-strength = <8>;
+ };
+
+ wcd_reset_n_sleep: wcd-reset-n-sleep-state {
+ pins = "gpio83";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-disable;
+ };
};
&uart5 {
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH v1 8/8] arm64: dts: qcom: qcm6490-idp: Add sound card
2025-03-17 5:41 [PATCH v1 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Prasad Kumpatla
` (6 preceding siblings ...)
2025-03-17 5:41 ` [PATCH v1 7/8] arm64: dts: qcom: qcm6490-idp: Add WSA8830 speakers amplifier and WCD9370 headset codec Prasad Kumpatla
@ 2025-03-17 5:41 ` Prasad Kumpatla
2025-03-26 23:12 ` Bryan O'Donoghue
7 siblings, 1 reply; 24+ messages in thread
From: Prasad Kumpatla @ 2025-03-17 5:41 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
quic_pkumpatl, kernel, Mohammad Rafi Shaik
From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Add the sound card node with tested playback over WSA8835 speakers,
msm mic along with wcd9370 headset playabck and record.
Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 142 +++++++++++++++++++++++
1 file changed, 142 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
index cbe11c6b6672..1c8b82bf6c1a 100644
--- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
+++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts
@@ -164,6 +164,94 @@ debug_vm_mem: debug-vm@d0600000 {
};
};
+ sound: sound {
+ compatible = "qcom,qcm6490-idp-sndcard";
+ model = "qcm6490-idp-snd-card";
+
+ audio-routing =
+ "SpkrLeft IN", "WSA_SPK1 OUT",
+ "SpkrRight IN", "WSA_SPK2 OUT",
+ "IN1_HPHL", "HPHL_OUT",
+ "IN2_HPHR", "HPHR_OUT",
+ "AMIC2", "MIC BIAS2",
+ "TX DMIC0", "MIC BIAS1",
+ "TX DMIC1", "MIC BIAS2",
+ "TX DMIC2", "MIC BIAS3",
+ "TX SWR_ADC1", "ADC2_OUTPUT",
+ "VA DMIC0", "VA MIC BIAS3",
+ "VA DMIC1", "VA MIC BIAS3",
+ "VA DMIC2", "VA MIC BIAS1",
+ "VA DMIC3", "VA MIC BIAS1";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ wsa-dai-link {
+ link-name = "CODEC_DMA-LPAIF_WSA-RX-0";
+
+ cpu {
+ sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
+ };
+
+ codec {
+ sound-dai = <&left_spkr>, <&right_spkr>, <&swr2 0>,
+ <&lpass_wsa_macro 0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ wcd-playback-dai-link {
+ link-name = "CODEC_DMA-LPAIF_RXTX-RX-0";
+
+ cpu {
+ sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
+ };
+
+ codec {
+ sound-dai = <&wcd9370 0>, <&swr0 0>, <&lpass_rx_macro 0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ wcd-capture-dai-link {
+ link-name = "CODEC_DMA-LPAIF_RXTX-TX-3";
+
+ cpu {
+ sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
+ };
+
+ codec {
+ sound-dai = <&wcd9370 1>, <&swr1 0>, <&lpass_tx_macro 0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+
+ va-dai-link {
+ link-name = "CODEC_DMA-LPAIF_VA-TX-0";
+
+ cpu {
+ sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
+ };
+
+ codec {
+ sound-dai = <&lpass_va_macro 0>;
+ };
+
+ platform {
+ sound-dai = <&q6apm>;
+ };
+ };
+ };
+
vph_pwr: vph-pwr-regulator {
compatible = "regulator-fixed";
regulator-name = "vph_pwr";
@@ -596,6 +684,60 @@ &lpass_wsa_macro {
status = "okay";
};
+&lpass_dmic01_clk {
+ drive-strength = <8>;
+ bias-disable;
+};
+
+&lpass_dmic01_data {
+ bias-pull-down;
+};
+
+&lpass_dmic23_clk {
+ drive-strength = <8>;
+ bias-disable;
+};
+
+&lpass_dmic23_data {
+ bias-pull-down;
+};
+
+&lpass_rx_swr_clk {
+ drive-strength = <2>;
+ slew-rate = <1>;
+ bias-disable;
+};
+
+&lpass_rx_swr_data {
+ drive-strength = <2>;
+ slew-rate = <1>;
+ bias-bus-hold;
+};
+
+&lpass_tx_swr_clk {
+ drive-strength = <2>;
+ slew-rate = <1>;
+ bias-disable;
+};
+
+&lpass_tx_swr_data {
+ drive-strength = <2>;
+ slew-rate = <1>;
+ bias-bus-hold;
+};
+
+&lpass_wsa_swr_clk {
+ drive-strength = <2>;
+ slew-rate = <1>;
+ bias-disable;
+};
+
+&lpass_wsa_swr_data {
+ drive-strength = <2>;
+ slew-rate = <1>;
+ bias-bus-hold;
+};
+
&mdss {
status = "okay";
};
--
2.34.1
^ permalink raw reply related [flat|nested] 24+ messages in thread
* Re: [PATCH v1 4/8] arm64: dts: qcom: qcs6490-rb3gen2: add WSA8830 speakers amplifier
2025-03-17 5:41 ` [PATCH v1 4/8] arm64: dts: qcom: qcs6490-rb3gen2: add WSA8830 speakers amplifier Prasad Kumpatla
@ 2025-03-26 17:28 ` Jorge Ramirez
2025-04-22 17:08 ` Prasad Kumpatla
0 siblings, 1 reply; 24+ messages in thread
From: Jorge Ramirez @ 2025-03-26 17:28 UTC (permalink / raw)
To: Prasad Kumpatla
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, cros-qcom-dts-watchers, linux-arm-msm, devicetree,
linux-kernel, kernel, Mohammad Rafi Shaik
On 17/03/25 11:11:47, Prasad Kumpatla wrote:
> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>
> Add nodes for WSA8830 speakers amplifier on qcs6490-rb3gen2 board.
>
> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 27 ++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
> index 23dea375c213..a1a3df77ad57 100644
> --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
> +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
> @@ -870,6 +870,33 @@ &sdhc_2 {
> status = "okay";
> };
>
> +&swr2 {
> + qcom,din-ports = <0>;
> + qcom,dout-ports = <8>;
are these number of ports correct? from my unit tests, 8 seems to be out
of bounds (soundwire probe error)
> +
> + left_spkr: speaker@0,1 {
> + compatible = "sdw10217020200";
> + reg = <0 1>;
> + powerdown-gpios = <&tlmm 158 GPIO_ACTIVE_LOW>;
> + #sound-dai-cells = <0>;
> + sound-name-prefix = "SpkrLeft";
> + #thermal-sensor-cells = <0>;
> + vdd-supply = <&vreg_l18b_1p8>;
> + qcom,port-mapping = <1 2 3 7>;
> + };
> +
> + right_spkr: speaker@0,2 {
> + compatible = "sdw10217020200";
> + reg = <0 2>;
> + powerdown-gpios = <&tlmm 158 GPIO_ACTIVE_LOW>;
> + #sound-dai-cells = <0>;
> + sound-name-prefix = "SpkrRight";
> + #thermal-sensor-cells = <0>;
> + vdd-supply = <&vreg_l18b_1p8>;
> + qcom,port-mapping = <4 5 6 8>;
> + };
> +};
> +
also, should we enable the soundwire controller?
> &tlmm {
> gpio-reserved-ranges = <32 2>, /* ADSP */
> <48 4>; /* NFC */
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 1/8] arm64: dts: qcom: sc7280: Add gpr node
2025-03-17 5:41 ` [PATCH v1 1/8] arm64: dts: qcom: sc7280: Add gpr node Prasad Kumpatla
@ 2025-03-26 22:51 ` Bryan O'Donoghue
2025-04-22 16:19 ` Prasad Kumpatla
0 siblings, 1 reply; 24+ messages in thread
From: Bryan O'Donoghue @ 2025-03-26 22:51 UTC (permalink / raw)
To: Prasad Kumpatla, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
On 17/03/2025 05:41, Prasad Kumpatla wrote:
> Add GPR node along with APM(Audio Process Manager) and PRM(Proxy
> resource Manager) audio services.
Nitpick.
You've defined APM and RPM but not GPR.
Your triumvirate of TLAs is missing 1/3 !
Please add.
---
bod
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 2/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support
2025-03-17 5:41 ` [PATCH v1 2/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support Prasad Kumpatla
@ 2025-03-26 23:02 ` Bryan O'Donoghue
2025-04-22 16:22 ` Prasad Kumpatla
2025-03-27 14:12 ` Dmitry Baryshkov
1 sibling, 1 reply; 24+ messages in thread
From: Bryan O'Donoghue @ 2025-03-26 23:02 UTC (permalink / raw)
To: Prasad Kumpatla, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
On 17/03/2025 05:41, Prasad Kumpatla wrote:
> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>
> Add WSA macroLPASS Codecs along with SoundWire controller.
>
> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/sc7280.dtsi | 68 ++++++++++++++++++++++++++++
> 1 file changed, 68 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
> index 39fbd3c40e47..90b2f6e2b7c0 100644
> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
> @@ -2602,6 +2602,64 @@ swr1: soundwire@3230000 {
> status = "disabled";
> };
>
> + lpass_wsa_macro: codec@3240000 {
> + compatible = "qcom,sc7280-lpass-wsa-macro";
> + reg = <0x0 0x03240000 0x0 0x1000>;
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&lpass_wsa_swr_clk>, <&lpass_wsa_swr_data>;
> +
> + clocks = <&lpass_aon LPASS_AON_CC_TX_MCLK_CLK>,
> + <&lpass_aon LPASS_AON_CC_TX_MCLK_2X_CLK>,
> + <&lpass_va_macro>;
> + clock-names = "mclk", "npl", "fsgen";
clocks* go before pinctrl*
> +
> + power-domains = <&lpass_hm LPASS_CORE_CC_LPASS_CORE_HM_GDSC>,
> + <&lpass_aon LPASS_AON_CC_LPASS_AUDIO_HM_GDSC>;
> + power-domain-names = "macro", "dcodec";
> +
> + #clock-cells = <0>;
> + clock-output-names = "mclk";
> + #sound-dai-cells = <1>;
> +
> + status = "disabled";
> + };
> +
> + swr2: soundwire@3250000 {
> + compatible = "qcom,soundwire-v1.6.0";
> + reg = <0x0 0x03250000 0x0 0x2000>;
> +
> + interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&lpass_wsa_macro>;
> + clock-names = "iface";
> +
> + qcom,din-ports = <2>;
> + qcom,dout-ports = <6>;
> +
> + resets = <&lpass_audiocc LPASS_AUDIO_SWR_WSA_CGCR>;
> + reset-names = "swr_audio_cgcr";
vendor prefixes should come after standard names
Documentation/devicetree/bindings/dts-coding-style.rst
"Order of Properties in Device Node"
> +
> + qcom,ports-sinterval-low = /bits/ 8 <0x07 0x1f 0x3f 0x07
> + 0x1f 0x3f 0x0f 0x0f>;
> + qcom,ports-offset1 = /bits/ 8 <0x01 0x02 0x0c 0x06 0x12 0x0d 0x07 0x0a>;
> + qcom,ports-offset2 = /bits/ 8 <0xff 0x00 0x1f 0xff 0x00 0x1f 0x00 0x00>;
> + qcom,ports-hstart = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff>;
> + qcom,ports-hstop = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff>;
> + qcom,ports-word-length = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff>;
> + qcom,ports-block-pack-mode = /bits/ 8 <0xff 0xff 0x01 0xff 0xff 0x01
> + 0xff 0xff>;
> + qcom,ports-block-group-count = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff
> + 0xff 0xff>;
> + qcom,ports-lane-control = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff
> + 0xff 0xff>;
> +
> + #address-cells = <2>;
> + #size-cells = <0>;
> + #sound-dai-cells = <1>;
> +
> + status = "disabled";
> + };
> +
> lpass_audiocc: clock-controller@3300000 {
> compatible = "qcom,sc7280-lpassaudiocc";
> reg = <0 0x03300000 0 0x30000>,
> @@ -2808,6 +2866,16 @@ lpass_tx_swr_data: tx-swr-data-state {
> pins = "gpio1", "gpio2", "gpio14";
> function = "swr_tx_data";
> };
> +
> + lpass_wsa_swr_clk: wsa-swr-clk-state {
> + pins = "gpio10";
> + function = "wsa_swr_clk";
> + };
> +
> + lpass_wsa_swr_data: wsa-swr-data-state {
> + pins = "gpio11";
> + function = "wsa_swr_data";
> + };
> };
>
> gpu: gpu@3d00000 {
> --
> 2.34.1
>
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 8/8] arm64: dts: qcom: qcm6490-idp: Add sound card
2025-03-17 5:41 ` [PATCH v1 8/8] arm64: dts: qcom: qcm6490-idp: Add sound card Prasad Kumpatla
@ 2025-03-26 23:12 ` Bryan O'Donoghue
2025-04-22 17:21 ` Prasad Kumpatla
0 siblings, 1 reply; 24+ messages in thread
From: Bryan O'Donoghue @ 2025-03-26 23:12 UTC (permalink / raw)
To: Prasad Kumpatla, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
On 17/03/2025 05:41, Prasad Kumpatla wrote:
> Add the sound card node with tested playback over WSA8835 speakers,
> msm mic along with wcd9370 headset playabck and record.
I think as a reviewer I'd like a better description.
"msm mic" doesn't mean much - please specify the number of MICs and
their type - "four digital mics"
MSM Mics are not a meaningful description.
---
bod
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 2/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support
2025-03-17 5:41 ` [PATCH v1 2/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support Prasad Kumpatla
2025-03-26 23:02 ` Bryan O'Donoghue
@ 2025-03-27 14:12 ` Dmitry Baryshkov
2025-04-22 16:24 ` Prasad Kumpatla
1 sibling, 1 reply; 24+ messages in thread
From: Dmitry Baryshkov @ 2025-03-27 14:12 UTC (permalink / raw)
To: Prasad Kumpatla
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, cros-qcom-dts-watchers, linux-arm-msm, devicetree,
linux-kernel, kernel, Mohammad Rafi Shaik
On Mon, Mar 17, 2025 at 11:11:45AM +0530, Prasad Kumpatla wrote:
> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>
> Add WSA macroLPASS Codecs along with SoundWire controller.
>
> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/sc7280.dtsi | 68 ++++++++++++++++++++++++++++
> 1 file changed, 68 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
> index 39fbd3c40e47..90b2f6e2b7c0 100644
> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
> @@ -2602,6 +2602,64 @@ swr1: soundwire@3230000 {
> status = "disabled";
> };
>
> + lpass_wsa_macro: codec@3240000 {
> + compatible = "qcom,sc7280-lpass-wsa-macro";
> + reg = <0x0 0x03240000 0x0 0x1000>;
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&lpass_wsa_swr_clk>, <&lpass_wsa_swr_data>;
pinctrl-N
pinctrl-names
> +
> + clocks = <&lpass_aon LPASS_AON_CC_TX_MCLK_CLK>,
> + <&lpass_aon LPASS_AON_CC_TX_MCLK_2X_CLK>,
> + <&lpass_va_macro>;
> + clock-names = "mclk", "npl", "fsgen";
> +
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 3/8] arm64: dts: qcom: qcs6490-rb3gen2: Modify WSA and VA macro clock nodes for audioreach solution
2025-03-17 5:41 ` [PATCH v1 3/8] arm64: dts: qcom: qcs6490-rb3gen2: Modify WSA and VA macro clock nodes for audioreach solution Prasad Kumpatla
@ 2025-04-01 16:05 ` Konrad Dybcio
2025-04-04 7:12 ` Luca Weiss
0 siblings, 1 reply; 24+ messages in thread
From: Konrad Dybcio @ 2025-04-01 16:05 UTC (permalink / raw)
To: Prasad Kumpatla, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
On 3/17/25 6:41 AM, Prasad Kumpatla wrote:
> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>
> Modify and enable WSA, VA and lpass_tlmm clock properties.
> For audioreach solution mclk, npl and fsgen clocks
> are enabled through the q6prm clock driver.
>
> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
> ---
Instead, put the inverse changes in sc7280-chrome-common.dtsi please
Konrad
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 5/8] arm64: dts: qcom: qcs6490-rb3gen2: Add sound card
2025-03-17 5:41 ` [PATCH v1 5/8] arm64: dts: qcom: qcs6490-rb3gen2: Add sound card Prasad Kumpatla
@ 2025-04-01 21:32 ` Konrad Dybcio
2025-04-22 17:19 ` Prasad Kumpatla
0 siblings, 1 reply; 24+ messages in thread
From: Konrad Dybcio @ 2025-04-01 21:32 UTC (permalink / raw)
To: Prasad Kumpatla, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
On 3/17/25 6:41 AM, Prasad Kumpatla wrote:
> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>
> Add the sound card node with tested playback over WSA8835 speakers
> and msm mics.
>
> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 80 ++++++++++++++++++++
> 1 file changed, 80 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
> index a1a3df77ad57..5d4d3df6eff9 100644
> --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
> +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
> @@ -219,6 +219,56 @@ vph_pwr: vph-pwr-regulator {
> regulator-min-microvolt = <3700000>;
> regulator-max-microvolt = <3700000>;
> };
> +
> + sound: sound {
The label is not used, please drop
> + compatible = "qcom,qcs6490-rb3gen2-sndcard";
> + model = "qcs6490-rb3gen2-snd-card";
> +
> + audio-routing =
Please don't break the line here
> + "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";
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + wsa-dai-link {
> + link-name = "CODEC_DMA-LPAIF_WSA-RX-0";
Very unusual link name
> +
> + cpu {
> + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
> + };
> +
> + codec {
> + sound-dai = <&left_spkr>, <&right_spkr>, <&swr2 0>,
> + <&lpass_wsa_macro 0>;
> + };
'co'dec < 'cp'u
Konrad
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 3/8] arm64: dts: qcom: qcs6490-rb3gen2: Modify WSA and VA macro clock nodes for audioreach solution
2025-04-01 16:05 ` Konrad Dybcio
@ 2025-04-04 7:12 ` Luca Weiss
2025-04-22 16:59 ` Prasad Kumpatla
0 siblings, 1 reply; 24+ messages in thread
From: Luca Weiss @ 2025-04-04 7:12 UTC (permalink / raw)
To: Konrad Dybcio, Prasad Kumpatla, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
Hi Konrad,
On Tue Apr 1, 2025 at 6:05 PM CEST, Konrad Dybcio wrote:
> On 3/17/25 6:41 AM, Prasad Kumpatla wrote:
>> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>>
>> Modify and enable WSA, VA and lpass_tlmm clock properties.
>> For audioreach solution mclk, npl and fsgen clocks
>> are enabled through the q6prm clock driver.
>>
>> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> ---
>
> Instead, put the inverse changes in sc7280-chrome-common.dtsi please
How are we going to handle other sc7280-based platforms, such as my
QCM6490 Fairphone 5 needing to use q6afecc instead of q6prmcc which gets
used in this patchset?
One solution might be to put q6afecc into the base sc7280.dtsi file,
then we have a sc7280-audioreach.dtsi which overwrites q6afecc with
q6prmcc which then gets included by boards using audioreach.
I also don't think we can split this across sc7280 vs qcm6490 vs sm7325,
there seems to be any combination possible on any of these SoCs -
depending on the firmware shipped with it.
So somewhat similar to the current sc7280-chrome-common.dtsi but just
for audioreach.
Regards
Luca
>
> Konrad
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 1/8] arm64: dts: qcom: sc7280: Add gpr node
2025-03-26 22:51 ` Bryan O'Donoghue
@ 2025-04-22 16:19 ` Prasad Kumpatla
0 siblings, 0 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-04-22 16:19 UTC (permalink / raw)
To: Bryan O'Donoghue, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
On 3/27/2025 4:21 AM, Bryan O'Donoghue wrote:
> On 17/03/2025 05:41, Prasad Kumpatla wrote:
>> Add GPR node along with APM(Audio Process Manager) and PRM(Proxy
>> resource Manager) audio services.
>
> Nitpick.
>
> You've defined APM and RPM but not GPR.
>
> Your triumvirate of TLAs is missing 1/3 !
>
> Please add.
Ack, Will update in next patchset version.
Thanks,
Prasad
>
> ---
> bod
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 2/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support
2025-03-26 23:02 ` Bryan O'Donoghue
@ 2025-04-22 16:22 ` Prasad Kumpatla
0 siblings, 0 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-04-22 16:22 UTC (permalink / raw)
To: Bryan O'Donoghue, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
On 3/27/2025 4:32 AM, Bryan O'Donoghue wrote:
> On 17/03/2025 05:41, Prasad Kumpatla wrote:
>> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>>
>> Add WSA macroLPASS Codecs along with SoundWire controller.
>>
>> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> ---
>> arch/arm64/boot/dts/qcom/sc7280.dtsi | 68 ++++++++++++++++++++++++++++
>> 1 file changed, 68 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi
>> b/arch/arm64/boot/dts/qcom/sc7280.dtsi
>> index 39fbd3c40e47..90b2f6e2b7c0 100644
>> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
>> @@ -2602,6 +2602,64 @@ swr1: soundwire@3230000 {
>> status = "disabled";
>> };
>>
>> + lpass_wsa_macro: codec@3240000 {
>> + compatible = "qcom,sc7280-lpass-wsa-macro";
>> + reg = <0x0 0x03240000 0x0 0x1000>;
>> +
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&lpass_wsa_swr_clk>, <&lpass_wsa_swr_data>;
>> +
>> + clocks = <&lpass_aon LPASS_AON_CC_TX_MCLK_CLK>,
>> + <&lpass_aon LPASS_AON_CC_TX_MCLK_2X_CLK>,
>> + <&lpass_va_macro>;
>> + clock-names = "mclk", "npl", "fsgen";
>
> clocks* go before pinctrl*
ACK,
>
>> +
>> + power-domains = <&lpass_hm
>> LPASS_CORE_CC_LPASS_CORE_HM_GDSC>,
>> + <&lpass_aon LPASS_AON_CC_LPASS_AUDIO_HM_GDSC>;
>> + power-domain-names = "macro", "dcodec";
>> +
>> + #clock-cells = <0>;
>> + clock-output-names = "mclk";
>> + #sound-dai-cells = <1>;
>> +
>> + status = "disabled";
>> + };
>> +
>> + swr2: soundwire@3250000 {
>> + compatible = "qcom,soundwire-v1.6.0";
>> + reg = <0x0 0x03250000 0x0 0x2000>;
>> +
>> + interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>;
>> + clocks = <&lpass_wsa_macro>;
>> + clock-names = "iface";
>> +
>> + qcom,din-ports = <2>;
>> + qcom,dout-ports = <6>;
>> +
>> + resets = <&lpass_audiocc LPASS_AUDIO_SWR_WSA_CGCR>;
>> + reset-names = "swr_audio_cgcr";
>
> vendor prefixes should come after standard names
>
> Documentation/devicetree/bindings/dts-coding-style.rst
> "Order of Properties in Device Node"
ACK, will check and update in next patch version.
Thanks,
Prasad
>
>> +
>> + qcom,ports-sinterval-low = /bits/ 8 <0x07 0x1f 0x3f 0x07
>> + 0x1f 0x3f 0x0f 0x0f>;
>> + qcom,ports-offset1 = /bits/ 8 <0x01 0x02 0x0c 0x06 0x12
>> 0x0d 0x07 0x0a>;
>> + qcom,ports-offset2 = /bits/ 8 <0xff 0x00 0x1f 0xff 0x00
>> 0x1f 0x00 0x00>;
>> + qcom,ports-hstart = /bits/ 8 <0xff 0xff 0xff 0xff 0xff
>> 0xff 0xff 0xff>;
>> + qcom,ports-hstop = /bits/ 8 <0xff 0xff 0xff 0xff 0xff
>> 0xff 0xff 0xff>;
>> + qcom,ports-word-length = /bits/ 8 <0xff 0xff 0xff 0xff
>> 0xff 0xff 0xff 0xff>;
>> + qcom,ports-block-pack-mode = /bits/ 8 <0xff 0xff 0x01
>> 0xff 0xff 0x01
>> + 0xff 0xff>;
>> + qcom,ports-block-group-count = /bits/ 8 <0xff 0xff 0xff
>> 0xff 0xff 0xff
>> + 0xff 0xff>;
>> + qcom,ports-lane-control = /bits/ 8 <0xff 0xff 0xff 0xff
>> 0xff 0xff
>> + 0xff 0xff>;
>> +
>> + #address-cells = <2>;
>> + #size-cells = <0>;
>> + #sound-dai-cells = <1>;
>> +
>> + status = "disabled";
>> + };
>> +
>> lpass_audiocc: clock-controller@3300000 {
>> compatible = "qcom,sc7280-lpassaudiocc";
>> reg = <0 0x03300000 0 0x30000>,
>> @@ -2808,6 +2866,16 @@ lpass_tx_swr_data: tx-swr-data-state {
>> pins = "gpio1", "gpio2", "gpio14";
>> function = "swr_tx_data";
>> };
>> +
>> + lpass_wsa_swr_clk: wsa-swr-clk-state {
>> + pins = "gpio10";
>> + function = "wsa_swr_clk";
>> + };
>> +
>> + lpass_wsa_swr_data: wsa-swr-data-state {
>> + pins = "gpio11";
>> + function = "wsa_swr_data";
>> + };
>> };
>>
>> gpu: gpu@3d00000 {
>> --
>> 2.34.1
>>
>>
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 2/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support
2025-03-27 14:12 ` Dmitry Baryshkov
@ 2025-04-22 16:24 ` Prasad Kumpatla
0 siblings, 0 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-04-22 16:24 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, cros-qcom-dts-watchers, linux-arm-msm, devicetree,
linux-kernel, kernel, Mohammad Rafi Shaik
On 3/27/2025 7:42 PM, Dmitry Baryshkov wrote:
> On Mon, Mar 17, 2025 at 11:11:45AM +0530, Prasad Kumpatla wrote:
>> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>>
>> Add WSA macroLPASS Codecs along with SoundWire controller.
>>
>> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> ---
>> arch/arm64/boot/dts/qcom/sc7280.dtsi | 68 ++++++++++++++++++++++++++++
>> 1 file changed, 68 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi
>> index 39fbd3c40e47..90b2f6e2b7c0 100644
>> --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi
>> @@ -2602,6 +2602,64 @@ swr1: soundwire@3230000 {
>> status = "disabled";
>> };
>>
>> + lpass_wsa_macro: codec@3240000 {
>> + compatible = "qcom,sc7280-lpass-wsa-macro";
>> + reg = <0x0 0x03240000 0x0 0x1000>;
>> +
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&lpass_wsa_swr_clk>, <&lpass_wsa_swr_data>;
> pinctrl-N
> pinctrl-names
ACK, will takecare on next patchset version.
Thanks,
Prasad
>
>> +
>> + clocks = <&lpass_aon LPASS_AON_CC_TX_MCLK_CLK>,
>> + <&lpass_aon LPASS_AON_CC_TX_MCLK_2X_CLK>,
>> + <&lpass_va_macro>;
>> + clock-names = "mclk", "npl", "fsgen";
>> +
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 3/8] arm64: dts: qcom: qcs6490-rb3gen2: Modify WSA and VA macro clock nodes for audioreach solution
2025-04-04 7:12 ` Luca Weiss
@ 2025-04-22 16:59 ` Prasad Kumpatla
0 siblings, 0 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-04-22 16:59 UTC (permalink / raw)
To: Luca Weiss, Konrad Dybcio, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
On 4/4/2025 12:42 PM, Luca Weiss wrote:
> Hi Konrad,
>
> On Tue Apr 1, 2025 at 6:05 PM CEST, Konrad Dybcio wrote:
>> On 3/17/25 6:41 AM, Prasad Kumpatla wrote:
>>> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>>>
>>> Modify and enable WSA, VA and lpass_tlmm clock properties.
>>> For audioreach solution mclk, npl and fsgen clocks
>>> are enabled through the q6prm clock driver.
>>>
>>> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>>> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>>> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>>> ---
>>
>> Instead, put the inverse changes in sc7280-chrome-common.dtsi please
>
> How are we going to handle other sc7280-based platforms, such as my
> QCM6490 Fairphone 5 needing to use q6afecc instead of q6prmcc which gets
> used in this patchset?
>
> One solution might be to put q6afecc into the base sc7280.dtsi file,
> then we have a sc7280-audioreach.dtsi which overwrites q6afecc with
> q6prmcc which then gets included by boards using audioreach.
>
> I also don't think we can split this across sc7280 vs qcm6490 vs sm7325,
> there seems to be any combination possible on any of these SoCs -
> depending on the firmware shipped with it.
>
> So somewhat similar to the current sc7280-chrome-common.dtsi but just
> for audioreach.
>
> Regards
> Luca
ACK, We will handle in next patchset version by creating a new
qcs6490-audioreach.dtsi file.
Thanks,
Prasad>
>>
>> Konrad
>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 4/8] arm64: dts: qcom: qcs6490-rb3gen2: add WSA8830 speakers amplifier
2025-03-26 17:28 ` Jorge Ramirez
@ 2025-04-22 17:08 ` Prasad Kumpatla
0 siblings, 0 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-04-22 17:08 UTC (permalink / raw)
To: Jorge Ramirez
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, cros-qcom-dts-watchers, linux-arm-msm, devicetree,
linux-kernel, kernel, Mohammad Rafi Shaik
On 3/26/2025 10:58 PM, Jorge Ramirez wrote:
> On 17/03/25 11:11:47, Prasad Kumpatla wrote:
>> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>>
>> Add nodes for WSA8830 speakers amplifier on qcs6490-rb3gen2 board.
>>
>> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> ---
>> arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 27 ++++++++++++++++++++
>> 1 file changed, 27 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
>> index 23dea375c213..a1a3df77ad57 100644
>> --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
>> +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
>> @@ -870,6 +870,33 @@ &sdhc_2 {
>> status = "okay";
>> };
>>
>> +&swr2 {
>> + qcom,din-ports = <0>;
>> + qcom,dout-ports = <8>;
>
> are these number of ports correct? from my unit tests, 8 seems to be out
> of bounds (soundwire probe error)
ACK,
Will fix it in next patchset version.
>
>> +
>> + left_spkr: speaker@0,1 {
>> + compatible = "sdw10217020200";
>> + reg = <0 1>;
>> + powerdown-gpios = <&tlmm 158 GPIO_ACTIVE_LOW>;
>> + #sound-dai-cells = <0>;
>> + sound-name-prefix = "SpkrLeft";
>> + #thermal-sensor-cells = <0>;
>> + vdd-supply = <&vreg_l18b_1p8>;
>> + qcom,port-mapping = <1 2 3 7>;
>> + };
>> +
>> + right_spkr: speaker@0,2 {
>> + compatible = "sdw10217020200";
>> + reg = <0 2>;
>> + powerdown-gpios = <&tlmm 158 GPIO_ACTIVE_LOW>;
>> + #sound-dai-cells = <0>;
>> + sound-name-prefix = "SpkrRight";
>> + #thermal-sensor-cells = <0>;
>> + vdd-supply = <&vreg_l18b_1p8>;
>> + qcom,port-mapping = <4 5 6 8>;
>> + };
>> +};
>> +
>
> also, should we enable the soundwire controller?
ACK,
yes need to enable soundwire controller, Will take care to enable in
next patchset version.
Thanks,
Prasad
>
>> &tlmm {
>> gpio-reserved-ranges = <32 2>, /* ADSP */
>> <48 4>; /* NFC */
>> --
>> 2.34.1
>>
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 5/8] arm64: dts: qcom: qcs6490-rb3gen2: Add sound card
2025-04-01 21:32 ` Konrad Dybcio
@ 2025-04-22 17:19 ` Prasad Kumpatla
0 siblings, 0 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-04-22 17:19 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
On 4/2/2025 3:02 AM, Konrad Dybcio wrote:
> On 3/17/25 6:41 AM, Prasad Kumpatla wrote:
>> From: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>>
>> Add the sound card node with tested playback over WSA8835 speakers
>> and msm mics.
>>
>> Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
>> Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
>> ---
>> arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 80 ++++++++++++++++++++
>> 1 file changed, 80 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
>> index a1a3df77ad57..5d4d3df6eff9 100644
>> --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
>> +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
>> @@ -219,6 +219,56 @@ vph_pwr: vph-pwr-regulator {
>> regulator-min-microvolt = <3700000>;
>> regulator-max-microvolt = <3700000>;
>> };
>> +
>> + sound: sound {
>
> The label is not used, please drop
ACK,
Will fix it.
>
>> + compatible = "qcom,qcs6490-rb3gen2-sndcard";
>> + model = "qcs6490-rb3gen2-snd-card";
>> +
>> + audio-routing =
>
> Please don't break the line here
Yes, Will update.
>
>> + "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";
>> +
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + wsa-dai-link {
>> + link-name = "CODEC_DMA-LPAIF_WSA-RX-0";
>
> Very unusual link name
ACK,
Will check and update.
>
>> +
>> + cpu {
>> + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
>> + };
>> +
>> + codec {
>> + sound-dai = <&left_spkr>, <&right_spkr>, <&swr2 0>,
>> + <&lpass_wsa_macro 0>;
>> + };
>
> 'co'dec < 'cp'u
ACK,
Will update in next patchset.
Thanks,
Prasad
>
>
> Konrad
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v1 8/8] arm64: dts: qcom: qcm6490-idp: Add sound card
2025-03-26 23:12 ` Bryan O'Donoghue
@ 2025-04-22 17:21 ` Prasad Kumpatla
0 siblings, 0 replies; 24+ messages in thread
From: Prasad Kumpatla @ 2025-04-22 17:21 UTC (permalink / raw)
To: Bryan O'Donoghue, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: cros-qcom-dts-watchers, linux-arm-msm, devicetree, linux-kernel,
kernel, Mohammad Rafi Shaik
On 3/27/2025 4:42 AM, Bryan O'Donoghue wrote:
> On 17/03/2025 05:41, Prasad Kumpatla wrote:
>> Add the sound card node with tested playback over WSA8835 speakers,
>> msm mic along with wcd9370 headset playabck and record.
>
> I think as a reviewer I'd like a better description.
>
> "msm mic" doesn't mean much - please specify the number of MICs and
> their type - "four digital mics"
>
> MSM Mics are not a meaningful description.
ACK,
Will provide proper description in next patchset version.
Thanks,
Prasad>
> ---
> bod
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2025-04-22 17:21 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-17 5:41 [PATCH v1 0/8] Enable audio on qcs6490-RB3Gen2 and qcm6490-idp boards Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 1/8] arm64: dts: qcom: sc7280: Add gpr node Prasad Kumpatla
2025-03-26 22:51 ` Bryan O'Donoghue
2025-04-22 16:19 ` Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 2/8] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support Prasad Kumpatla
2025-03-26 23:02 ` Bryan O'Donoghue
2025-04-22 16:22 ` Prasad Kumpatla
2025-03-27 14:12 ` Dmitry Baryshkov
2025-04-22 16:24 ` Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 3/8] arm64: dts: qcom: qcs6490-rb3gen2: Modify WSA and VA macro clock nodes for audioreach solution Prasad Kumpatla
2025-04-01 16:05 ` Konrad Dybcio
2025-04-04 7:12 ` Luca Weiss
2025-04-22 16:59 ` Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 4/8] arm64: dts: qcom: qcs6490-rb3gen2: add WSA8830 speakers amplifier Prasad Kumpatla
2025-03-26 17:28 ` Jorge Ramirez
2025-04-22 17:08 ` Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 5/8] arm64: dts: qcom: qcs6490-rb3gen2: Add sound card Prasad Kumpatla
2025-04-01 21:32 ` Konrad Dybcio
2025-04-22 17:19 ` Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 6/8] arm64: dts: qcom: qcm6490-idp: Modify WSA/VA/RX/TX macro clock nodes for audioreach solution Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 7/8] arm64: dts: qcom: qcm6490-idp: Add WSA8830 speakers amplifier and WCD9370 headset codec Prasad Kumpatla
2025-03-17 5:41 ` [PATCH v1 8/8] arm64: dts: qcom: qcm6490-idp: Add sound card Prasad Kumpatla
2025-03-26 23:12 ` Bryan O'Donoghue
2025-04-22 17:21 ` Prasad Kumpatla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).