From patchwork Tue Apr 29 09:24:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prasad Kumpatla X-Patchwork-Id: 885795 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5AFAC29DB6E; Tue, 29 Apr 2025 09:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745918696; cv=none; b=SWA5TFEIPQ8vMT75tF86ywb6mYBlgRp43c2fnY8m9Oj7URM7Lgc57BpQ78UjQXNwsDDJUAe9cXF2skPy6BH0NOIaipZB1cQ1Br0gNAU8u3f5jlD5ArABLXtGC0SHgtCOt5rmH1UHlVkRwMCd2RqRRxm/OJrpNiySgdCd9UqBaeU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745918696; c=relaxed/simple; bh=VaiGBsPAcDeY34faWDpbUdGECbjPgNtGe2bitNvD17M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=WRSQGe1HBnhqP4LeX9nImo6wBohgVckEL1+dkx2fxiEOH5AQ6SQLaOklA4OqYMiz/MxXkpkSKm+ABupRF06yJX5ftmCUCFebVBpAJdJ4RmttmqOiNTgH/M/jvpdN2rC9yRp8jPiX2rOtqHLnSFqrrRHSWk4VcpyzxoS+TP0Y3jk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=eMij4evI; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="eMij4evI" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53SNq5bc030435; Tue, 29 Apr 2025 09:24:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:date:from:in-reply-to:message-id:references:subject:to; s= qcppdkim1; bh=rkUeF7V5qgth51fDbAHG/eakY+DdgW2lvsJWKGbqg8g=; b=eM ij4evI6begdlfDnWdEl4SoNGYeTbHWVQfwhcbcm14hvsKgPdeRTcLRRsQclkQ1vA QyRORJ6sP22RQgj82igTHXlVIF9kHBTyvSzqQdcZs20766IkSurGoeuyGuTGmOkW 8llGteb1ITqVE21RykB7C0sbCkIzBQIi2bBm8cGyLRxqjydr7DGoVoSUigrRK5jJ 3scs2VJ5G9Wq/24GSYDF2uXCMYETNbgEp/BIfayNT+a7iXq8Ozo3c0gH/lKVk9xE CsZz8mKturHgLYBAtsaEvvhz79aBy1AgE4zTbLx9rJnJGT618r20RancX9xUFUtd td1WbjCT9AmNhfH3Yncg== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 468pevk3mn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Apr 2025 09:24:52 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 53T9Olef031627; Tue, 29 Apr 2025 09:24:47 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 468rjmhb34-1; Tue, 29 Apr 2025 09:24:47 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 53T9Ol2u031586; Tue, 29 Apr 2025 09:24:47 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.213.109.81]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 53T9OlH9031559; Tue, 29 Apr 2025 09:24:47 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 3914174) id 973F3604544; Tue, 29 Apr 2025 14:54:46 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@oss.qualcomm.com, Mohammad Rafi Shaik , Prasad Kumpatla Subject: [PATCH v2 3/7] arm64: dts: qcom: qcs6490-audioreach: Modify LPASS macros clock settings for audioreach Date: Tue, 29 Apr 2025 14:54:26 +0530 Message-Id: <20250429092430.21477-4-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250429092430.21477-1-quic_pkumpatl@quicinc.com> References: <20250429092430.21477-1-quic_pkumpatl@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: Wu0aF7rE0kgdUYgRJQBYn_mF4kqWJf-- X-Authority-Analysis: v=2.4 cv=aeBhnQot c=1 sm=1 tr=0 ts=68109ae4 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=XR8D0OoHHMoA:10 a=COk6AnOGAAAA:8 a=dTmu4OR9L3cT1w_1Y_wA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: Wu0aF7rE0kgdUYgRJQBYn_mF4kqWJf-- X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNDI5MDA2OSBTYWx0ZWRfX1MeyeNBdFmwC nCMYKcGlp1Wlg4gfAsXcsTxq35iRHUq8Gyb6fg8YLKBHfohK6Pl1JhWVmxj8C/ZXhfWfbgwOc3C sSra1V42Ahk7Essdae1AUva9aYXMajSOhdiSax/UopylXifcD6aWNANmYyBvu/ZJuwicdBg9VLb CbjOb08kq9az9a4I1Oq48fTLnzkP107lY9/7czWHqRo8B3TMA8M6ZdFZlPqHFrMKPLVxk3xH2cj zyPdwJ+Ct1W09pzR04mTCooHvgyGEMRIw07g6jzXMa6NHahHE2Embbdig3v+W1faBWGOA6dJmhZ rPdWPK48I6PmcNFNiZ1PN4PscKGEx8VsVM54uFxyAbs6qAC5ziwNzT8C9NKQeXYx7vxQdlR+gSk 5z3oFdgvn5+z/xMlU75QgD9jg9kURUOzy+nLmrCv6xY1G9nMHwZJTGEoYLjgKVV8HTH+L3dV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-04-29_03,2025-04-24_02,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 impostorscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 spamscore=0 mlxlogscore=853 phishscore=0 suspectscore=0 lowpriorityscore=0 mlxscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2504290069 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Mohammad Rafi Shaik Modify and enable WSA, VA, RX and TX lpass macros and lpass_tlmm clock settings. For audioreach solution mclk, npl and fsgen clocks are enabled through the q6prm clock driver. Signed-off-by: Mohammad Rafi Shaik Co-developed-by: Prasad Kumpatla Signed-off-by: Prasad Kumpatla --- .../boot/dts/qcom/qcs6490-audioreach.dtsi | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi b/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi index b11b9eea64c1..f3859d805ea7 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi @@ -11,6 +11,54 @@ #include #include +&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"; +}; + +&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"; +}; + +&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"; +}; + +&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"; +}; + &remoteproc_adsp_glink { /delete-node/ apr; From patchwork Tue Apr 29 09:24:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prasad Kumpatla X-Patchwork-Id: 885793 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9FD71F3B91; Tue, 29 Apr 2025 09:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745918698; cv=none; b=LNA8Q2ujyZzdYSqpc6FUIKMuYHSNiLSCkc2cfo9wXJBhjVPQEhMTL/Ki5diyEgYq4yfiEDcICgYVKNArRqd2EKNLLzJO6fRV6zydctNNDnTihBtgXc1b4NWzzf871l3D4PhqqUOagoZZYltn6khIdgaW4CajwGP+LG9Ln2r/Akk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745918698; c=relaxed/simple; bh=W+HXCbsddWQD6Dew1KUlxrAvFtamXmJR5qf+u6j2oy8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=nqBmG2J6mHfERPXMPYxAhTvofvb/e3A0FJzwU6umMQFzXbkuTdH1MsyHQHt1MteC5IqCSHj5gPdv8QwYBCa+EwbKiwN8sZoiRWxnW+Jjn6Kn/t4GShlmtVyKTnlE8EmWB7wuhXs0+ANkt7Fd/FTQ7F6nI1WtM6w5PLRB4Lqh8Oo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=O3zrX0P4; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="O3zrX0P4" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53SNq11l015281; Tue, 29 Apr 2025 09:24:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:date:from:in-reply-to:message-id:references:subject:to; s= qcppdkim1; bh=u1x1ZxRLCQGVLkVAT5O5qmnRfWnUsZumfvgAO4C/jXg=; b=O3 zrX0P4lqqgL1DqjXgm3YPXpi2GuiDzSd9cF5thBGhwxvdwUebzDFEj75yA5S+il4 mb9MuWyXvgPlI5lHQkXNJYisOlMS8cLvtVH2XEB5QZfNjj8O8Bk0YeR0+VRmqnXQ R4bpf+695mI/uJ0WN2FVaG811J3nXz8rDjEDkggIrwRhyl0Z24SlYXTcZpYhyOBS oGORBDK0/+iMC67bmOLL0hAckcafLtqaQBYIi6W3o6PAW+69CjSXCfq6k9dEafcx hqTTCUUaVRXfkuwZWFnTUjZ9K+vkg6/z+gXaFJ5/SslalJc7B1gJPWtCJe/mvcHp 5PmBExl8y6sHxFLRFKEw== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 468qjwuxve-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Apr 2025 09:24:52 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 53T9OlAf031625; Tue, 29 Apr 2025 09:24:47 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 468rjmhb30-1; Tue, 29 Apr 2025 09:24:47 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 53T9OlhS031583; Tue, 29 Apr 2025 09:24:47 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.213.109.81]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 53T9OlED031556; Tue, 29 Apr 2025 09:24:47 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 3914174) id 9A388604545; Tue, 29 Apr 2025 14:54:46 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@oss.qualcomm.com, Mohammad Rafi Shaik , Prasad Kumpatla Subject: [PATCH v2 4/7] arm64: dts: qcom: qcs6490-rb3gen2: Add WSA8830 speakers amplifier Date: Tue, 29 Apr 2025 14:54:27 +0530 Message-Id: <20250429092430.21477-5-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250429092430.21477-1-quic_pkumpatl@quicinc.com> References: <20250429092430.21477-1-quic_pkumpatl@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: KvGsoVbPLVwztJaaq9BWhr9F6vFyECRA X-Proofpoint-GUID: KvGsoVbPLVwztJaaq9BWhr9F6vFyECRA X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNDI5MDA2OSBTYWx0ZWRfX3dvEf4+cU5Fa TjW2TAwPIpXHN4k+UXpmcmqf15rogqdE7YdZqP6xMzLJ/Vw4fMCKTyFVcDsyBh112Psr2Umhmv/ ZxcEK6MIshf68+cCHd7hLq6/jt3AJpX3HVjX8FGN1KEGvfXfYz7ZFgqns7rhReD5PNWm14G7erW HGpZvlrON+9I1laQXcmjCk+8xgccybxuSIPgQFa6Kb51Zw+/AUX9mCRZB6aaKo16H2DxXF49B/s 3OLDC9dXIHOHIDUEI+X+FEaX1GzgMdzYsdA4kZ1erYAWEXRjFGE0CuDZgNt/16E5C9IwbZrJoLT X2M9z6ESHSKmMb1kTdaS4MKWCjHege6S3ZKm5pafrwmuB19LpzQY0aDwJh1j8/r0VP5LrCi0Ay9 sM7tT11IuJ/DFfFTSbAoPfi52PmqielC6YwwUEusGT8r2SuSkakic2KrdB3eEAZwDSgj/WZu X-Authority-Analysis: v=2.4 cv=c/urQQ9l c=1 sm=1 tr=0 ts=68109ae4 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=XR8D0OoHHMoA:10 a=COk6AnOGAAAA:8 a=WEsQsnLxaZX5bEI0yokA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-04-29_03,2025-04-24_02,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxlogscore=903 phishscore=0 lowpriorityscore=0 impostorscore=0 mlxscore=0 malwarescore=0 clxscore=1015 spamscore=0 adultscore=0 priorityscore=1501 suspectscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2504290069 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Mohammad Rafi Shaik Add nodes for WSA8830 speakers amplifier on qcs6490-rb3gen2 board. Enable lpass_wsa and lpass_va macros along with pinctrl settings for audio. Signed-off-by: Mohammad Rafi Shaik Co-developed-by: Prasad Kumpatla Signed-off-by: Prasad Kumpatla --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 70 ++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index 5fbcd48f2e2d..43cbdbe43afd 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -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,44 @@ }; }; +&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_va_macro { + status = "okay"; +}; + +&lpass_wsa_macro { + status = "okay"; +}; + +&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"; }; @@ -1039,6 +1078,31 @@ status = "okay"; }; +&swr2 { + status = "okay"; + 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 */ @@ -1095,6 +1159,12 @@ */ bias-pull-up; }; + + sw_ctrl: sw-ctrl-state { + pins = "gpio86"; + function = "gpio"; + bias-pull-down; + }; }; &uart5 { From patchwork Tue Apr 29 09:24:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prasad Kumpatla X-Patchwork-Id: 885794 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B8E92BCF47; Tue, 29 Apr 2025 09:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745918698; cv=none; b=dNSvt9hdiFBe4QWsSt/ioKjHt33uAIfl3zCwMfpfIaHlvfNAi0waVHat+XnfeM7i+i6bsnc5ktKVmwpBaZDTiV0ylCv5Sy/jHFZxFABTKJ4w1YGjNPErhC78DpqrVQjShZaGOOgbQURCBkCZXjeYEDdijc0YphKbsa+X/UbidEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745918698; c=relaxed/simple; bh=q6Pjq/Ybh6Wqd6JtevO0ByH/ewdEIb7koaePTcQn3oE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=qd6OZTxTpDYJXSi7P9UypJUNtoRosSPoQGLg0xuq4Pr/k+O1hKLKdy/pG63r8XUEBIhJtRBV7nh5Zwtg2UPqmtlF6e+LScMdPMT9/Dwl5PNn74oIG1d39bl3MSYq+5Ae8LN9YaH2mgGF/ToXhkPMafROC3y/kXGVOu1DWsYQrcA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Q+dVV2iW; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Q+dVV2iW" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53SNqDuK004051; Tue, 29 Apr 2025 09:24:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:date:from:in-reply-to:message-id:references:subject:to; s= qcppdkim1; bh=Y5mHMTQ3vZAEVXAoMqDSAShE3ZG6B10VfCfdQFYocKY=; b=Q+ dVV2iW39GTXkoA0qxMlRMb5qThZbJKlHjLZJN162aTDex5YUPeyX30MwAPOk/Ys6 7rEsPo0dfF37rK/Dh1yDYY7xkHJcApIjg9HYtXsHfVL31pNt9RCTjzRc4wpSWMyI FBUh/GrbczLAXkIGO2wcYSVUJi3hHdh8fR0TS9lzrNedH83Iqh1RkOJe5imMXILs hkqbZVaf1cC1uv2uEiHTnOTNRDLHeYBXQTfC8j2xVoPhZ96YZUMOAY2p3raiLYZd X2csxOZTPq4GysEys/Mnp+SJXcq+nTDSOF5wvzt6xXPNq9T6OSEDsNxCVH0L/+il 7fK0EVpsSqOYGaTVGlwg== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 468rsbaykr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Apr 2025 09:24:52 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 53T9OmaV031631; Tue, 29 Apr 2025 09:24:48 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 468rjmhb3x-1; Tue, 29 Apr 2025 09:24:48 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 53T9OlML031587; Tue, 29 Apr 2025 09:24:48 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.213.109.81]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 53T9OmDu031660; Tue, 29 Apr 2025 09:24:48 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 3914174) id 9D23F604546; Tue, 29 Apr 2025 14:54:46 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@oss.qualcomm.com, Mohammad Rafi Shaik , Prasad Kumpatla Subject: [PATCH v2 5/7] arm64: dts: qcom: qcs6490-rb3gen2: Add sound card Date: Tue, 29 Apr 2025 14:54:28 +0530 Message-Id: <20250429092430.21477-6-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250429092430.21477-1-quic_pkumpatl@quicinc.com> References: <20250429092430.21477-1-quic_pkumpatl@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNDI5MDA2OSBTYWx0ZWRfX6r4ajk3VF5F3 yWopUaYLdnMCDjr4W7SisO3LvJd5gzaSxBCqS3jhKHFp97DPs39sDcTHrzTfX4kHOW2+9Rn/RWu zHVXkpkCZ73Tr0AH9eZ/NMJgwJx3552F2uexuc5NRm5dPuWCCeQXwJREz5WbmtmFO03fy+snpf2 LpFg3h/iZfjcrZ5ZIFo8HI5uZhE4VCsqmShBozlqgxBISGj+aQ9WTV1WywaZlbDrGeSDttFirKC ykXggj/FfErbWpMUI1Si7tf7D69iziU2xOpdHaT/ANNM0qiFxK36bve9xrCrxU4acZzlyKCS452 V1IjliN1/FSn8AO+Zq27NzNdZZIHCBcXv4wK42O6CsxUtD9ibTl+7tnXDLtsnBYt4go5pywHQUd VQSxALouHYbprG8ufLzGyPE1DPOMK+LOaoVuVsSfHYdsgwMW1+UODaXn68ZegvSTDjLQ6e40 X-Proofpoint-GUID: X7VGzbz4HEg1tbvJC-XM407nZXAMM3JY X-Proofpoint-ORIG-GUID: X7VGzbz4HEg1tbvJC-XM407nZXAMM3JY X-Authority-Analysis: v=2.4 cv=I8ZlRMgg c=1 sm=1 tr=0 ts=68109ae4 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=XR8D0OoHHMoA:10 a=COk6AnOGAAAA:8 a=kdNIUUk3XZBdUdgeTlAA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-04-29_03,2025-04-24_02,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 impostorscore=0 mlxscore=0 adultscore=0 spamscore=0 mlxlogscore=922 bulkscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2504290069 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Mohammad Rafi Shaik Add the sound card node with tested playback over WSA8835 speakers and digital on-board mics. Signed-off-by: Mohammad Rafi Shaik Co-developed-by: Prasad Kumpatla Signed-off-by: Prasad Kumpatla --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 49 ++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index 43cbdbe43afd..9cfe648e29bb 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -1078,6 +1078,55 @@ status = "okay"; }; +&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 = "WSA Playback"; + + codec { + sound-dai = <&left_spkr>, <&right_spkr>, <&swr2 0>, + <&lpass_wsa_macro 0>; + }; + + cpu { + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + va-dai-link { + link-name = "VA Capture"; + + codec { + sound-dai = <&lpass_va_macro 0>; + }; + + cpu { + sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; +}; + &swr2 { status = "okay"; left_spkr: speaker@0,1 { From patchwork Tue Apr 29 09:24:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prasad Kumpatla X-Patchwork-Id: 885792 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17397279338; Tue, 29 Apr 2025 09:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745918700; cv=none; b=D7kAdc/IOc/jrzfc9k/08mhiKP2tYVDX+uvB37hnyMlXKsU9djO6x/djn8Nt8J+xunwrpkSgMh5ezht6Zzq8GyLNVrNOxN7WgNMUuOepKlIxyuReP/gCO1vcSfBKYaRYFzDdFI8cn+5BKYcY4yRlTpzFC906Tm8CcGxoIXU2nRM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745918700; c=relaxed/simple; bh=9q263ivkuqryr1cVq+/JdlL7NEFdiOrXd+wNryP4BAM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=L4EyMGLAiZsppRxUlC6/7H6L51SdCr6/10aYPdNy/D9TEsWqZeElV1j9eW6jROlwRywZNT0NQo1Nw3fgbHe+wq+8yyKqCA0rkQjIafkBo8jO9PBwbAhCS3kH2m1Jz9XFFpTN0TCsu7JjXI9l9NiaYfvwF/djtFmKLB1DTUnvL18= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=jFyddsU5; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="jFyddsU5" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53SNq66p011895; Tue, 29 Apr 2025 09:24:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:date:from:in-reply-to:message-id:references:subject:to; s= qcppdkim1; bh=iYnqUGOuE5ecB95qJ22K4FevBfb65lOVWRBY4zUgZIY=; b=jF yddsU5Tdjd+RVBV/6fl+StmbAq51PjXj2ian1CUQ7+Gaj84YMq1PG9ZfgymZYKrU pp6LeaSWoLDQJM6amPHS122fNBHJGwKgquwZcoKPl1EVvtANT9w9y7IcdS7zFyrH QRR596tyQvoMNtvcux//bo1g8yom0tUk5kjpu0il8xQZjjqgtQ1ASS5/yJD6K7iE GHf2PnmLbcP0f2GyHqcW9IqXhZkUVCAsGdzwfCRJrwB0ESJ5GSf3MKO2DerMZuLU nwdac9D5HUri9HI03uQ6+9xKvodhh6ET/MRsxwjJ5U77x5QaH4+R9mufZzBxH4Lc LSCoPxgRINZOehZNR2oQ== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 468q323x87-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Apr 2025 09:24:52 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 53T9Omrp031632; Tue, 29 Apr 2025 09:24:49 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 468rjmhb3u-1; Tue, 29 Apr 2025 09:24:48 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 53T9Om96031675; Tue, 29 Apr 2025 09:24:48 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.213.109.81]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 53T9OmwC031658; Tue, 29 Apr 2025 09:24:48 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 3914174) id A39E2604548; Tue, 29 Apr 2025 14:54:46 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@oss.qualcomm.com, Mohammad Rafi Shaik , Prasad Kumpatla Subject: [PATCH v2 7/7] arm64: dts: qcom: qcm6490-idp: Add sound card Date: Tue, 29 Apr 2025 14:54:30 +0530 Message-Id: <20250429092430.21477-8-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250429092430.21477-1-quic_pkumpatl@quicinc.com> References: <20250429092430.21477-1-quic_pkumpatl@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Authority-Analysis: v=2.4 cv=M7xNKzws c=1 sm=1 tr=0 ts=68109ae4 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=XR8D0OoHHMoA:10 a=COk6AnOGAAAA:8 a=h_l79siUWkRGThfnGhIA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: cB6N2JfV9KGpkcIzqmdfI9uXROKW0LbP X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNDI5MDA2OSBTYWx0ZWRfX8MiRNcR3nyOZ DR5zK16XEAq/HXLg0DnadaMWg7sZzZnRQwgMHeOdlLP5Bi+nqNyCKPF6xhtAfeH+LSRTeaTKdks v4v4B043YDAxBcnXN991B1mDCa1sLbSCrT47JvGxvzy6vtsVa2gscacVJCCj4iQ/0WhXhPOP/2I 756dkvEsqYjN6UmTTLP3ubza7cz9SjAbOCUC1XYvfvzwZ2z2MUOAQ7IiQEzGGYQolGQE4LuX7M2 6K9c7UoaOcat2NyceryLT8q6UE02baYk6NS3MUiMqkAKu/hCtfQytdO0D8sm4FilX01KEtAGlal 9zzy4ZQF3cYiFfJqGvyInBh8hVuosKcEACGXIaLA3N6ecEHDBaERm4vx15u0m7wkSNzeSH2FemJ otcxtKOF+50nFGeKJWlGWRgaqUDdvXFue2IHymbY/gaA+RGLV4PhGQCmut4MeREGO/VpRQ9G X-Proofpoint-ORIG-GUID: cB6N2JfV9KGpkcIzqmdfI9uXROKW0LbP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-04-29_03,2025-04-24_02,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 clxscore=1015 mlxlogscore=984 spamscore=0 phishscore=0 bulkscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 mlxscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2504290069 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Mohammad Rafi Shaik Add the sound card node with tested playback over WSA8835 speakers, digital on-board mics along with wcd9370 headset playabck and record. Signed-off-by: Mohammad Rafi Shaik Co-developed-by: Prasad Kumpatla Signed-off-by: Prasad Kumpatla --- arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 88 ++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts index 1a59080cbfaf..a83044020ead 100644 --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts @@ -811,6 +811,94 @@ cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>; }; +&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 = "WSA Playback"; + + codec { + sound-dai = <&left_spkr>, <&right_spkr>, <&swr2 0>, + <&lpass_wsa_macro 0>; + }; + + cpu { + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wcd-playback-dai-link { + link-name = "WCD Playback"; + + codec { + sound-dai = <&wcd9370 0>, <&swr0 0>, <&lpass_rx_macro 0>; + }; + + cpu { + sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wcd-capture-dai-link { + link-name = "WCD Capture"; + + codec { + sound-dai = <&wcd9370 1>, <&swr1 0>, <&lpass_tx_macro 0>; + }; + + cpu { + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + va-dai-link { + link-name = "VA Capture"; + + codec { + sound-dai = <&lpass_va_macro 0>; + }; + + cpu { + sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; +}; + &swr0 { status = "okay";