Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp840934pxb; Fri, 22 Apr 2022 12:19:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFpcBvzH8F3ZJbHkNGcmxQfrHxVoY3EJ+/bKUOf/6vsNsebiFZPGQH4eVinGojigBHWrym X-Received: by 2002:a05:6a00:1acd:b0:50c:f6ca:6e6f with SMTP id f13-20020a056a001acd00b0050cf6ca6e6fmr2500327pfv.75.1650655151221; Fri, 22 Apr 2022 12:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650655151; cv=none; d=google.com; s=arc-20160816; b=PcDwLfO5XAW65MrwDnEPZmTpDb0nk9+duEcMSqC2A7ZaqkSAzolgP1pzxXsx5kHMvK at2ERA6pbqo1tCGY41kwa0jD2IVEeDhnOXyoEHKBu4vJtxcKhXtbDB5bhYySwCvXt+Xm E73nXbuDF2nf1+ctIHgL2cy+OAsrMerkOys0m07JLEmF/jW/0dpG+9sRu0kQMrn3mm84 CuCr8+DYxrI6GRbE82N+tE6epFDT1i1UdT9lyFP7TXZ/R1TyApAC9hbbxzE445NEc2n8 /EG8E3ZVyk1Fexk669HmysGc4awOMxX/6SYyls8PQSmva3jpfpNqW47FlFgYYvgDAyIj VByg== 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=gPMYs81rnjDzwtoS36SuB1aH0WkiiKkvNBW0LCJmrq8=; b=JB+xs7bnCDRuB0YTW3/4RxO9eqEQEdQHqcgvoF728zyIMHOpzxuLz3Ajfdv0bUREXS PbTwlO1keidoFJtxIS3mkUh7FvD6L5AIRQtQCK398epXtn3sRLFqaMWm1Ux18G4AdcLo O2ks7gHfIuC2mkCr3euPqsZ9WygKsaJi06IGrwYHlpgP8/vFeX6/Lhbq/KSB4gtrGo9Q /opSL1z/7tqZ5t4BliunrEenD4SPMdc+LrzEAdHAsJkADpJXskt1vae2JQcFNFBK9J37 CRbpF/azywkSfr2tgxrOuSKDyhT/Xk9Xi3MlW3ViVuvkA+bwWbvOUetahaYo+FK6JU+e bgPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=TX7eLI7R; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j190-20020a638bc7000000b003aa810be6aasi6736957pge.85.2022.04.22.12.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:19:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=TX7eLI7R; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0577B1BCE7B; Fri, 22 Apr 2022 11:33:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389739AbiDUOwB (ORCPT + 99 others); Thu, 21 Apr 2022 10:52:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389526AbiDUOvg (ORCPT ); Thu, 21 Apr 2022 10:51:36 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFEC243ADD; Thu, 21 Apr 2022 07:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650552526; x=1682088526; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=gPMYs81rnjDzwtoS36SuB1aH0WkiiKkvNBW0LCJmrq8=; b=TX7eLI7R4ykl2t/6Tf8NwbnGlvlr4YzD0o1hY8eU/UAduG1ZQdel3Pyn CkZzHKa/JxI8pgBIPFd+OrvFADor1cKsImohAuT5N0bWgAQx8SrZiJCWO 2nAnaihAsHWWdz60fEqbhRwy3c7gTGw+jKk9VEsejJo45FPyEATWgn4ga g=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 21 Apr 2022 07:48:44 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2022 07:48:43 -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; Thu, 21 Apr 2022 07:48:18 -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; Thu, 21 Apr 2022 07:48:14 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v9 05/12] arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 3.0/3.1 Date: Thu, 21 Apr 2022 20:17:32 +0530 Message-ID: <1650552459-21077-6-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1650552459-21077-1-git-send-email-quic_srivasam@quicinc.com> References: <1650552459-21077-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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 | 52 +++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts index d0794f2..d6a3086 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts @@ -12,6 +12,36 @@ / { model = "Qualcomm Technologies, Inc. sc7280 CRD platform (rev5+)"; compatible = "google,hoglin", "qcom,sc7280"; + + wcd938x: audio-codec-1 { + compatible = "qcom,wcd9385-codec"; + pinctrl-names = "default", "sleep", "us_euro_hs_sel"; + pinctrl-0 = <&wcd_reset_n>; + pinctrl-1 = <&wcd_reset_n_sleep>; + pinctrl-2 = <&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>; + }; }; /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */ @@ -345,4 +375,26 @@ ap_ts_pen_1v8: &i2c13 { "", "", ""; + + 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