Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp852758pxb; Fri, 22 Apr 2022 12:38:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQNfkwekCJidqsgLcEBTSeMMcXI8Dowih5sIlnpHlnnk9iibCQ8Xm3tApL28M2k+PKUwf8 X-Received: by 2002:a17:902:9309:b0:156:983d:2193 with SMTP id bc9-20020a170902930900b00156983d2193mr6061657plb.158.1650656287941; Fri, 22 Apr 2022 12:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650656287; cv=none; d=google.com; s=arc-20160816; b=iL6d5qMnJaoOlK9R49wQLQ5pSPg+DQOkpeTgFgL1VOK4dBU42CowdKUvrnsWAa7JzP bXHDLfAWDW2zy4q3Wp5NLScIxs7B6Kb66PLJgcMAvn16WL/RFeflXAlu1N9FPYsOf1jI pcNppKY9CehMk+bpo4VHG+Gwj49t0u9XQG7J5Qd3JQT6ntSOHQ3tO7rQ4+P5VUfEY4pd C70b9Kod6DJejm8h/vXxvMhi9kCr91opy/CMOyXPjJdU9h/beIxC+2DohlVoLbiIyjzZ /eWwOIqe7lTBFK0hKqLLnE6X6Lg2HAuTihv+FN9V1H9K9r9Q61ssPObk3Wi+PX+RySGy E0tQ== 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=NJpfdz7XQfHm8DJ7Tr1Q0XVStmza4X4vWe28LjUg9GE=; b=sOS5GaFzrILKubTZuAJOoiJOGVSU0si1uGqIU5TLQrQLSAYFwn3IUrpZf4jLVr0htU nIVUfI22o1BjjbFU0pkvtnRPRxvscKonwko9GnhsSVcxM9ndFSvvrhMLIeC3lNnYb41n ZTUIpBSXhxwFi6d4KDNW59X9vNAbVU3JdlQEl1RrcKrMr9o04sdjDPX4xA0nanEVOFpE Sqzk3fEm9xki15hf8H3eehShRFsRJBWqGaM1YTV9kzwhRYyO5mbK7OFSOfMrZfdzk3zq +DTXgNoY1J+PkXABQgrf9FJ5re4gXX0TckQx/hWtOpI34C4N999PdS7SoptglrZv3XHW yqIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="rm7/mA9Z"; 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 v64-20020a622f43000000b004fe3a6ea856si8518431pfv.176.2022.04.22.12.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:38:07 -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="rm7/mA9Z"; 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 526DE1F624E; Fri, 22 Apr 2022 11:47:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448387AbiDVOMS (ORCPT + 99 others); Fri, 22 Apr 2022 10:12:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448381AbiDVOMQ (ORCPT ); Fri, 22 Apr 2022 10:12:16 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB9861FA48; Fri, 22 Apr 2022 07:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650636564; x=1682172564; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=NJpfdz7XQfHm8DJ7Tr1Q0XVStmza4X4vWe28LjUg9GE=; b=rm7/mA9Zz68iLJMOl+FcyoiDNtubPBgxQ03CphwKw7HUagABCgNM4+Od ZS2g1wpcYRncxSN9LWYI+f/KBemEvGEMmqAZ+K3BLwMmbyVRbLF1VbLu4 4zYP9Fy5+9zxRjNa911wb5g1oj/8p0Sb4QjB/nr/umpg6bbjDRosZwVUD Y=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 22 Apr 2022 07:09:24 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2022 07:09:23 -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; Fri, 22 Apr 2022 07:09:22 -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; Fri, 22 Apr 2022 07:09:18 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v10 05/12] arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 3.0/3.1 Date: Fri, 22 Apr 2022 19:38:34 +0530 Message-ID: <1650636521-18442-6-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1650636521-18442-1-git-send-email-quic_srivasam@quicinc.com> References: <1650636521-18442-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 | 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 9348728..46480b2 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