Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp410783rdb; Fri, 17 Nov 2023 02:20:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjcM2wwUv4SJgwd0qktpyM1E6679nq2ZZa+6iOPAJHg6BsHnUlVbbW2me69kWx3qWzlpwq X-Received: by 2002:a17:902:c40a:b0:1cc:337e:bd6d with SMTP id k10-20020a170902c40a00b001cc337ebd6dmr13332801plk.68.1700216425801; Fri, 17 Nov 2023 02:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700216425; cv=none; d=google.com; s=arc-20160816; b=GXFGyWlM2/9HZ6irnBHk8KCVvf0/dtBGU6c3zcKNe9euda4lJ0PbaB5/O4SF+BvLKg OP8H2ZsPXqfwn1H3uwS7ToG/OEsfFmELn4ZQ7KGbsMDoP611jD8xO5E5znKwPuiqq+/p zm/X+SbKxOb997fPC/mN9UXWOWtM3AIzKsmqhmjZu3SIZM8SnDjEpbUBAtNTnI+Kb1R3 glfRbkNsv1Xxz7kwSG8Ko9wKW0wCRrlzKOw6D0DwErSL2HCl2nGN0ATtsARmyg53oL9l 80ZCpVSWSD42bJR59ytygY4RYOedFK7pviiipBB6YquBQcyc/icMxlxQ+xrzREnjoD/+ v7DQ== 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=K1pSCnNGbyWHe+Gr4Yfm7u6XDgY6n9nbz8/OtEt1g5k=; fh=2n2Y+RYHubIkscSnYAqg/mDqVSW4ayNK5xPy63dfWj4=; b=t9GdPuYFqkWrOoUq8A5KrxQ6D53gyyqIwCOn0ZD/7E6JH+l8cGi/EZ0nzKg1ofBNK7 AtIK9KCyRBQDP37iodrcd3DpH/nmCTikkwovPUETZ/ZLJqt8nitazyWfV2VKTkuBo/WV wbnFxi1bxXYxg2jnSCMv7/ohfc6k2K5FQqBnU680WI0mkHk42j7khnUVNL5s6zhJh+ib Tf4qLeKzHI8wzXXOfjGXgP828KSFu9UtuJ2w3y+r6I8htX7I1b142UjU3HzqOh/wUUmG bq3LT51gVUcT+MB0TW9So7B+Bjvtj6TfPZjC0GD73xnpmKLvgGt+mkjX6qoEL0XV+JlL q0oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iAQw+z4D; 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 h16-20020a170902f55000b001ce5b8090c2si1605254plf.439.2023.11.17.02.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:20:25 -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=iAQw+z4D; 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 73BF3827175D; Fri, 17 Nov 2023 02:20:23 -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 S1345993AbjKQKUT (ORCPT + 99 others); Fri, 17 Nov 2023 05:20:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345931AbjKQKTw (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 9FB79199B; 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 3AH5TkA0029329; Fri, 17 Nov 2023 10:19:41 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=K1pSCnNGbyWHe+Gr4Yfm7u6XDgY6n9nbz8/OtEt1g5k=; b=iAQw+z4DX7/c3ctZsIXU7BEw2rPoTx9DbnI/DHtsT0BPdl+5PIKE2XdQCdlPgYQJBJti XCyN4ETXTawu1Wc63VotSUx2TZJ8NRjXCjS1n/AQQHmhiFLcaTjQDeWSUTlrngi1vWbu mqw4utMpZJr/Gr/NBu6cCp3LCdKN5FM4WFFO1VFJr9YpEa0GfOuwUQKFAj3c6SFNYSbN TcZzCQDpECrr27tOIaMzaqlxRFKkwpo2g7GBZpL8sRvCrYUDpjr6Yx3kEPL/sQQwrwrd KS0/J30kqi75LU9eCtejvZkuR4zq/bCMf6wio7I5YlTMQvja+Ye5ZrybNnKykcs6HtiV mQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3udt8bse58-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 NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHAJQjG022904 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:26 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:22 -0800 From: Tengfei Fan To: , , , , , , CC: , , , <-cc=kernel@quicinc.com>, Tengfei Fan Subject: [PATCH 13/16] arm64: dts: qcom: sm8550-aim300: add WSA8845 speakers Date: Fri, 17 Nov 2023 18:18:14 +0800 Message-ID: <20231117101817.4401-14-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: 2v7T_UooQK2MSlXQC7s65ZyXrMPhJkpn X-Proofpoint-GUID: 2v7T_UooQK2MSlXQC7s65ZyXrMPhJkpn 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=929 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:23 -0800 (PST) Add Qualcomm WSA8845 Soundwire smart speaker amplifiers. Signed-off-by: Tengfei Fan --- arch/arm64/boot/dts/qcom/sm8550-aim300.dts | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts index c3f49527b9ad..e7035f57ce44 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts @@ -448,6 +448,24 @@ <&usb_dp_qmpphy QMP_USB43DP_USB3_PIPE_CLK>; }; +&lpass_tlmm { + spkr_1_sd_n_active: spkr-1-sd-n-active-state { + pins = "gpio17"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + output-low; + }; + + spkr_2_sd_n_active: spkr-2-sd-n-active-state { + pins = "gpio18"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + output-low; + }; +}; + &mdss { status = "okay"; }; @@ -612,6 +630,36 @@ clock-frequency = <32000>; }; +&swr0 { + status = "okay"; + + /* WSA8845, Speaker North */ + north_spkr: speaker@0,0 { + compatible = "sdw20217020400"; + reg = <0 0>; + pinctrl-0 = <&spkr_1_sd_n_active>; + pinctrl-names = "default"; + powerdown-gpios = <&lpass_tlmm 17 GPIO_ACTIVE_LOW>; + #sound-dai-cells = <0>; + sound-name-prefix = "SpkrLeft"; + vdd-1p8-supply = <&vreg_l15b_1p8>; + vdd-io-supply = <&vreg_l3g_1p2>; + }; + + /* WSA8845, Speaker South */ + south_spkr: speaker@0,1 { + compatible = "sdw20217020400"; + reg = <0 1>; + pinctrl-0 = <&spkr_2_sd_n_active>; + pinctrl-names = "default"; + powerdown-gpios = <&lpass_tlmm 18 GPIO_ACTIVE_LOW>; + #sound-dai-cells = <0>; + sound-name-prefix = "SpkrRight"; + vdd-1p8-supply = <&vreg_l15b_1p8>; + vdd-io-supply = <&vreg_l3g_1p2>; + }; +}; + &swr1 { status = "okay"; -- 2.17.1