Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp748753pxb; Fri, 22 Apr 2022 10:19:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHPzpsuKViD5TJzdXGRE5pnXMSyqNgCTcugrec3Zyi9W5fK8tAPrf5ccMey6ykDAXAF4iE X-Received: by 2002:a54:480d:0:b0:322:78cc:9781 with SMTP id j13-20020a54480d000000b0032278cc9781mr2730127oij.278.1650647954879; Fri, 22 Apr 2022 10:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650647954; cv=none; d=google.com; s=arc-20160816; b=Qo/992HDRKmpQVrY3Zm117ry6m0uATvzYAI7JxSeW3RiqgZqiHIgEkD/2Z+IpHOIFU 3SltEKQFZnuqm/qPxrju464fNWnwB0Pz9bN5JAmM1fyUUS6Gs3yzJ8ia++i0qLq7l75A X7p3EhPEG7jULcqnhIGZcjlEK/ttasyLIiVcBXqCZXOaaJ9tHNO+0Yb0Aa/chRz7nkO5 pAHAJDLUd/5f9eQxongxS2JdT+JcT9bOKPasF79Sx0hqr8oGMfzyqRmv9y+ZiHGEuD40 RgCNNH20VDQk7WYhkUWcc0CwDNoQsLLE78GeKgCPrXjkl7VGqTDKwTC/GyxOVWrakVm/ CYCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=lkhNBPYeLEU29Qy1pnzyHS1LukEckw/2oKYCzK7DnJA=; b=CRIJqFCheNxgd4+cyLVQCdOJfbFFOGN2nMJjLB6efkaOZxgGYX9K3930Zjh3LmkQSK niroQtVwG3gTxmJ7tougVNuD68FZHG9Q5UYzX7UGw00fsBuTOrYfvXnjHIFwZkH/cd41 YkYfaL3m4xTRninvnHFP0Xrp8VV2qmQDblcnzTkdA1S446dQMKWwP32SHnRvC6YndPX6 WPPswQEWAFGh9Ml6PfsBJdz30TASPYWd5fsll9NnE/ryShIJeKtC5uRiIi3WOSsOkO1y YYloo4KcIC0SWAWIwfzUWogiTR0JCXJV22VCwve167KVGoKldhMD/uITRMjEN0LND2VN LNcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=IQvSMTNL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p125-20020acad883000000b00324fee6c37bsi198624oig.113.2022.04.22.10.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:19:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=IQvSMTNL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 D95A27CDDB; Fri, 22 Apr 2022 10:15:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448228AbiDVNzk (ORCPT + 99 others); Fri, 22 Apr 2022 09:55:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448223AbiDVNzi (ORCPT ); Fri, 22 Apr 2022 09:55:38 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966965A0AE; Fri, 22 Apr 2022 06:52:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650635565; x=1682171565; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=lkhNBPYeLEU29Qy1pnzyHS1LukEckw/2oKYCzK7DnJA=; b=IQvSMTNL3JPXtdzl8/gVE9jPfAgslvKiJ/Igkvyk9vwZPXCG1A9bGffd KwLbcSZ2ZN1v6XRneAj98B57/DsW3Mcm4wyR3sy1ahiRr4PiF4tNApdUi KRpnYG3ZPsFydgWf7jUQ7ELfM3XMrmfMilavJIN3cBSD+Wa0RQ4qmG+0p s=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 22 Apr 2022 06:52:45 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2022 06:52:45 -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 06:52:44 -0700 Received: from [10.216.36.2] (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 06:52:39 -0700 Message-ID: Date: Fri, 22 Apr 2022 19:22:36 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v9 12/12] arm64: dts: qcom: sc7280: Add sound node for CRD 3.0/3.1 Content-Language: en-US To: Matthias Kaehlcke CC: , , , , , , , , , , , Venkata Prasad Potturu References: <1650552459-21077-1-git-send-email-quic_srivasam@quicinc.com> <1650552459-21077-13-git-send-email-quic_srivasam@quicinc.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 On 4/21/2022 11:33 PM, Matthias Kaehlcke wrote: Thanks for your time Matthias!!! > On Thu, Apr 21, 2022 at 08:17:39PM +0530, Srinivasa Rao Mandadapu wrote: >> Add dt nodes for sound card support on rev5 (aka CRD 3.0/3.1) boards, >> which is using WCD938x headset playback, capture, I2S speaker playback >> and DMICs via VA macro. >> >> 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 | 98 +++++++++++++++++++++++ >> 1 file changed, 98 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts >> index 4033d2a..bc6dbcc 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts >> +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts >> @@ -42,6 +42,104 @@ >> qcom,mbhc-headphone-vthreshold-microvolt = <50000>; >> #sound-dai-cells = <1>; >> }; >> + >> + sound: sound { >> + compatible = "google,sc7280-herobrine"; >> + model = "sc7280-wcd938x-max98360a-1mic"; >> + >> + audio-routing = >> + "IN1_HPHL", "HPHL_OUT", >> + "IN2_HPHR", "HPHR_OUT", >> + "AMIC1", "MIC BIAS1", >> + "AMIC2", "MIC BIAS2", >> + "VA DMIC0", "MIC BIAS1", >> + "VA DMIC1", "MIC BIAS1", >> + "VA DMIC2", "MIC BIAS3", >> + "VA DMIC3", "MIC BIAS3", >> + "TX SWR_ADC0", "ADC1_OUTPUT", >> + "TX SWR_ADC1", "ADC2_OUTPUT", >> + "TX SWR_ADC2", "ADC3_OUTPUT", >> + "TX SWR_DMIC0", "DMIC1_OUTPUT", >> + "TX SWR_DMIC1", "DMIC2_OUTPUT", >> + "TX SWR_DMIC2", "DMIC3_OUTPUT", >> + "TX SWR_DMIC3", "DMIC4_OUTPUT", >> + "TX SWR_DMIC4", "DMIC5_OUTPUT", >> + "TX SWR_DMIC5", "DMIC6_OUTPUT", >> + "TX SWR_DMIC6", "DMIC7_OUTPUT", >> + "TX SWR_DMIC7", "DMIC8_OUTPUT"; >> + >> + qcom,msm-mbhc-hphl-swh = <1>; >> + qcom,msm-mbhc-gnd-swh = <1>; >> + >> + #address-cells = <1>; >> + #size-cells = <0>; >> + #sound-dai-cells = <0>; >> + >> + dai-link@0 { >> + link-name = "MAX98360A"; >> + reg = ; > same comment as for "arm64: dts: qcom: sc7280: Add sound node for CRD > 1.0 and CRD 2.0", i.e. use the link number for 'reg' instead of the lpass > DAI id. Okay. Will update accordingly. > >> + >> + cpu { >> + sound-dai = <&lpass_cpu MI2S_SECONDARY>; >> + }; >> + >> + codec { >> + sound-dai = <&max98360a>; >> + }; >> + }; >> + >> + dai-link@1 { >> + link-name = "DisplayPort"; >> + reg = ; >> + >> + cpu { >> + sound-dai = <&lpass_cpu LPASS_DP_RX>; >> + }; >> + >> + codec { >> + sound-dai = <&mdss_dp>; >> + }; >> + }; >> + >> + dai-link@2 { >> + link-name = "WCD9385 Playback"; >> + reg = ; >> + >> + cpu { >> + sound-dai = <&lpass_cpu LPASS_CDC_DMA_RX0>; >> + }; >> + >> + codec { >> + sound-dai = <&wcd938x 0>, <&swr0 0>, <&lpass_rx_macro 0>; >> + }; >> + }; >> + >> + dai-link@3 { >> + link-name = "WCD9385 Capture"; >> + reg = ; >> + >> + cpu { >> + sound-dai = <&lpass_cpu LPASS_CDC_DMA_TX3>; >> + }; >> + >> + codec { >> + sound-dai = <&wcd938x 1>, <&swr1 0>, <&lpass_tx_macro 0>; >> + }; >> + }; >> + >> + dai-link@4 { >> + link-name = "DMIC"; >> + reg = ; >> + >> + cpu { >> + sound-dai = <&lpass_cpu LPASS_CDC_DMA_VA_TX0>; >> + }; >> + >> + codec { >> + sound-dai = <&lpass_va_macro 0>; >> + }; >> + }; >> + }; >> };