Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp410657rdb; Fri, 17 Nov 2023 02:20:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5GvY+DByfeK389Q08aE86dBUhKlyG2S/ZiEj9Tlab0DuVPkMEMHzlmMxq7mzlDLSeiNRR X-Received: by 2002:a17:902:ce89:b0:1c6:3157:29f3 with SMTP id f9-20020a170902ce8900b001c6315729f3mr13417227plg.36.1700216405854; Fri, 17 Nov 2023 02:20:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700216405; cv=none; d=google.com; s=arc-20160816; b=yfBSCAhsQeHvcFoozISlBjfwJYA2pKD9zJLaGDvzywNQln+wYf94k9RSUHJUZlfhgW /bhMwGtUlV6kaLWU32VVicCMCaSJqzhc/V3HMEIMLz73guumQuk/7Nhmel4IHXcrfTTh +2Ho4ld6upqW4z8H+KwKlkg8vszhTGuRe7/zi5G0TTv2P7mOPYSpc6vpzo/GAw8G0pCL LgAENftlIiCGxjv6zZ5N3KkXhwsXerTOel230ttgMD5rq2snqzk9jZxg6sxKv8KKRuKP 2t98jpnCp+a/u8gFSEDq69ge+Nii7/lWF7eJF5VDQzmNYc+kI7XzUWjYQ2d9zrDUHYN/ Y1bg== 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=rO26A4KHZrNEoNwFiWMKV3Cm5lj2RHPyTqoILqDqCfc=; fh=2n2Y+RYHubIkscSnYAqg/mDqVSW4ayNK5xPy63dfWj4=; b=wUC4HLYjMfl4ltWcPqkJ7pxuN0AV/a43REgjOLo70mnHm1SiYU6WGuhs4PrQceIbcW tooLrWsk9eCDHlXzy8EBMh9yz5PLTpbYwCLZJNJRw+of9TYOEiHifwWjXcHaJKilsS1S m2PMpv16LFqtTW6pWjfKOy7Xw9jXYf6CpN719L5/QSBDxXbzmMlJGB9FgTN+ovxRq0XP kPCoBAlAIILyVH+xVKuGx8J4q/mjYmcJmHr7q0qdyDTeuZuYvJlrM4WCH/xQZcF+ANmf 0OQkzQ6TpAyvkuDh9+73liVGQZ26/9URjZTzhmOmWtsG98uq6JCGZ41rNdLgEyLVwAp/ 41FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pgphy9VU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q6-20020a17090311c600b001cadc96944fsi1600712plh.495.2023.11.17.02.20.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 02:20:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pgphy9VU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 48E4181CFF2F; Fri, 17 Nov 2023 02:20:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345996AbjKQKTx (ORCPT + 99 others); Fri, 17 Nov 2023 05:19:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345937AbjKQKTl (ORCPT ); Fri, 17 Nov 2023 05:19:41 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7A11171A; Fri, 17 Nov 2023 02:19:37 -0800 (PST) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AH9qeD4017111; Fri, 17 Nov 2023 10:19:33 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=rO26A4KHZrNEoNwFiWMKV3Cm5lj2RHPyTqoILqDqCfc=; b=pgphy9VUQnBvUVZYh02/w9PjTxUXFhSbA0JuG9k0je1yZ4H+Vx7/o0Dfg6hHnWjs6ks+ zsXpWBWld77CY3CpXelS1QCn6PjNzoBsB1Ct9GrcobNKzIexgYvkVOebYvhHhnTdDBZc Xvu+EIAMPvUvWK9IxNcGRzSKlth0jVRlprDN4bl7U6gm5sXXcwrSuVz0ROBkbn9HSL00 mDqe/LtP9GDIRz7JdOuTKXYUG45JIPk62oiPKrj29LICFODReXpDBtWFGmt5NILXBgwP vsuRkL4gkqhK+pqpSBYGZ8SIWNfhCv66Nx5ccGUsixvRqe+RMXpD1ePlskJp0756lNK7 /g== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3udmw42crt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:32 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AHAJAX9012546 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Nov 2023 10:19:10 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:06 -0800 From: Tengfei Fan To: , , , , , , CC: , , , <-cc=kernel@quicinc.com>, Tengfei Fan Subject: [PATCH 08/16] arm64: dts: qcom: sm8550-aim300: add WCD9385 audio-codec Date: Fri, 17 Nov 2023 18:18:09 +0800 Message-ID: <20231117101817.4401-9-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-GUID: 14uPg8eOjqJ0r_WLi2sHSxhkyHs2-_ip X-Proofpoint-ORIG-GUID: 14uPg8eOjqJ0r_WLi2sHSxhkyHs2-_ip 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 spamscore=0 mlxlogscore=944 clxscore=1015 suspectscore=0 mlxscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311170076 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Fri, 17 Nov 2023 02:20:01 -0800 (PST) Add Qualcomm Aqstic WCD9385 audio codec on two Soundwire interfaces: RX and TX. Signed-off-by: Tengfei Fan --- arch/arm64/boot/dts/qcom/sm8550-aim300.dts | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts index 3aca0a433a00..6a9b384c4e08 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-aim300.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-aim300.dts @@ -24,6 +24,33 @@ serial0 = &uart7; }; + wcd938x: audio-codec { + compatible = "qcom,wcd9385-codec"; + + pinctrl-names = "default"; + pinctrl-0 = <&wcd_default>; + + qcom,micbias1-microvolt = <1800000>; + qcom,micbias2-microvolt = <1800000>; + qcom,micbias3-microvolt = <1800000>; + qcom,micbias4-microvolt = <1800000>; + qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 + 500000 500000 500000>; + qcom,mbhc-headset-vthreshold-microvolt = <1700000>; + qcom,mbhc-headphone-vthreshold-microvolt = <50000>; + qcom,rx-device = <&wcd_rx>; + qcom,tx-device = <&wcd_tx>; + + reset-gpios = <&tlmm 108 GPIO_ACTIVE_LOW>; + + #sound-dai-cells = <1>; + + vdd-buck-supply = <&vreg_l15b_1p8>; + vdd-rxtx-supply = <&vreg_l15b_1p8>; + vdd-io-supply = <&vreg_l15b_1p8>; + vdd-mic-bias-supply = <&vreg_bob1>; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -456,8 +483,38 @@ clock-frequency = <32000>; }; +&swr1 { + status = "okay"; + + /* WCD9385 RX */ + wcd_rx: codec@0,4 { + compatible = "sdw20217010d00"; + reg = <0 4>; + qcom,rx-port-mapping = <1 2 3 4 5>; + }; +}; + +&swr2 { + status = "okay"; + + /* WCD9385 TX */ + wcd_tx: codec@0,3 { + compatible = "sdw20217010d00"; + reg = <0 3>; + qcom,tx-port-mapping = <1 1 2 3>; + }; +}; + &tlmm { gpio-reserved-ranges = <32 8>; + + wcd_default: wcd-reset-n-active-state { + pins = "gpio108"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + output-low; + }; }; &uart7 { -- 2.17.1