Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp856041pxb; Fri, 22 Apr 2022 12:43:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVtVl78E4yUwSJgEoyvzwAjiz25gmDywgV5aeHVyIFX59fcyc+CB4FgD8Xv01JyG1HP+Hn X-Received: by 2002:a17:90b:1d8f:b0:1d2:e15a:de8 with SMTP id pf15-20020a17090b1d8f00b001d2e15a0de8mr7135988pjb.139.1650656634641; Fri, 22 Apr 2022 12:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650656634; cv=none; d=google.com; s=arc-20160816; b=bdB7IITQqk10D/S+E2GFXKztAntk6GhhuDiRCFEMHjLogOagqd7b7ySFSyUM40NXFo SftYUhr7RDPmyU3LNe4rGF0eKn0J1WUk4AJBcbyop9AeROSt5j/MQaq9IkOmTW7iczXC EPBYv1HHEEardbTeNsZ8V5VPP9VQKwqkE+zKvlF+A1BkUJffMuK8WDo5wC4RCYEHl6fL Y51DOurphMWjQRYKbFujoVyyrwfglJe0CR0WbIHbm2Y2DGqukentCBtU70N24ATPNz/g dL3L+nzBBIQt7MOGOPZWDN1Ik7dqqOyT9oVWU0InQsrhKCOz65WtDwR3wL/Daoqyl/hA tfrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0R+rUO6qFnTFl4iOBE135fiQ5474O3jXDThMBCai2no=; b=NnwR+o4iFaORf0kByC9J7N2NIwuk49ihjX6E/Y7cOzA0WFrEkxzqJl4yQuSP8/4WJo BJc/d5H9i0DpQ1HU7jLT1MaKK7akvAmQyYybkctlByccASpL0xxhKzHK0OGuoJh+DNnJ 1//XWCQkO3zpqtcjLbgrORn8xnf6cQDNxiM0/mrpfhDBoHNy6OFm3r2Rc0/EvYDUrDFE pkyqXIuzlSSsCd+3adp9bzI3P5quUyB4Yfo5loiOkADKPxMaWprWLOKzaxQgPqNjTvxQ ti5h9ymVl13aDYbMlBO1IHm/fuY3q4yQDo723HPzX7RAL0+81Zp2xvweynTdNXxcFGpJ Yw+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iXsHoNCc; 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=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k5-20020a056a00168500b004fa3b635a94si10271197pfc.111.2022.04.22.12.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:43:54 -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=@chromium.org header.s=google header.b=iXsHoNCc; 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=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8D9FC1FC1E2; Fri, 22 Apr 2022 11:50:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391176AbiDUSGt (ORCPT + 99 others); Thu, 21 Apr 2022 14:06:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391182AbiDUSGm (ORCPT ); Thu, 21 Apr 2022 14:06:42 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71F494B43F for ; Thu, 21 Apr 2022 11:03:23 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id d23-20020a17090a115700b001d2bde6c234so5911534pje.1 for ; Thu, 21 Apr 2022 11:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0R+rUO6qFnTFl4iOBE135fiQ5474O3jXDThMBCai2no=; b=iXsHoNCc1h1zyDeB+QJKZuZBmwC9fGx543/8SCLGP8Vfaaoe+DkCmAte7fyz4LYrbn raFeVzlgpnIIigHO6XkqQx0302XoulfnDLsv3/NQpNRKKL3fqSOEQL3P6cdvmDw/tKz/ +CdqNlgopHqKzxUE2pPL8ShnGCl7hTEPJM/to= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0R+rUO6qFnTFl4iOBE135fiQ5474O3jXDThMBCai2no=; b=pF/Ogb31WorbdMfPfpSHNoo/021NqiMcTS6RAgS3hk54o36HD5n3DSqNWR2CUYvFlF No5GbyRBuTfIJEMj/On/srdgGzfvXJHjOs7kyuXRwz6Y4QiM7twBMwPLTx3gXSrgBxLz /bl0ukC00sHm78aE1LfAcLYWAB/Dppq0ScOlkIdrKGL5bw/BWwm4A8hH0rLqVDZ82kLN EIJBenQUepT+ORBJVEIS2tKZzb76Qknzg7kNjJlFIRfoPL8iBTsEFt5pWG250eVl5vCR FJiq0+wTFe9HyUJ8ultwtJDebO2vNTwJyBuRObWmBMTcb9XbB4J+dIFcbqGqs24r2nDV IPsg== X-Gm-Message-State: AOAM530hlH3ETp5Wt3rsl/RWuwOn1I4m5WDuUEEPm2h9q/ECIH1haAQa jafYkC1xZB8SGtgW8Lh9H2tGCw== X-Received: by 2002:a17:902:a987:b0:158:b020:e5b8 with SMTP id bh7-20020a170902a98700b00158b020e5b8mr429725plb.103.1650564202999; Thu, 21 Apr 2022 11:03:22 -0700 (PDT) Received: from localhost ([2620:15c:202:201:d426:5807:a72:7b27]) by smtp.gmail.com with UTF8SMTPSA id k10-20020a056a00168a00b004f7e2a550ccsm25449651pfc.78.2022.04.21.11.03.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Apr 2022 11:03:22 -0700 (PDT) Date: Thu, 21 Apr 2022 11:03:20 -0700 From: Matthias Kaehlcke To: Srinivasa Rao Mandadapu Cc: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_rohkumar@quicinc.com, srinivas.kandagatla@linaro.org, dianders@chromium.org, swboyd@chromium.org, judyhsiao@chromium.org, Venkata Prasad Potturu Subject: Re: [PATCH v9 12/12] arm64: dts: qcom: sc7280: Add sound node for CRD 3.0/3.1 Message-ID: References: <1650552459-21077-1-git-send-email-quic_srivasam@quicinc.com> <1650552459-21077-13-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1650552459-21077-13-git-send-email-quic_srivasam@quicinc.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 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. > + > + 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>; > + }; > + }; > + }; > };