Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp751622pxb; Fri, 22 Apr 2022 10:22:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsBDy0NbnxtzSK1slzGgsBYRpjH80acaukUKC4U1z7AXvz1Y/kxncZ629q+fE8QXm2wgZi X-Received: by 2002:a17:902:7049:b0:158:f77d:afb6 with SMTP id h9-20020a170902704900b00158f77dafb6mr5403427plt.138.1650648160127; Fri, 22 Apr 2022 10:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650648160; cv=none; d=google.com; s=arc-20160816; b=bvJa+SmydfbPzJbzk9nqp9zPc4vN1xV9aWZl0jl3db20p1gftawxOrCHUm8XxJfLIu DSM5bdzvOlcWQ/4+KRWo3LBLDt12jQ5E6pbSZelGoDw8IQ5xHxLFBND9oXLOt9nAPD3U dHG/abATmxTh2d9cVZaTmcX7jRWLA4YrWKBWt9AnDzwK0vze3WdaS9OY8oouvnx0jU4O Piete2FoHGPUtnOtTK0fV9lIXEqX0OdAV/2ePc01Ngeh2tkjGiWQ1GEZmCjt7zWQrgmy WEJYlus4S5DYlqYzOQzay2v1GToZrw26wOSZzW5c8tOvt70A71vJDa+qLmRosekVhbdx 2tzw== 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=hoyDp4+q4VUjDSCls+7QxNtUW+Fl+pLkDvaO3lqq828=; b=qmgxpU0z14S077rQABxrJJQfQU0h1j1nGu6rkbqgzBQtOkAh2thX3nhrnzX1JvqTQQ WPeYiD7hnt8GndSfgLcoTAiGhJprHSqqWNPdEghoLTDUcgGwe/h+2WRRY/GrOYD151Lm iNfVb+wkXOf2Or4MRVqDvSAaoCcXZQUNjiJ75Wp6yRcVXEFa9RCihcIRDJE+bGMsH1kU b9dwk70ujTxY0EALKnCzInM2dAfYAMdkxafp/AFGiM6LFX3UOfIRFZu5In4b0+Ehyq3/ HupwSLxj843Rq5BKRl5PlMhX1NLFXIsthGTT2+iChEOesFdI0ffPwpq0slU70s/UdkVC 88Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=CghmiFt0; 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 x197-20020a6331ce000000b003a2bcad9c75si7649065pgx.502.2022.04.22.10.22.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:22:40 -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=CghmiFt0; 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 70628AFAD8; Fri, 22 Apr 2022 10:16:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389780AbiDUOwV (ORCPT + 99 others); Thu, 21 Apr 2022 10:52:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389689AbiDUOvs (ORCPT ); Thu, 21 Apr 2022 10:51:48 -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 5321D43ECB; Thu, 21 Apr 2022 07:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650552530; x=1682088530; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=hoyDp4+q4VUjDSCls+7QxNtUW+Fl+pLkDvaO3lqq828=; b=CghmiFt0Y0Mz6asLGGMS5EPDk8WaC2PWVgol5AI8F/q/5Q9/ohbmMtpH Hbac6dkq/bC0ZprPZYHyLZUojDsFpw/ib0gH2Cn4dtHO6jigcPy3ARoul Hp9bLnlFK6o18TRhRswLfODZXrLPm7IOgzuRfq4TW8gJA5/Dobm9vneOJ M=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 21 Apr 2022 07:48:49 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2022 07:48:49 -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:48 -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:44 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v9 12/12] arm64: dts: qcom: sc7280: Add sound node for CRD 3.0/3.1 Date: Thu, 21 Apr 2022 20:17:39 +0530 Message-ID: <1650552459-21077-13-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 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 = ; + + 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>; + }; + }; + }; }; /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */ -- 2.7.4