Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1469064iob; Thu, 5 May 2022 01:50:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsmulJ9GNUn2VWkU3u6Y1oQ1X0kJQDFAecGxyyVKxQZsDmKyPN7W9/U5cxntksA9wfjwLB X-Received: by 2002:a17:907:2cc4:b0:6df:a036:a025 with SMTP id hg4-20020a1709072cc400b006dfa036a025mr26129236ejc.554.1651740654101; Thu, 05 May 2022 01:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651740654; cv=none; d=google.com; s=arc-20160816; b=T9o0vjWVEA01SoV2kHQWndiKe4vORlnIFH+6XZ7kHovGWIVNJVcvymzpVqkUGHTiVd F3iV/btbLwExNeS2ICHOfDlnSNnjGax/BnZJPMK1iQ9D1gKtfQYkpKcdT82Tr31RxI/z JVrjxabJRmrlhDYHGMR1Xgpi2ssaiTNKV8XVcxpUIXOmtl7YyssDXD6iUE8RNlkdsz4F hPRn3N/xMSV1A7GJNfSRHlnQ2oq3THA9zDhxlQOjwqEscvmjGrhraXH11uQJv5jh0+CR wWaZKYG3fgQrGm/ykc584M8vxW0pKeDJ3ZcjT3h3EjaYeqAY2JaV0IhcmXWm6eO9A2ce xfhw== 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=YdhYml+kUuardbUxefGU4pL62/7jfzElpIHe7yLWDcg=; b=nKv289JvdECgRmvC8SJU6xfzPovaEsp4UZem8ZPwtcOa8L0lCvrxHIalBaW02/v8Mh CHZtgsV/FgmM4q4y6egorZ4PRoigin8ETo/vtwSkiqSRjD7DUpg03hgZ9vXd24K6t50f EmsJk393bxrMIHJVg8NKZi9Xpsd65yXKfCP8GlITsOwmDjQcuKA65Z8r1N58DAJzSIQ2 DSRLTo0KRR+HD//RpzbrfpJW77WuiJmlIHV2C/zLe9AE0MRywUmQ5Y8gQALu5U9lfLa7 jaBzEzY5nVE5x9nmhzOUlksnZhFWrB2CIB79obaM7ob+PWPmi29vswyYXe6t7dWI3w2A 3z5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=GqFi3spU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a056402279400b00423e4228df0si1259743ede.497.2022.05.05.01.50.30; Thu, 05 May 2022 01:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=GqFi3spU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240660AbiEDLse (ORCPT + 99 others); Wed, 4 May 2022 07:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348989AbiEDLs3 (ORCPT ); Wed, 4 May 2022 07:48:29 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E03482C114; Wed, 4 May 2022 04:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651664693; x=1683200693; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=YdhYml+kUuardbUxefGU4pL62/7jfzElpIHe7yLWDcg=; b=GqFi3spUTimFJzU1MirkeUaiP5nlu6fnXFUkYQ0D36VL9+SzKAahPVec q1JB+f8fptGNVgxKFHfiWcFHAvGNLSwwvKG51UT3WyuHP+Lc43+OsSG0Z aawG+0+8bunf9i++xaBCiXkVVZrQqUOQMHh0SYTERiZtITyXYP2sqFwYO g=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 04 May 2022 04:44:53 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2022 04:44:53 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 4 May 2022 04:44:52 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 4 May 2022 04:44:48 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v11 05/12] arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 3.0/3.1 Date: Wed, 4 May 2022 17:14:02 +0530 Message-ID: <1651664649-25290-6-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1651664649-25290-1-git-send-email-quic_srivasam@quicinc.com> References: <1651664649-25290-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Add wcd9385 codec node for audio use case on CRD rev5+ (aka CRD 3.0/3.1) boards. Add tlmm gpio property for switching CTIA/OMTP Headset. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu --- arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts | 4 ++ arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi | 53 +++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts index 81a24e4..4990460 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts @@ -121,6 +121,10 @@ ap_ts_pen_1v8: &i2c13 { status = "okay"; }; +&wcd9385 { + status = "okay"; +}; + /* PINCTRL - BOARD-SPECIFIC */ /* diff --git a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi b/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi index 11d37cb..a7f0b1f 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi @@ -29,6 +29,37 @@ serial0 = &uart5; serial1 = &uart7; }; + + wcd9385: audio-codec-1 { + compatible = "qcom,wcd9385-codec"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wcd_reset_n>, <&us_euro_hs_sel>; + pinctrl-1 = <&wcd_reset_n_sleep>, <&us_euro_hs_sel>; + + reset-gpios = <&tlmm 83 GPIO_ACTIVE_HIGH>; + us-euro-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>; + + qcom,rx-device = <&wcd_rx>; + qcom,tx-device = <&wcd_tx>; + + vdd-rxtx-supply = <&vreg_l18b_1p8>; + vdd-io-supply = <&vreg_l18b_1p8>; + vdd-buck-supply = <&vreg_l17b_1p8>; + vdd-mic-bias-supply = <&vreg_bob>; + + 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>; + #sound-dai-cells = <1>; + + status = "disabled"; + }; }; &apps_rsc { @@ -566,4 +597,26 @@ mos_bt_uart: &uart7 { bias-pull-up; drive-strength = <2>; }; + + us_euro_hs_sel: us-euro-hs-sel { + pins = "gpio81"; + function = "gpio"; + bias-pull-down; + drive-strength = <2>; + }; + + wcd_reset_n: wcd-reset-n { + pins = "gpio83"; + function = "gpio"; + drive-strength = <8>; + output-high; + }; + + wcd_reset_n_sleep: wcd-reset-n-sleep { + pins = "gpio83"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + output-low; + }; }; -- 2.7.4