From nobody Mon Oct 6 13:39:29 2025 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 476501F4622; Sun, 20 Jul 2025 17:32:44 +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=1753032766; cv=none; b=iF3nAM9tJzG+43PtK+DnKvTU7B5TpGu6UY4qASdpuuFgDeK+Gyhe/AzM+co0lHUh/9qTVZoSXdO9LO+tzgAW1giBlWu/dfddaIscRfGaTlWxB3KxsGLn2bAwhxQINXLI0AGejoA84DDigz3/2rOEyeU4hf06ED2+Qv89Psdx0rQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753032766; c=relaxed/simple; bh=P8NQgXwVcdeGFJa0FehcD0/fsBSp/QqCpXsRFPV33Eg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=EyyD1c1O6++4VYcn+1ilQOeUZ4ziQA09MqChKgTPHUYIay/fN+B0FJLahLph8lcgA5g8RL+ndLHtcUyCkVO7d4YPjZCt+JZUQak+s+jZiVFlOxNGhJjkqbQ2ob5YRKIfi00m5oSDxznN1FqF7XcASJalK72BOvdw+YgnsQMvaI8= 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=csrQTfEn; 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="csrQTfEn" 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 56K9Uobg014246; Sun, 20 Jul 2025 17:32:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=W6oPjJ4zSKE TcnaxJhSU5F12KHawMLdElntnBB/j5PQ=; b=csrQTfEnLFMEQNRwJm7BhPT7JGb 2N1qG6DRZeyEAFLgSerslboUxxh69MLPLfQxtoV1x8FYM8hlD6nnArbxoWUm+1oK 1Nxu9kSmlOpkg2uOdg+rd+SAA7nt2/xy2T24nIl1B2VEQwnywBgqEkM9g6S5AgDt i5dsSIjEJky735lffevsGKTJEY89B0ibi0Ft1lQNf6vbLNk9fG5c6zqHsIUUR+9Z P6ok0+7ECBI4QWEqUm7unLl9UdRRbsV0VgixplPEu+yQqncTb0u6+JjW6DgTv41x qe7Zi29H76+9rMREvPfyjPDc82LSLipmI3ABCMY9sQVnnom4LUcTZodHY+g== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4804n9tebd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:39 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 56KHUSPl024985; Sun, 20 Jul 2025 17:32:20 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4804ek9a44-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:20 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 56KHWK3o027034; Sun, 20 Jul 2025 17:32:20 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.147.245.204]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 56KHWI7v027025 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:20 +0000 Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 3914174) id 0D2D93E3; Sun, 20 Jul 2025 23:02:18 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Konrad Dybcio Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, quic_pkumpatl@quicinc.com, kernel@oss.qualcomm.com, Mohammad Rafi Shaik , Konrad Dybcio Subject: [PATCH v7 1/9] arm64: dts: qcom: qcs6490-audioreach: Add gpr node Date: Sun, 20 Jul 2025 23:02:07 +0530 Message-Id: <20250720173215.3075576-2-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> References: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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-GUID: 0ESUgrgrrxXdKYaNPDUwbqRIF8jXfSwe X-Proofpoint-ORIG-GUID: 0ESUgrgrrxXdKYaNPDUwbqRIF8jXfSwe X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzIwMDE2OSBTYWx0ZWRfX7h5hOczFuD0/ d7iu3NcH+NxVBU/KieE1HL/xgjbk0MvX15QMCWrwXklvjbtPBh5mXRzsRkcNALD6VOetVBqSIMn FIU8yLncAvFzH8zDIpaVbBGQbOWIsVjGN+32xnqOxIkwTHFt3nZ5PxbO9mmGghe9KBw6iooAxq7 SAPZMST/i5+HX0zByf7zEGR/tPgBt6HeQldxFPe3NFbry1vYf3voJci+8gAdFxaPzBvIua4gEqF 4TtPAngya+Rr/JsBy/8/+nxekjamMFGPEXQapLeHGJht2ACqRyErtl8749Ms3p7lGsXGnNPryS8 AdaytYOHRxbQ97rIsHX4dMezfqLGnWuPturYtmikQuHHsPUXhzOcX23ChbQl7FkYnlrDY/c8Q7M /vqC7IB+gnIHlQv1rv2gVlMFl47Q8RzrDXSLr7f/d6nDezzQv+JFwtg53cHOD6W7qh2z/GKG X-Authority-Analysis: v=2.4 cv=DoFW+H/+ c=1 sm=1 tr=0 ts=687d2837 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=COk6AnOGAAAA:8 a=qNQE7zv6AEFRdB29RtQA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-20_01,2025-07-17_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 bulkscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 spamscore=0 priorityscore=1501 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507200169 Content-Type: text/plain; charset="utf-8" From: Mohammad Rafi Shaik Add GPR(Generic Pack router) node along with APM(Audio Process Manager) and PRM(Proxy resource Manager) audio services. A new qcs6490-audioreach.dtsi file has been added to update AudioReach specific device tree configurations. The existing audio nodes in sc7280.dtsi, which were designed for the ADSP Bypass solution. The audio nodes now being updated in qcs6490-audioreach.dtsi to support the ADSP-based AudioReach architecture. Signed-off-by: Mohammad Rafi Shaik Co-developed-by: Prasad Kumpatla Signed-off-by: Prasad Kumpatla Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/qcs6490-audioreach.dtsi | 54 +++++++++++++++++++ arch/arm64/boot/dts/qcom/sc7280.dtsi | 2 +- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi diff --git a/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi b/arch/arm64/= boot/dts/qcom/qcs6490-audioreach.dtsi new file mode 100644 index 000000000000..282938c042f7 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi @@ -0,0 +1,54 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * qcs6490 device tree source for Audioreach Solution. + * This file will configure and manage nodes from sc7280.dtsi to + * support the AudioReach solution. + * + * Copyright (c) 2025 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include +#include +#include +#include + +&remoteproc_adsp_glink { + /delete-node/ apr; + + gpr { + compatible =3D "qcom,gpr"; + qcom,glink-channels =3D "adsp_apps"; + qcom,domain =3D ; + qcom,intents =3D <512 20>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + q6apm: service@1 { + compatible =3D "qcom,q6apm"; + reg =3D ; + #sound-dai-cells =3D <0>; + qcom,protection-domain =3D "avs/audio", "msm/adsp/audio_pd"; + + q6apmdai: dais { + compatible =3D "qcom,q6apm-dais"; + iommus =3D <&apps_smmu 0x1801 0x0>; + }; + + q6apmbedai: bedais { + compatible =3D "qcom,q6apm-lpass-dais"; + #sound-dai-cells =3D <1>; + }; + }; + + q6prm: service@2 { + compatible =3D "qcom,q6prm"; + reg =3D ; + qcom,protection-domain =3D "avs/audio", "msm/adsp/audio_pd"; + + q6prmcc: clock-controller { + compatible =3D "qcom,q6prm-lpass-clocks"; + #clock-cells =3D <2>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qco= m/sc7280.dtsi index 64a2abd30100..81dd1a0b6d42 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -3822,7 +3822,7 @@ remoteproc_adsp: remoteproc@3700000 { =20 status =3D "disabled"; =20 - glink-edge { + remoteproc_adsp_glink: glink-edge { interrupts-extended =3D <&ipcc IPCC_CLIENT_LPASS IPCC_MPROC_SIGNAL_GLINK_QMP IRQ_TYPE_EDGE_RISING>; --=20 2.34.1 From nobody Mon Oct 6 13:39:29 2025 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 8D3B574C08; Sun, 20 Jul 2025 17:52:03 +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=1753033925; cv=none; b=itibNVEsdf96FQ1f71OOLD8YjrdeGSMABiqT83i58hXFJJHmOECMs4wry1rezkWAyd7XxSmH2b1mrxbBeWneUI3YqhwywA0Qxb6ZpY3PMWBJ56C+W4BlkpvPNMnx+02JQgDMtHXgZu73T03+P+ebLGqsWp4ek0e3JcnmdWWSbDg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753033925; c=relaxed/simple; bh=5V5FukWutqy5q8btDXGs/VZ9KO6Wq+n/jZt3asgpjfI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=te3kX/Cldz6nQ6StYOGk0vvmdZ44+HWpJEkQmn0dodSlACTCz/cfKKwV+cT1aS/9MkEEMXeItr6iyVmROxvjx1IsdAFI2c8Ax4mnNVRTfnLAx1dNHOUzz4zprF99YG5MkKO3e5y0qGuBCceo2T+zUnKv8bL2Wpt8QOYODGb6V+k= 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=omsfr4Ew; 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="omsfr4Ew" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56KHH3IO021653; Sun, 20 Jul 2025 17:51:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=O4izwkU5brV wxDtYbX8mFBFQjnyHl0QdjF5QKKCxvfs=; b=omsfr4EwY7RnAX+2XVxcx6In25o vLsKLo1B960ul9IK7cKt/z1vjsQ74tDSwGcw6/pQCDJn58Oo8rttnus3BPiL48sK RMeZ0mI2bqmufkJtGmVeMRFCyC9eQleN9RBiQ3D4g1qOPbQrKDJEWzvCBoWTkqXt gvKM5KhUfiy7RsmDG9dUf/20NGCL1XSENIUHXiN3Fgbo1JbD9PyP4i1srBrrPB9S jXsNiBTNXvkqY1uqMMeukFhuMFQhQSeAIJ9WauXR0LJxAK+WABZ2TN33fUldDvSs xKVjOnghzpj1/2Sb8OfyQ3vaeKGfzhn/4olyWpIH2qiABw3ZcZ5trG2DMew== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48047q2jna-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:51:58 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 56KHptuT013286; Sun, 20 Jul 2025 17:51:55 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4804ek9d4m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:51:55 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 56KHpsgR013263; Sun, 20 Jul 2025 17:51:54 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.147.245.204]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 56KHpsFs013262 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:51:54 +0000 Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 3914174) id 117825CB; Sun, 20 Jul 2025 23:02:18 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Konrad Dybcio Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, quic_pkumpatl@quicinc.com, kernel@oss.qualcomm.com, Mohammad Rafi Shaik Subject: [PATCH v7 2/9] dt-bindings: pinctrl: qcom,sc7280-lpass-lpi-pinctrl: Document the clock property Date: Sun, 20 Jul 2025 23:02:08 +0530 Message-Id: <20250720173215.3075576-3-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> References: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: AW1haW4tMjUwNzIwMDE3MSBTYWx0ZWRfX52HlZTUOn+Zm fDhyBL9Me8+GxRUQwtTQKZnpr/3ScTMS7y2gruR3YwtvkI+vmSPy7VsdQ6WFHmH4CHfhVrk2AJo bFbBliWuVzJPL6WH+kANsAQjKrtxiua7sl27+AhtwOyJ2Mv18tSVqJCCPF3BFF7+xHwXbu4ajDp CcOGCfZQO4Jw6EoJE3Po9C5xiykAdJj7cW/551YsgaoZPkmkS1Hc4roTZVs9mQ3Qdpq1XHnGrdf CCsB07LyFgPJoF3z+Q4rhgXdg7c4XgPUX1PoCEOSYuYMbTthm4hFthrXaaivYrHzj2hNQDG8XPw /5q9Z0xrFrkLiJqbzXJL0mzFv74P8Tl2vW6v1QDK9RLsLCiDsC+HZP+FaRgCs0ZCAUifLKSYcor 49NNJ4nWo94iVrECO7TxXnEJVPDJXc9ocPrADHPxFtTSnfyyI7mMwNfvwxxUhBDq8QMiNUMy X-Proofpoint-ORIG-GUID: 6yBuV_dkfdQR2P-V_f2_ZwdIs6zeE1k2 X-Proofpoint-GUID: 6yBuV_dkfdQR2P-V_f2_ZwdIs6zeE1k2 X-Authority-Analysis: v=2.4 cv=IrMecK/g c=1 sm=1 tr=0 ts=687d2cbf cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=COk6AnOGAAAA:8 a=pSc1PWz_11YsA2FjbjAA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-20_01,2025-07-17_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 spamscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 impostorscore=0 bulkscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507200171 Content-Type: text/plain; charset="utf-8" From: Mohammad Rafi Shaik Document the clock property in sc7280 LPASS LPI pinctrl node. Clock settings required for Audioreach solution. The existing SC7280 platform only supports non-ADSP audio solutions. To enable audio functionality on ADSP with the AudioReach solution. additional core and audio hardware clocks must be configured. Without these clocks, the ADSP will crash. Signed-off-by: Mohammad Rafi Shaik Co-developed-by: Prasad Kumpatla Signed-off-by: Prasad Kumpatla Reviewed-by: Krzysztof Kozlowski --- .../pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lp= i-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpas= s-lpi-pinctrl.yaml index 08801cc4e476..bc7b8dda8837 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinct= rl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinct= rl.yaml @@ -20,6 +20,16 @@ properties: reg: maxItems: 2 =20 + clocks: + items: + - description: LPASS Core voting clock + - description: LPASS Audio voting clock + + clock-names: + items: + - const: core + - const: audio + patternProperties: "-state$": oneOf: @@ -70,10 +80,16 @@ unevaluatedProperties: false =20 examples: - | + #include lpass_tlmm: pinctrl@33c0000 { compatible =3D "qcom,sc7280-lpass-lpi-pinctrl"; reg =3D <0x33c0000 0x20000>, <0x3550000 0x10000>; + + clocks =3D <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPL= E_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE= _NO>; + clock-names =3D "core", "audio"; + gpio-controller; #gpio-cells =3D <2>; gpio-ranges =3D <&lpass_tlmm 0 0 15>; --=20 2.34.1 From nobody Mon Oct 6 13:39:29 2025 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 971EE1CA81; Sun, 20 Jul 2025 17:42:03 +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=1753033325; cv=none; b=ZzAFNiIH3LBtVx9iYt72Zb1r59cYOeiSzw6K67+FBbqE5QKjIcsH19A4MkUHaSQ2P/+gSarvojDnzBK7mZd+WFmgCFArLbnBx5YYZcbfgPeUzY3Q1y7ZaXI2iMeE1EgH8TjjAhe08mBeIH0BR6tfhNZ2HxrlFecWTopHF85xVQA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753033325; c=relaxed/simple; bh=sxRR6myuDhJtWpvDtMkqiYmloHrbHQ4QiPu3giKLFtg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ANJwmGP0AqCn0EgYh51FnmLgHwcy7ueEZ32K0VMy9LubSrhXq6IRaIYVoExzqxbKhVujBxrvv8p7digddNiX+y5vVkDLnJGA2mlmjWvFJrSDz/Jrlqz43+ACIBE/YjHksSFNdDYs9taA0am0KZyCLe2GaTJntuYdWFRuAmrRwQI= 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=pYaoNyL+; 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="pYaoNyL+" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56KErHEI021328; Sun, 20 Jul 2025 17:41:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=sJpfivHUr8x AKKtayQLu5vacWUggO/pOUnlphHMBgns=; b=pYaoNyL+6kHpMsWv3r/s20EDwA0 PG6J2CnjPrYi4j3z3nsjyC7VWNm2Xum+PX2PNGC/HJeshFofVg7l+eIpGxWH7+bE m6IfZuhkF8C0eKJdOYvjMKRNqAhr2qtCgdwCbOU9qfIEe735nIdr623F8Q0NoaUB 6vX74HvQEgASZS1xnvRIcuEIUojvmLlLZEBSUbvqKJf8o6APSfT5nLh0v0NolCja mxhnnX8yTv23oXDncd2CiaRZlr9xl5FGRKDDaW7Le+3DOaeDKDvPS2c5Hx/gjAkB eYceu13skR9DH3H0h/pD1+hgLHiE0HZI2khYwQAtgtGBp749POKSSfVO9yg== 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 48048tah0d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:41:59 +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 56KHfuPt023006; Sun, 20 Jul 2025 17:41:56 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 4804ek8mcb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:41:56 +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 56KHfuHa023000; Sun, 20 Jul 2025 17:41:56 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.147.245.204]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 56KHfsv8022998 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:41:56 +0000 Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 3914174) id 165115CD; Sun, 20 Jul 2025 23:02:18 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Konrad Dybcio Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, quic_pkumpatl@quicinc.com, kernel@oss.qualcomm.com, Mohammad Rafi Shaik Subject: [PATCH v7 3/9] ASoC: dt-bindings: qcom,lpass-va-macro: Update bindings for clocks to support ADSP Date: Sun, 20 Jul 2025 23:02:09 +0530 Message-Id: <20250720173215.3075576-4-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> References: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: AW1haW4tMjUwNzIwMDE3MCBTYWx0ZWRfX51g3TgGFuVso 5UJvm/i/MeQBArRfJne/F8TCC9Tc7L8QnwoXDIDtUDpxlrgthFScC56u4F3LAa6IukOZS6z+Axm zePZmVa+scAsWjhyr76sBqbV9rK/XlibBiNCzFnd2fgUR4SJDhd8ZIhf8vh015f4t2BO4iOmq84 YR5Q1b7emXvvXu0V6oHtMvkiKmuTbm7U5UzafIU82RIzjIaOo4G48VFSeIFA1kLMe76l0SaTQH4 3d6kcTdCF/7PnX+oGnzZ6ikdFRescLs+QaQSRKBum/EPSUrk3Kazwv+8sPoJD/F+UUJQ1XhUB+a wAlT/1jg9dIxHjFPIcAjrUbkL7XfpHVeFiIRmiemN5EGZvKXPyp38k055M+qlZF/m6oUFrwEt9w pKy6rr6+4lFaVqCflo7CCgmRRFqNnIwvu2+hMOn5Y42pooFuR2a2QyYN81Em1SLa0AOU1QJm X-Authority-Analysis: v=2.4 cv=Jb68rVKV c=1 sm=1 tr=0 ts=687d2a67 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=COk6AnOGAAAA:8 a=ZRTT_DJxv7dltqHrpccA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: XSlNbHjAjn7P0ElBQ4pLUW-Axlva0l77 X-Proofpoint-ORIG-GUID: XSlNbHjAjn7P0ElBQ4pLUW-Axlva0l77 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-20_01,2025-07-17_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 adultscore=0 priorityscore=1501 clxscore=1015 phishscore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 spamscore=0 impostorscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507200170 Content-Type: text/plain; charset="utf-8" From: Mohammad Rafi Shaik Manage clock settings for ADSP solution. On Existing ADSP bypass solutions, the macro and dcodec GDSCs are enabled using power domains in lpass-va-macro which is not applicable for ADSP based platform. Signed-off-by: Mohammad Rafi Shaik Co-developed-by: Prasad Kumpatla Signed-off-by: Prasad Kumpatla Reviewed-by: Krzysztof Kozlowski --- .../bindings/sound/qcom,lpass-va-macro.yaml | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.ya= ml b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml index dd549db6c841..3bfb0538dba2 100644 --- a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml @@ -79,12 +79,25 @@ allOf: compatible: contains: const: qcom,sc7280-lpass-va-macro + then: - properties: - clocks: - maxItems: 1 - clock-names: - maxItems: 1 + if: + required: + - power-domains + then: + properties: + clocks: + maxItems: 1 + clock-names: + maxItems: 1 + else: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + minItems: 3 + maxItems: 3 =20 - if: properties: --=20 2.34.1 From nobody Mon Oct 6 13:39:29 2025 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 D45401F1317; Sun, 20 Jul 2025 17:32:35 +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=1753032757; cv=none; b=KX7NRrrf6blMdxKnmMtjSXQ6VP3H5SmURAFHHj+Sh1uRkxFZIfh279jqnpq71ELYfIbLFvX0/gFtkO4NR2oWvBEvHGMO4uspfDMtQHFV3cvePlDle/n1zMHmYwQ2js3QPmmxJpMZV90qd6iNRyXlQYD/XhOHIxBxk2ZEWgslQ/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753032757; c=relaxed/simple; bh=2rKc+FYrMJt3rpUExE7fnfebOjcXj/0E/mD8b06Lb2k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RoZsgOgnQvQTPR+oBt7MQ4yLE3DgSmwMg1qQxrG71qsccbToDqCvLC9Q5rIPXtDwv0V1b7XAfTLarE9t0+s8W3nIXBLyOgjfQ7leGJzCmj/OPmnmKNogvKkN5AGQL7etBgKE/ZNlRh0NEugpaSWKVpgGuYDpb7cjk4/lNMiw3dM= 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=fHXRbxbv; 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="fHXRbxbv" 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 56K8uqXY029708; Sun, 20 Jul 2025 17:32:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=Rzzumf/IoxX ZtkjKnPu0a8mQNXjSHfPtdOAOw0dBWvs=; b=fHXRbxbv6vnGAIXrtrZjPaBpD+q PI+HWkXE8DM/yu+qGOc1TUyxgp9IB20mros/Tg4POYbIXUMqrgnE0ZL+9NpPuZfp WqmumRnbY8N0aALSWcz8Zllh0vcM0dwCF3V72EUaUANIMTsQkxqFoHi2wXaD9n/h mG0fDiV3qyhVIOUpM1mI2RdO3JjUh/t/RdL9JXzRomoORpGQR033YTND4I8XKH4K 6XidKiBCdl/tUFea3Ircchd2J8UkpaqeBbJgtIDuEeRQ9QB8i3RFO7T5e16F8M6e cLnd3WlCyp3wwMOkSRsPOjz6UdPkaeTH+sy7UJyW53Ned9k3YUFFpoz4/rQ== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48048rtjbg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:24 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 56KHWKhi027047; Sun, 20 Jul 2025 17:32:20 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4804ek9a43-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:20 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 56KHWKOx027032; Sun, 20 Jul 2025 17:32:20 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.147.245.204]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 56KHWIX2027026 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:20 +0000 Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 3914174) id 1B0CF5CE; Sun, 20 Jul 2025 23:02:18 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Konrad Dybcio Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, quic_pkumpatl@quicinc.com, kernel@oss.qualcomm.com, Mohammad Rafi Shaik , Konrad Dybcio Subject: [PATCH v7 4/9] arm64: dts: qcom: sc7280: Add WSA SoundWire and LPASS support Date: Sun, 20 Jul 2025 23:02:10 +0530 Message-Id: <20250720173215.3075576-5-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> References: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: AW1haW4tMjUwNzIwMDE2OCBTYWx0ZWRfXz/QO6viPw3mc Iez21rXwZzMKI6UgFfGwgKrZJOsCXdEE/9w9vMikeZC46NDuR5nQi9Gk7t9e5BQHnBO/3tzVRkL Skr0CsfMiAjf2wNXie5ZUThb1udvgTCMBBMGbcN/SjUvZKbfFNTjqKLSoDZPTZqpsOTgA0B8kdM QBGwBGAUBhKPjMB68fKeJgChjFzVQ/cf2GVkDq2AsEk6HAhgEhBexYGH95ZQwtpFaXTUFagPevL tcsuag3aJwjmOt1LOwQsulYjxfv0ZgUBYxdQnRhSvonHlLeg9eUMJpOOjBKOCad7DZ8qo8oO5Gb zhP5TURLPC2TAWZFLYY6AWTcUkBVzMVf4VknSIS5yihJhd1+L6wu+UF0DNxcYeTvCxnZmuwP6dd hztaecA/uOZxg75ERSUzLS8G3FIJr7bt61TohgM5NOxkGrIrCJYlRZCzZxmZHLiqfNjpcJme X-Proofpoint-ORIG-GUID: VC6AVddIHBgFtoEYR39znHiNLzzPvFG4 X-Proofpoint-GUID: VC6AVddIHBgFtoEYR39znHiNLzzPvFG4 X-Authority-Analysis: v=2.4 cv=OPUn3TaB c=1 sm=1 tr=0 ts=687d2828 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=COk6AnOGAAAA:8 a=U1_cLM93NHZJhQfsSQgA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-20_01,2025-07-17_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 mlxlogscore=999 lowpriorityscore=0 suspectscore=0 spamscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 phishscore=0 malwarescore=0 impostorscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507200168 Content-Type: text/plain; charset="utf-8" From: Mohammad Rafi Shaik Add WSA LPASS macro Codec along with SoundWire controller. Signed-off-by: Mohammad Rafi Shaik Co-developed-by: Prasad Kumpatla Signed-off-by: Prasad Kumpatla Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 77 ++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qco= m/sc7280.dtsi index 81dd1a0b6d42..ff5b3568c39d 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -28,6 +28,7 @@ #include #include #include +#include #include #include =20 @@ -2644,6 +2645,66 @@ swr1: soundwire@3230000 { status =3D "disabled"; }; =20 + lpass_wsa_macro: codec@3240000 { + compatible =3D "qcom,sc7280-lpass-wsa-macro"; + reg =3D <0x0 0x03240000 0x0 0x1000>; + + clocks =3D <&lpass_aon LPASS_AON_CC_TX_MCLK_CLK>, + <&lpass_aon LPASS_AON_CC_TX_MCLK_2X_CLK>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&lpass_va_macro>; + clock-names =3D "mclk", + "npl", + "macro", + "dcodec", + "fsgen"; + + pinctrl-0 =3D <&lpass_wsa_swr_clk>, <&lpass_wsa_swr_data>; + pinctrl-names =3D "default"; + + #clock-cells =3D <0>; + clock-output-names =3D "mclk"; + #sound-dai-cells =3D <1>; + + status =3D "disabled"; + }; + + swr2: soundwire@3250000 { + compatible =3D "qcom,soundwire-v1.6.0"; + reg =3D <0x0 0x03250000 0x0 0x2000>; + + interrupts =3D ; + clocks =3D <&lpass_wsa_macro>; + clock-names =3D "iface"; + + resets =3D <&lpass_audiocc LPASS_AUDIO_SWR_WSA_CGCR>; + reset-names =3D "swr_audio_cgcr"; + + qcom,din-ports =3D <2>; + qcom,dout-ports =3D <6>; + + qcom,ports-sinterval-low =3D /bits/ 8 <0x07 0x1f 0x3f 0x07 + 0x1f 0x3f 0x0f 0x0f>; + qcom,ports-offset1 =3D /bits/ 8 <0x01 0x02 0x0c 0x06 0x12 0x0d 0x07 0x0= a>; + qcom,ports-offset2 =3D /bits/ 8 <0xff 0x00 0x1f 0xff 0x00 0x1f 0x00 0x0= 0>; + qcom,ports-hstart =3D /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff= >; + qcom,ports-hstop =3D /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff>; + qcom,ports-word-length =3D /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff= 0xff>; + qcom,ports-block-pack-mode =3D /bits/ 8 <0xff 0xff 0x01 0xff 0xff 0x01 + 0xff 0xff>; + qcom,ports-block-group-count =3D /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff + 0xff 0xff>; + qcom,ports-lane-control =3D /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff + 0xff 0xff>; + + #address-cells =3D <2>; + #size-cells =3D <0>; + #sound-dai-cells =3D <1>; + + status =3D "disabled"; + }; + lpass_audiocc: clock-controller@3300000 { compatible =3D "qcom,sc7280-lpassaudiocc"; reg =3D <0 0x03300000 0 0x30000>, @@ -2847,6 +2908,22 @@ lpass_tx_swr_data: tx-swr-data-state { pins =3D "gpio1", "gpio2", "gpio14"; function =3D "swr_tx_data"; }; + + lpass_wsa_swr_clk: wsa-swr-clk-state { + pins =3D "gpio10"; + function =3D "wsa_swr_clk"; + drive-strength =3D <2>; + slew-rate =3D <1>; + bias-disable; + }; + + lpass_wsa_swr_data: wsa-swr-data-state { + pins =3D "gpio11"; + function =3D "wsa_swr_data"; + drive-strength =3D <2>; + slew-rate =3D <1>; + bias-bus-hold; + }; }; =20 gpu: gpu@3d00000 { --=20 2.34.1 From nobody Mon Oct 6 13:39:29 2025 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 D44E6B661; Sun, 20 Jul 2025 17:32:35 +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=1753032757; cv=none; b=nIZlk9gyd7UivGJMS1IhVyOkHcLS/xmaA61/F7+FtqyGNNa+cBVBInN7CiZbKx2+/h2Znh0RdwF3nRuXmCMRty2uFuyABHTN0HSLCgZnIWo5GShSa0DeoK1dTDmvDS5zPM97Qe2yLWK7uweXpDP6i2C45TYO+FAa9t13GRaQ7/E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753032757; c=relaxed/simple; bh=E+TFRV9NyJ1PutNZZFAm+7WPX5FJ2vzy6j7bQLpb03w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hZIXWGQXq9qUjnyFDzo18DiQKS/F6W8/eqvUxb3KzU2ZjOzk2EUJZhs3zNYRQPxSwykSiYN7mAL2lGjsACTKYHOttrry2ZlasQcM/umXtDsAuJusaAspZMT9wYm7Ee3BXwWCZf6KXZqmBRKoOrFjQz+PHrEG1QAXFNH24BSHoUo= 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=EWy2zWXh; 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="EWy2zWXh" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56KFMvoi009191; Sun, 20 Jul 2025 17:32:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=58y510WhOUW hmDla8LyM2Lmj5WxnSjJTzY8TI6I7VHI=; b=EWy2zWXhBxGCMmC+9kFp19+yYJy 1rPacVzHo9tFmfQteLnOpAGXPh6OB27aP6/J6sYqglqCfVeOOR4Q658rzpg677n1 G4MJNk9ce7vYYg0Rc5MRoEA4y7lQ7kwOHpIUUMMRtdpu0s4c5Q5AepmSXUigyPtD oWYI5RwdLSRKTTrNHz3wHhVqBswSaqIIYKGQCZnRa8Ul4mC0NAjKHvJ3IoNYAIKS 3StDQH7geQ2qTQEpUB23ODDLly1x27GbTNlxXpDf03PVi45LfvKmqUB1ll1UpTcL ygtRgBcxfgOLXQplNROmdq+0THqFDsn5LnxU3QDWJ9teMRnoqN1+Rds8pdA== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48048tagmf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:24 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 56KHWMU1027097; Sun, 20 Jul 2025 17:32:22 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4804ek9a4m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:21 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 56KHWK7q027033; Sun, 20 Jul 2025 17:32:21 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.147.245.204]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 56KHWL8f027060 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:21 +0000 Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 3914174) id 1FAE75CF; Sun, 20 Jul 2025 23:02:18 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Konrad Dybcio Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, quic_pkumpatl@quicinc.com, kernel@oss.qualcomm.com, Mohammad Rafi Shaik , Konrad Dybcio Subject: [PATCH v7 5/9] arm64: dts: qcom: qcs6490-audioreach: Modify LPASS macros clock settings for audioreach Date: Sun, 20 Jul 2025 23:02:11 +0530 Message-Id: <20250720173215.3075576-6-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> References: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: AW1haW4tMjUwNzIwMDE2OCBTYWx0ZWRfX9VMgItCXJSQE u2u6LOpRoR6nPfeoygGFgqVG+cpxc1hS4W4gmVkYCvMfEDFjWAoLWIN88tPH3mrNkulzhK9pXXF 3dRrF/yU+mD96J0mCjWNqJdgjrh4gBWpCRkT0vAdpJeVUoJWjUlXiPQE7LpgNiLyGmkGlaHkmSL 8B/PXtssP7P70HcGSO0XLpZr6my2cC3HZeN750p9ha0se6ESESFboFUWUryGGvnSu45/eiUOa0C ekdRbs+uhbBOwjgjMjmQDyXoETmR5u9W7xr8nz9fO6JFghJITYZJaJnFHTlXBOkB4ug8iZ2Pi/T iVGON3AUgYCPbOjLJGLNdWxRoWHQ3Fm/eyGR93X3fWDzwDp6pgiOevtJ5UWbLWJJvh7nlDq068J tjq4WtO54d0mhRdt086DJjtMzHvrl6vcb01jmTX+wxiihQCWaAzVSJrMHxg/8Z6oxNRKGbOZ X-Authority-Analysis: v=2.4 cv=Jb68rVKV c=1 sm=1 tr=0 ts=687d2829 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=COk6AnOGAAAA:8 a=Ri8MtJ_oCAYdBNTneTsA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: WXpNXgowbnjQgc1cA3CN6pmk8J-7z2p1 X-Proofpoint-ORIG-GUID: WXpNXgowbnjQgc1cA3CN6pmk8J-7z2p1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-20_01,2025-07-17_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 adultscore=0 priorityscore=1501 clxscore=1015 phishscore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 spamscore=0 impostorscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507200168 Content-Type: text/plain; charset="utf-8" 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. For qcs6490 RX drives clk from TX CORE which is mandated from DSP side, Unlike dedicated core clocks. Core TX clk is used for both RX and WSA as per DSP recommendations. Signed-off-by: Mohammad Rafi Shaik Co-developed-by: Prasad Kumpatla Signed-off-by: Prasad Kumpatla Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/qcs6490-audioreach.dtsi | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi b/arch/arm64/= boot/dts/qcom/qcs6490-audioreach.dtsi index 282938c042f7..6d3a9e171066 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi @@ -12,6 +12,67 @@ #include #include =20 +&lpass_rx_macro { + /delete-property/ power-domains; + /delete-property/ power-domain-names; + clocks =3D <&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 =3D "mclk", + "npl", + "macro", + "dcodec", + "fsgen"; +}; + +&lpass_tlmm { + clocks =3D <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names =3D "core", + "audio"; +}; + +&lpass_tx_macro { + /delete-property/ power-domains; + /delete-property/ power-domain-names; + clocks =3D <&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 =3D "mclk", + "npl", + "macro", + "dcodec", + "fsgen"; +}; + +&lpass_va_macro { + /delete-property/ power-domains; + /delete-property/ power-domain-names; + clocks =3D <&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 =3D "mclk", + "macro", + "dcodec"; +}; + +&lpass_wsa_macro { + clocks =3D <&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 =3D "mclk", + "npl", + "macro", + "dcodec", + "fsgen"; +}; + &remoteproc_adsp_glink { /delete-node/ apr; =20 --=20 2.34.1 From nobody Mon Oct 6 13:39:29 2025 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 DE526226CFF; Sun, 20 Jul 2025 17:32:47 +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=1753032769; cv=none; b=OVuSS+kkGQ4vpwFsx7Qpc0pvkPAf5mokVtYt7Io2WyZSc7RroVxhH8+TBVxbrzZNXvVp6p6InEx19w32PGXJyTQTuI/90sChwVIz6hKbVez4fz0zaBJFfrtgOVak4V3dfhBofMIVD2go2h6EN5a0KYJ33tDgWaJY2+5j/5MmG6k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753032769; c=relaxed/simple; bh=LFjtJtIYQfeOigMfDQrVVWqhmATYJ+CXsjPvNYeS40U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UXfsDhJUdhtIG2a3TWBIsFyU8/YZFbn3MlTaDemBTa/u1cTBvYrmqSFFvIYTOpBaPFYw+rTGeYQJ+gsH75iBuvfcgNBxTJLL+/Y7aBgISJqVQyxkiSCNcLZ76HjxgUHfyqtgpHqjrTFbIklhbooF1v09nJTpEMTdMBmosRaqnWk= 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=HTEOi2Be; 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="HTEOi2Be" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56KCUsrr017511; Sun, 20 Jul 2025 17:32:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=EzpIBOReFk3 KeoRaeLqcoZk+wik9ibKtPqyK+WpwnHM=; b=HTEOi2BeMsct7RJzjWC8oYp3p59 ylPwEasgad8WIWl7O/s4EtHAfSdt7u1iDFJWB7PMGEaz7K2RaE8sWTeUa7fN2bKv pNm4nGN3ZtMiQ2dFAmo8u7bH3pRS2op1wtMBRJwLhFkB+A0PgABadl1a1GW+pNSN mxFrmHbDu1sZAkhUuNzWtOyVei0FErR99vCb6mpHhpssNXWvEWeKwomfpVcuB1+3 d6ABasclNf/tQvWPviYHiFu6AnwyWV751bLIsD6kvAReVfvFpjjk/PuMo3b12Cxg +r86t65+jHhxjHFOaJXKwHNUqhPUiqyA/LpxP9DDG6d143oe71nufTtx/nA== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4804hmjeqb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:43 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 56KHUSPm024985; Sun, 20 Jul 2025 17:32:22 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4804ek9a4q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:22 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 56KHWK3q027034; Sun, 20 Jul 2025 17:32:21 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.147.245.204]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 56KHWLQ1027058 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:21 +0000 Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 3914174) id 242395D0; Sun, 20 Jul 2025 23:02:18 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Konrad Dybcio Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, quic_pkumpatl@quicinc.com, kernel@oss.qualcomm.com, Mohammad Rafi Shaik Subject: [PATCH v7 6/9] arm64: dts: qcom: qcs6490-rb3gen2: Add WSA8830 speakers amplifier Date: Sun, 20 Jul 2025 23:02:12 +0530 Message-Id: <20250720173215.3075576-7-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> References: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: DE4qM4ysEvDMPrQ5fspf-hIngVg1FPvu X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzIwMDE2OSBTYWx0ZWRfX+j2fzX83Pfmr NMRvvi7k59EVcK63EEQIa34oSITG2O3XsKsMSQzjMi1F30W9lnftoR+SFLA6zQfKFoksisjV502 y/et4c2Z05Bf3lWbqVbdiu4E5XRZl4BUk+8SylMKcAPolnGmKKM+BmKmyliaavZw6cs8p28pTW7 W/MLB2rI/F4emYMs+LlrKoGaEJwAUj/PcwXPqdQPVZlNzZMSYqgL6lOrZogovLnrEfjdaxlc8mR z5a7JNghW+nVkjytpSFP9/fFVqMOymhzUHI/OXdJiVryJpKaMR7cwEHVN4KGUiIFYq3ZlVBe7/P u/05yAQHUmmp3oWwka9QvFWF1KJOctoxNsfvdYgc09KBNCWvDwJb3WTlPxVjHXvJw8RsqKrsEfo UjBYyzK8ebwbjtBI8NmdPNSGMW1xO0vK8b1+es5tFdZ/PxqxaG7eQQsYKF9haq4DFKjGbvED X-Authority-Analysis: v=2.4 cv=Navm13D4 c=1 sm=1 tr=0 ts=687d283b cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=COk6AnOGAAAA:8 a=hJjRmVYgJ_m-HbgvpU8A:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: DE4qM4ysEvDMPrQ5fspf-hIngVg1FPvu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-20_01,2025-07-17_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 suspectscore=0 phishscore=0 adultscore=0 malwarescore=0 mlxscore=0 impostorscore=0 clxscore=1015 bulkscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507200169 Content-Type: text/plain; charset="utf-8" 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 --- .../boot/dts/qcom/qcs6490-audioreach.dtsi | 6 ++++ arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 35 +++++++++++++++++++ arch/arm64/boot/dts/qcom/sc7280.dtsi | 6 ++++ 3 files changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi b/arch/arm64/= boot/dts/qcom/qcs6490-audioreach.dtsi index 6d3a9e171066..078936237e20 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs6490-audioreach.dtsi @@ -58,6 +58,12 @@ &lpass_va_macro { clock-names =3D "mclk", "macro", "dcodec"; + + pinctrl-0 =3D <&lpass_dmic01_clk>, <&lpass_dmic01_data>, + <&lpass_dmic23_clk>, <&lpass_dmic23_data>; + pinctrl-names =3D "default"; + + qcom,dmic-sample-rate =3D <4800000>; }; =20 &lpass_wsa_macro { diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot= /dts/qcom/qcs6490-rb3gen2.dts index 5fbcd48f2e2d..82aa69d715d9 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" =20 /delete-node/ &ipa_fw_mem; /delete-node/ &rmtfs_mem; @@ -765,6 +766,14 @@ redriver_usb_con_sbu: endpoint { }; }; =20 +&lpass_va_macro { + status =3D "okay"; +}; + +&lpass_wsa_macro { + status =3D "okay"; +}; + &mdss { status =3D "okay"; }; @@ -1039,6 +1048,32 @@ &sdhc_2 { status =3D "okay"; }; =20 +&swr2 { + status =3D "okay"; + + left_spkr: speaker@0,1 { + compatible =3D "sdw10217020200"; + reg =3D <0 1>; + reset-gpios =3D <&tlmm 158 GPIO_ACTIVE_LOW>; + #sound-dai-cells =3D <0>; + sound-name-prefix =3D "SpkrLeft"; + #thermal-sensor-cells =3D <0>; + vdd-supply =3D <&vreg_l18b_1p8>; + qcom,port-mapping =3D <1 2 3 7>; + }; + + right_spkr: speaker@0,2 { + compatible =3D "sdw10217020200"; + reg =3D <0 2>; + reset-gpios =3D <&tlmm 158 GPIO_ACTIVE_LOW>; + #sound-dai-cells =3D <0>; + sound-name-prefix =3D "SpkrRight"; + #thermal-sensor-cells =3D <0>; + vdd-supply =3D <&vreg_l18b_1p8>; + qcom,port-mapping =3D <4 5 6 8>; + }; +}; + &tlmm { gpio-reserved-ranges =3D <32 2>, /* ADSP */ <48 4>; /* NFC */ diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qco= m/sc7280.dtsi index ff5b3568c39d..fff92fd836ab 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2872,21 +2872,27 @@ lpass_tlmm: pinctrl@33c0000 { lpass_dmic01_clk: dmic01-clk-state { pins =3D "gpio6"; function =3D "dmic1_clk"; + drive-strength =3D <8>; + bias-disable; }; =20 lpass_dmic01_data: dmic01-data-state { pins =3D "gpio7"; function =3D "dmic1_data"; + bias-pull-down; }; =20 lpass_dmic23_clk: dmic23-clk-state { pins =3D "gpio8"; function =3D "dmic2_clk"; + drive-strength =3D <8>; + bias-disable; }; =20 lpass_dmic23_data: dmic23-data-state { pins =3D "gpio9"; function =3D "dmic2_data"; + bias-pull-down; }; =20 lpass_rx_swr_clk: rx-swr-clk-state { --=20 2.34.1 From nobody Mon Oct 6 13:39:29 2025 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 475F01F1317; Sun, 20 Jul 2025 17:32:45 +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=1753032766; cv=none; b=mwS6/rmxZNJ+Jfjr/U101A6b8bATBAezLDTJW6zevZg/lM6Qnrja7vs3oEFQDVNP4NAj/QvAzG+N4vg2nsA3+ROz9XlDb1BULBqWvWOGXUW6NBCBDW/R+GFveFl07q0MGcMAm35tG/wdsOuFP1VgsGath3Tqi1BoUJu+SqrUxl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753032766; c=relaxed/simple; bh=patFtriGlr3iVorP/OkpyxM+wByZQOD/kx2ekOhE+x4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kuybOWCFtEZpn5T+fW09mFoyy/UaRT2zckwyn8lhwIxE4PRZ7Tys+CHj20/Ho3xejWXxkSmiRRA7IfoP49i38/QHXvXWUcOJpsCnJmF/3lZKzwk0eglQeVNK0XNrS4296WPw38ctgHwejyfEMXkYIRbCjS8iCxlsXSPXuuqnPdA= 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=AAcHiQ6Z; 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="AAcHiQ6Z" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56KEUXgX012040; Sun, 20 Jul 2025 17:32:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=e1TEdQFyn0L et5nSbmm4p17JQcrr+E91VMP5xXZlzlg=; b=AAcHiQ6Zd/iCfXQ/P8de0AWuQh0 pOP2e96mxGmWCTkrOWgyjkMa/LvNdoLAxPvNyA3l9LhBnQBAAwFgXQyo3cFg4yrb DYkrrYhOPHE3T1PzXDUluDruWCd19mckgqreXO468jKVSp/ru/117RykViz7uq5h kuXoR12c/yoZbW98L4Tu7jw+s5JE4ns9WquUz99s5dW2CsaiQ3E0huqXDpIQTV4Q TrAQqB83UUZ08AhBP9sgEjhG2mavIWX4QhciTp1gK+D7zqjeB5MsXIUerYc/zEhx s3p9uzas1Cm5jQjIzcrm8nOqK2q/0exlR7OIHKKDJp2Su7rsq+t3+v4fefg== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 480459jgrf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:40 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 56KHUSPn024985; Sun, 20 Jul 2025 17:32:22 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4804ek9a4n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:22 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 56KHWLC7027073; Sun, 20 Jul 2025 17:32:21 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.147.245.204]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 56KHWLoL027059 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:21 +0000 Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 3914174) id 28BC25D1; Sun, 20 Jul 2025 23:02:18 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Konrad Dybcio Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, quic_pkumpatl@quicinc.com, kernel@oss.qualcomm.com, Mohammad Rafi Shaik , Konrad Dybcio , Dmitry Baryshkov Subject: [PATCH v7 7/9] arm64: dts: qcom: qcs6490-rb3gen2: Add sound card Date: Sun, 20 Jul 2025 23:02:13 +0530 Message-Id: <20250720173215.3075576-8-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> References: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: WJeONXPPsoNxHGA-jh0punpp4GIr761g X-Authority-Analysis: v=2.4 cv=fdyty1QF c=1 sm=1 tr=0 ts=687d2838 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=COk6AnOGAAAA:8 a=xPBdsBoliJTP-dOYWgQA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: WJeONXPPsoNxHGA-jh0punpp4GIr761g X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzIwMDE2OSBTYWx0ZWRfX6KlbpUW+rRTt wshNzRnjOs+9llQgESdJPDdXu2K2F8/bbq369f9U1F4LZIPPqnJyG8sEySCKJBmusUtjr+qqyt6 Qg0gRKdux+duS+ixWgS5L4vT3se8/wSGB0iaBhunD1rSYvHoCtw8Li2XCUj+HWosSOxM2JjMhWG 931PjA5GLultHhV6vUKKHBmUpTRdjEd1yc5N2trymACi82flrhFXyH6SZUEyjuhPz25jiC9J0e6 748Y2geEeiBE4/EEA+xisd07nJoJceiJqz7UxMy6n54i9Ubky5vVi+e/CHM2Up4Ma52xgzwuUoH v3uH9v1o7S9pD8cgM2eLswJF9ny3BwoZi7rSt0kDZJHl6E19fk6RoV8AKrHV7nuSmNuI4Vg2FJG Ov9+FPAy8M8keQHl6PHrKLl468HRafF3m73l4WZ/IP9GiPE0FERJDsMzSo1O54j9za7pxooj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-20_01,2025-07-17_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 phishscore=0 impostorscore=0 mlxlogscore=947 mlxscore=0 spamscore=0 bulkscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507200169 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 45 ++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot= /dts/qcom/qcs6490-rb3gen2.dts index 82aa69d715d9..d2876ff21251 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -1048,6 +1048,51 @@ &sdhc_2 { status =3D "okay"; }; =20 +&sound { + compatible =3D "qcom,qcs6490-rb3gen2-sndcard"; + model =3D "QCS6490-RB3Gen2"; + + audio-routing =3D "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"; + + wsa-dai-link { + link-name =3D "WSA Playback"; + + codec { + sound-dai =3D <&left_spkr>, <&right_spkr>, + <&swr2 0>, <&lpass_wsa_macro 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + va-dai-link { + link-name =3D "VA Capture"; + + codec { + sound-dai =3D <&lpass_va_macro 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai VA_CODEC_DMA_TX_0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; +}; + &swr2 { status =3D "okay"; =20 --=20 2.34.1 From nobody Mon Oct 6 13:39:29 2025 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 820E8B661; Sun, 20 Jul 2025 17:32:44 +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=1753032766; cv=none; b=UIbFYof7UGFtocJx2277XcYxk6nbogW6gW7Wqa2AP6wxIEcDgOYcrMy8PQTnAshtNdUG6B9+pb2IPwgPdxACWvCl9YdcoyQEkYgNQEfXr+nmT7yWE3Iq5mSDNs5fzRV2KR5LJfZgqTdbm15lFYDcUb/DwwJr8UJ/M++mJntPl6E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753032766; c=relaxed/simple; bh=M/6xCbViB66uQl8MSuW3xm9ml4PDrMwpO+KW5RzbB9I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IMs8kTQ5ZVcVXdfvVq0qKZrSzOWmPKZe6vb6QxJnftAMUB01bslleIAxHFegN3+9dWceoxJkZl6P4Hhdv1sK77lSvlSIn2strOVerc42YnxUNP1KHaG3G2LJa9C86nZRm2H8T8jjVYbFihgLVE0pqS6/9FFlZNDV/A0JtOIQe9I= 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=Mj/4/MNQ; 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="Mj/4/MNQ" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56KFLjnZ003715; Sun, 20 Jul 2025 17:32:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=OnhSmRNybUY 0AB1YbZY3F2NNQoJ/TK1HVmOML50l68c=; b=Mj/4/MNQp2abo0ptlhZMkMcqNFl JSffegwKylzheLp1GVvFrg804byjAKTnDiBSn1TGw3vtM655v6VsnAAgGNuTSHMp RPmY7pUBwaCx6FJU6RhCqUZoGYZ/p9Qx+dKpBA9BBLn+nBPLjKPK7Hf9e31LsU9C mtD6wbnDmr1beC5bWHXZ0niItkplDyCPNyaSKrlpvYNJlLABBoiSdx5/cjzXGXgR 9Rt9HqUGPFL5MHvI/IrdM+mTY2f1V4dJk3OlkJZg4NMFxq0Eh6vxH7JzBhr+Lh/w WfpKKEJLE7wQKZ3RZcWqjGAidCvjlofu8KIczt4IXiyw/qUj2/+OF7zPC6w== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 480459jgre-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:39 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 56KHWM26027104; Sun, 20 Jul 2025 17:32:22 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4804ek9a4t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:22 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 56KHWLIw027088; Sun, 20 Jul 2025 17:32:21 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.147.245.204]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 56KHWL9c027062 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:21 +0000 Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 3914174) id 2D59C5D2; Sun, 20 Jul 2025 23:02:18 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Konrad Dybcio Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, quic_pkumpatl@quicinc.com, kernel@oss.qualcomm.com, Mohammad Rafi Shaik Subject: [PATCH v7 8/9] arm64: dts: qcom: qcm6490-idp: Add WSA8830 speakers and WCD9370 headset codec Date: Sun, 20 Jul 2025 23:02:14 +0530 Message-Id: <20250720173215.3075576-9-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> References: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: yJqg87gXa34bjmDobC1nd2bzjgtHLASz X-Authority-Analysis: v=2.4 cv=fdyty1QF c=1 sm=1 tr=0 ts=687d2838 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=COk6AnOGAAAA:8 a=U1-NlgUr8jZUk8VuFV4A:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: yJqg87gXa34bjmDobC1nd2bzjgtHLASz X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzIwMDE2OSBTYWx0ZWRfX49r5ev+/ppQy wkxvCbXk8ORTOkFrHpTNl7Q9JIz9IAgfBRUB7SXwWtnvsn90CjdBK0VE1LilVt43K56eiuyNekC 5tHW+Zu8FNoLf6jX+TunHWu2TBdPo5rJ7h2v9LIH0gXUKYVlami5KFZhop7FObx+gT7EpVWql+Z EMJbJ4tD7KSCp+nvo8SCjeJsqQVbGorUwFZUVVxvoS2SAg0SmtWcySnRf2jl5ClkpcJbpYp0AXG 9XP7p7AvAL5/pgfwOLU7YYy83nBDg2ttcxyASk8zzS4aC5u0eQLog/jOo/Lf6Xed/m/IxieY7Uv 0WwPWCb64q13g+t3sIs9YBKzrCSktG4Saa/gPrcTD/JmC2/tsfDaSKiUyFnUbirL97Gjw6CFTdp PCPWHpfZIn57Xw58ojtuL8fsP8esuDFjKSDLOnPz17zhVGqhYWf0ZMZvQjOyxFB1IEeAsf1I X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-20_01,2025-07-17_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 phishscore=0 impostorscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 bulkscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507200169 Content-Type: text/plain; charset="utf-8" From: Mohammad Rafi Shaik Add nodes for WSA8830 speakers and WCD9370 headset codec on qcm6490-idp board. Enable lpass macros along with audio support pin controls. Signed-off-by: Mohammad Rafi Shaik Co-developed-by: Prasad Kumpatla Signed-off-by: Prasad Kumpatla --- arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 123 +++++++++++++++++++++++ arch/arm64/boot/dts/qcom/sc7280.dtsi | 12 +++ 2 files changed, 135 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts= /qcom/qcm6490-idp.dts index 7a155ef6492e..468f5f9c0779 100644 --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts @@ -18,6 +18,7 @@ #include "pm7325.dtsi" #include "pm8350c.dtsi" #include "pmk8350.dtsi" +#include "qcs6490-audioreach.dtsi" =20 /delete-node/ &ipa_fw_mem; /delete-node/ &rmtfs_mem; @@ -169,6 +170,30 @@ vph_pwr: vph-pwr-regulator { regulator-min-microvolt =3D <3700000>; regulator-max-microvolt =3D <3700000>; }; + + wcd9370: audio-codec-0 { + compatible =3D "qcom,wcd9370-codec"; + + pinctrl-0 =3D <&wcd_default>; + pinctrl-names =3D "default"; + + reset-gpios =3D <&tlmm 83 GPIO_ACTIVE_HIGH>; + + vdd-buck-supply =3D <&vreg_l17b_1p7>; + vdd-rxtx-supply =3D <&vreg_l18b_1p8>; + vdd-px-supply =3D <&vreg_l18b_1p8>; + vdd-mic-bias-supply =3D <&vreg_bob_3p296>; + + qcom,micbias1-microvolt =3D <1800000>; + qcom,micbias2-microvolt =3D <1800000>; + qcom,micbias3-microvolt =3D <1800000>; + qcom,micbias4-microvolt =3D <1800000>; + + qcom,rx-device =3D <&wcd937x_rx>; + qcom,tx-device =3D <&wcd937x_tx>; + + #sound-dai-cells =3D <1>; + }; }; =20 &apps_rsc { @@ -536,6 +561,22 @@ &gpu_zap_shader { firmware-name =3D "qcom/qcm6490/a660_zap.mbn"; }; =20 +&lpass_rx_macro { + status =3D "okay"; +}; + +&lpass_tx_macro { + status =3D "okay"; +}; + +&lpass_va_macro { + status =3D "okay"; +}; + +&lpass_wsa_macro { + status =3D "okay"; +}; + &mdss { status =3D "okay"; }; @@ -716,6 +757,81 @@ &sdhc_2 { cd-gpios =3D <&tlmm 91 GPIO_ACTIVE_LOW>; }; =20 +&swr0 { + status =3D "okay"; + + wcd937x_rx: codec@0,4 { + compatible =3D "sdw20217010a00"; + reg =3D <0 4>; + + /* + * WCD9370 RX Port 1 (HPH_L/R) <=3D=3D> SWR1 Port 1 (HPH_L/R) + * WCD9370 RX Port 2 (CLSH) <=3D=3D> SWR1 Port 2 (CLSH) + * WCD9370 RX Port 3 (COMP_L/R) <=3D=3D> SWR1 Port 3 (COMP_L/R) + * WCD9370 RX Port 4 (LO) <=3D=3D> SWR1 Port 4 (LO) + * WCD9370 RX Port 5 (DSD_L/R) <=3D=3D> SWR1 Port 5 (DSD) + */ + qcom,rx-port-mapping =3D <1 2 3 4 5>; + + /* + * Static channels mapping between slave and master rx port channels. + * In the order of slave port channels, which is + * hph_l, hph_r, clsh, comp_l, comp_r, lo, dsd_r, dsd_l. + */ + qcom,rx-channel-mapping =3D /bits/ 8 <1 2 1 1 2 1 1 2>; + }; +}; + +&swr1 { + status =3D "okay"; + + wcd937x_tx: codec@0,3 { + compatible =3D "sdw20217010a00"; + reg =3D <0 3>; + + /* + * WCD9370 TX Port 1 (ADC1) <=3D> SWR2 Port 2 + * WCD9370 TX Port 2 (ADC2, 3) <=3D> SWR2 Port 2 + * WCD9370 TX Port 3 (DMIC0,1,2,3 & MBHC) <=3D> SWR2 Port 3 + * WCD9370 TX Port 4 (DMIC4,5,6,7) <=3D> SWR2 Port 4 + */ + qcom,tx-port-mapping =3D <1 1 2 3>; + + /* + * Static channel mapping between slave and master tx port channels. + * In the order of slave port channels which is adc1, adc2, adc3, + * mic0, dmic1, mbhc, dmic2, dmic3, dmci4, dmic5, dmic6, dmic7. + */ + qcom,tx-channel-mapping =3D /bits/ 8 <1 2 1 1 2 3 3 4 1 2 3 4>; + }; +}; + +&swr2 { + status =3D "okay"; + + left_spkr: speaker@0,1 { + compatible =3D "sdw10217020200"; + reg =3D <0 1>; + powerdown-gpios =3D <&tlmm 63 GPIO_ACTIVE_LOW>; + #sound-dai-cells =3D <0>; + sound-name-prefix =3D "SpkrLeft"; + #thermal-sensor-cells =3D <0>; + vdd-supply =3D <&vreg_l18b_1p8>; + qcom,port-mapping =3D <1 2 3 7>; + }; + + right_spkr: speaker@0,2 { + compatible =3D "sdw10217020200"; + reg =3D <0 2>; + powerdown-gpios =3D <&tlmm 62 GPIO_ACTIVE_LOW>; + #sound-dai-cells =3D <0>; + sound-name-prefix =3D "SpkrRight"; + #thermal-sensor-cells =3D <0>; + vdd-supply =3D <&vreg_l18b_1p8>; + qcom,port-mapping =3D <4 5 6 8>; + }; +}; + &tlmm { gpio-reserved-ranges =3D <32 2>, /* ADSP */ <48 4>; /* NFC */ @@ -725,6 +841,13 @@ sd_cd: sd-cd-state { function =3D "gpio"; bias-pull-up; }; + + wcd_default: wcd-reset-n-active-state { + pins =3D "gpio83"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-disable; + }; }; =20 &uart5 { diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qco= m/sc7280.dtsi index fff92fd836ab..b9cca45a5fb2 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2898,21 +2898,33 @@ lpass_dmic23_data: dmic23-data-state { lpass_rx_swr_clk: rx-swr-clk-state { pins =3D "gpio3"; function =3D "swr_rx_clk"; + drive-strength =3D <2>; + slew-rate =3D <1>; + bias-disable; }; =20 lpass_rx_swr_data: rx-swr-data-state { pins =3D "gpio4", "gpio5"; function =3D "swr_rx_data"; + drive-strength =3D <2>; + slew-rate =3D <1>; + bias-bus-hold; }; =20 lpass_tx_swr_clk: tx-swr-clk-state { pins =3D "gpio0"; function =3D "swr_tx_clk"; + drive-strength =3D <2>; + slew-rate =3D <1>; + bias-disable; }; =20 lpass_tx_swr_data: tx-swr-data-state { pins =3D "gpio1", "gpio2", "gpio14"; function =3D "swr_tx_data"; + drive-strength =3D <2>; + slew-rate =3D <1>; + bias-bus-hold; }; =20 lpass_wsa_swr_clk: wsa-swr-clk-state { --=20 2.34.1 From nobody Mon Oct 6 13:39:29 2025 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 9394521D5B3; Sun, 20 Jul 2025 17:32:46 +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=1753032768; cv=none; b=uNIMf92ANV6wyWAfnLwbXfE2o+tLSaHI+axax32xi9awbpL0H8JU0kn+Rsd266kDm/2O5Qx3pafiV7kuv7A6TL6nG7tLtCuPYKWkv6zKp3lw36MmW+NPjb7rtXccmnL2/ZUPbtEL1yEiuy1Rl0wg88NbVOVMdyRQuaNI9Zq/lBk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753032768; c=relaxed/simple; bh=wMmTYlXzyiM+UqilEkDFgTfs5S0ZR1ze+b6AKQUFYvE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kz8vyKaOp3CxU7sj0U8pvZCq8NvHYS5GQO4whRYmn7u15NaDfJeNKoYPiJYi5fCeWUj0xbqpsO15i7c1nV1EP2RBjdRCvJfMmmtCMjn4jFwNfI1wENJamB1LAHmLReJB6ec/AKp7O6aNtc14z/xAnjwkmtzy61AXvNZsOzRvCw0= 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=EnCJRpav; 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="EnCJRpav" 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 56KGmwMT028327; Sun, 20 Jul 2025 17:32:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=SG04UtPelXr TJQU3XmfGIvAnRzZdasKRIJdJ7JVh7II=; b=EnCJRpav/G099Da5fV03YJmzKUv 3bWJq+VFGy8S0GEIfeyMTsoDim7/g9TCcJGlj16umE5v32DNrzFGUoZPFcAKChog L7LTZi02OxKW/CjFKxIZrl0emqgwaRjBeUAvYfkChy6ycNLxnCtZef5jO/4rvV6P 96LENBxkaB8mSo4dD4ubvetpympavsIBJwe4vUHd3wxMXgg0OGVJolB14ObkS+T0 +1aWc3OicWYSaaBUEsTi6+VwzpcqkE8weJLVu5LuGkuzt1dRaUpqCPFRfuu5usB0 f9be2JmkXwAmDUN/nQoPm2nC61fcGAjA35wMXCD8VKrTQAzLhx72Rp/kxiA== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48045vtg8p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:41 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTP id 56KHWM5C027096; Sun, 20 Jul 2025 17:32:22 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4804ek9a4p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:21 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 56KHWLfN027072; Sun, 20 Jul 2025 17:32:21 GMT Received: from hu-devc-hyd-u22-c.qualcomm.com (hu-pkumpatl-hyd.qualcomm.com [10.147.245.204]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 56KHWLNx027061 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jul 2025 17:32:21 +0000 Received: by hu-devc-hyd-u22-c.qualcomm.com (Postfix, from userid 3914174) id 31E8A5D4; Sun, 20 Jul 2025 23:02:18 +0530 (+0530) From: Prasad Kumpatla To: Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Konrad Dybcio Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, quic_pkumpatl@quicinc.com, kernel@oss.qualcomm.com, Mohammad Rafi Shaik , Konrad Dybcio Subject: [PATCH v7 9/9] arm64: dts: qcom: qcm6490-idp: Add sound card Date: Sun, 20 Jul 2025 23:02:15 +0530 Message-Id: <20250720173215.3075576-10-quic_pkumpatl@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> References: <20250720173215.3075576-1-quic_pkumpatl@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=LL1mQIW9 c=1 sm=1 tr=0 ts=687d2839 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=COk6AnOGAAAA:8 a=yo8woGbAw4EISn_yZD4A:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: _ZRcqqzFPrqrIMK6WqHVRGZmBQttjffM X-Proofpoint-ORIG-GUID: _ZRcqqzFPrqrIMK6WqHVRGZmBQttjffM X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzIwMDE2OSBTYWx0ZWRfX6CJ+EWAiXeMw eOB9qzmUQ9F5G2K3RT10k/vXGppMTUI9EVAQyimyIQT6L2rPWRvfNlmoP2tO5grcznPok6pBYPL MkvM9MmzYuqWMPZcg2qYqsM6byc1UEX+UcJLbzmCRHjosJt/uN9fSYQieUZDdPf73gmnrB0XDoc 1zAgEzJLkC3A7A9o7ZF03+Zud0GuCmuCEPsKeA4BlcmkA7jUzceIz5VMkBNcKyKEzHtje9YCSTu k6aneJJFXD2SwUMe4fXl50Kf0kCljt1rsmF+108niw1u8tmnCRIDNCbH87FjDBcyaKCbRis59Dg yWfQq5V+90ShDUOtHAbTRSLGA9jdng2ytAmpzjjWRtF/oxYnPVkkqwb7O6prGsqLMGau3fnqnlR mbbZfhiTz4vY7vBd2K5di4wvhMAmAu9zqx5C2jXIiZ7wWqpWQ8EgBLw0P6xvKCiIyRFvo748 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-20_01,2025-07-17_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=999 clxscore=1015 mlxscore=0 adultscore=0 suspectscore=0 spamscore=0 malwarescore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507200169 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 84 ++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts= /qcom/qcm6490-idp.dts index 468f5f9c0779..d434f9340e38 100644 --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts @@ -757,6 +757,90 @@ &sdhc_2 { cd-gpios =3D <&tlmm 91 GPIO_ACTIVE_LOW>; }; =20 +&sound { + compatible =3D "qcom,qcm6490-idp-sndcard"; + model =3D "QCM6490-IDP"; + + audio-routing =3D "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"; + + wsa-dai-link { + link-name =3D "WSA Playback"; + + codec { + sound-dai =3D <&left_spkr>, <&right_spkr>, + <&swr2 0>, <&lpass_wsa_macro 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + wcd-playback-dai-link { + link-name =3D "WCD Playback"; + + codec { + sound-dai =3D <&wcd9370 0>, <&swr0 0>, <&lpass_rx_macro 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai RX_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + wcd-capture-dai-link { + link-name =3D "WCD Capture"; + + codec { + sound-dai =3D <&wcd9370 1>, <&swr1 0>, <&lpass_tx_macro 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai TX_CODEC_DMA_TX_3>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + va-dai-link { + link-name =3D "VA Capture"; + + codec { + sound-dai =3D <&lpass_va_macro 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai VA_CODEC_DMA_TX_0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; +}; + &swr0 { status =3D "okay"; =20 --=20 2.34.1