mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
arm64: dts: qcom: glymur-crd: add Audio sound card node
Add the sound card of Glymur-crd board with the routing for speakers. Add device nodes for the sound support with WSA884x smart speakers and playback via speakers and recording via DMIC microphones. Co-developed-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Co-developed-by: Sibi Sankar <sibi.sankar@oss.qualcomm.com> Signed-off-by: Sibi Sankar <sibi.sankar@oss.qualcomm.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
This commit is contained in:
committed by
Abel Vesa
parent
5c08480a9a
commit
424f79472a
@@ -124,7 +124,7 @@
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
|
||||
pmic_glink_ss_in1: endpoint {
|
||||
pmic_glink_ss_in1: endpoint {
|
||||
remote-endpoint = <&usb_1_qmpphy_out>;
|
||||
};
|
||||
};
|
||||
@@ -132,6 +132,54 @@
|
||||
};
|
||||
};
|
||||
|
||||
sound {
|
||||
compatible = "qcom,glymur-sndcard";
|
||||
model = "GLYMUR-CRD";
|
||||
audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT",
|
||||
"TweeterLeft IN", "WSA WSA_SPK2 OUT",
|
||||
"WooferRight IN", "WSA2 WSA_SPK1 OUT",
|
||||
"TweeterRight IN", "WSA2 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";
|
||||
|
||||
cpu {
|
||||
sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
|
||||
};
|
||||
|
||||
codec {
|
||||
sound-dai = <&left_woofer>, <&left_tweeter>,
|
||||
<&swr0 0>, <&lpass_wsamacro 0>,
|
||||
<&right_woofer>, <&right_tweeter>,
|
||||
<&swr3 0>, <&lpass_wsa2macro 0>;
|
||||
};
|
||||
|
||||
platform {
|
||||
sound-dai = <&q6apm>;
|
||||
};
|
||||
};
|
||||
|
||||
va-dai-link {
|
||||
link-name = "VA Capture";
|
||||
|
||||
cpu {
|
||||
sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
|
||||
};
|
||||
|
||||
codec {
|
||||
sound-dai = <&lpass_vamacro 0>;
|
||||
};
|
||||
|
||||
platform {
|
||||
sound-dai = <&q6apm>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
vreg_edp_3p3: regulator-edp-3p3 {
|
||||
compatible = "regulator-fixed";
|
||||
|
||||
@@ -679,6 +727,13 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&lpass_vamacro {
|
||||
pinctrl-0 = <&dmic01_default>, <&dmic23_default>;
|
||||
pinctrl-names = "default";
|
||||
qcom,dmic-sample-rate = <4800000>;
|
||||
vdd-micb-supply = <&vreg_l1b_e0_1p8>;
|
||||
};
|
||||
|
||||
&pcie3b {
|
||||
vddpe-3v3-supply = <&vreg_nvmesec>;
|
||||
|
||||
@@ -812,6 +867,62 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&swr0 {
|
||||
status = "okay";
|
||||
|
||||
/* WSA8845, Left Woofer */
|
||||
left_woofer: speaker@0,0 {
|
||||
compatible = "sdw20217020400";
|
||||
reg = <0 0>;
|
||||
reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
|
||||
#sound-dai-cells = <0>;
|
||||
sound-name-prefix = "WooferLeft";
|
||||
vdd-1p8-supply = <&vreg_l15b_e0_1p8>;
|
||||
vdd-io-supply = <&vreg_l18b_e0_1p2>;
|
||||
qcom,port-mapping = <1 2 3 7 12 14>;
|
||||
};
|
||||
|
||||
/* WSA8845, Left Tweeter */
|
||||
left_tweeter: speaker@0,1 {
|
||||
compatible = "sdw20217020400";
|
||||
reg = <0 1>;
|
||||
reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
|
||||
#sound-dai-cells = <0>;
|
||||
sound-name-prefix = "TweeterLeft";
|
||||
vdd-1p8-supply = <&vreg_l15b_e0_1p8>;
|
||||
vdd-io-supply = <&vreg_l18b_e0_1p2>;
|
||||
qcom,port-mapping = <4 5 6 7 13 15>;
|
||||
};
|
||||
};
|
||||
|
||||
&swr3 {
|
||||
status = "okay";
|
||||
|
||||
/* WSA8845, Right Woofer */
|
||||
right_woofer: speaker@0,0 {
|
||||
compatible = "sdw20217020400";
|
||||
reg = <0 0>;
|
||||
reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>;
|
||||
#sound-dai-cells = <0>;
|
||||
sound-name-prefix = "WooferRight";
|
||||
vdd-1p8-supply = <&vreg_l15b_e0_1p8>;
|
||||
vdd-io-supply = <&vreg_l18b_e0_1p2>;
|
||||
qcom,port-mapping = <1 2 3 7 12 14>;
|
||||
};
|
||||
|
||||
/* WSA8845, Right Tweeter */
|
||||
right_tweeter: speaker@0,1 {
|
||||
compatible = "sdw20217020400";
|
||||
reg = <0 1>;
|
||||
reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>;
|
||||
#sound-dai-cells = <0>;
|
||||
sound-name-prefix = "TweeterRight";
|
||||
vdd-1p8-supply = <&vreg_l15b_e0_1p8>;
|
||||
vdd-io-supply = <&vreg_l18b_e0_1p2>;
|
||||
qcom,port-mapping = <4 5 6 7 13 15>;
|
||||
};
|
||||
};
|
||||
|
||||
&remoteproc_adsp {
|
||||
firmware-name = "qcom/glymur/adsp.mbn",
|
||||
"qcom/glymur/adsp_dtb.mbn";
|
||||
|
||||
Reference in New Issue
Block a user