Commit b6b4c9f7 authored by Mohammad Rafi Shaik's avatar Mohammad Rafi Shaik Committed by Bjorn Andersson
Browse files

arm64: dts: qcom: qcs6490-rb3gen2: Add WSA8830 speakers amplifier



Add nodes for WSA8830 speakers amplifier on qcs6490-rb3gen2 board.

Enable lpass_wsa and lpass_va macros along with pinctrl settings
for audio.

Co-developed-by: default avatarPrasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: default avatarPrasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: default avatarMohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250903151337.1037246-6-mohammad.rafi.shaik@oss.qualcomm.com


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent d3c43855
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -56,6 +56,12 @@ &lpass_va_macro {
	clock-names = "mclk",
		      "macro",
		      "dcodec";

	pinctrl-0 = <&lpass_dmic01_clk>, <&lpass_dmic01_data>,
		    <&lpass_dmic23_clk>, <&lpass_dmic23_data>;
	pinctrl-names = "default";

	qcom,dmic-sample-rate = <4800000>;
};

&lpass_wsa_macro {
+35 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
#include "pm7325.dtsi"
#include "pm8350c.dtsi"
#include "pmk8350.dtsi"
#include "qcs6490-audioreach.dtsi"

/delete-node/ &ipa_fw_mem;
/delete-node/ &rmtfs_mem;
@@ -765,6 +766,14 @@ redriver_usb_con_sbu: endpoint {
	};
};

&lpass_va_macro {
	status = "okay";
};

&lpass_wsa_macro {
	status = "okay";
};

&mdss {
	status = "okay";
};
@@ -1039,6 +1048,32 @@ &sdhc_2 {
	status = "okay";
};

&swr2 {
	status = "okay";

	left_spkr: speaker@0,1 {
		compatible = "sdw10217020200";
		reg = <0 1>;
		reset-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>;
		reset-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 */
+8 −0
Original line number Diff line number Diff line
@@ -3001,21 +3001,29 @@ lpass_tlmm: pinctrl@33c0000 {
			lpass_dmic01_clk: dmic01-clk-state {
				pins = "gpio6";
				function = "dmic1_clk";
				drive-strength = <8>;
				bias-disable;
			};

			lpass_dmic01_data: dmic01-data-state {
				pins = "gpio7";
				function = "dmic1_data";
				drive-strength = <8>;
				bias-pull-down;
			};

			lpass_dmic23_clk: dmic23-clk-state {
				pins = "gpio8";
				function = "dmic2_clk";
				drive-strength = <8>;
				bias-disable;
			};

			lpass_dmic23_data: dmic23-data-state {
				pins = "gpio9";
				function = "dmic2_data";
				drive-strength = <8>;
				bias-pull-down;
			};

			lpass_rx_swr_clk: rx-swr-clk-state {