Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp410813rdb; Fri, 17 Nov 2023 02:20:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJxa1p0KJy0obNYsPizvLQ7nRN5yTIbqch/bak3dscnUQvz6JO5I9DxlHXIrZVTSOKoTJe X-Received: by 2002:a05:6a20:c901:b0:186:603b:6b4a with SMTP id gx1-20020a056a20c90100b00186603b6b4amr15331944pzb.32.1700216428603; Fri, 17 Nov 2023 02:20:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700216428; cv=none; d=google.com; s=arc-20160816; b=n2TagwLAUiI/yHbbuR33pt6Ax3Y7wYIekPZ9M3LERdCn3OnC0jabGSpirNR+ZSfT1Y nPubEQO+R6CQafyd5uVS2jZzSQf1DNoIQLJTZXVOzl3/+B7RTFHyr7a8TzxBW95GzGyl bjey2WwBf+Z0p+Rq1FUw6EIMxi5BXxXkeC080aaHZDkPoIaupCtdcNAYwYis45tFs2B1 xTUfLhdOmKSA7vrvVhC22xVYEVtqfjKdMiM73YlguOP9+qIzb4UOlEN0HiIjOMg86NAQ 3tw+8s3+Q87ITuuHXui3HPmjYxvzt8NKOAYdFIIFfQht9QAKB4YGqolOUr/pzLC8BDaN MBTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4TWCqAtQRV/3D43nWYXZZl/7qHyBKLQNqh9wJY6PSKs=; fh=2n2Y+RYHubIkscSnYAqg/mDqVSW4ayNK5xPy63dfWj4=; b=w2LrdeeIt9q4k1w2S3Glbjs5dpRyBlxFSY7t4Z2Xtof5fmhK7yHrOVhGqvSAHB58Yc dGiTIn8HForMoItkp2caHEVn5Z70MEmmr7yWhPKrODWLRera8i0sEyfWHfn4trG6OJit omy9usRjxUDhVX4bGGspkZSH24IKfYxcXIe10OX/tWCCJS99DdXEaB/JBFnW/8o35bNv Da7aLWGwOCNd6XNflpTmn+yQQJXnRfp+WkeCF4ODqyRhKBTyc2tVQDubgVDjXcBm7UUC LfdvmvNWOQzZV+seoL74CkGbzwd3YdNg/NCquXExxIJpFa/SPtM2pOuvFNK8wTnGnDSO hxsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZbjEghoW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l15-20020a17090aec0f00b002773af24826si3925714pjy.123.2023.11.17.02.20.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:20:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZbjEghoW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 82B228271772; Fri, 17 Nov 2023 02:20:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345938AbjKQKUW (ORCPT + 99 others); Fri, 17 Nov 2023 05:20:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345934AbjKQKTw (ORCPT ); Fri, 17 Nov 2023 05:19:52 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C536DD5A; Fri, 17 Nov 2023 02:19:46 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AH6BE91013240; Fri, 17 Nov 2023 10:19:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=4TWCqAtQRV/3D43nWYXZZl/7qHyBKLQNqh9wJY6PSKs=; b=ZbjEghoWdNxyZrJdwuS6es//EF2hRTQPY/qeppOc9o0RILud00FNIdJhUxIE3rGSEXy5 lX7XpT+bOrfxMJrQ07JOziw30TkFr5pEUdurK0TNftZQ3MmlLW9WI0xbWcdOLrk4PlkY hv9fM12Wsmk6DZo/nrwg0F0ERMGoP/ZC/2tIt1ccdrFLcWlROc8WmiwCY0UyVMkyLDU+ B6OnMicwA8yWhdcLgnXT9H8xYhncl9NtzwBeOOn+bX381eyhXhO6mUV8Lewm6H2Sgty6 QJnu14zejHPCbfSWIqd0L/g16rNUezPEYLgM1mxM3MTR6AKyytbrcCMXLt2gzrd6b7Cr og== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3udt8bse59-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:41 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHAJTaU012507 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:29 GMT Received: from tengfan2-gv.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Fri, 17 Nov 2023 02:19:25 -0800 From: Tengfei Fan To: , , , , , , CC: , , , <-cc=kernel@quicinc.com>, Tengfei Fan Subject: [PATCH 14/16] arm64: dts: qcom: sm8550-aim300: add sound card Date: Fri, 17 Nov 2023 18:18:15 +0800 Message-ID: <20231117101817.4401-15-quic_tengfan@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231117101817.4401-1-quic_tengfan@quicinc.com> References: <20231117101817.4401-1-quic_tengfan@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: z4tK0SWFwvNcCi8OGMT_rFiOXO8hEGlk X-Proofpoint-GUID: z4tK0SWFwvNcCi8OGMT_rFiOXO8hEGlk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-17_08,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 priorityscore=1501 suspectscore=0 mlxscore=0 mlxlogscore=656 adultscore=0 bulkscore=0 malwarescore=0 spamscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170076 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 02:20:27 -0800 (PST) Add the sound card node with tested playback over WSA8845 speakers and WCD9385 headset over USB Type-C. Signed-off-by: Tengfei Fan --- arch/arm64/boot/dts/qcom/sm8550-aim300.dts | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts index e7035f57ce44..6dc3040b9f76 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts @@ -107,6 +107,88 @@ }; }; + sound { + compatible = "qcom,sm8550-sndcard", "qcom,sm8450-sndcard"; + model = "SM8550-AIM300"; + audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", + "SpkrRight IN", "WSA_SPK2 OUT", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS1", + "VA DMIC1", "MIC BIAS1", + "VA DMIC2", "MIC BIAS3", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "MIC BIAS2", + "TX DMIC2", "MIC BIAS3", + "TX SWR_ADC1", "ADC2_OUTPUT"; + + wcd-capture-dai-link { + link-name = "WCD Capture"; + + cpu { + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; + }; + + codec { + sound-dai = <&wcd938x 1>, <&swr2 0>, <&lpass_txmacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wcd-playback-dai-link { + link-name = "WCD Playback"; + + cpu { + sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wsa-dai-link { + link-name = "WSA Playback"; + + cpu { + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai = <&north_spkr>, <&south_spkr>, + <&swr0 0>, <&lpass_wsamacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + va-dai-link { + link-name = "VA Capture"; + + cpu { + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; + }; + + codec { + sound-dai = <&lpass_vamacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; -- 2.17.1